Statistics Lecture 7
Statistics Lecture 7
• is a conjecture or statement which aims to • Alternative hypothesis denoted by Ha. This is the
explain certain phenomena in the real world. hypothesis that challenges the null hypothesis.
• products of man’s curiosity.
INFERENTIAL STATISTICS Example:
T E STI NG T H E S I GNI FI CANCE OF T H E
“Method A is more effective than method B,”
DI F F ERENCE B E T WEEN T W O M EANS, T W O or
S T A N DA R D D E V I A T IO N S, T W O P R O P O RT I ON S ,
O R T W O P E R C E NT A G ES “Method A is less effective than method B,”
1
10/9/2017
• To test the null hypothesis of no significance in • Null Hypothesis, Ho: = 6. Find the tabular value using tables of
the difference between two or more variables, • Alternative hypothesis Ha: ≠ . different tests.
one must set the level of significance first. 7. Compare the computed value, CV, to the
• A two-tailed or two-directional test will be used
• Type I error is denoted by the symbol . It is the if there are two possibilities either the left side is tabular value, TV.
probability of accepting the alternative greater than the right, or the left side is less than
hypothesis, Ha, when, in fact, the null the right. • Decision Rule: If CV is less than the TV,
hypothesis, Ho, is true.
• If Ha : < , then a one-tailed or one-directional accept the null hypothesis. If CV is greater
• Type II error is the probability of accepting the test will be used. than the TV, reject the null hypothesis. Make
null hypothesis when, in fact, it is false and is a conclusion using the result of the
denoted by the symbol β. comparison.
2
10/9/2017
• If the population mean (µ) and the population • A company, which makes battery-operated toy 4. Computation:
variance () are known, and µ will be compared cars, claims that its products have a mean life =3 =5
to a sample mean , then, span of 5 years with a standard deviation of 2 = 40 =2
years. Test the null hypothesis that µ = 5 years ( − ) (3 − 5)
against the alternative hypothesis that µ ≠ 5 = = 40 = −6.32
− 2
= years if a random sample of 40 toy cars was 5. Critical regions: z < -1.96 and z > 1.96 (Table 1)
tested and found to have a mean life of only 3 6. Decision: Reject the Ho and accept the proposition
years. Use a 0.05 level of significance. that the mean life span of the toys is not equal to
5 years since , which is 6.32, is greater than
, which is 1.96
7. The difference is significant.
3
10/9/2017
EXAMPLE 2 EXAMPLE
• A manufacturer of bicycle tires has developed a • The average length of time for people to vote
new design which he claims has an average life using the old procedure during a presidential
span of 5 years with standard deviation of 1.2 election period in precinct A is 55 minutes.
years. A dealer of the product claims that the Using a computerization as a new election
average life span of 150 samples of the tire only method, a random sample of 20 registrants was
3.5 years. Test the difference of the population T-TEST used and found to have a mean length of voting
and sample means at 5% level of significance. time of 30 minutes with a standard deviation of
1.5 minutes. Test the significance of the
difference between the population mean and the
sample mean.
4
10/9/2017
EXAMPLE
5
10/9/2017
6
10/9/2017
EXAMPLE
ANOVA
1. Ho: There is no significant difference between the 5. The tabular value of z is 2.58 (two-tailed) (Use • When variances of two or more independent
proportion of the male votes and the proportion Table 1). samples differ, the appropriate test statistic to
of female votes. ( = ) 6. Since = 2.22, is less than = 2.58, determine the significance of such difference
Ha: There is no significant difference between the accept Ho. is the analysis of variance (ANOVA), which
proportion of the male votes and the proportion of 7. Therefore, there is no significant difference
female votes. ( ≠ ) makes use of the F ratio or variance ratio. The
between the proportions of male and female various groups being compared are assumed
2. Set α = 0.01; two-tailed voters in their dislikes for candidate X.
3. Use z-test as test statistic.
to belong to a population with a normal
distribution, each group randomly selected
and independent from the other groups. The
variables from each group also have standard
deviations that are approximately equal.
7
10/9/2017
1. State the null hypothesis. 4. Find the tabular value of F at the given level of 1. Ho: There is no significant difference in the mean sales of the three
2. Set the level of significance. significance (from Appendix E) candidates for promotion.
3. Accomplish the ANOVA Table. 5. Accept the null hypothesis if the computed value 2. Set α = 5%.
F is less than the tabular value and reject if it is 3. Sum of Squares
Source greater than the tabular value.
Sum of = (∑ +∑ +∑ )−
(∑ ∑ ∑ )
of df Mean Square F 6. Interpret the result.
Square
Variation ( , , , )
= 1,951,220,000 + 1,895,218,544 + 1,858,674,201 −
Between SSB = −1 = ( , )
TSS = 5,705,112,745 − = 5,705,112,745 − 5,569,583,606
=
Within SSW = − = TSS = 135, 529, 139
Total TSS = −1
8
10/9/2017
degrees of freedom
= − 1 = 27 − 1 = 26
= −1= 3−1=2
= − = 27 − 3 = 24
Mean squares
,
= = = 54,983
, ,
= = = 5,642,465.542
,
= = = 0.00974
, , .