Stats Hypo Testing
Stats Hypo Testing
TESTING
WHAT IS HYPOTHESIS?
- A statement of belief used in the
evaluation of population values
- Assumption, scientific or
educated guess, prediction
HYPOTHESIS TESTING
Greater than
> More than
Exceeds
Higher than
Ho:
The performance of students in the morning session is as good
as those in the afternoon session.
Ha:
The performance of students in the morning session is better
than those in the afternoon session.
EXAMPLE: Formulate Ho and Ha using FORM II
z The Dean of the College of Sciences claims that
the average IQ of his students is lower than 75%.
Ho:
Traditional medicine is as effective as modern medicine.
Ha:
Traditional medicine is less effective as modern medicine.
EXAMPLE: Formulate Ho and Ha using FORM III
z The Dean of the College of Sciences claims that
the mean IQ of his students is lower than 75%.
Ho:
The average monthly income of Nurses in NCR is not higher
than ₱25,000.
OR
The average monthly income of Nurses in NCR is less than or
equal to ₱25,000.
Ha:
The average monthly income of Nurses in NCR is
higher than ₱25,000.
EXAMPLE: Formulate Ho and Ha using FORM V
z The researcher claims that the average monthly
salary of employees of company A and B are the
same.
Ho: The average monthly salary of employees of
company A and B are the same.
µA = µ B
Ho:
Face to face learning is as effective as Online Learning in
teaching HS Maths.
Ha:
Face to face learning is as not effective as Online Learning in
teaching HS Maths.
STEP 2: Select the Level of Significance (α)
- It corresponds to the area in the critical region.
- It is also the degree of significance in which we reject or
recognize the 𝐻0 .
- When a test statistic fall or included with this area, the
result is referred to as significant level α.
- Measures the “risk” associated with making an error
STEP 2: Select the Level of Significance (α)
α = 0.05
STEP 3: Determine the Test of Statistics to use
Then compute.
STEP 3: Determine the Test of Statistics to use
z
Parametric Test
Non-parametric Test
z
PARAMETRIC TEST
- Parametric tests are test that require normal distribution.
- The levels of measurement of which are expressed in an interval or
ratio.
- It is more powerful than nonparametric test.
If the test concerns means, some parametric tests are :
z - test
t - test
paired t - test
Analysis of Variance (ANOVA)
z
NON - PARAMETRIC TEST
Non-Parametric Test is being used based on the ff.
- The given are qualitative and usually measured in terms of
ordinal or nominal
- Researchers doubt the validity of the parametric test
Sociology - Are men more satisfied with their jobs than women ? Do they earn more?
Economics - Is the economic growth of developing nations larger than the economic growth of the
first world ?
Marketing - Does customer segment A spend more on groceries than a customer segment B?
z Z - Test
- used for testing hypothesis when the population
standard deviation is known and the sample size is
at least 30.
Note:
In case σ is unknown; the value of sample SD, s, can be
used. The reason is that in z-test the sample size (n) is large
enough to represents the population.
Mr. Ron P. Agaloos
Z - Test
z
𝑥ҧ − µ 𝑥ҧ − µ 𝒏
𝒛= 𝒔 or 𝒛=
𝒔
𝒏
z Z - Test
𝑥ഥ1 − 𝑥ഥ2
𝒛=
σ𝟐𝟏 σ𝟐𝟐
+
𝒏𝟏 𝒏𝟐
z T - Test
- used for testing hypothesis when the sample
standard deviation, s, is known and the sample
size is less than 30.
Note:
T-test is almost similar to Z-test, it is being used based on the
following assumptions:
the probability distribution of the random variable is
appropriately normal.
- n < 30
z T - Test
𝑥ҧ − µ 𝑥ҧ − µ 𝒏
𝒕= 𝒔 or t= 𝒔
𝒏
T - Test
z
Two-Independent Sample Means (Unpaired)
CASE 1: Unequal Variance: σ𝟐𝟏 ≠ σ𝟐𝟐 and unknown;
s1 & s2 given; n1 < 30 & n2 < 30
𝑥1 −𝑥2
t=
𝒔𝟐 𝒔
𝟏+ 𝟐
𝟐
𝒏𝟏 𝒏𝟐
*Degrees of freedom: df = n – 1
where n is the smaller sample size
T - Test
z
Two-Independent Sample Means (Unpaired)
𝑙𝑎𝑟𝑔𝑒𝑟 𝑣𝑎𝑟𝑖𝑎𝑛𝑐𝑒
Note: To test equal or unequal variances use F test: F=
𝑠𝑚𝑎𝑙𝑙𝑒𝑟 𝑣𝑎𝑟𝑖𝑎𝑛𝑐𝑒
FSTAT < FCrit : Equal Variance FSTAT > FCrit : Unequal Variance
STEP 4: Define the Area of Rejection or Critical Region
● Rejection Region
- It is the region at far end of the distribution
- Also known as the Critical Region
- It is the area under the normal curve in which null
hypothesis is rejected based on the set condition (decision
rule) Critical value or Tabulated value (TV) -
- Denoted by α separates the area of rejection and the area
in which null hypothesis is not rejected
under the normal curve.
Mr. Ron P. Agaloos
z
Ha: µ ≠ 85
The average grade of SHS students enrolled in Statistics
class is not equal to 85.
Test the Hypothesis
z
Sample Scenario # 1
The teacher claims that the average grade of Grade 11 students enrolled
in Statistics class is equal to 85 with a standard deviation of 7.8. A random
sample of 50 students are selected and found out that their mean is 81.
The teacher is 95% confident in his claim.
α = 1- 0.95
α = 0.05
Test the Hypothesis
z
Sample Scenario # 1
The teacher claims that the average grade of Grade 11 students enrolled
in Statistics class is equal to 85 with a standard deviation of 7.8. A random
sample of 50 students are selected and found out that their mean is 81.
The teacher is 95% confident in his claim.
Test: z-test
Mean/s: 1-sample mean
Tailed-test: Two-tailed test (since Ha is ≠)
Test the Hypothesis
z
Sample Scenario # 1
The teacher claims that the average grade of SHS students enrolled in
Statistics class is equal to 85 with a standard deviation of 7.8. A random
sample of 50 students were selected and found out that their mean is 81.
The teacher is 95% confident in his claim.
Ha: µ ≠ 85
The average grade of SHS students enrolled in Statistics
class is not equal to 85.
Test the Hypothesis
z
Sample Scenario # 1
The teacher claims that the average grade of Grade 11 students enrolled
in Statistics class is equal to 85 with a standard deviation of 7.8. A random
sample of 50 students are selected and found out that their mean is 81.
The teacher is 95% confident in his claim.
Test: z-test
Mean/s: 1-sample mean
Tailed-test: Two-tailed test (since Ha is ≠)
Test the Hypothesis
z
Step 6: Decision
RULE:
REJECT Ho – if the test statistic falls in the critical region
DO NOT REJECT Ho – if the test statistic falls in the non-rejection region
CV TV
Test the Hypothesis
\
z
Step 7: Interpretation and Conclusion
Based on the computed z-value of -3.63 which is
less than the tabulated value of -1.96, using 5% level of
significance, hence reject Ho. Therefore, the average grade
of Grade 11 students enrolled in Statistics class is not equal
to 85%.
This further implies that the claim is not true.
Test the Hypothesis
z
Sample Scenario # 2
A Barangay Captain from a certain barangay in Valenzuela City claims that the average
monthly income of families with five members from his vicinity is higher than P12,000. But
when the City Statistics Office (CSO) conducted a survey to 100 families with five
members, to his barangay randomly they found out that they only have an average
monthly income of 10,800 with a standard deviation of 1,500. With this information the
CSO assert that the claim is not true. Using 1% level of significance, test the claim of the
Brgy. Captain.
𝜇 = 12,000 𝑛 = 100
𝑥ҧ = 10,800 𝑠 = 1,500
Test: z-test
Mean/s: 1-sample mean
Tailed-test:
Test the Hypothesis
z
Sample Scenario # 2
A Barangay Captain from a certain barangay in Valenzuela City claims that the average
monthly income of families with five members from his vicinity is higher than P12,000. But
when the City Statistics Office (CSO) conducted a survey to 100 families with five
members, to his barangay randomly they found out that they only have an average
monthly income of 10,800 with a standard deviation of 1,500. With this information the
CSO assert that the claim is not true. Using 1% level of significance, test the claim of the
Brgy. Captain.
𝜇 = 12,000 𝑛 = 100
𝑥ҧ = 10,800 𝑠 = 1,500
Test: z-test
Mean/s: 1-sample mean
Tailed-test: one-tailed test (since Ha is >)
Test the Hypothesis
z
Critical
value
Rejection
Region
Non-Rejection Region
Test the Hypothesis
z
Critical
value
Rejection
Region
Non-Rejection Region
Test the Hypothesis
\
z
Step 6: Decision
RULE:
REJECT Ho – if the test statistic falls in the critical region
DO NOT REJECT Ho – if the test statistic falls in the non-rejection region
Computed Value: - 8
Tabulated Value: +2.326
Test the Hypothesis
z
Critical
value
Rejection
Region
Non-Rejection Region
Test the Hypothesis
z
Two-Independent
Sample Means
(for z and t tests)
Test the Hypothesis
z
Example # 1
A Physics Professor claims that there is no significant difference between
the mean scores obtained by students in the afternoon and morning
sessions in an examination in Physics 1. Date are shown below. If the
professor is 95% confident with his claim, perform the hypothesis testing.
Morning Afternoon
Mean 85 83
SD 15 10
n 40 40
Test the Hypothesis
z
A Physics Professor claims that there is no significant difference between the mean
scores obtained by students in the afternoon and morning sessions in an examination in
Physics 1. Date are shown below. If the professor is 95% confident with his claim,
perform the hypothesis testing.
Test the Hypothesis
z
A Physics Professor claims that there is no significant difference between the mean
scores obtained by students in the afternoon and morning sessions in an examination in
Physics 1. Date are shown below. If the professor is 95% confident with his claim,
perform the hypothesis testing.
Step 2:
α = 0.05
Step 2:
α = 0.05
Mean 85 83
SD 15 10
n 40 40
Test the Hypothesis
z
TV CV TV
Test the Hypothesis
z
Step 2: α = 0.01
Step 2: α = 0.01
TV CV TV
Test the Hypothesis
z
ASSIGNMENT # 2
Test the Hypothesis
z
Sample Scenario # 4
The average IQ of the adult population is 100. A researcher believes the average IQ of
adults is lower than 100. A random sample of 5 adults are tested with a sample mean of
89, and sample standard deviation is 15.81. Is there enough evidence to suggest the
average IQ is lower? The researcher is 99% confident in his claim.