Unit – 5
Z Test & F Test
Example 1:
A teacher claims that the mean score of students in his class is greater than 82
with a standard deviation of 20. If a sample of 81 students was selected with a
mean score of 90 then check if there is enough evidence to support this claim at
a 0.05 significance level.
Solution: As the sample size is 81 and population standard deviation is known,
this is an example of a right-tailed one-sample z test.
H0: μ=82,H1: μ>82
From the z table the critical value at α= 1.645
Z test example
A gym trainer claimed that all the new boys in the gym are above
average weight.
A random sample of thirty boys weight have a mean score of
112.5 kg and the population mean weight is 100 kg and the
standard deviation is 15.
Is there a sufficient evidence to support the claim of gym trainer.
Z test example
The IQ in a population is normally distributed with a mean of μ =
100 and standard deviation of σ = 15.
A scientist wants to know if a new medication affects IQ levels,
so she recruits 20 patients to use it for one month and records
their IQ levels at the end of the [Link] is 103.05.
Perform a one sample z-test at significance level α = 0.05 .
A coaching institute claims that the students’ mean
scores in their institute are greater than the 82 marks
with a standard deviation of 20. A sample of 81
students is selected, and the mean score is 90 marks. At
95% confidence level, is there enough evidence to
support the claim?
Numerator
denominator
Link For F table :
[Link]
.htm#ONE-05-1-10
F(criti, 0.05 ,(17,14) ) = 2.428
●
Since F(cal) = 0.4578 < F(criti) = 2.428 hence NULL Hypothesis is accepted.
●
●
Let's work through the example with the provided data for Species A and
Species B heights:
Species A heights: {12,14,15,16,18}
●
Species B heights: {10,11,13,15,17}
●
●We want to test whether the variance of heights in Species A is significantly
different from the variance of heights in Species B.
Mean XA = 15 ,Mean YA = 5
std deviation SA = 20 / 5 = 4
std deviation SB = 35.2 / 5 = 7.04
3. F = 7.04 / 5 = 1.408
4. Degree of freedom :
dfA = 5 – 1 = 4
dfB = 5 – 1 = 4
Since F(cal) = 1.408 < F(criti) = 6.39 hence NULL Hypothesis is accepted.
Mean XA = 17.4 ,Mean YA = 15.8
std deviation SA = 67.36 / 5 = 13.47
std deviation SB = 83.32 / 5 = 16.67
3. F = 16.67 / 13.47 = 1.237
4. Degree of freedom :
dfA = 5 – 1 = 4
dfB = 5 – 1 = 4
Since F(cal) = 1.237 < F(criti) = 6.39 hence NULL Hypothesis is accepted.
Errors in Hypothesis Testing
Type I Error: Rejecting the null hypothesis when it is actually true.
Type II Error: Failing to reject the null hypothesis when it is actually false.
Example: Consider a medical diagnostic test for a rare disease.
Type I Error: The test indicates that a person has the disease when they actually
do not.
Type II Error: The test indicates that a person does not have the disease when
they actually do.
Hypothesis 1 tail and 2 tail :
[Link]