Course-Material-6-Hypothesis-Testing-One-Sample-t-test
Course-Material-6-Hypothesis-Testing-One-Sample-t-test
https://www.freepik.com/premium-photo/led-light-bulb-table-with-white-background_3933141.htm
https://opentextbc.ca/researchmethods/chapter/understanding-null-hypothesis-testing/
Instructions:
4 One Sample t-test
1. Choose 20 songs of your choice. You can look at the Steps in Conducting
internet or if you have CDs with different songs. 8 Hypothesis Testing
2. List the number of minutes and seconds of each songs.
3. Convert the time into seconds (the number of minutes 9 One Sample z-test
will be multiplied to 60 seconds, and add the remaining
seconds. Exercise 6.1
10
4. Compute for the mean of the time of all 20 songs.
One Sample t-test
5. Compute the variance and standard deviation. (Unknown Sample
6. Use the data as an example for this course material. 12 Mean and Standard
Answer the question: Is there enough evidence to claim Deviation
that the average number of seconds each songs is less
than 240 seconds? Use 𝛼 = 0.01.
18 Lesson Summary
20 Worksheet
21 Lesson Summary
22 References
What is the difference in If the sample size is less than 30, what test should we used
one sample z-test and one to test the significant of the mean?
sample t-test?
What are the advantages One Sample t-test
and disadvantages in using
one sample t-test? We collect a random sample from the population and then
Why do we need to compare the sample mean with the population mean to make
compute for the degree of a statistical decision as to whether the population mean and
he hypothesized mean (sample mean) is significantly
freedom?
different or not.
𝑑𝑓 = 𝑛 − 1
where 𝑛 is the sample size.
X
tcomp
s
n
where
tcomp computed value
X sample mean (observed mean)
population mean (hypothesized mean)
s sample standard deviation
n sample size
Solution:
X 43minutes 35minutes
Given:
s 12 minutes n 28
H 0 : 35minutes
H1 : 35minutes (claim)
𝛼 = 0.05
𝑑𝑓 = 28 − 1 = 27
Then, determine the critical value using the table at the last
page of this course material.
𝑡𝑐𝑟𝑖𝑡 = 1.703
X 43 35 8
tcomp 3.527
s 12 2.268
n 28
Solution:
H 0 : Php 12,500
H1 : Php 12,500(claim)
𝛼 = 0.01
𝑑𝑓 = 25 − 1 = 24
Then, determine the critical value using the table at the last
page of this course material.
𝑡𝑐𝑟𝑖𝑡 = ±2.797
Solution:
𝑡𝑐𝑜𝑚𝑝 = _________
Conclusion: ______________________________________________________
____________________________________________________________________
Solution:
𝑡𝑐𝑜𝑚𝑝 = _________
Conclusion: ______________________________________________________
_______________________________________________________
X
X
n
X X
2
s
n 1
where
X sample mean
s sample standard deviation
n sample size
Examples:
𝛼 = 0.01
𝑑𝑓 = 8 − 1 = 7
Then, determine the critical value using the table at the last
page of this course material.
𝑡𝑐𝑟𝑖𝑡 = ±3.499
2
𝑋 𝑋−𝑋 (𝑋 − 𝑋)
4 4 − 5.625 = −1.625 (−1.625)2 = 2.64
6 6 − 5.625 = 0.375 (0.375)2 = 0.14
8 8 − 5.625 = 2.375 (2.375)2 = 5.64
3 3 − 5.625 = −2.625 (−2.625)2 = 6.89
5 5 − 5.625 = −0.625 (−0.625)2 = 0.39
7 7 − 5.625 = 1.375 (1.375)2 = 1.89
8 8 − 5.625 = 2.375 (2.375)2 = 5.64
4 4 − 5.625 = −1.625 (−1.625)2 = 2.64
2
∑ 𝑋 = 45 ∑(𝑋 − 𝑋) = 25.875
X
X
45
n 8
X 5.625
X X
2
25.875 25.875
s 3.696
n 1 8 1 7
s 1.922
Days 1 2 3 4 5 6 7
Temperature
23.5 27.6 22.4 29.5 26.3 31.2 27.3
(in °𝐶)
Days 8 9 10 11 12 13 14
Temperature
23.7 24.7 31.2 37.1 21.3 24.0 24.3
(in °𝐶)
Solution:
Given: 24.5C n 14
H 0 : 24.5C
H1 : 24.5C (claim)
𝑑𝑓 = 14 − 1 = 13
Then, determine the critical value using the table at the last
page of this course material.
𝑡𝑐𝑟𝑖𝑡 = 1.771
X
X
374.1
n 14
X 26.72C
X X
2
241.76 241.76
s 18.597
n 1 14 1 13
s 4.312
Solve:
Solution:
2
𝑋 𝑋−𝑋 (𝑋 − 𝑋)
𝑡𝑐𝑜𝑚𝑝 = _______________
Conclusion:
1. The average length of night (sunset to sunrise) in Manila is said to be 12.2 hours. A group of
students said that in February, it will be shorter. They do a study about this and choose 14 randomly
selected days in February. The computed sample average is 11.19 hours with a standard deviation of
0.25 hours. Is there enough evidence for the students’ claim? Use 𝛼 = 0.05.
2. The recommended price for 1 kilo of pork is Php 225 pesos. A researcher wants to know if a
certain market is following the recommended price. He went to 12 different stall and asked the price
of 1 kilo of pork. The table below shows the collected prices.
At 𝛼 = 0.01, is there enough evidence for the researchers claim that the certain market is not
following the recommended price for 1 kilo of pork?
If the sample size is more than 30, it is better to use one sample z-test since
it will give a better statistical decision than t-test. If the sample size is less than 30,
there are two cases to be considered. If the population variance is known, it is
better to use one sample z-test, but if the population variance is unknown, then we
use one sample t-test.
The advantage of using one sample t-test is you can still do a hypothesis
testing even if the population variance is unknown. The disadvantage of using one
sample t-test is sometimes, you still need to compute for the variance or standard
deviation of your sample before proceeding in doing the hypothesis testing.
Degrees of freedom refers to the maximum number of logically
independent values, which are values that have the freedom to change in the given
data sample. For example, we have four data values that said to have an average of
5. Let us say that the first three values are given as {3,5,8}. Since the average is
said to be 5, the fourth value has “no other choice” but to be 4. It means that one
value has no freedom to choose its value unlike the 𝑛 − 1 values.
Contributors:
Aserit, Pia Lorraine O.
Ignacio, Rinalyn L.
Rivera, Rey-Ann B.