Professional Documents
Culture Documents
Research III: Quarter 3 Week 4
Research III: Quarter 3 Week 4
Research III: Quarter 3 Week 4
9
RESEARCH
III
QUARTER 3
Week 4
TOPIC t Test
1. Utilizes appropriate statistical tools in analyzing data.
LEARNING (SSP-RS9-AID-III-q-t-7)
COMPETENCIES 2. Interprets data/ statistical results. (SSP-RS9-AID-III-u-v-8)
3. Test hypothesis (SSP-RS9-AID-III-v-w-9)
IMPORTANT: Do not write anything on this material. Write your answer on a
separate sheet of paper and don not forget to answer all SAQs.
UNDERSTAND
t Test
There are different types of t tests depending on the type of data and
goal of the analysis. In this lesson, we are going to discuss one-sample t
test, paired t test or also known as t test for dependent samples, and t
test for independent samples. Remember that for you to fully grasp all
of the concepts, carefully follow each step in the examples and
complete each
Let’s Practice. These concepts will only become clear after careful study and
patience.
But before we proceed to the calculation proper, let’s first discuss about how to
find the t critical value(s).
How to find the critical value for t test using the t table?
To obtain the critical value, the researcher must choose an alpha level (level of
significance) and determine the degrees of freedom (Note: d.f. n – 1, where n is the
sample size). Use Table F (at the last portion of this CapSLET) to find the critical
value(s) for t test.
A. For one-tailed test (either left-tailed or right-tailed):
Find the appropriate significance level (α) by looking at the top row of
Table F
and find the appropriate column. Find the degrees of freedom by looking
down the left-hand column of the table.
Direction: Find the critical value (or values) for the t test for each.
Remember that degrees of freedom can be computed using this formula – d.f. = n –
1. Use table F (t Distribution table).
1. n = 10, α = 0.05, right-tailed 5. n = 17, α = 0.02, two-tailed
2. n = 6, α = 0.01, left-tailed 6. n = 23, α = 0.005, left-tailed
3. n = 15, α = 0.05, two-tailed 7. n = 9, α = 0.025, right-tailed
4. n = 28, α = 0.01, two-tailed 8. n = 18, α = 0.10, two-tailed
You are now done with determining the critical t value. Whenever
you need to find the critical t value, go back to this lesson. All t test
uses the same procedure for finding the critical value. At this point let’s
proceed to using the critical value for calculations involving t Test for a
mean or also known as one-sample t test.
H1: 𝝁 ≠ k (Two-tailed test); H1: 𝝁 < k (Left-tailed test) ; H1: 𝝁 > k (Right-tailed test)
Assumptions for the one-sample t test (or t test for a mean) when σ ios
unknown:
1. The sample is a random sample.
If you 2. Either
notice, thenformula
≥ 30 orfor
thet population is normally
test is similar distributed
to the formula for theif zn < 30.
test. But since the population standard deviation σ is unknown, the
sample standard deviation s is used instead.
Note: The critical values for the t test are given in Table F.
Prepared by: RIZZA EARL VEVERLY T. ANGELES, SST-III
Don Pablo Lorenzo Memorial High School - JHS
5
SOLUTION:
Sample size Sample standard deviation
Critical values
𝑿̅ − 𝝁 𝟏𝟕.𝟕−𝟏𝟔.𝟑
𝒕= 𝒕=
𝟏.𝟒
𝒕=
𝒔/√𝒏 𝟏.𝟖/√𝟏𝟎 𝟏.𝟖/𝟑.𝟏𝟔𝟐𝟐𝟕𝟕𝟔𝟔
𝟏.𝟒
𝒕= 𝒕 = 𝟐. 𝟒𝟓𝟗𝟓𝟒𝟗𝟐𝟗𝟏 𝒕 = 𝟐. 𝟒𝟔
Test value
𝟎.𝟓𝟔𝟗𝟐𝟎𝟗𝟗𝟕𝟖𝟖
Step 4: Make the decision.
Reject the null hypothesis
since 2.46 > 2.262. See Figure
4.
This test is summarized in the figure below.
There is enough evidence to reject the claim that the average number of
infections is 16.3. This means that the number of infections in that particular
hospital is not equal to 16.3.
Source: Bluman, Allan G. “Testing the Difference Between Two Means: Using z Test”. In Elementary Statistics:
A Step by Step Approach, A Brief Version, 6th ed., 468–77. New York, NY: McGraw-Hill, 2013
Raw data
SOLUTION:
Given: 𝝁 = $60 n=8 𝑿̅ = 𝒔= α = 0.10
Step 1: State the hypotheses and identify the claim. It is a one-tailed test since the H1
∑𝑿 𝟔𝟎+𝟓𝟔+𝟔𝟎+𝟓𝟓+𝟕𝟎+𝟓𝟓+𝟔𝟎+𝟓𝟓 𝟒𝟕𝟏
*solve for 𝑿̅ : 𝑿̅ = = = = 𝟓𝟖. 𝟗
𝒏 𝟖 𝟖
– 1.415 – 0.61
7
There is not enough evidence to support the educator’s claim that the average
salary of substitute teachers in Allegheny County is less than $60 per day. This
means that the average salary of substitute teachers is equal to or more than $60 per
day.
Source: Bluman, Allan G. “Testing the Difference Between Two Means: Using z Test”. In Elementary Statistics:
A Step by Step Approach, A Brief Version, 6th ed., 468–77. New York, NY: McGraw-Hill, 2013
Let’s try the Let’s Practice section to practice what you have learned
from the lesson. You can do it!
3. Television Viewing by Team. Teens are reported to watch the fewest total
hours of television per week of all demographic groups, the average
television viewing for teens on Sunday from 1:00 to 7:00 pm is 1 hour
13 minutes. A random sample of local teens disclosed the
following times for Sunday afternoon television viewing. At α = 0.01 can it be
concluded that the average is greater than the national viewing time?
(Note: Change all times to minutes)
2:30 1:00 1:30 2:00 2:15
2:30 1:30 1:50 3:20 2:10
Source: World Almanac.
In our last lesson, we have discussed about z test and how it was
used to test the difference between two means when the population
standard deviations were known and the variables were normally or
approximately normally distributed, or when both sample sizes were
greater than or equal to 30. However, in many situations, these
conditions cannot be met – that is, the population standard deviation
are
not known. In these cases, a t test is used to test the difference between means
when
the two samples are independent and when the samples are taken from two
normally or approximately normally distributed populations.
H0: μ1 = μ2
Alternative Hypothesis (H1) – H1 assumes that there is a difference
between population mean 1 (μ1) and population mean 2 (μ2).
Assumptions for the t test for Two Independent Means (or t test for
1. The samples are random samples.
Independent samples) when σ1 and σ2 are unknown:
2. The sample data are independent of one another.
3. When the sample sizes are less than 30, the populations must be
normally or approximately normally distributed.
Let’s try to solve some problems involving t Test for Independent Samples.
SAMPLE PROBLEM 6: Farm Sizes
The average size of a farm in Indiana County, Pennsylvania, is 191 acres. The average
size of a farm in Greene County, Pennsylvania, is 199 acres. Assume the data were
obtained from two samples with standard deviations of 38 and 12 acres, respectively, and
a sample sizes of 8 and 10, respectively. Can it be concluded at α = 0.05 that the average
size of thee farms in the two counties is different? Assume the populations are normally
distributed.
Note: t test for independent samples is appropriate for this sample problem since the
investigator wanted to compare two sample means (Farm sizes for Indiana, County and
Greene, County). Furthermore, the study identified the sample standard deviation (s) which
means that the population standard deviations (σ) is unknown.
SOLUTION:
Given: 𝑿̅ 𝟏 = 191 acres (Indiana County) 𝒏𝟏 = 8 𝒔𝟏 = 38 α = 0.05
𝑿̅ 𝟐 = 199 acres (Greene County) 𝒏𝟐 = 10 𝒔𝟐 = 12
Take note, that population mean need not to be known, hence, (𝝁𝟏 − 𝝁𝟐) = 𝟎.
Step 1: State the hypotheses and identify the claim.
H0: μ1 = μ2 and H1: μ ≠ μ2 (claim)
In words:
H0: There is no significant difference between the average size of farms in Indiana
County and Greene County, Pennsylvania.
H1: There is a significant difference between the average size of farms in Indiana
County and Greene County, Pennsylvania. (Claim)
Step 2: Find the critical value. (Use Table F, t Distribution table)
α = 0.05, Two-tailed test
for the d.f., we have to calculate d.f.1 and d.f.2 :
d.f.1 = n1 – 1 = 8 – 1 = 7 As stated earlier, since the variances are
unequal,
d.f.2 = n2 – 1 = 10 – 1 = 9 the df with the smaller value is used to
find the t
critical value(s). In this case, we will be using 7
t critical values are + 2.365 and – 2.365 or ± 2.365 tcrit = ± 2.365
Step 3: Compute the test value.
( 𝑿̅ 𝟏 −𝑿̅ 𝟐 ) − ( 𝝁 𝟏 −𝝁 𝟐 ) ( 𝑿̅ 𝟏 −𝑿̅ 𝟐 )
𝒕= or we can write it as 𝒕 =
𝟏+ 𝟐 𝟏+ 𝟐
𝒏𝟏 𝒏𝟐 𝒏𝟏 𝒏𝟐
(𝟏𝟗𝟏−𝟏𝟗𝟗) −𝟖
𝒕= 𝒕Since
= (𝝁 − 𝝁𝟐) = 𝟎
𝟏
√𝟑𝟖
𝟐 𝟏𝟐𝟐 𝟏𝟑.𝟗𝟔𝟎𝟔𝟓𝟗𝟎𝟏
𝟖
+ 𝟏𝟎
𝒕 = 𝟏. 𝟎𝟓𝟕𝟏𝟐𝟔𝟎𝟓𝟕 𝒕 = 𝟏. 𝟎𝟔
1.06 + 2.365
Step 5: Summarize the results.
There is not enough evidence to support the claim that the average number
of students attending cyber schools in Allegheny County is greater than the
average number of students attending cyber schools in surrounding counties (or
outside Allegheny County). Based on this result, the average number of students
attending cyber school in Allegeheny County and outside it are statistiscally is
the same (or approximately the same) and the difference was due to chance.
Source: Bluman, Allan G. “Testing the Difference Between Two Means of Independent Samples:
Using t Test”. In Elementary Statistics: A Step by Step Approach, A Brief Version, 6th ed., 480–85. New York,
NY: McGraw- Hill, 2013
SAQ-2: When should you use t test for independent samples as your
statistical test?
Let’s try the Let’s Practice section to practice what you have learned from the
lesson. You can do it!
Direction: Read each problem carefully. Perform each of the steps in hypothesis
testing (t Test for Independent Samples). Use the traditional method of hypothesis
testing, show your solution and box your final answer.
1. Best Seller Books. The mean number of weeks 15 New York Times hard-
cover fiction books spent on the bestseller list is 22 weeks. The standard
deviation is
6.17 weeks. The mean number of weeks 15 New York Times hard-cover
nonfiction books spent on the list is 28 weeks. The standard deviation is 13.2
weeks. At α = 0.10, can we conclude that there is a difference in the mean times for the
number of weeks the books were on the bestseller lists?
2. Noise Levels in Hospitals. The mean noise level of 20 areas designated as
“casualty doors” was 6.31 dBA, and the standard deviation is 4.1 dBA. The
mean noise level for 24 areas designated as operating theaters was 56.3 dBA,
and the standard deviation was 7.5 dBA. At α = 0.05, can it be concluded that
there is a difference in the means?
Prepared by: RIZZA EARL VEVERLY T. ANGELES, SST-III
Don Pablo Lorenzo Memorial High School - JHS
12
Assumptions for the t test for Two Means (or t test for dependent
samples) when the samples are dependent:
1. The samples are random samples.
2. The sample data are dependent.
3. When the sample sizes are less than 30, the populations must be
normally or approximately normally distributed.
Note: t test for dependent samples is appropriate for this sample problem since we will
compare two sample means (bank’s deposit 3 years ago and bank’s deposit today) from
the matched pairs data which makes the data related to one another (dependent samples).
SOLUTION:
Given: 𝒏 = 9 α = 0.05
Step 1: State the hypotheses and identify the claim.
Since we are interested to see if there has been an increase in deposits, the deposits 3
years ago must be less than the deposit today; hence, the deposits must be significantly
less 3 years ago than they are today. Hence, the mean of the differences must be less than
0.
H0: μD = 0 and H1: μD < 0 (claim)
In words:
H0: The differences between the deposits in the bank 3 years ago and the deposits
in the bank today is equal to zero.
H1: The differences between the deposits in the bank 3 years ago and the deposits
in the bank today is less than zero. (Claim)
Step 2: Find the critical value. (Use Table F, t Distribution table)
α = 0.05, Left-tailed test d.f. = n – 1 = 9 – tcrit = – 1.860
1=8
Step 3: Compute the test value.
Complete
a) Find D andthe
ΣD.table by finding the following:
*Solving D: D = X1 – X2 D1 = 11.42 – 16.69 = – 5.27
*Solving ΣD:
ΣD = ( – 5.27) + (–1.03) + ( – 2.55) + (+ 1.79) + ( – 0.64) + ( – 0.78) +
( – 0.78) + ( – 0.60) + (+ 0.13) = – 9.73 (Add them algebraically).
*Solving ΣD2: ΣD2= 27.7729 + 1.0609 + 6.5025 + 3.2041 + 0.4096 + 0.6084 + 0.6084
+ 0.3600 + 0.0169 = 40.5437
𝟗
𝒔𝑫 =s√D.𝒏 ∑ 𝑫𝟐−(∑ 𝑫)𝟐
d) Find = √ (𝟗)(𝟒𝟎.𝟓𝟒𝟑𝟕)−(−𝟗.𝟕𝟑)𝟐 = √𝟐𝟕𝟎.𝟐𝟐𝟎𝟒 = 𝟏. 𝟗𝟑𝟕
𝒏 (𝒏−𝟏) (𝟗)(𝟗−𝟏) 𝟕𝟐
– 1.860
–1.67
Step 5: Summarize the results.
There is not enough evidence to show that the deposits have increased over
the last 3 years. Based on this result, there is no significant increase in deposits in
the particular banks over the last 3 years.
Source: Bluman, Allan G. “Testing the Difference Between Two Means of Dependent Samples: Using
t Test”. In Elementary Statistics: A Step by Step Approach, A Brief Version, 6th ed., 488–97. New York, NY:
McGraw-Hill, 2013
Subject 1 2 3 4 5 6
Before (X1) 210 235 208 190 172 244
After (X2) 190 170 210 188 173 228
SOLUTION:
Given: 𝒏 = 6 α = 0.10
Step 1: State the hypotheses and identify the claim.
If the diet is effective, the before cholesterol levels should be different from the after
levels.
H0: μD = 0 and H1: μD ≠ 0 (claim)
In words:
H0: The differences between the cholesterol level before and cholesterol level after
taking the mineral supplement is equal to zero.
H1: The differences between the cholesterol level before and cholesterol level after
taking the mineral supplement is not equal to zero. (Claim)
Step 2: Find the critical
α = 0.10, value.test
Two-tailed (Use Table F, t Distribution
d.f. = n – 1table)
=6 tcrit = ± 2.015
–1=7
Step 3:You
Compute thedirectly
can also test value.
use your calculator instead of completing the table.
a) Find ΣD.
∑ 𝑫 = (𝟐𝟏𝟎 − 𝟏𝟗𝟎) + (𝟐𝟑𝟓 − 𝟏𝟕𝟎) + (𝟐𝟎𝟖 − 𝟐𝟏𝟎) + (𝟏𝟗𝟎 − 𝟏𝟖𝟖) + (𝟏𝟕𝟐 − 𝟏𝟕𝟑) +
(𝟐𝟒𝟒 − 𝟐𝟐𝟖) = 𝟏𝟎𝟎
b) Find ΣD2.
∑ 𝑫𝟐 = (𝟐𝟏𝟎 − 𝟏𝟗𝟎)𝟐 + (𝟐𝟑𝟓 − 𝟏𝟕𝟎)𝟐 + (𝟐𝟎𝟖 − 𝟐𝟏𝟎)𝟐 + (𝟏𝟗𝟎 − 𝟏𝟖𝟖)𝟐 +
(𝟏𝟕𝟐 − 𝟏𝟕𝟑)𝟐 + (𝟐𝟒𝟒 − 𝟐𝟐𝟖)𝟐 = 𝟒𝟖𝟗𝟎
–2.015 +2.015
–1.67
Step 5: Summarize the results.
There is not enough evidence to support the claim that the mineral
supplement changes a person’s cholesterol level. Based on this result, the mineral
supplement does not change a person’s cholesterol level.
Source: Bluman, Allan G. “Testing the Difference Between Two Means of Dependent Samples: Using
t Test”. In Elementary Statistics: A Step by Step Approach, A Brief Version, 6th ed., 488–97. New York, NY:
McGraw-Hill, 2013
Let’s try the Let’s Practice section to practice what you have learned
from the lesson. You can do it!
week before and after the seminar. At α = 0.10, did attending the seminar increase
the number of hours the students studied per week?
Before 9 12 6 15 3 18 10 13 7
After 9 17 9 20 2 21 15 22 6
3. Sleep Report. Students in a statistics class were asked to report the number of
hours they slept on weeknights and on weekends. At α = 0.05, is there
sufficient evidence that there is a difference in the mean number of hours
Student
slept? 1 2 3 4 5 6 7 8
Hours, Sun. – Thurs. 8 5.5 7.5 8 7 6 6 8
Hours, Fri. – Sat. 4 7 10.5 12 11 9 6 9
Good job! You are now done with this lesson! But before you evaluate
how much you have learned today, let’s go back to a few key points.
REMEMBER
Key Points
t Test is used when n ≥ 30 and that the population variance (or population
standard deviation) is unknown. In case the n < 30, you may still use t test
provided that the data are normally or approximately normally distributed.
There different kinds of t Tests depending on the data to be anlayzed. Three of the
common types are:
One sample t test is used when we want to compare a sample mean with the
𝑿̅ − 𝝁
population mean. Formula: 𝒕 =
𝒔/√𝒏
t test for independent samples is used to determine whether there is a
statistically significant difference between the means in two unrelated groups.
( 𝑿̅ 𝟏 −𝑿̅ 𝟐 ) − ( 𝝁 𝟏 −𝝁 𝟐 )
Formula: 𝒕 =
𝟏+ 𝟐
𝒏𝟏 𝒏𝟐
TRY
Let’s see how much you have learned today!
Read each
Prepared question
by: RIZZA carefully.
EARL VEVERLY Choose
T. ANGELES, the best answer and write the CAPITAL
SST-III
LETTER of the
Don choice
Pablo corresponding
Lorenzo to your
Memorial High School answer on your answer sheet.
- JHS
18
1. Which of the following is the tcrit for two-tailed test when α = 0.05 and n = 10?
A. ± 2.262 B. ± 2.228 C. ± 1.833 D. ± 1.812
results
A survey of 15 large U.S. cities finds that the average commute time one way is
25.4
For minutes.
item A chamber
4, please refer toofthecommerce
situationexecutive feels that the commute in his city
given below.
is less and wants to publicize this. He randomly selects 25 commuters and finds
the average is 22.1 minutes with a standard deviation of 5.3 minutes. At α = 0.10,
is he correct? Source: New York Times Almanac
4. What is the appropriate statistical test for the given situation?
A. z test for a mean C. one sample t test
B. t test for independent samples D. t test for dependent samples
5. When should you use t test for independent samples as your statistical test?
A. When you want to compare two groups of means.
B. When the population standard deviation is unknown.
C. When the samples are not related to not another (independent samples).
D. All of the given choices.
6. Which of the following is the alternative hypothesis for a t test for independent
samples?
A. H1: μD ≠ 0 B. H1: μ ≠ k C. H1: μ1 ≠ μ2 D. H1: μ1 = μ2
7. Which of the following is classified as independent samples?
A. Heights of identical twins.
B. Effectiveness of 2 different brands of aspirin on 2 different groups of people.
C. Test scores of the same students in English and Psychology.
D. Effects of a drug on reaction time, measureed by a before-and-after test.
8. Which of the following assumptions for t test for dependent samples is NOT
TRUE?
A. The samples are random samples.
B. The sample size is equal to or greater than 30.
C.If sample size < 30, the populations must be approximately normally distributed.
D.The samples are independent samples.
ForAitems
study9 on– 10, please
blood refer to
pressure the situation
levels below: The researcher claims that
was conducted.
exercise decreases cholesterol levels in patients. The patients’ blood pressure was
measured before and after the introduction of exercise. The data were analyzed.
The following were the results of the data analysis:
tcrit = – 1.725 t (test value) = – 0.269
9. Given the following results, what would be the decision for this statistical analysis?
A. Reject Ho. C. There is not enough evidence to support claim.
B. Do not reject Ho. D. There is enough evidence to reject the claim.
10. What does the result of the analysis mean?
A. Exercise decreases the blood pressure of patients.
B. Exercise do not change the blood pressure of patients.
C. Exercise do not decrease the blood pressure of patients.
D. Exercise increase the blood pressure of patients.
Figures:
https://stats.stackexchange.com/questions/161721/why-does-the-p-
value-double-when-using-two-tailed-test-compared-to-one-
tailed-on
https://towardsdatascience.com/one-tailed-or-two-tailed-test-that-is-
the-question-1283387f631c