The following is data on a sample of employees of a store:
here are some useful numbers:
We will use this dataset for the whole exercise
Problem 1: Find the mean and the standard deviation of Age
Problem 2:
a) Find the 5 number summary of Wage
b) Say the owner wants to estimate the payroll taxes he has to pay. Should he use the mean or the median to estimate the "average" wage?
Problem 3: Find a 90% confidence interval for the mean age of the employees (assume the data has a normal distribution).
Problem 4: Are there statistically significantly more female than male employees? Test at the 5% level.
Problem 5: Is there a statistically significant difference in the wages of female and male employees? Test at the 10% level. You can assume that the data has a normal distribution.
Problem 6: Say we randomly select 7 of the employees in this sample. What is the probability that at least 4 are female?
Problem 7: What sample size would be needed to find a 90% confidence interval for the mean age of the employees with an error of 3 years?
Problem 8: Say these 14 are a representative sample of all the employees in this company. We are going to randomly select another one (not in the sample). You can assume that the wage of this person has a normal distribution with mean $7.50 and standard deviation $1.80.
a) What is the probability that the wage of this person is between $6.50 and $7.00?
b) What is the Interquartile Range of the wages?
= ∑x/14 = 32.85
∑x2 = 18544
and so Sxx = ∑x2 - (∑x)2/n = 18544-(460)2/14 = 3429.66
and so S = √Sxx/(n-1) = √3429.66/13 = 16.24
| Min | Q1 | Median | Q3 | Max |
|---|---|---|---|---|
| 6.50 | 6.50 | 7.50 | 9.15 | 12.50 |
± tn-1,α/2 s/√n = 32.85± 1.7709 × 16.24/√14 = 32.85 ± 7.69
= 8/14 = 0.57
= 8 > 5 and n(1-
) = 7 > 5
-p0)/√(p0(1-p0)/n) = 0.0714/0.1336 = 0.534| Female | Male | |
|---|---|---|
| Sample Size | 8 | 6 |
![]() |
7.66 | 8.99 |
| s | 1.39 | 2.40 |

Problem 7
The formula for the sample size of a confidence interval for the mean is

Now
100(1-α)% = 90%, so α=0.1, so α/2=0.05, so zα/2=z0.05=1.645
s = s = 16.24
E = 3, so
n = (zα/2×s/E)2 = (1.645×16.24/3)2 = 79.3 ~ 80
b) IQR = Q3-Q1 = P75-P25
by computer IQR = P75-P25 = 2.428
by hand: P75: We need to find x such
0.75 = P(X < x) =
P((X-μ)/s < (x-7.5)/1.8) =
P(Z < (x-7.5)/1.8), so
(x-7.5)/1.8 = 0.67 or x = 1.8×0.67+7.5 = 8.706
P25: We need to find x such
0.25 = P(X < x) =
P((X-μ)/s < (x-7.5)/1.8) =
P(Z < (x-7.5)/1.8).
so (x-7.5)/1.8 =- 0.67 or x = 1.8×(-0.67)+7.5 = 6.294
Finally
IQR = Q3-Q1 = P75-P25 = 8.706-6.294 = 2.412