4. Hypothesis
β’An assumption that we make about the population
parameter
β’A statistical hypothesis is a statement about population
usually concerned with the value of one or more
parameters of the population.
i. logically conjectured relationship
ii. Relationship between two or more variable
iii. expressed in the form of testable statement(s)
iv. Formal statement(s) / conjectured statement
v. Variables (independent and dependent)
5. ο’ The average monthly income of the people of this city is
Rs. 17,000. i.e. π = Rs. 17,000
ο’ The proportion of people with cell phones in this rural
municipality is 0.62
i.e. P = 0.62
ο’ More than 20% of the adults watch childrenβs program
in the television.
ο’ Is the average waiting time for the customers of Smart
Supermarket at the checkouts greater than 15
minutes?
ο’ Is there any difference between the percentage of
internet users between Kathmandu and Pokhara ?
7. Null Hypothesis: A statistical hypothesis or assumption made about the
population parameter to testing its validity for the possible acceptance is
called null hypothesis. It is also called hypothesis of no difference. It is
denoted by H0.
β’ Always contains β=β , ββ€β or βο³β sign
Example : The mean age of MBM students of SMC is equal to 23 years
(H0 βΆ π = 23 years)
Alternative Hypothesis: Any hypothesis which is complementary to the
null hypothesis is called an alternative hypothesis and is denoted by H1.
ο Always contains ββ β , β>β or β<β sign
H1 βΆ π β 23 years (TwoTailed)
H1 βΆ π > 23 years (RightTailed)
H1 βΆ π < 23 years(LeftTailed)
8. To determine whether the test is one-tailed or two tailed depends
upon the alternative hypothesis. If the alternative hypothesis is two
tailed we apply two-tailed test and if the alternative hypothesis is
one-tailed, we apply one-tailed test.
Two Tailed Test : A test of statistical hypothesis in which the alternati
ve hypothesis looks for the values are significantly different or not
but the direction of the difference(more or less) is not specified.
Key words like:
ο differs from, is not equal to, differs significantly, same,
whether any difference, unbiased, whether equal to, not
equals to
9. One Tailed Test: A test of statistical hypothesis in which the alternative
hypothesis H1 looks for a definite direction of the difference (more or less)
with parameter is specified.
Thus for the comparative study of the population parameter identifying the
words such as:
less than, more than, greater than, no more than, taller than,
smaller than, better than , at least, at most , only, improved,
superior, inferior, below, above, high, low, increase, decrease,
better than, up to, majority, minority etc.
After identifying one-tailed test, the left tailed test and right
tailed tests can be identified in following way:
i. If sample statistic < Population parameter- left tailed test
ii. If sample statistic > Population parameter- Right tailed test
iii. If first sample statistic < Second sample statistic- Left tailed test
iv. If first sample statistic > Second sample statistic- Right tailed test
10. Level of Significance: The maximum size of type I error that we are
prepared to take risk is called the level of significance and is denoted by πΌ.
Symbolically it is defined as
πΌ = P(type I error)
= P (Rejecting a true null hypothesis)
If we allow Ξ± = 5%, we are likely to reject 5 cases in making decision 100
times under the same conditions.
Critical Region and Rejection Region:
The region where the null hypothesis is rejected is called critical region or
rejection region and the region for accepting true null hypothesis is called
acceptance region. If the statistic belongs to the critical region, H0 is rejected
and if the statistic belongs to the acceptance region H0 is accepted.
The critical region is established on the basis of the choice of level of
significance. If πΌ = 0.05(5%) then the total rejection area under the
normality curve will be 0.05(5%) and the acceptance area under the normal
probability curve will be 0.95(95%).
11. Critical / Significant Value:
The value which separates the acceptance region and the
rejection region is called critical value or significant value. It
depends upon
(i) The level of significance used and
(ii) The alternative hypothesis whether it is two tailed or one
tailed (left or right ) test.
Critical values
Rejection Region
/2
0
a
/2
a
Acceptance Region
Two Tailed Test
0.025 0.025
0.95
12. For large sample, the critical value of βZβ obtained from the statistical table
similarly for small sample the critical value of βtβ obtained from the
statistical table.
When the computed test statistic lies in the acceptance region, it is
reasonable to accept the null hypothesis as it is believed to be probable true.
Acceptance
Region
0
a
Critical values
Rejection Region
0
a
Acceptance
Region
RightTailedTest LeftTailedTest
0.95
0.95
0.05
14. Contdβ¦
β’ Example
β’ H0: Food habit does not affect blood pressure.
β’ H1: Food habits affects blood pressure.
β’ Food habit: independent variable
β’ Blood pressure: dependent variable.
β’ H0: Age does not affect blood pressure.
β’ H1: As age increases blood pressure increases.
β’ age: independent variable
β’ Blood pressure: dependent variable.
β’ H0: Regular exercise does not affect blood pressure.
β’ H1: Regular exercise may decrease blood pressure.
β’ regular exercise: independent variable
β’ blood pressure: dependent variable.
15. Parametric and Non-parametric test
ο ParametricTest:
i. Model specifies certain conditions about the parameters of the
populations from which the samples are drawn
ii. Implies that there is normal distribution
iii. The data used in this test are continuous
ο Non- ParametricTest:
i. does not depend on the particular form of the basic frequency
function from which the samples are drawn
ii. do not implies that there is a normal distribution
iii. The data used in this test are frequency or ranks
iv. measuremental data: data obtained by actual measurement.
16. Parametric test Non-parametric test
1. Parametric tests specify certain
conditions about the parameters of
the population from which the
sample has been drawn
1. Non-parametric test do not specify
any condition about the population
parameter of the population from which
the sample has been drawn.
2. It is used in testing of hypothesis
and estimation of parameters.
2. It is used in testing of hypothesis and
but not estimation of parameters.
3. Parametric test are mostly applied
only to the data which are measured
in interval and ratio scale.
3. Non-parametric test are applied only
to the data which are measured in
nominal and ordinal data.
4. Parametric test are most powerful
test.
4. Non-parametric test are less powerful
test than parametric test.
5. It requires complicated sampling
technique.
5. It does not require complicated
sampling technique.
17. Criteria of Good Hypothesis Statement
β’ Should be stated in declarative form
β’ Should articulate (describe) a relationship between two or
more variables
β’ Should be testable empirically
β’ Useless if it cannot be tested empirically
β’ Should be limited in scope
β’ Should be clearly and precisely stated
β’ Should no ambiguity (vegness) in the variables
β’ Should state the conditions to apply.
β’ Context and study units must be clear
β’ Should reflect a guess at a solution
β’ Should outcome to a problem based upon some knowledge,
previous research, or identified needs
β’ Should be consistent with most known facts
18. Actual
situation
Decision from sample
Accept Hβ Reject Hβ
Hβ is true Correct decision
No error
Probability = 1 β Ξ±
Wrong decision
Type I error
Probability = Ξ±
(Not so harmful and can
be corrected)
Hβ is false
(Hβ true)
Wrong decision
Type II error
Probability = Ξ²
(Degrees of impact of
Type II error is very
harmful and canβt be
corrected)
Correct decision
No error
Probability = 1 β Ξ²
1 β Ξ² = power of test
Types of Errors inTesting of Hypothesis
19. β’ If a medicine is administered to a few patients of a particular
disease to cure them and the medicine is curing the disease, but it
is claimed that it has no effect and hence it is discontinued. This
Type I error.
β’ If a medicine is administered to a few patients of a particular
disease to cure them and the medicine is not curing the disease,
but it is claimed that it have good effect and the treatment is
continued. This type II error.
Type I error : Rejecting the good lot of products
(Producerβs risk)
Type II error: Accepting the bad lot of products
(Consumerβs risk)
20.
21.
22. Steps in Hypothesis Testing
a. Critical Value approach:
Depends upon the size of
sample and nature of data
Use πΌ = 0.05 unless we are
given
Formulate the Null and Alternative
Hypothesis
Select the Right test statistic and
compute test statistic
Decide the level of significance
Determine Critical value
Decision: compare computed test
statistic with critical value
If Calculated Value β€ Tabulated Value
Yes
No
It is not Significant Accept HO
It is significant Reject HO
23. b. p-value approach:
The p-value is the probability of getting the observed value of the
computed test statistic or a value with even greater evidence against
null hypothesis H0 if the null hypothesis is true.
In other words, the observed value of level of significance for the
testing of hypothesis assuming null hypothesis is true is called p-
value.
The p- value is the maximum rejection area under the normal
probability curve under the null hypothesis H0, when the some test
(or procedure) is applied.
β’ If p-value β₯ πΌ (level of significance) then accept null hypothesis
(H0).
β’ If p-value < πΌ (level of significance) then accept alternative
hypothesis (H1).
Mostly p-value can be obtained from different statistical software
based on the general output for the given problem.
24. Finding p-value:
(i) For Left Tailed Test:
p = P( Z < Zcal)
= 0.5 β P(0 < Z < Z cal)
(ii) For Right Tailed Test
p = P( Z >Zcal)
= 0.5 β P(0 < Z < Z cal)
(iii) For Two Tailed Test:
p = P( Z < Zcal) + P( Z >Zcal)
= 2 P(Z >Zcal)
= 2[0.5 β P(0 < Z < Z cal)] Z = 0
Zcal
Zcal
Zcal
Zcal
Z = 0
Z = 0
25. Two tailed test and Confidence interval
β’ If the reference value specified in H0 lies outside the
interval (that is, is less than the lower bound or
greater than the upper bound), you can reject H0.
β’ If the reference value specified in H0 lies within the
interval (that is, is not less than the lower bound or
greater than the upper bound), you fail to reject H0.
If hypothesis value π»0: π = π0lies within calculated
confidence interval estimate
[ ΰ΄€
π β π Ξ€
πΌ
2
π. πΈ. ( ΰ΄€
π) < π0 < ΰ΄€
π β π Ξ€
πΌ
2
π. πΈ. ( ΰ΄€
π)]
then null hypothesis is accepted otherwise rejected.
27. 27
β’ Z-test is important parametric test and based on normal
probability distribution. When the samples are selected from
population of known parameter with sample size more than
30 , Z test is used. We consider that if sample size is more
than 30 then sample selected non-normal population is also
approximately normally distributed.
β’ Z- test is defined as: π =
π‘ β πΈ(π‘)
π.πΈ.(π‘)
β’ πππ π‘ π π‘ππ‘ππ π‘ππ =
Statistic β Parameter
Standard error
Application of Z test:
(i) Test of significance of single mean
(ii) Test of significance of difference between two means
(iii) Test of significance of single proportion
(iv) Test of significance of difference between two proportions
Introduction
28. Critical value
Critical
values
Level of significance (Ξ±)
ZΞ± 1% 2% 5% 10%
Two tailed
test
ΗππΌΗ = 2.58 ΗππΌΗ = 2.33 ΗππΌΗ = 1.96 ΗππΌΗ = 1.645
Right tailed
test
ΗππΌΗ = 2.33 ΗππΌΗ = 2.05 ΗππΌΗ = 1.645 ΗππΌΗ = 1.28
Left tailed
test
ΗππΌΗ
= β2.33
ΗππΌΗ
= β2.05
ΗππΌΗ =
β1.645
ΗππΌΗ
= β1.28
28
29. Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0: π = ππ i. e. there is no significant difference between the sample mean (π) and the
population mean
H1: π β ππ (two tailed test), or H1 : π > ππ (right tailed test),or H1 : π < ππ (left tailed
test)
If sample mean( ΰ΄€
π) > Population mean (π ) : Right Tailed Test
If sample mean( ΰ΄€
π) < Population mean (π ) : Left Tailed Test
Step 2: Select test statistic: π =
ΰ΄₯
πΏ β π
ΰ΅
π
π
If π is unknown for large samples ΰ·
π = s
Step 3: Fix the level of significance (πΌ)
Step 4: Write the critical value (Z ) for πΌ % level of significance from the Z table.
Step 5: Make decision:
Critical value approach:
If ΗZΗ(calculated) β€ ZΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is accepted.
If ΗZΗ(calculated) > ZΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is accepted.
P-value approach:
If p-value β₯ πΌ (level of significance) then accept null hypothesis (H0).
If p-value < πΌ (level of significance) then accept alternative hypothesis (H1). 29
Case I: Test of Significance of Single Mean
30. Example : A samples of 50 pieces of certain type of string was tested. The mean
breaking strength turned out to be 14.5 kgs. Test whether the sample is from a
batch of strings having a mean breaking strength of 15.6 kgs and standard
deviation of 2.2 kgs.
Here, Number of sample(n) = 50 Sample mean ( ΰ΄€
π) = 14.5 kgs.
Population mean (ο) = 15.6 kg Population standard deviation (π) = 2.2 kgs
Formulation of Hypothesis
β’ Null Hypothesis: Ho : ο = 15.6 kgs i.e. the Population mean breaking strength of
the strings is 15.6 kg.
β’ Alternative Hypothesis: H1 : ο β 15.6 kgs i.e. the mean breaking strength is not
equal to 15.6 kg. (two tailed test)
Test Statistics: Z =
ΰ΄₯
πΏ β π
ΰ΅
π
π
=
ππ.πβ ππ.π
ΰ΅
π.π
ππ
= = - 3.55
| zcal | = | - 3.55 | = 3.55
Level of significance (a) = 5%
Critical value: Tabulated value of z at 5% level of significance for two tailed test Ztab
= 1.96
Decision: Since Zcal οΎ Ztab , Ho is rejected i.e. H1 is accepted.
Conclusion: Hence we conclude that the sample has not been drawn from the
batch with mean breaking strength of 15.6 kgs and standard deviation 2.2 kgs.
30
31. Example : In the past a blending process has produced an average of 5 Kg.
of waste material for every batch with standard deviation 5 Kg. From a
sample of 100 batches an average of 7 Kg. of waste per batch is obtained. At
5% level of significance is it reasonable to believe that the average has
increased?
Solution: with usual notations, n = 100, ΰ΄€
π= 7 kg, ο = 5 kg, ο³ = 5 kg
Formulation of Hypothesis
β’ H0: ο = 5 kg, i.e. the average of waste material has not been increased
β’ H1: ο οΎ 5 kg, i.e. the average has increased (Right tailed test)
Test Statistics: Z =
ΰ΄₯
πΏ β π
ΰ΅
π
π
=
πβ π
ΰ΅
π
πππ
= 4 zcal = 4
Level of significance (a) = 5%
Critical value: Tabulated value of z at 5% level of significance for right tailed
test Ztab = 1.645
Decision: Since Zcal οΎ Ztab , Ho is rejected i.e. H1 is accepted. Hence we conclude
that the average waste material has been increased.
31
32. Example : An insurance agent has claimed that the average age of the policy holders
who have insured through him is less than the average age for all the agents, which
is 30.55 years. A random sample of 100 policy holders who had insured through him
gave the following age distribution.
Calculate the arithmetic mean and standard deviation of this distribution and use
these values to test his claim at 5% level of significance.
Solution:
32
Class limits 16-20 21-25 26-30 31-35 36-40
Frequency 12 22 20 30 16
Age f x π β²
=
πβππ
π
fπ β²
fπ β²π
16-20 12 18 -2 -24 48
21-25 22 23 -1 -22 22
26-30 20 28 0 0 0
31-35 30 33 1 30 30
36-40 16 38 2 32 64
Ξ£fdβ= 16 Ξ£fdβ2=164
33. xΜ = A +
Ξ£fdβ
n
Γ h = 28+
16
100
Γ5 = 28 + 0.08 = 28.8 years
π =
Ο πdβ2
π
β (
Ξ£fdβ
n
)2 Γ h =
164
100
β (
16
100
)2 Γ 5 = 6.352 years
Setting of Hypothesis
H0: π = 30.5 years i.e. the average age of the policy holders for all agents is 30.5
years.
H1: π < 30.5 years (left tailed test) i.e. the average age of the policy holders
who have insured through him is less than the average age for all the agents.
Test Statistics: Under H0, the test statistic is Z =
ΰ΄₯
πΏ β π
ΰ΅
π
π
=
ΰ΄₯
πΏ β π
ΰ΅
π
π
=
ππ.π β ππ.π
ΰ΅
π.πππ
πππ
= -2.68
| zcal | = | - 2.68 | = 2.68
Level of significance (a) = 5%
Critical value: Tabulated value of z at 5% level of significance for left tailed test
Ztab = -1.645 i.e. | ztab | = 1.645
Decision: Since | zcal |> | ztab | , So Ho is rejected i.e. H1 is accepted. Hence we
conclude that the average age of the policy holders who have insured through
him is less than the average age of the policy holders of all the agents.
33
34. Case II: Test of Significance of Difference between Two Means
34
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0:πβ = πβ i. e. Two samples have been drawn from the sample parent population
H1:πβ β πβ(two tailed test), H1:ΞΌβ > ΞΌβ(right tailed test), H1:ΞΌβ < ΞΌβ(left tailed test)
If First sample mean(ΰ΄₯
X1) > Second sample mean(ΰ΄₯
X2) : Right Tailed Test
If First sample mean(ΰ΄₯
X1) < Second sample mean(ΰ΄₯
X2) : Left Tailed Test
Step 2: Select test statistic: Z =
ΰ΄₯
X1β ΰ΄₯
X2
Ο1
2
n1
+
Ο2
2
n2
ππ Z =
(ΰ΄₯
X1βΰ΄₯
X2)
s1
2
n1
+
s2
2
n2
ππZ =
(ΰ΄₯
X1β ΰ΄₯
X2)
π2 1
n1
+
1
n2
Step 3: Fix the level of significance (πΆ)
Step 4: Write the critical value (Z ) for πΌ % level of significance from the Z table.
Step 5: Make decision:
Critical value approach:
If ΗZΗ(calculated) β€ ZΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is
accepted.
If ΗZΗ(calculated) > ZΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is
accepted.
Step 6: Write Conclusion:
35. Example: An examination was given to 50 students at college A and 60
students at college B. At college A, the average marks of the students was
found to be 75 with a standard deviation of 9. At college B, the average
marks of the students was 79 with a standard deviation of 7. Is there a
significant difference between the average marks of the students at
these two colleges?
Solution: with usual notations,
College A College B
n1 = 50 n2 = 60
ΰ΄₯
X1= 75 ΰ΄₯
X2 =79
s1 = 9 s2 = 7
Setting of Hypothesis:
H0 : πβ = πβ i. e. there is no significant difference between the average
marks of the students at these two colleges
H1: πβ β πβ (Two tailed test) There is significant difference between the
average marks of the students at these two colleges
36. Test Statistic: Under H0 the test statistic is
Z =
(ΰ΄₯
X1βΰ΄₯
X2)
s1
2
n1
+
s2
2
n2
=
(75β79)
92
50
+
72
60
= -2.56
ΗZΗcal= 2.56
Level of significance(πΆ) = 5%
Critical value: Ztab= 1.96
Decision: Since Zcal > Ztab so H0 is rejected and H1 is accepted.
Conclusion: Hence we conclude that There is significant
difference between the average marks of the students at these
two colleges
36
37. Example: In a random sample of 500 the mean is found to be 20. In another
independent sample of 400 the mean is 15. Could the samples have been drawn from
the same population with standard deviation 4 ?
Solution: With usual notations,
Common Population S. D. (π) = 4
H0:πβ = πβ (Both samples have been
Drawn from the same population)
H1:πβ β πβ (Two tailed test)
Test statistic: Z =
ΰ΄₯
X1β ΰ΄₯
X2
π2 1
n1
+
1
n2
contdβ¦
Example : If 60 MA students are found to have a mean height of 63.60 inches and 50
MBS students have mean height of 69.51 inches, would you conclude that the
MBS students are taller than MA students? Assume the standard deviation of height
of post-graduate students to be 2.48 inches.
For MA: n1 = 60 , ΰ΄₯
X1= 63.60 For MBS n2 = 50 , ΰ΄₯
X2 = 69.51 common population s.d.
(π) = 2.48
H0:πβ = πβ (There is no difference between height of MA and MBS students)
H1:πβ < πβ (MBS students are taller than MA students) Left Tailed Test
Test statistic: Z =
ΰ΄₯
X1β ΰ΄₯
X2
π2 1
n1
+
1
n2
contdβ¦
37
First Sample Second Sample
n1 = 500 n2 = 400
ΰ΄₯
X1= 20 ΰ΄₯
X2 = 15
38. Example: Two random samples of Nepalese people taken from rural and urban region
gave the following data of income.
Test whether the average
monthly income of urban
region people is significantly
more than rural region
people.
Solution:
With usual notations,
Test Statistic: Under H0 the test statistic is
π =
(ΰ΄₯
πΏπβΰ΄₯
πΏπ)
ππ
π
ππ
+
ππ
π
ππ
contdβ¦..
38
Sample size Average
monthly
income
Standard
deviation
From Urban Region 100 1250 30
From Rural Region 150 800 50
Urban Region Rural Region
n1 = 100 n2 = 150
ΰ΄₯
X1= 1250 ΰ΄₯
X2 = 800
s1 = 30 s2 = 50
H0:πβ = πβ (There is no significant difference
between the average income of the people of
urban and rural region)
H1:πβ > πβ (The average monthly income of urban
region people is more than rural region people)
Right Tailed Test
39. Case III: Test of significance of Single Proportion
39
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0:P = π0i. e. the sample has been drawn from a population with proportion H1:P β
π0(two tailed test), H1:P > π0(right tailed test), H1:π < π0(left tailed test)
If sample proportion(p) > Population Proportion(P) : Right Tailed Test
If Sample Proportion(p) < Population proportion(P) : Left tailed Test
Step 2: Select test statistic:π =
π·πππππππππ
π.πΈ.
=
π β π
ππ
π
[Note: if we have sampling from a
finite population of size N, then π. πΈ. π =
πβπ
πβ1
π(1βπ)
π
=
πβπ
πβ1
ππ
π
]
Step 3: Fix the level of significance (πΌ)
Step 4: Write the critical value (Z ) for πΌ % level of significance from the Z table.
Step 5: Make decision:
Critical value approach:
If ΗZΗ(calculated) β€ ZΞ±(table or critical ) we say it is not significant (insignificant).So Hβ is
accepted.
If ΗZΗ(calculated) > ZΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is
accepted.
Step 6: Write Conclusion:
40. Example 1 : An airline must allocate available seating space between first
class passengers and economy class passengers. The null hypothesis is that
20% of the passengers fly first class but management recognizes the
possibility that the percentage could be more or less. A random sample of
400 passengers includes 70 passengers holding first class tickets. Can the
null hypothesis be rejected at the 10% level of significance?
Solution:
With usual notations, P = 0.20 , n = 400 , Q = 1- P = 1 β 0.20 = 0.80
sample proportion(p) =
π₯
π
=
70
400
= 0.175
Setting of Hypothesis:
H0: P = 0.20 (20% of the passengers fly first class)
H1: P β 0.20 ( more or less than 20% passengers fly first class)
Test Statistics: Under H0 ,the test statistic is Z =
π β π
ππ
π
=
0.175β0.20
0.20 Γ0.80
400
= - 1.25
Zcal =1.25
Level of significance (πΆ) = 10%
Critical value: Ztab= 1.645
Decision : Since Zcal < Ztab so H0 is accepted
Conclusion: Hence we conclude that 20% of the passengers fly first class.
40
41. Example 2: A manufacturer claimed that at least 90% of the machine parts that is
supplied by that factory conformed to specifications. An examination of 200 such
parts revealed that 160 parts were not faulty. Determine if the manufactuerβs
claim is legitimate at 1% level of significance.
Solution: With usual notations P = 0.90 , Q = 1- P = 1- 0.90 = 0.10 n = 200 ,
x = 160, p =
π₯
π
=
160
200
= 0.80
Setting of Hypothesis:
H0: P β₯0.90 (At least 90% of the machine parts is conformed to specifications)
H1:P<0.90 [Left tailed Test](Less than 90% of the machine parts is conformed to
specifications)
Test Statistics: Zcal =
π β π
ππ
π
=
0.80β0.90
0.90 Γ0.10
200
= -4.71 ΗZcalΗ = 4.71
Level of Significance(πΆ): 1%
Critical Value: Ztab = -2.33 ΗZtabΗ = 2.33
Decision: Since | zcal |> | ztab | So H0 is rejected and H1 is accepted.
Conclusion:
41
42. Example 3: A cellphone provider has the business objective of wanting to
determine the proportion of subscribers who would upgrade to a new
cellphone with improved features if it were made available at a substantially
reduced cost. Data are collected from a random sample of 500 subscribers.
The results indicate that 135 of the subscribers would upgrade to a new
cellphone at a reduced cost. At the 0.05 level of significance, is there evidence
that more than 20% of the customers would upgrade to a new cellphone at a
reduced cost?
Solution:
With usual notations, n = 500 , x = 135 , p =
π₯
π
=
135
500
= 0.27, P = 0.20 , Q = 0.80
Setting of Hypothesis:
H0: P =0.20 (20% of the customers would upgrade to a new cellphone at a
reduced cost
H1: P>0.20 [Right tailed Test](more than 20% of the customers would upgrade
to a new cellphone at a reduced cost)
Test Statistics: Zcal =
π β π
ππ
π
=
0.27β0.20
0.20 Γ0.80
500
= 3.91
Level of Significance(πΆ): 0.05
Critical value: Ztab = 1.645 Decision: Since Zcal > Ztab so H0 is rejected
42
43. 43
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0:π·π = π·πi. e. the sample has been drawn from a population with proportion P.
H1: π·π β π·π(two tailed test), H1 :π·π > π·π(right tailed test), H1 :π·π < π·π(left tailed test)
If First sample proportion (p1) > Second sample proportion (p2) : Right Tailed
If First sample proportion (p1) < Second sample proportion (p2): Left Tailed
Step 2: Select test statistic: π =
π1 β π2
π1π1
π1
+
π2π2
π2
ππ π =
(π1β π2)
ΰ·
π ΰ·
π
1
π1
+
1
π2
Note: If P1 and P2 are not known, each of them is estimated by ΰ·‘
P =
π₯1+π₯2
π1+π2
=
n1p1+n2p2
n1+ n2
ΰ·‘
Q = 1 - ΰ·‘
P
Step 3: Fix the level of significance (πΆ)
Step 4: Write the critical value (Z ) for πΌ % level of significance from the Z table.
Step 5: Make decision:
If ΗZΗ(calculated) β€ ZΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is accepted.
If ΗZΗ(calculated) > ZΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is accepted.
Step 6: Write Conclusion:
Case IV: Test of Significance for Difference of Two Proportions
44. Example: An online survey asked 1,000 adults βWhat do you buy from your
mobile device?β. Both sample sizes were 500 and that 195 out of 500 males and
305 out of 500 females reported they buy clothing from their mobile device. Is
there evidence of a difference between males and females in the proportion who
said they buy clothing from their mobile device at the 0.01 level of significance?
Solution: With usual notations, For Male: π1= 500 , π1=
195
500
=0.39
For Female: π2= 500 , π2=
305
500
=0.61
Setting of Hypothesis:
H0: π1 = π2 i. e. there is no significant difference between males and females in the
proportion of clothes buying from mobile device.
H1: π1 β π2 (Two tailed test).
Test Statistics: Zcal =
p1β p2
ΰ·‘
Pΰ·‘
Q
1
n1
+
1
n2
ΰ·‘
P =
n1p1+n2p2
n1+n2
=
500Γ0.39+500Γ0.61
500+500
= 0.5
ΰ·‘
Q = 1 β 0.5 = 0.5
Hence Zcal = -6.957
Level of significance(πΆ) = 0.01 (1%)
Critical value: Ztab= 2.58 Decision:
44
45. 45
Example: At a certain date in a large city 400 out of a random sample of 500
men were found to be smokers. After the tax on tobacco had been heavily
increased another random sample of 600 men in the same city included 400
smokers. Was the observed decrease in the proportion of the smokers
significant?
Solution:
With usual notations,
Setting of Hypothesis:
β’ Null Hypothesis (H0): π1 = π2 i. e. there is no significant difference
between the proportion of the smokers before and after the increase in
the tax.
β’ Alternative Hypothesis (H1): π1 > π2 (right tailed test). There is a
significant decrease in the proportion of the smokers after the increase in
the tax.
Before Tax increased After Tax increased
π1= 500 π2= 600
π1=
π₯1
π1
=
400
500
= 0.8 π2=
π₯2
π2
=
400
600
= 0.667
46. Test statistic: Zcal =
p1β p2
ΰ·‘
Pΰ·‘
Q
1
n1
+
1
n2
ΰ·‘
P =
n1p1 + n2p2
n1 + n2
=
500 x 0.8 + 600 x 0.667
500 + 600
=
400 + 400
1100
=
800
1100
=
8
11
& ΰ·‘
Q = 1 β
8
11
=
3
11
Zcal =
p1β p2
ΰ·‘
Pΰ·‘
Q
1
n1
+
1
n2
=
0.8 β 0.667
8
11
π₯
3
11
1
500
+
1
600
=
0.133
0.027
= 4.926
Level of significance (Ξ±) = 0.05,
Critical value: then tabulated value of Z(Ξ± = 0.05) for right tailed Ztab = 1.645
Decision: Since Zcal = 4.926 > Ztab = 1.645 then, H0 is rejected i. e. Calculated
value of Z is greater than tabulated value of Z at 0.05 level of significance.
Then H0 is rejected.
Conclusion: Then there is a significant decrease in the proportion of the
smokers after the increase in the tax.
46
47. Example: A firm found with the help of a sample survey of a city (size of
sample 900) that
π
π
ππ
of them consumes things produced by them. The firm
then advertised the goods in paper and on radio. After one year a sample of
size 1000 reveals that proportion of consumers of the goods produced by
the firm is
π
π
ππ
. Is this rise significant to indicate that the advertisement was
effective?
Solution:
With usual notations
Setting of Hypothesis:
H0: π1 = π2 The advertisement was not effective
H1: π1 < π2 (Left tailed test). The advertisement was effective.
Test Statistics: Zcal =
p1β p2
ΰ·‘
Pΰ·‘
Q
1
n1
+
1
n2
ΰ·‘
P =
π1π1+π2π2
π1+π2
=
900Γ
3
4
+(1000Γ
4
5
)
900+1000
= 0.77
ΰ·‘
Q = 1 - ΰ·‘
P = 1 β 0.77 = 0.23
Hence Zcal = -2.59 |ππ‘ππ| = 2.59
Level of Significance (πΆ) = 5%
Critical Value: Ztab = -1.645, |ππ‘ππ| = 1.645
Decision: H0 is rejected and H1 is accepted. 47
Before Ad After Ad
π1= 900 π2= 1000
π1=
3
4
π2=
4
5
49. Studentβs βtβ: Definition
β’ If x1, x2,β¦.,xn is a random sample of size βnβ from a
normal population with mean ΞΌ and population
variance Ο2, then Studentβs βtβ statistic is defined as:
β’ π =
ΰ΄₯
π β π
ΰ΅
π
π§
=
(ΰ΄₯
π β π)
ΰ΅
ππ
π§
=
π(ΰ΄₯
X β ΞΌ)
S
~π‘(πβ1) β¦ β¦ (π)
β’ Where: ΰ΄€
x =
Ο X
n
, is the sample mean and S2 =
1
πβ1
Ο(π₯ β π₯)2 = unbiased estimate of the population
variance Ο2
.
β’ Note: βtβ defined in the (1) follows Studentβs βtβ-
distribution with (n β 1) degrees of freedom
β’ Degrees of freedom is defined as number of
independent observations.
50. Assumptions
1. The parent population from which the sample is
drawn is normal.
2. Sample size is generally less than or equals to 30.
(which is considered as general traditional
convention)
3. All the observations in the samples are independent.
4. Samples are drawn randomly from normal
populations.
5. Population standard deviation (Ο) is unknown.
6. The sample values are correctly measured and
recorded.
7. The hypothetical value of population mean (π0) of π
is correct values of the population mean.
51. βtβ distribution
t = 0
-1
-3 -2
f(t)
Normal curve
t- distribution for n = 25
+2 +3
+1
Fig. 1
t- distribution for n = 5
52. Applications of t-test
(i) Test of significance of a single mean
(ii) Test of significance of the difference
between two independent means
(iii)Paired t test for difference of two means
(iv)Test of significance of an observed sample
correlation coefficient and regression
coefficients
53. Case I: Test of significance of a single mean
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0: π = π0
H1: π β π0 (Two tailed test), : π > π0 (Right tailed test), : π < π0 (Left tailed test)
If sample mean ( ΰ΄€
π) > Population mean (π) : Right Tailed Test
If sample mean ( ΰ΄€
π) < Population mean (π) : Left Tailed Test
Step 2: Select test statistic:
t =
ΰ΄₯
X β ΞΌ
ΰ΅
S
n
=
n (ΰ΄₯
X β ΞΌ)
S
[πππ π’πππππ ππ( π΄ππ‘π’ππ πππ‘π ππ πππ£ππ)]
t=
ΰ΄₯
X β ΞΌ
ΰ΅
s
nβ1
=
(nβ1) (ΰ΄₯
X β ΞΌ)
s
[πππ ππππ ππ (π πππππ π . π. ππ πππ£ππ)]
Step 3: Fix the level of significance (πΆ)
Step 4: degrees of freedom(d.f.) = (n β 1)
Step 5: Write the critical value (t ) for πΌ % level of significance from the t- table.
Step 6: Make decision: Critical value approach:
If ΗtΗ(calculated) β€ tΞ±(table or critical ) : it is not significant (insignificant). So Hβ is accepted.
If ΗtΗ(calculated) > tΞ±(table or critical) : it is significant. So Hβ is rejected, then Hβ is accepted.
Step 7: Write Conclusion:
54. Computation of S2 for Numerical Problems:
β’ π2 =
1
(πβ1)
Ο(π₯ β π₯ )2 where Ο(π₯ β π₯ )2= sum of the squares of
deviation taken from mean
β’ S2 =
1
(nβ 1)
Ο π₯2 β
Ο π₯ 2
π
β’ π2
=
1
(πβ1)
Ο π2
β
Ο π 2
π
where π₯ = π΄ +
Ο π
π
How can we see critical value:
d.f.
Level of significance for one tailed test
0.10 0.05 0.025 0.01 0.005 0.0005
Level of significance for two tailed test
0.20 0.10 0.05 0.02 0.01 0.001
1 3.078 6.314 12.706 31.821 63.657 636.619
24 2.064
55. Confidence intervals using βtβ or Confidence interval for
Small Samples
β’ Confidence intervals = estimator Β± (reliability
constant) x (standard error of the estimate).
β’ Reliability coefficient is obtained from the table of t-
distribution.
β’ C. I. (ΞΌ) = ΰ΄€
π± Β± ππΆ,πβπ.
π
π§
. [ For unbiased estimator,
When actual data is given]
β’ C. I. (ΞΌ) = ΰ΄€
π± Β± ππΆ,πβπ.
π¬
π§βπ
. [ For biased estimator
when sample s.d. or variance is given]
56. Example: The average cost of a hotel room in New York is said to be $168 per
night. To determine if this is true, a random sample of 25 hotels is taken and
resulted in average of $172.50 with standard deviation of $15.40. Test the
appropriate hypothesis at 0.05 level of significance.
Solution: With usual notations: π =$ 168 , n = 25 , ΰ΄€
π= $ 172.50 , s = $ 15.40
Formulation of Hypothesis:
H0: ΞΌ = $ 168 . The average cost of a hotel room in New York is $168 per night.
H1: ΞΌ οΉ 168 (Two tailed test). The average cost of a hotel room in New York is not
equals to $168 per night.
Test statistic: Under H0 ,the test statistics is π‘ =
ΰ΄€
π β π
ΰ΅
π
πβ1
=
172.50 β 168
ΰ΅
15.40
25β1
= 1.43 tcal =1.43
Level of significance(πΆ) = 0.05
Degree of freedom(d.f.) = n-1 = 25-1 = 24
Critical value: The tabulated value of t for two tailed test at 0.05 level of significance
with 24 d.f. is 2.064 i.e. ttab = 2.064
Decision: Since tcal < ttab so H0 is accepted.
Conclusion: Hence we conclude that the average cost of a hotel room in New York is
$168 per night
58. Example : The following are weight (gm.) values for
sample of 21 chocolates. Can we conclude from these
data that the mean of the population from which the
sample was drawn is greater than 14.0? Use Ξ± = 0.05.
14.5 12.9 14.0 16.1 12.0 17.5 14.1
12.9 17.9 12.0 16.4 24.2 12.2 14.4
17.0 10.0 18.5 20.8 16.2 14.9 19.6
60. β’ Now π2 =
1
(πβ1)
Ο π2 β
(Ο π)
2
π
=
1
21β1
5355.05 β
328.1 2
21
= 11.44
β’ β΄ π = 11.44 = 3.38
β’ Sample size (n) = 21, sample mean (π₯) =
Ο π
π
=328.1/21 = 15.62, sample
standard deviation (s) = 3.38,, population mean (ΞΌ) = 14,
β’ Hypothesis setting:
β’ Null Hypothesis: H0:ΞΌ = 14 gm i. e.
β’ Alternative hypothesis: H1: ΞΌ > 14 gm(Right tailed test) i. e.
β’ Test statistic: π‘ =
ΰ΄₯
X β ΞΌ
ΰ΅
S
n
=
15.62β14
ΰ΅
3.38
21
=
1.62
Ξ€
3.38
4.58
=
1.62
0.73
= 2.21
β’ Level of significance(πΆ )= 0.05
β’ Degree of freedom(d.f.) = n -1 = 21 β 1 = 20
β’ Critical value: π‘πΌ=0.05 πππ πππ π‘πππππ ,20 ππ = 1.725
β’ Decision: since π‘πππ = 2.21 > π‘πΌ = 1.725 then the test is significant so
we reject hull hypothesis and then accept alternative hypothesis (H1).
β’ Conclusion:
61. Case II: Test of significance of difference between two independent
means (Pooled t- test) independent t -test
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0: ππ = ππ i. e. there is no significant difference between the two population means
H1: ππ β ππ (two tailed test), H1: ππ > ππ (right tailed test), H1:ππ < ππ(left tailed test)
If First sample mean(ΰ΄₯
X1) > Second sample mean(ΰ΄₯
X2) : Right Tailed Test
If First sample mean(ΰ΄₯
X1) < Second sample mean(ΰ΄₯
X2) : Left Tailed Test
Step 2: Test Statistics , t =
(π1 β π2 )
π2 1
π1
+
1
π2
=
(π1 β π2 )
π
1
π1
+
1
π2
~π‘(π1+π2β2)
Step 3: Fix the level of significance (πΆ)
Step 4: Degrees of freedom(d.f.) = (π1 + π2 β 2)
Step 5: Write the critical value (t ) for πΌ % level of significance at (n1 + n2 β 2) d. f. from the t- table.
Step 6: Make decision:
Critical value approach:
If ΗtΗ(calculated) β€ tΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is accepted.
If ΗtΗ(calculated) > tΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is
accepted.
Step 7: Conclusion:
62. Calculation of S2
β’ Actual mean method: π2
=
1
(π1+ π2β2)
[Ο(π1 β π1)2
+ Ο(π2 β π2)2
]
β’ Direct method: π2 =
1
(π1+ π2β2)
α
α
Ο π1
2
β
Ο π1
2
π1
+ Ο π2
2
β
Ο π2
2
π2
β’ Short cut method: π2
=
1
(π1+ π2β2)
α
α
Ο π1
2
β
Ο π1
2
π1
+
Ο π2
2
β
Ο π2
2
π2
β’ Where d1 = X β A, d2 = X β B, A = assumed mean of series X,
B = assumed mean of series Y.
β’ πΊπ
=
ππ.ππ
π+ ππ.ππ
π
(ππ+ ππβπ)
[ when the sample variance (or sample
standard deviation) i. e. biased estimates are given]
63. Example: Two different types of drugs D1 and D2 were
administrated on certain patients for increasing weight at
interval of one week time period. From the following
observation, can you conclude that Test at 5% level of
significance.
i. Whether two drugs differ significantly?
ii. The second drug is more effective in increasing
weight.
D1 8 12 13 9 3 8 10 9
D2 10 8 12 15 6 11 12 12
65. Contdβ¦
(i) Setting of Hypothesis:
H0: ΞΌ1 = ΞΌ2 (i. e. both drugs are equally effective)
H1: ΞΌ1 β ΞΌ2 (i. e. both drugs are not equally effective)
Test statistic: π‘ =
ΰ΄€
π1β ΰ΄€
π2
π2 1
π1
+
1
π2
=
9 β 10.75
8.4
1
8
+
1
8
= β1.208
then π‘πππ = β1.208 = 1.208
Level of significance(πΆ) = 0.05
Degree of freedom(d.f.) = (π1 + π2 β 2) = 8+8- 2 = 14
Critical value:
Tabulated value of t for two tailed test at 0.05 level of
significance with 14 d.f. is 2.145 i.e. π‘π‘ππ= 2.145
Decision: π‘πππ = 1.208 < π‘π‘ππ = 2.145 so we accept H0 .
Conclusion: we can conclude that both drugs are equally
effective.
66. Contdβ¦
(ii) Setting of Hypothesis:
H0: ΞΌ1 = ΞΌ2 (i. e. both drugs are equally effective)
H1: ΞΌ1 < ΞΌ2 (i. e. second drug is effective than first drug)
Test statistic: π‘ =
ΰ΄€
π1β ΰ΄€
π2
ππ
2 1
π1
+
1
π2
=
9 β 10.75
8.4
1
8
+
1
8
= β1.208
then π‘πππ = β1.208 = 1.208
Level of significance(πΆ) = 0.05
Critical value: Tabulated value of t for two tailed test at 0.05
level of significance with 14 d.f. is 2.145 i.e. π‘π‘ππ= 1.761
Decision: π‘πππ = 1.208 < π‘π‘ππ =1.761 so we accept H0 .
Conclusion: we can conclude that both drugs are equally
effective
67. Example: Two salesmen A and B are working in a certain district. From a sample
survey conducted by the head office, the following results were obtained. State
whether there is any significant difference in the average sales between the two
salesmen.
Solution: With the usual notations, we have,
For A For B
π1 = 20 π2 = 18
π₯1 = 170 π₯2= 205
π 1 = 20 π 2 = 25
Setting of Hypothesis:
H0: ΞΌ1 = ΞΌ2 , i.e. there is no significant difference between the average sales of
two salesmen
H1: ΞΌ1 β ΞΌ2 i.e. there is a significant difference between the average sales of two
salesmen.
Salesmen A Salesmen B
No of sales: 20 18
Average sales: 170 205
Standard deviation 20 25
68. Test statistic: under H0the test statistic is π‘ =
ΰ΄€
π1β ΰ΄€
π2
π2 1
π1
+
1
π2
π2 =
π1.π 1
2+ π2.π 2
2
(π1+ π2β2)
=
π1.π 1
2+ π2.π 2
2
(π1+ π2β2)
= 534.75
t=
170β205
534.72
1
20
+
1
18
= -4.56 Hence tcal = 4.56
Level of significance( ) = 0.05
Degree of freedom(d.f.) = n1 + n2 β 2 = 20 + 18 β 2 = 36
Critical Value: Since d.f. =36 > 30, it follows normal distribution. Hence the
tabulated value of t at 5% level of significance for two tailed test is 1.96.
Decision: Since the calculated value of t is greater than the tabulated value of
t, it is significant, hence the null hypothesis is rejected i.e. alternative
hypothesis is accepted, which means that there is a significant difference
between the average sales of two salesmen.
69. When Z-test and When t-test is
suitable?
β’ In case of test of significance of single mean
and double(two independent means)
β’ You can use t test if population standard
deviation is not given(unknown) in case of
sample size greater than 30
β’ Use tabulated value from table (also in t-table)
β’ See next example
70. β’ Two independent samples z-test:
β’ Large sample size (typically > 30)
β’ Known population standard deviation
β’ Normally distributed population
β’ Two independent samples (unpaired)
t-test:
β’ Small sample size (typically < 30)
β’ Unknown population standard deviation
β’ Population may not be normally distributed
71. Question: Read the following information perform the following:
(i) Test whether two means are significantly difference at 0.05
level of significance using independent t-test.
(ii) Compute 95% confidence interval estimation for the
difference of means
(iii) Show the linkage between testing of hypothesis and interval
estimation in this problem
Group I Group II
Sample means 10 15
Sample standard deviation 3 5
Sample size 49 64
72. Solution:
β’ (i) as same process solving above
β’ (ii) C. I.
β’ (πΏπ β πΏπ) Β± tπ, ππ + ππ β π β ππ(
π
ππ
+
π
ππ
)
β’ π2
=
π1.π 1
2+ π2.π 2
2
(π1+ π2β2)
see ttab two tailed test
β’ (iii) if hypothetical value of mean difference
zero (0) lies between confidence interval we
accept null hypothesis otherwise reject
73. Case III : Paired t-test for difference of two means
Procedure
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0: ππ = ππ or ππ = π i. e. there is no significant difference between the two population means
H1: ππ β ππ or ππ β π (two tailed test), : ππ > ππ (right tailed test), :ππ < ππ(left tailed test)
Step 2: Select test statistic:π =
ΰ΄₯
π
ΰ΅
ππ
π
π
~π(πβπ) Where d = X β Y
X = value before treatment Y = value after treatment
Treatment means performing advertisement for promoting sales of goods or performing, training for
increasing memory capacity of person etcβ¦..
π =
Ο π
π
πππ π π
2
=
Ο(πβ ΰ΄€
π)2
(πβ1)
=
1
(πβ1)
Ο π2
β
Ο π 2
π
Step 3: Fix the level of significance (πΆ)
Step 4: degrees of freedom = (n β 1)
Step 5: Write the critical value (t ) for πΌ % level of significance and (n β 1)d. f. from the t- table.
Step 6: Make decision:
Critical value approach:
If ΗtΗ(calculated) β€ tΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is
accepted.
If ΗtΗ(calculated) > tΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is
accepted.
74. Example: A company has reorganized its sale department. The following data
show the weekly sales figures (in Rs. lakhs) before and after the reorganization.
Can we say that sales have significantly changed due to the reorganization?
In this problem, the sales before reorganization (x) and after reorganization (y) are
not independent, but are paired together. Hence we shall apply paired t-test.
Setting of Hypothesis:
H0: ππ₯ = ππ¦ i.e. there is no significant change in sale after the reorganization.
H1: ππ₯ β ππ¦ (Two tailed test), , i.e. there is a significant change in sale after the
reorganization.
Test Statistics: Under H0 , the test statistics is
π‘ =
ΰ΄€
π
ΰ΅
π2
π
Week 1 2 3 4 5 6 7 8 9 10
Sales before: 12 15 13 11 17 15 10 11 18 19
Sales after: 16 17 14 13 15 14 12 11 17 22
76. Hence , π‘ =
ΰ΄€
π
ΰ΅
π2
π
=
β1
Ξ€
3.778
10
= -1.629 , ΗtΗ(calculated) = 1.629
Level of significance = 0.05
Degree of freedom (d.f.) = n-1 = 10-1 = 9
The critical (tabulated) value of t for 9 d.f. at 5% level of
significance for two tailed test 2.262.
Decision: Since calculated value of t is less than critical value of t,
it is not significant at 5% level of significance. Hence, the data do
not provide any evidence against the null hypothesis which may
be accepted. It may therefore be concluded that reorganization
has no effect on sales.
77. Calculations:
S. N. Change in score (d) (d)2
1 8 64
2 10 100
3 -2 4
4 0 0
5 -5 25
6 -1 1
7 9 81
8 12 144
9 6 36
10 5 25
Total Ξ£d = 42 Ξ£d2 = 480
Example 2: A drug is given to 10 patients, on the increment in their blood pressure
were recorded to be 8, 10, -2, 0, - 5, - 1, 9, 12, 6, 5. Test at 5% level of significance
whether the drug is effective for either increasing or decreasing the blood pressure.
78. Contdβ¦
β’ Number of observation (n) = 10,
β’ Now π =
Ο π
π
=
42
10
= 4.2 and
β’ π2
=
1
(πβ1)
Ο π2
β
Ο π 2
π
=
1
9
480 β
(42)2
10
= 33.73
β’ Null Hypothesis: H0: ππ₯ = ππ¦ i. e. there was no increase or decrease in blood
pressure before and after the treatment. The treatment was not effective
β’ Alternative Hypothesis: H1: ππ₯ β ππ¦ i. e. there was increase or decrease in blood
pressure before and after the treatment. The treatment was effective. (two tailed
test)
β’ Test statistic: π‘ =
ΰ΄€
π
ΰ΅
π2
π
=
4.2
33.735
10
= 2.29
β’ level of significance(πΆ)= 0.05
β’ Degree of freedom(d.f.) = n - 1 = 10 β 1 = 9
β’ Critical value of t for 9 d. f. and two tailed test 0.05 level of significance, π‘πΌ=0.05 =
2.262
β’ Decision: π‘πππ = 2.29 > π‘πΌ=0.05 = 2.262 then it is significant so we reject H0 and
accept H1.
β’ Conclusion: The treatment was effective.
79. Case IV: Test of significance of an observed sample correlation coefficient
Let r be the observed sample correlation coefficient in a sample of n pairs of observations
from bivariate normal population. In order to test whether any correlation coefficient
between variables in population, t-test is applied.
Procedure:
Step 1: Formulate the Null (H0) and Alternative (H1) Hypothesis.
H0: π = 0 i.e. Population correlation coefficient is zero or Variables are uncorrelated in the
populations
H1: π β π (two tailed test), variables are correlated in the population
H1 : π > π (right tailed test) , H1 :π < π(left tailed test)
Step 2: Select test statistic:π‘ =
π
πβππ
. π β π
Step 3: Fix the level of significance (πΆ)
Step 4: degrees of freedom = (n β 2)
Step 5: critical value (t ) for πΌ % level of significance and (n β 2)d. f. from the t- table.
Step 6: Make decision:
Critical value approach:
If ΗtΗ(calculated) β€ tΞ±(table or critical ) we say it is not significant (insignificant). So Hβ is
accepted.
If ΗtΗ(calculated) > tΞ±(table or critical) we say it is significant. So Hβ is rejected, then Hβ is
accepted.
step 7: Conclusion:
80. Example: A random sample of 27 pairs of observations from a normal population
gives a correlation coefficient of 0.42. Is it likely that the variables in the
population are uncorrelated? Also compute 95% confidence limit for the
population correlation coefficient.
Solution: with usual notations, n = 27, r = 0.42
Setting of Hypothesis:
H0: π = 0 i.e. Variables in the populations are not correlated .
H1: π β 0 (Two tailed test) i.e. Variables in the populations are correlated .
Test Statistics: π‘ =
π
πβππ
. π β π =
π.ππ
πβπ.πππ
. ππ β π = 2.31
Level of significance(πΆ) = 0.05
Degree of freedom(d.f.) = n-2 = 27-2 = 25
Critical value: ttab = 2.060 Decision:
For 95% confidence limits:
1- πΌ= 95%, πΌ= 5% d.f. = 27-2 =25 π‘πΌ,πβ2 = 2.060
Hence 95% Confidence limits for population correlation coefficient are
= r Β± π‘πΌ,πβ2 .
1βπ2
π
= 0.42 Β± 2.060 .
1β0.422
27
= 0.42 Β±