Out of 1000 welds that have been made on a tower, it is suspected that 15% are defective. To estimate p, the proportion of defective welds, how many welds must be inspected to have approximately 95% confidence that the maximum error of the estimate of p is 0.04?
Solution.
Since we have a strong prior belief about the true proportion, we may use p=0.15 in the confidence interval. The confidence interval in question is
If X and Y are the respective means of two independent random samples of the same size n, find n if we want x−y±4 to be an approximate 90% confidence interval for μX−μY. Assume that the standard deviations are known to be σX=15 and σY=25.
Solution.
The confidence interval will be
x−y±z2αnσX2+nσY2=x−y±1.645n152+n252.
For x−y±4 to be an approximate 90% confidence interval, we need the standard error to be at most 4, so we get
A manufacturer sells a light bulb that has a mean life of 1450 hours with a standard deviation of 33.7 hours. A new manufacturing process is being tested, and there is interest in knowing the mean life of the new bulbs. How large a sample is required so that [x−5,x+5] is a 95% confidence interval for μ? You may assume that the change in the standard deviation is minimal.
Solution.
Since the change in the standard deviation is minimal, we can use σ=33.7 in the confidence interval and use a normal distribution. Like before, we need the standard error to be at most 5:
z0.025nσ≤5⟹n≥(51.960)2⋅1135.69=174.51466816,
so we use
n=175.
Problem 4
For a public opinion poll for a close presidential election, let p denote the proportion of voters who favor candidate A. How large a sample should be taken if we want the maximum error of the estimate of p to be equal to
0.03 with approximate 95% confidence?
0.02 with approximate 95% confidence?
Solution.
We have no information or guess on the true parameter p, so use the upper bound p(1−p)≤41. We can bound
z0.025np(1−p)≤1.9604n1.
To have the maximum error be less than some given ε>0, we need
1.9604n1≤εn≥(ε1.960)2⋅41.
In this case, ε=0.03, which gives
n≥1067.11111111⟹n=1068.
Similarly, ε=0.02, so
n≥2401⟹n=2401.
Problem 5
For n=12 year-2007 model sedans whose horse-power is between 290 and 390, the following measurements give the time in seconds for the car to go from 0 to 60mph:
6.06.35.06.05.75.96.85.55.44.85.45.8
Find a 96.14% confidence interval for the median, m.
The interval (y1,y7) could serve as a confidence interval for π0.3. Find it and give its confidence level.
Solution.
First, we need to sort the data to get the sample order statistics y1,…,y12: