Module 3B - T Tests For A Population Mean With JASP Output
Module 3B - T Tests For A Population Mean With JASP Output
Module 3B - T Tests For A Population Mean With JASP Output
Testing
and
tests for a population mean
(Part II)
t-test for a population mean
Learning objectives
At the end of this session, you should be able to:
1. understand the definitions used in hypothesis testing;
2. state the null and alternative hypotheses;
3. state the five steps used in hypothesis testing using the
critical value or traditional method;
4. state the five steps used in hypothesis testing using the p-
value method;
4. test means when the population standard deviation is
known, using the z-test;
5. test means when the population standard deviation is
unknown, using the t-test.
Hypothesis tests for the Mean
Hypothesis tests
for
Is known Is unknown
-use z-test - use t-test
-use normal distribution - use Student’s t-distribution
Properties of the student’s t-distribution
Properties similar to the standard normal (z) distribution:
1. It is bell shaped.
2. It is symmetric about the mean.
3. The mean, median and mode are equal to 0 and are
located at the center of the distribution.
4. The curve approaches but never touches the x-axis.
Properties different from the z distribution:
1. The variance is greater than 1.
2. It is a family of curves based on degrees of freedom.
3. As the sample size increases, it approaches the normal
distribution.
Properties of the student’s t-distribution
As 𝑛 → 𝛼, 𝑡 → 𝑧.
Hypothesis tests for : is unknown
➢ The t-test is a statistical test which can be used when
➢the population standard deviation is unknown.
➢the population is normally distributed.
𝑋ത − 𝜇
𝑡= , 𝑑𝑓 = 𝑛 − 1
𝑠Τ 𝑛
−𝑡𝛼ൗ 𝑡𝛼ൗ
2 2
Find the critical values given in each
situation.
1. A two-tailed test with = 0.10 and 𝑛 = 10.
We compute 𝑑𝑓 = 10 – 1 = 9.
This table gives you
the area at the tail.
𝛼 = 0.10, two-tailed
𝑡𝛼
−𝑡𝛼
𝛼 = 0.025
- 2.71
Example 1 using the traditional method
2. Computed value of t:
606.5 − 700
𝑡𝑐𝑜𝑚𝑝𝑢𝑡𝑒𝑑 = = −2.71
109.08Τ 10
To find the critical value of t using Excel when = 0.025,
left-tailed and df = 9, use the function T.INV:
Example 1 using the traditional method
4. Decision:
Reject the null hypothesis since 𝑡𝑐𝑜𝑚𝑝𝑢𝑡𝑒𝑑 < 𝑡𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 .
5. Conclusion:
There is sufficient evidence that the mean household
expenditure for electricity has changed significantly.
Hypothesis test : p-value method
1. State the hypotheses and identify the claim. The
hypotheses can be structured in one of three ways:
0.005 ≤ 𝑃 ≤ .01
3.183
1.945
0.05 ≤ 𝑃 ≤ 0.10
-1.625
0.05 ≤ 𝑃 ≤ 0.10
Given:
𝜇 = 36, 𝑛 = 42, 𝛼 = 0.01
𝑋ത = 42, 𝑠 = 5.3
Example 3
The t-test is appropriate for this situation since the
population standard deviation is unknown. The assumptions
are met since the sample is random and the size is at least
30.
Solution:
1. H0 : 𝜇 = 36
H1 : 𝜇 ≠ 36 (claim)
2. Computed value of t:
42 − 36
𝑡𝑐𝑜𝑚𝑝𝑢𝑡𝑒𝑑 = = 7.337
5.3Τ 42
Example 3 using p-value approach
3. In the table we are using, when the computed value is
𝑡 = 7.337, two-tailed with df = 41, the p-value is less
than 0.01.
Do not forget to
check this because
n < 30!!!
JASP output
If p>0.05, there is
no deviation from
normality.
Therefore, we
can use t-test.
Example 1 using the traditional method
2. Based on the output of JASP,
computed 𝑡 = −2.71 and 𝑝 = 0.012 .