









Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!










A simple random sample of ten X-cars achieved the following fuel consumption figures (in miles per gallon): 27. 2 27. 2 26. 8 26. 9 25. 3 26. 0 26. 4 25. 7 28. 1 25. 7 Another independent simple random sample of twelve Y-cars achieved the following results:
2 24. 3 25. 3 24. 8 25. 1 25. 0 24. 9 23. 9 26. 0 26. 1 26. 0 26. 3
Using the following information obtained in Excel, answer the questions below:
(a) Use an unbiased estimation procedure to find point estimates for the population mean μX and population variance σ^2 X. (b) Use an unbiased estimation procedure to find a point estimate for the population proportion pX of those X-cars whose fuel consumption exceeds 25.8. (c) Use an unbiased estimation procedure to find point estimates for the population mean μY and population variance σ^2 Y. (d) Use an unbiased estimation procedure to find a point estimate for the population proportion pY of those Y-cars whose fuel consumption exceeds 25.8. (e) Use an unbiased estimation procedure to obtain a point estimate of the difference in population mean fuel consumption between X-cars and Y-cars, that is, of μX − μY. (f) Use an unbiased estimation procedure to obtain a point estimate of the difference between the population proportion of X-cars achieving more than 25.8 and the population proportion of Y-cars achieving more than 25.8, that is, of pX − pY.
Solution. Let X = “fuel consumption of an X-car” and Y = “fuel consumption of an Y-car”, both in miles per gallon.
(a) An unbiased estimator of μX is X¯. The corresponding estimate is ¯x =
i=1 xi^ =^
s^2 x =
i=1 x
2 i −^ 10(¯x)
2 10 − 1
(b) An unbiased estimator of pX is ˆpX = “proportion of the sampled X-cars, whose mpg exceeds 25.8”. The corresponding estimate is
pˆx =
(c) An unbiased estimator of μY is Y¯. The corresponding estimate is ¯y =
i=1 yi^ =^
s^2 y =
i=1 y
2 i −^ 12(¯y)
2 12 − 1
(We used more decimals in ¯y to obtain the same value as in the Excel output of Ex. 22.) (d) An unbiased estimator of pY is ˆpY = “proportion of the sampled Y-cars, whose mpg exceeds 25.8”. The corresponding estimate is
pˆy =
(e) An unbiased estimator of μX − μY is X¯ − Y¯. The corresponding estimate is ¯x − y¯ = 26. 53 − 25 .16 = 1.37. (f) An unbiased estimator of pX − pY is ˆpX − pˆY. The corresponding estimate is ˆpx − pˆy =
7 − 0 .33 = 0.37.
We take a simple random sample of size n = 400 from a population X and construct an 95% confidence interval for the unknown population mean μX (the population standard deviation is assumed to be known, σX = 1). Based on the same sample we construct an 80% confidence interval for the unknown population mean μX. We repeat this scheme 300 times. As the result we obtain 300 confidence intervals at an 95% level and the ”twin” 300 confidence intervals at an 80% confidence level. Both sets of intervals are plotted below.
−7.7 −7.6 −7.5 −7.4 −7.
0
50
100
150
200
250
300
Confidence Interval
Index
| (^) | |^ |^ |||||||||| | (^) | ||^ |||^ | ||| |||
|| (^) | ||^ || | ||||| | |^ |||^ | ||^ |||| |
| |^ ||^ ||||| ||||| || ||^ ||^ |||^ ||| |
| |||^ || || ||||||
| (^) ||| | | || |||^ || | ||| |^ |||| ||^ | ||
| |^ | |^ |||| |||| |
||| (^) | || |||| ||| | | ||^ |^ |||^ ||||| |
|| (^) || (^) || |^ ||||||| | (^) || ||^ ||||||||^ | | |^ | |^ |||| ||||| | ||^ | || || |||^ | | |
| (^) | (^) | ||| (^) | ||||| | |||| |||^ |^ ||^ ||^ | |
| (^) || || || |^ |||^ | | | |^ ||^ ||||||^ || || || |||^ | ||^ ||||| | || |^ |^ | || |||||| | |
−7.7 −7.6 −7.5 −7.4 −7.
0
50
100
150
200
250
300
Confidence Interval
Index
| (^) | |^ |^ |||||||||| | (^) | ||^ |||^ | ||||||
|| (^) | ||^ || | ||||| | |^ |||^ | ||^ |||| |
| ||^ |^ ||||| ||||| || ||^ ||^ ||||^ || |
| (^) || |^ || || ||||||
| (^) ||| | | | ||||^ || || | ||^ |||| ||^ | ||
| |^ | |^ |||| |||| |
||| (^) | || |||| ||| | | ||^ |^ |||^ ||||| |
|| (^) || (^) || |^ ||||||| | (^) || ||^ ||||||||^ | | |^ | |^ |||| ||||| | ||^ | || || |||^ | | |
| (^) | (^) | ||| (^) | ||||| | ||| | |||^ |||^ ||^ | |
| (^) | ||| || |^ |||^ | | | |^ ||^ ||||||^ || || || |||^ | ||^ ||||| | |^ | ||^ | || ||||||| |
(a) Which graph, left or right, shows the 95% confidence intervals for μX and which shows the 80% confidence intervals for μX? Justify your answer. (b) For each graph, say how many (approximately) of those 300 intervals will cover μX and how many will not.
Solution.
(a) Left: 80% confidence intervals. Right: 95% confidence intervals. Justification: the higher the level, the longer the interval (keeping everything else the same).
I. n = 400, X ∼ Bernoulli(0.3) II. n = 400, X ∼ Bernoulli(0.7) III. n = 100, X ∼ Bernoulli(0.3) IV. n = 100, X ∼ Bernoulli(0.7)
0.0 0.2 0.4 0.6 0.8 1.
0
10
20
30
40
50
Confidence interval
Index
| (^) || || | (^) | | || | ||| | ||^ | |||
|| | ||
| | || ||
| (^) | || | ||| | | ||^ || | |||
0.0 0.2 0.4 0.6 0.8 1.
0
10
20
30
40
50
Confidence interval
Index
|| || | | ||||
| |||||
|| |||
|||| | | | ||| ||||| |
|||||||
| ||| ||
0.0 0.2 0.4 0.6 0.8 1.
0
10
20
30
40
50
Confidence interval
Index
||| | | | ||||
| || || | ||||
| || ||
||| ||| || ||| |||||||
| |||| ||
0.0 0.2 0.4 0.6 0.8 1.
0
10
20
30
40
50
Confidence interval
Index
| |^ || |
|| ||| ||| ||| | (^) | | || | (^) | ||| ||||^ | |||^ | |
| | |||| | || | ||| |
Solution. Top left: n = 100, X ∼ Bernoulli(0.7) (scenario IV) Top right: n = 400, X ∼ Bernoulli(0.3) (scenario I) Bottom left: n = 400, X ∼ Bernoulli(0.7) (scenario II) Bottom right: n = 100, X ∼ Bernoulli(0.3) (scenario III)
(a) Find and interpret a 95% confidence interval for the population variance. (b) Would a 99% confidence interval for this variance be wider or narrower than that found in the previous part? Justify without doing any calculations. (c) Find and interpret a 95% confidence interval for the population standard deviation.
Solution.
(a) Assumptions: SRS, normality of the population.
Population: X = “concentration of impurity levels in a con- signment of raw material (in %)” X ∼ N (μX , σ^2 X )
Sample: sx = 2. 36
Objective: CI 0. 95 (σ X^2 ) =
(n−1)s^2 x χ^2 n−1;α/ 2 ,^
(n−1)s^2 x χ^2 n−1;1−α/ 2
s^2 x = 2. 362 ≈ 5. 57 n = 15 1 − α = 0. 95 ⇒ α/2 = 0. 025 χ^2 n−1;1−α/ 2 = χ^2 14;0. 975 = 5. 63 χ^2 n−1;α/ 2 = χ^2 14;0. 025 = 26. 12
CI 0. 95 (σ^2 X ) =
We can be 95% confident that the variance in the impurity concentration levels takes a value between 2.99 and 13.85. (b) It would be wider because as the confidence level increases the size of the interval increases. (c) CI 0. 95 (σX ) = (
13 .85) = (1. 73 , 3 .72) and so we can be 95% confident that the standard deviation in the impurity concentration levels is between 1.73 and 3.72.
(a) Find the level of confidence associated with this interval. (b) Construct and interpret a 80% confidence interval for the population percentage in question.
Solution.
(a) Assumptions: SRS, large n. Population: X = 1 if a union steward never talks employees out of filing grievances and 0 otherwise X ∼ Bernoulli(pX ) pX = proportion of all union stewards who never talk employees out of filing grievances
Sample: ˆpx = 14/ 54 ≈ 0. 26 CI 1 −α(pX ) = (0. 16 , 0 .36) Objective: 1 − α One way of finding 1 − α is to use the relationship
width = 2zα/ 2
pˆx(1 − pˆx)/n,
solve this equation for zα/ 2 , identify α and even- tually (1 − α).
From theory CI width = 2 zα/ 2
From the problem data CI width = 0. 36 − 0 .16 = 0. 2 ⇒
2 zα/ 2
zα/ 2 =
α/ 2 = 0. 047 α = 0. 094
The confidence level used was 1 − α = 1 − 0 .094 = 90 .6%.
(b) Assumptions: SRS, large n.
iii. An 80% confidence interval was required (with everything else the same). (c) If the population was not normally distributed, would you be able to construct the confidence interval for the population mean? Justify. What kind of remedy would you suggest to fix the problem? (d) Construct and interpret a 90% confidence interval for the population standard deviation.
Solution.
(a) Assumptions: SRS, normality of the population.
Population: X = “weekly study time of a student at UC3M (in h)” X ∼ N (μX , σ^2 X ) σ^2 X unknown
Sample: ¯x = 18. 36 sx = 3. 92
Objective: CI 0. 9 (μX ) =
¯x ∓ tn−1;α/ 2 √sxn
sx = 3. 92 n = 16 ¯x = 18. 36 1 − α = 0. 9 ⇒ α/2 = 0. 05 tn−1;α/ 2 = t15;0. 05 = 1. 753
CI 0. 9 (μX ) =
We can be 90% confident that the population mean weekly study time falls between 16.64 and 20 .08 h. (b) i. It would be narrower. In the expression for the half-width (tn−1;α/ 2 √sxn ) we divide by
n. Thus, with more data, we have more precision. ii. It would be wider. In the expression for the half-width we multiply by sx. Thus, with more variation in the sample, we have less precision. iii. It would be narrower. In the expression for the half-width we multiply by tn−1;α/ 2 , which decreases as we increase α/2 from 0. 1 /2 to 0. 2 /2. (c) No. We are dealing with a small sample size and unknown population standard deviation, and we are using a t-based confidence interval which is valid under normality of the population. If the population were not normal, we could collect more data (to reach n ≥ 30) in order to construct a confidence interval for the mean in large samples. (d) Assumptions: SRS, normality of the population.
Population: X = “weekly study time of a student at UC3M (in h)” X ∼ N (μX , σ^2 X )
Sample: sx = 3. 92
Objective: CI 0. 9 (σX ) =
(√ (n−1)s^2 x χ^2 n−1;α/ 2 ,
√ (n−1)s^2 x χ^2 n−1;1−α/ 2
)
s^2 x = 3. 922 ≈ 15. 37 n = 16 1 − α = 0. 9 ⇒ α/2 = 0. 05 χ^2 n−1;1−α/ 2 = χ^2 15;0. 95 = 7. 26 χ^2 n−1;α/ 2 = χ^2 15;0. 05 = 25. 00
CI 0. 9 (σ^2 X ) =
CI 0. 9 (σX ) = (3. 04 , 5 .64)
We can be 90% confident that the standard devi- ation in the weekly study times of all students at UC3M falls between 3.04 and 5.64 h.
(a) Find and interpret a 95% confidence interval for the mean weight of all bricks produced this day. (b) Your boss thinks that the interval constructed in the previous part is too wide and would like you to reduce its length by half. By how many observations do you need to increase your current sample size to achieve that goal? (c) Give the value of the standard error of X¯.
Solution.
(a) Assumptions: SRS, normality of the population.
Population: X = “weight of a brick (in pounds)” X ∼ N (μX , σ^2 X = 0. 122 )
Sample: ¯x = 4. 07 Objective: CI 0. 95 (μX ) =
x ¯ ∓ zα/ 2 σ√Xn
n = 16 x¯ = 4. 07 1 − α = 0. 95 ⇒ α/2 = 0. 025 zα/ 2 = z 0. 025 = 1. 96
CI 0. 95 (μX ) =
We can be 95% confident that the population mean weight is between 4.011 and 4.129 pounds. (b) Assumptions: SRS, normality of the population.
Population: X = “weight of a brick (in pounds)” X ∼ N (μX , σ^2 X = 0. 122 )
CI 1 −α(μX ) : width smaller by half Objective: n∗^ such that new width, 2zα/ 2 √σXn∗ , equals one half of the old width, 12 · 2 zα/ 2 σ√Xn.
2 zα/ 2
σX √ n∗^
= 2 zα/ 2
σX √ n
n∗^ =
4 n n∗^ = 4 n
Hence, we need a sample size four times bigger than the original one, that is, we need to increase the sample size from n to 4n, i.e., by 3n = 3(16) = 48 observations. (c) SE( X¯) = σX /
n = 0. 12 /4 = 0. 03
(a) Compute a confidence interval at the 95% level for the mean monthly salary of all alumni of the school. (b) Which would be the value of the interval if the confidence level is selected as 99%? (c) Which sample sizes would yield intervals of size smaller than 100 euros, if the values of the sample mean and standard deviation remain unchanged, and the confidence level is 95%?
Solution.
(a) We have a simple random sample from a normal population with unknown standard deviation. Our pivotal quantity is X¯ − μX sX /
n ∼ tn− 1
where tn− 1 denotes a Student-t distribution with n − 1 degrees of freedom.
We start by computing the value of the quantiles of interest. We have α = 0.1, implying α/2 = 0.05 and 1 − α/2 = 0.95, as well as n = 20. From the tables for a chi-squared distribution with 19 degrees of freedom we obtain χ^219 , 0. 95 = 10.117 and χ^219 , 0. 05 = 30.144. The confidence interval for the variance has the form
χ^2 n− 1 , 1 −α/ 2 ≤
(n − 1)s^2 x σ^2 X
≤ χ^2 n− 1 ,α/ 2.
Replacing sample values, taking into account that the quantity of interest from the sample is s^2 x = 2. 32 = 5.29, we obtain the interval
σ^2 X
≤ σ^2 X ≤
⇔ CI 1 −α(σ X^2 ) = [3.334; 9.935].
(b) If the sample size is now n = 40, the values of the quantiles of interest change and are now χ^239 , 0. 95 = 25.695 and χ^239 , 0. 05 = 54.572. The value of the new interval is
σ^2 X
≤ σ^2 X ≤
⇔ CI 1 −α(σ X^2 ) = [3.781; 8.029].
Solution. (a) To get unbiased estimators for proportions in a population we can use the corresponding sample proportions. In our case, if pAB denotes the proportion of consumers interested in both products, the requested value is
ˆpab =
(b) To compute this second estimate we use the same procedure as before, but we need to know the number of people in the sample that satisfy the given condition. In this case, out of the 36 clients willing to purchase the first product, 36 − 26 = 10 do not wish to purchase the second one. Thus, the desired estimate for pA B¯ , the proportion of all consumers interested in purchasing the first product but not the second one, is
ˆpa¯b =
(c) The estimator can be written as the mean of Bernoulli variables associated to the satisfaction of the condition under study. Its variance will then be given by the variance of each variable in the sum, pA B¯ (1 − pA B¯ ), divided by n,
Var[ˆpA B¯ ] =
pA B¯ (1 − pA B¯ ) n An estimate of this variance is pa¯b(1 − pa¯b) n − 1
(d) We assume that we have a s.r.s. and that n is large enough that we can use the CLT. The pivotal statistic is pˆA B¯ − pA B¯ √ pˆA B¯ (1 − pˆA B¯ )/n
∼approx. N (0, 1).
From the sample we have ˆpa¯b = 0.156 and n = 64. Also, zα/ 2 = z 0. 05 = 1.645. The confidence interval will be given by
CI 0. 1 (pA B¯ ) = [ˆpa¯b ± zα/ 2
pˆa¯b(1 − ˆpa¯b)/n] = [0.082; 0.231].
(e) We will make the same assumptions and use the same statistic as before. The difference will be that we will exclude from the confidence interval only values on the right tail of the distribution. The confidence interval will be defined as
CIα(pA B¯ ) = [0; ˆpa¯b + zα
pˆa¯b(1 − ˆpa¯b)/n] = [0; 0.214].
(a) Obtain a confidence interval at a confidence level of 96% for the average age of all clients visiting this center. (b) What would be the smallest sample size that would ensure a length for this confidence interval of at most 1? (c) Compute the probability that the sample quasi variance is less than 19.67. (d) In the sample you have identified 25 persons as foreigners. Compute a confidence interval for the proportion of foreigners that shopped in this center for a confidence level of 95%. (e) The sales director of the retailer tells you that she has another (independent) sample for the proportion of foreigners in their centers, with a sample size of 200 and a sample proportion of 20%. Provide an improved confidence interval (at a 95% level) for this proportion using all the information that you have available. (f) If the sample size is large enough, it is known that the sample median follows a normal distribution with mean μ and variance π 2 σ
2 n ; we denote it by^ Xˆm. If we wish to compare the efficiency of the sample median and the sample mean, which of the two estimators is more efficient for n large?
Solution.
(a) CI96% = (¯x ± zα/ 2 σ√Xn ) = (30 ± 2. 05 105 ) = (28.975; 31.025)
(b) 2. 05 √^5 n ≤ 0 .5 =⇒ n ≥ 420. 2
(c) P (s^2 X < 19 .67) = P
99 s^2 X 25 <^
99 × 19. 67 25
= P (χ^299 < 77 .9) = 0. 05
(d) The confidence interval is given by
CI95%(pY ) = [ˆpy ± zα/ 2
p ˆy (1 − pˆy )/n] = [0. 25 ± 1. 96
(e) We assume that both samples correspond to the same population. We combine both samples to obtain a larger sample that is still a s.r.s. The proportion for this combined sample is pˆc = (25 + 200 × 0 .2)/(100 + 200) = 0.217. The new confidence interval is
CI95%(pC ) = [ˆpc ± zα/ 2
pˆc(1 − pˆc)/n] = [0. 217 ± 1. 96
(f) Var( X¯) = σ
(^2) X n and Var( Xˆm) = π 2
σ^2 X n '^1.^57
σ X^2 n =⇒^ X¯ is more efficient than Xˆm as it has a lower variance.
ii. TRUE. We can use the interval obtained in the second question. This interval for a confidence level of 95% includes the value 1000, implying that at a 99% confidence level the corresponding interval will be larger and it will also include the value 1000. iii. TRUE. The lower limit of the confidence interval for a population proportion is given by pˆx − zα/ 2
pˆx(1 − pˆx)/n and this value is negative whenever ˆpx < 1 /(1 + n/z^2 α/ 2 ).
(a) Compute a confidence interval at the 99% level for the weight loss of all patients following the treatment. (b) Which would be the value of the interval if the confidence level is selected as 90%? (c) Compute a confidence interval for the variance of the weight loss at the 99% level.
Solution.
(a) We can apply the following procedure in Excel. In “Data analysis” under the menu “Data” we select the option “Descriptive statistics” and we tick the options for “Summary statistics” and “Confidence level for the mean”. We introduce the range of the data to analyze, as well as the confidence level for the mean, and we obtain the value 6.0025 for the mean, and an interval (half) length of 0.8142. The confidence interval will be
CI99%(μX ) = [6. 0025 ± 0 .8142] = [5.188; 6.817].
(b) We repeat the same procedure as before, but we change the confidence level to obtain a new interval length of 0.5066. The new interval is
CI90%(μX ) = [6. 0025 ± 0 .5066] = [5.496; 6.509].
(c) To compute the interval for the variance we use the formulas seen in class, that is, the interval is given by
CI99%(σ^2 X ) =
(n − 1)s^2 x χ^2 n−1;1−α/ 2
(n − 1)s^2 x χ^2 n−1;α/ 2
The value of s^2 can be found in the descriptive statistics computed before, as the sample variance s^2 = 3.616. The sample size is n = 40 and we obtain the quantiles using the Excel function INVCHISQ. We have
INVCHISQ(0.005; 39) = 19. 996 INVCHISQ(0.995; 39) = 65. 476
and replacing these values in the formulas we have the interval
CI99%(σ^2 X ) =
(a) Compute a confidence interval at the 90% and the 99% level for the expected change in demand for the coming year. (b) Compute a confidence interval at the 99% level for the standard deviation of the population (the expected change in the demand). (c) Later on, you have collected an additional set of 18 values for the expected changes (Sample 2). We assume these values correspond to the same population and are independent from those in the initial sample. Which would be the revised values of the confidence intervals (for a level of 99%) if you were to use all the available information?
(d) Would it be reasonable to expect that there will be no change in your demand for the coming year?
Solution.
(a) We use Excel to answer these questions. In “Data analysis” under the menu “Data” we select the option “Descriptive statistics” and we tick the options for “Summary statistics” and “Confidence level for the mean”. We introduce the range of the data to analyze (Sample 1), as well as a confidence level for the mean, and we obtain the value − 0 .038 for the mean. For the interval (half) length we have values 0.021 for a confidence level of 90% and 0.034 for 99%. The confidence intervals will be
CI 0. 9 (μX ) = [− 0. 038 ± 0 .021] = [− 0 .017; − 0 .059], CI 0. 99 (μX ) = [− 0. 038 ± 0 .034] = [− 0 .004; − 0 .072].
(b) To obtain the confidence interval for the standard deviation we will use the formulas for the corresponding intervals and the corresponding Excel functions to obtain the values of interest. The formulas for the confidence interval for the variance are [ (n − 1)s^2 x χ^2 n−1;1−α/ 2
(n − 1)s^2 x χ^2 n−1;α/ 2
The value of s^2 x can be found in the descriptive statistics computed before, as the sample variance s^2 x = 0.00731. The sample size is n = 46 and we obtain the quantiles using the Excel function INVCHISQ. We have
INVCHISQ(0.005; 45) = 24. 311 INVCHISQ(0.995; 45) = 73. 166
and replacing these values in the formulas we have the interval
CI 1 −α(σ^2 X ) =
The interval of interest is the one given by the square roots of these values,
CI 1 −α(σX ) = CI 0. 99 (σX ) = [0.067; 0.116].
(c) We combine both samples to recompute the statistics of interest. A simple way to do this in Excel is to copy the second sample immediately below the first one. For the joint sample we have that the mean is − 0 .0470 and the variance is 0.00694. The (half) length of the interval (for 1 − α = 0.99) is 0.0277. We have also
INVCHISQ(0.005; 63) = 37. 838 INVCHISQ(0.995; 63) = 95. 649
From these values we have
CI 0. 99 (μX ) = [− 0. 047 ± 0 .028] = [− 0 .019; − 0 .075],
CI 0. 99 (σX ) =
Note that these intervals are shorter (more precise) than the previous ones. (d) As the value 0 is clearly outside the confidence interval CI 0. 99 (μX ), it is not reasonable to expect that the demand will not decrease in the coming year.
pˆx(1 − ˆpx)/n. For a fixed confidence level and for a fixed sample size n, plot this width as a function of the observed sample proportion ˆpx using Excel (for example, take α = 0. 05 and n = 100). For what value of ˆpx is this interval the widest? Solution. The value of ˆpx of 0.5 leads to the widest interval.
0 5 10 15 20
- Page