Professional Documents
Culture Documents
Laboratory 2
Laboratory 2
Laboratory 2
1. It is known that the average electricity consumption in a certain province is 721 kWh. A
technology company in the region believes that its employees consume more than the
provincial average. Collect information on the consumption of 20 randomly selected
employees, and obtain the following data:
a) Is there evidence to affirm that the average household electricity consumption of the
company's employees is higher than the average consumption at the provincial level?
Use a significance level of 10%.
Solution
a) Define variable
We know that the distribution is normal. But we do not know the mean and standard
deviation.
X ∼ N (μ=? ; σ =?)
To raise hypotheses:
Hipótesis nula:
H 0 : μ=721
Hipótesis Alternativa
H 1: μ> 721
Estadístico de prueba
X –μ
∼ N (0 , 1)
σ
√n
❑
But if the variable X is normal and the population standard deviation is not
known, then it is estimated using the sample standard deviation S. And the
statistic that results from substituting σ for S has Student's t distribution with n-
1 degrees of freedom:
X –μ
S ∼t n–1
√n
❑
t 19; 0; 9 = 1,3277
Then:
¯ x=745
s=49 , 63
745 – 721
49 ,63 = 2,16
√ 20
❑
The observed value 2.162.16 belongs to the rejection zone (1.3277; ∞).
Conclusion: With a significance level of 10% we can state that there is sufficient
evidence to reject the null hypothesis that the average monthly consumption of
electrical energy of employees is 721 kwh, in favor of the alternative hypothesis that
states that the average monthly consumption of electrical energy of employees is
higher than 721 kwh.
Height: 50
3. In a sample of 105 randomly selected stores in one area, 27 of them showed losses
this month. An economic analyst in the area states that the proportion of
businesses in the area with losses is equal to or greater than 0.35. Contrast this
hypothesis at a significance level of 5%.
Solution:
Frente a la alternativa
H 1 : p< 0 , 35
27
P= =0.26
105
q=1− p = 0.74
p−p 0 0 ,26 – 0 , 35
√ √
z c = ❑ p o x q o = ❑ 0 ,35 x 0 , 65 = - 1.93
n 105
T