You are on page 1of 80

Testing of Hypotheses

BY
DR.B.V.DHANDRA
PROFESSOR
CHRIST (DEEMED TO BE) UNIVERSITY
BANGALORE
Testing of Hypotheses:

 Parameter and Statistic: The statistical constants of the population such as mean, (µ),
variance (σ2), correlation coefficient (ρ) and proportion (P) are called ‘Parameters’.
 The function of the sample data which is free from unknown parameters is called
statistic
 E.g Sample mean is statistic, where as sample mean minus population unknown
mean is not a statistic.
 Sampling Distribution: The distribution of all possible values which can be assumed
by some statistic measured from samples of same size ‘n’ randomly drawn from the
same population of size N, is called as sampling distribution of the statistic
 The standard deviation of the sampling distribution of a statistic is known as its
standard error. It is abbreviated as S.E. For example, the standard deviation of the
sampling distribution of the mean x-bar known as the standard error of the mean.
Testing Hypotheses:
Null Hypothesis and Alternative Hypothesis:
Hypothesis testing begins with an assumption called a Hypothesis, that we make about a population
parameter. A hypothesis is a supposition made as a basis for reasoning. The conventional approach
to hypothesis testing is not to construct a single hypothesis about the population parameter but
rather to set up two different hypothesis. So that of one hypothesis is accepted, the other is rejected
and vice versa.

Null Hypothesis: A hypothesis of no difference is called null hypothesis and is usually denoted by
Ho “ Null hypothesis is the hypothesis” which is tested for possible rejection under the assumption
that it is true.

For example: If we want to find out whether the special classes (for MCA. Students) after college
hours has benefited the students or not. We shall set up a null hypothesis that “Ho: special classes
after college hours has not benefited the students”.
 single hypothesis about the population parameter but rather to set up two different hypothesis. So that of one hypothesis is accepted, the other is rejected and vice versa.
Testing of Hypotheses:
 Alternative Hypothesis: Any hypothesis, which is complementary to the null hypothesis, is called
an alternative hypothesis, usually denoted by H1,
 For example, if we want to test the null hypothesis that the population has a specified mean µ0
(say),
 i.e., : Step 1: null hypothesis H0: µ = µ0 then
 2. Alternative hypothesis may be
 i) H1 : µ ≠ µ0 (ie µ > µ0 or µ < µ0)
 ii) H1 : µ > µ0
 iii) H1 : µ < µ0
Testing of Hypotheses

 the alternative hypothesis may be 0f following types:


 (i) is known as a two – tailed alternative, if H1:  ≠ o
 (ii) is known as right-tailed, if H1:  > o
 (iii) is known as left –tailed if alternative hypothesis is H1:  < o.
 The settings of alternative hypothesis is very important since it enables us to
decide whether we have to use a single – tailed (right only or left only) or two
tailed test (both).
Testing of Hypotheses:

 Level of significance: In testing a given hypothesis, the maximum


probability with which we would be willing to take risk is called level of
significance of the test. This probability often denoted by “α” is generally
specified before samples are drawn.
 The level of significance usually employed in testing of significance are
0.05 ( or 5 %) and 0.01 (or 1 %). If for example a 0.05 or 5 % level
of significance is chosen in deriving a test of hypothesis, then there are
about 5 chances in 100 that we would reject the hypothesis when it should
be accepted. (i.e.,) we are about 95 % confident that we made the right
decision. In such a case we say that the hypothesis has been rejected at 5
% level of significance which means that we could be wrong with
probability 0.05.
Testing of Hypotheses
 The following diagram illustrates the region in which we could accept or reject the null
hypothesis when it is being tested at 5 % level of significance and a two-tailed test is employed.

 .05/2=.025
 .01/2= .005
Testing of Hypotheses

 Note: Critical Region: A region in the sample space S which amounts to rejection of H0 is termed
as critical region or region of rejection.
 Critical Value: The value of test statistic which separates the critical (or rejection) region and the
acceptance region is called the 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 single-tailed
 One tailed test: A test of any statistical hypothesis where the alternative hypothesis is one tailed
(right tailed or left tailed) is called a one tailed test.
Rough Work

n=4
 S={0,1,|2,3,4}
 Critical Region=C={x|x=2,3,4}, A={0,1}
 T(x)2, Reject Ho.
 P(T(x)|Ho}=
 X
 T(X1,X2,….Xn)=Xbar=Sample mean
 Ho: against H1:
 Xbar=70.09, Xo= 75.9 C={x|x>75.9}= (75.9, ) , A=(-
 )


Testing of Hypotheses
 For example, for testing the mean of a population H0: µ = µ0, against the alternative
hypothesis H1: µ > µ0 (right – tailed) or H1 : µ <µ0 (left –tailed)is a single tailed test
 . In the right – tailed test H1: µ > µ0 the critical region lies entirely in right tail of the sampling
distribution of x ,
 while for the left tailed test H1: µ < µ0 the critical region is entirely in the left of the distribution
of x.
Testing of Hypotheses

 One tailed Test


Testing of Hypotheses
 Two tailed test: A test of statistical hypothesis where the alternative hypothesis is two
tailed such as, H0 : µ = µ0 against the alternative hypothesis H1: µ ≠µ0 (µ >µ0 and µ <
µ0) is known as two tailed test and in such a case the critical region is given by the
portion of the area lying in both the tails of the probability curve of test of statistic.

 For example, suppose that there are two population brands of washing machines, are
manufactured by standard process(with mean warranty period µ1) and the other
manufactured by some new technique (with mean warranty period µ2): If we want to test
if the washing machines differ significantly then our null hypothesis is H0 : µ1 = µ2 and
alternative will be H1: µ1 ≠ µ2 thus giving us a two tailed test.

 However if we want to test whether the average warranty period produced by some new
technique is more than those produced by standard process, then we have H0 : µ1 = µ2
and H1 : µ1 < µ2 thus giving us a left-tailed test.
Testing of Hypotheses

 Similarly, for testing if the product of new process is inferior to that of standard process then we have,
H0 : µ1 = µ2 and H1 : µ1>µ2 thus giving us a right-tailed test. Thus the decision about applying a two –
tailed test or a single –tailed (right or left) test will depend on the problem under study.
 Type I and Type II Errors:
 When a statistical hypothesis is tested there are four possibilities.
 1. The null hypothesis is true but our test rejects it ( Type I error)
 2. The null hypothesis is false but our test accepts it (Type II error)
 3. The null hypothesis is true and our test accepts it (correct decision)
 4. The null hypothesis is false and our test rejects it (correct decision
Testing of Hypotheses:

 Obviously, the first two possibilities lead to errors.


 In a statistical hypothesis testing experiment,
 a Type I error is committed by rejecting the null hypothesis when it is true.
 On the other hand, a Type II error is committed by not rejecting (accepting) the null hypothesis
when it is false.
 If we write , α = P (Type I error) = P (rejecting H0 | H0 is true)
 β = P (Type II error) = P (Not rejecting H0 | H0 is false)
 In practice, type I error amounts to rejecting a lot when it is good and type II error may be
regarded as accepting the lot when it is bad. Thus we find ourselves in the situation which is
described in the following table.
Testing of Hypotheses:

 Thus it can be described in the following Table:


Testing of Hypotheses:

 Test Procedure : Steps for testing hypothesis is given below. (for both large sample and small
sample tests)
 1. Null hypothesis : set up null hypothesis H0.
 2. Alternative Hypothesis: Set up alternative hypothesis H1, which is complementary to H0
which will indicate whether one tailed (right or left tailed) or two tailed test is to be applied.
 3. Level of significance : Choose an appropriate level of significance (α), α is fixed in advance.
 4. Use appropriate test statistic to test the null hypothesis
t-Statistic

 t - statistic definition:
 If x1, x2 ,……x n is a random sample of size n from a normal population with mean µ
and variance , then Student’s t-statistic is
 defined as


t-Statistic

 Degrees of freedom (d.f):


 Suppose it is asked to write any four number then one will have all the numbers
of his choice.
 If a restriction is applied or imposed to the choice that the sum of these number
should be 50. Here, we have a choice to select any three numbers, say 10, 15, 20
and the fourth number is 5: [50 − (10 +15+20)].
 Thus, our choice of freedom is reduced by one, on the condition that the total be
50. Therefore the restriction placed on the freedom is one and degree of freedom
is three.
 As the restrictions increase, the freedom is reduced.
 The number of independent variates which make up the statistic is known as the
degrees of freedom and is usually denoted by ν (Nu)
t-Statistic:
 For the student’s t-distribution. The number of degrees of freedom is the sample size minus one.
It is denoted by ν = n−1
 Critical value of t:
 The column figures in the main body of the table come under the headings t0.10, t0.50, t0.025, t0.010
and t0.005.
 The subscript give the proportion of the distribution in ‘tail’ area.
 Thus, for two tailed test at 5% level of significance there will be two rejection areas each
containing 2.5% of the total area and the required column is headed t0.025
 For example,
 tν, 0.05 for single tailed test = tν, 0.025 for two tailed test
 tν, 0.01 for single tailed test = tν, 0.005 for two tailed test
 Thus, for one tailed test at 5% level the rejection area lies in one end of the tail of the
distribution and the required column is headed t0.05.
t-Statistic

 Applications of t-distributio
t-Statistic
 The t-distribution has a number of applications in statistics, of which we shall discuss in the
following:
 (i) t-test for significance of single mean, population variance being unknown.
 (ii) t-test for significance of the difference between two sample means, the population variances
being equal but unknown.
 (a) Independent samples
 (b) Related samples: paired t-test
Table of Student’s t-statistic
Test of significance for Mean:
 H0: µ = µ0;There is no significant difference between the sample mean and population Mean
H1: µ ≠ µ0 ( µ < µ0 (or) µ > µ0) Level of significance: 5% or 1%
 Calculation of statistic: Under H0 the test statistic is

Test of significance for Mean:

 Inference :
 If t-cal ≤ t it falls in the acceptance region and the null hypothesis is accepted
and
 if t-cal > tα/2 the null hypothesis H0 may be rejected at the given level of
significance α.
 Since we are testing for two-sided alternative hypothesis
Example-1
 A reading coordinator in a large public school system suspects that poor readers
may test lower in IQ than children whose reading is satisfactory. He draws a
random sample of 30 fifth grade students who are poor readers. Historically fifth
grade students in the school system have had an average IQ of 105. The sample
of 30 has XBAR = 101.5 and S(XBAR) = 1.42. Test the appropriate hypothesis at
the 5% level.
 Solution: Given Data: x̄ = 101.5, Std(x̄ ) = 1.42 and μ0 =105
 Ho: μ =105 against H1: μ <105 one sided alternative
 Level of Significance= α=0.05
 Test Procedure:
 Here the population standard deviation is unknown, so we use the t-test for
testing with an assumption of normal population.
Test Statistic is t = || , S(x̄ )= s/

 So, |tcal|= | |=| | =2.4648


 Table value of t for 29 df at α = 0.05 is t29,0.05 = 1.699
 The calculated value of t is less than table value.
 That is tcal > t29,0.05 = 1.699, hence reject the null hypothesis
 Inference: Poor reading student’s performance is less than that of
satisfactory reading student’s performance in IQ test.
Example
 EX: Certain pesticide is packed into bags by a machine. A random sample
of 10 bags is drawn and their contents are found to weigh (in kg) as
follows:
 50 49 52 44 45 48 46 45 49 45
 Test if the average packing can be taken to be 50 kg.
 Solution: From the data compute sample mean and standard deviation
 Null hypothesis: H0 : µ = 50 kgs , since the average packing is 50 kgs.
 Alternative Hypothesis:
 H1 : µ ≠ 50kgs (Two -tailed ) (µ< µo or µ> µo)
 Level of Significance: Let α = 0.05
Computation
Computation:
Computation:

 |t-cal|

 Table value of t at α= 0.05 l.o.s for (10-1)=9 d.f. Is t9,0.025 = 2.262,


 since α/2= 0.025
 INFERENCE:
 |t-cal|> t 9, 0.025, hence reject the null hypothesis (Ho) in favor of alternative
hypothesis H1 at 5% level of significance.
 Conclude that the average packing cannot be taken to be 50 kgs.
Example:
 A soap manufacturing company was distributing a particular brand of soap
through a large number of retail shops. Before a heavy advertisement campaign,
the mean sales per week per shop was 140kg. After the campaign, a sample of 26
shops was taken and the mean sales was found to be 147 kg with standard
deviation 16. Can you consider the advertisement effective ? Formulate the null
and alternative hypothesis.
 Solution:
 We are given n = 26; = 147kg; s = 16
 Null hypothesis: H0: µ = 140 kg i.e. Advertisement is not effective.
 Alternative Hypothesis: H1: µ > 140kgs (Right -tailed) , advertisement is effective.
Calculation of statistic:
 Under the null hypothesis H0, the test statistic is

The table value of student’s t-statistic for n -1=26-1=25 d.f at 5% los is t25,0.05 = 1.7
Inference: Since |t0 | = 2.19 =|t-cal |> t25,0.05 = 1.7, Ho is rejected at 5% level of significance.
Hence, we conclude that advertisement is certainly effective in increasing the sales.
Test of significance for difference between two means:

 Independent samples: Suppose we want to test if two independent samples


have been drawn from two normal populations having the same means, the
population variances being equal. Let X1, X2,…. Xn1 and Y1, Y2, …… Yn2 be two
independent random samples from the given normal populations.
 Null hypothesis: H0 : µ1 = µ2 i.e. the samples have been drawn from the normal
populations with same means.
 Alternative Hypothesis: H1 : µ1 ≠ µ2 (µ1 < µ2 or µ1 > µ2)
Test of significance for difference between two means:
 Test statistic:
 Under the H0, the test statistic is

The statistic to follows a student’s t-distribution with (n1+n2-2) d.f


Inference:

 If |to|=|t-cal| > tα/2, then reject the null hypothesis.


 If the |to|=|t-cal| < tα/2, then accept the null hypothesis.
Example :
 A group of 5 patients treated with medicine ‘A’ weigh 42, 39, 48, 60 and 41 kgs: Second
group of 7 patients from the same hospital treated with medicine ‘B’ weigh 38, 42 , 56,
64, 68, 69 and 62 kgs. Do you agree with the claim that medicine ‘B’ increases the
weight significantly?
 Solution: Let the weights (in kgs) of the patients treated with medicines A and B be
denoted by variables X and Y respectively.
 Given Data: Let X1,X2,……,x5 and Y1,Y2,…Y7, n1=5, n2=7
 Null hypothesis: H0 : µ1 = µ2 i.e. There is no significant difference between the
medicines A and B as regards their effect on increase in weight.
 Alternative Hypothesis: H1 : µ1 < µ2 (left-tail) i.e. medicine B increases the weight
significantly.
 Level of significance : Let α = 0.05

Test Procedure:
 Compute Xbar and Y-bar, sd(X) and sd(Y)

 Xbar = Mean = = 230/5 = 46


Combined Variance

=
 =121.6
 Under H0 the test statistic is
 |tcal| =| = = = 1.7
 Table value of t for (5+7-2=10) d.f at 5% l.o.s is 1.812
 Thus, tcal = 1.7 < 1.812 . Hence, accept Ho
 Inference: Since tcal = 1.7 < t10, 0.05 = 1.812, it is not significant. Hence H0 is accepted and
we conclude that the medicines A and B do not differ significantly as regards their effect
on increase in weight.
Related samples –Paired t-test:
 Related samples –Paired t-test: In the t-test for difference of means, the
two samples were independent of each other. Let us now take a particular
situations where,
 (i) The sample sizes are equal; i.e., n1 = n2 = n(say), and
 (ii) The sample observations (x1, x 2, ……..xn) and (y1, y2, …….yn) are not
completely independent but they are dependent in pairs.
Paired t-test
Paired t-test

 Inference:
 If |tcal|> tn-1,α/2, we reject the null hypothesis.
 If the |tcal |< tα/2, we accept the null hypothesis
 Thus, by comparing |tcal| and tα/2 at the desired level of
significance, usually α=5% or 1%, we reject or accept the null
hypothesis.
Example:
To test the desirability of a certain modification in typists desks, 9 typists were given
two tests of as nearly as possible the same nature, one on the desk in use and the
other on the new type. The following difference in the number of words typed per
minute were recorded:

 Do the data indicate the modification in desk promotes speed in typing?


Solution:
 Null hypothesis: H0 : µ1 = µ2 i.e. the modification in desk does not promote speed
in typing.
 Alternative Hypothesis: H1 : µ1 < µ2 (Left tailed test)
Solution:
 Computation

Table value of t0.05 for 9-1=8 d.f is 1.860. Hence t-cal=to=2.024>1.860


 Reject Ho in favour of H1.
 Conclusion: New typing influences the typing speed for the typists.
Test for population variance ( –test)

 Test for population variance: Suppose we want to test if the given normal population has a specified
variance =
 Null Hypothesis: Ho :
 Let x1, x2 …xn be a random sample of size n.
 Level of significance:
 Let α = 5% or 1%

 / follows Chi-square distribution.


Inference
 Inference: If χ2-cal ≤ α) we accept the null hypothesis
 otherwise we reject the null hypothesis.
Example:
 A random sample of size 20 from a population gives the sample standard deviation of 6. Test the
hypothesis that the population Standard deviation is 9.
 Solution: We are given n = 20 and s = 6
 Null hypothesis: H0 The population standard deviation is σ= 9.
 Level of significance: Let α = 5 %
 Calculation of statistic:
 Under null hypothesis H 0:
Solution:

 Table value of Chi-square( χ2) for (20 –1 = 19)d.f. is = 30.144


 Inference:
 Since χ2-cal < χ2 –table value at 5% los,
 we accept the null hypothesis at 5 % level of significance and conclude that the population
standard deviation is 9.


F-Test for testing the equality of variances

 F – Statistic Definition: If and are two independent variates with and d.f.
respectively, then F - statistic is defined below
F = follows F-distribution with (, ) d.f
 i.e. F - statistic is the ratio of two independent chi-square variates divided by their
respective degrees of freedom.
 This statistic follows G.W. Snedocor’s F-distribution with (, ) d.f.
Testing the ratio of variances:
 Suppose we are interested to test whether the two normal population have same
variance or not.
 Let , , ….. , be a random sample of size , from the first population with variance
and , , … , be random sample of size form the second population with a
variance . Obviously the two samples are independent.
 Null hypothesis: : =
 i.e. population variances are the same.
 In other words is that the two independent estimates of the common population
variance do not differ significantly.
Calculation of statistics:
 Under H0, the test statistic is

 = , where = =

 and = =
 It should be noted that numerator is always greater than the denominator in F-ratio
and F = Variance Larger/ Variance Smaller.
 ν1 = d.f for sample having larger variance
 ν2 = d.f for sample having smaller variance
Inference:

 The calculated value of F is compared with the table value of for ν1 and ν2 at α
% ( 5% or 1% ) level of significance If F-cal > F α then we reject H0.
 On the other hand if F-cal < Fα we accept the null hypothesis and it is a inferred
that both the samples have come from the population having same variance.
 Since F- test is based on the ratio of variances it is also known as the variance
Ratio test. The ratio of two variances follows a distribution called the F
distribution named after the famous statisticians R.A. Fisher .
Example

Two random samples drawn from two normal populations


are :
Sample I: 20 16 26 27 22 23 18 24 19 25
Sample II: 27 33 42 35 32 34 38 28 41 43 30 37
Obtain the estimates of the variance of the population and test at 5% level of
significance whether the two populations have the same variance and
Solution:
 Null Hypothesis: H0: = i.e. The two samples are drawn from two populations
having the same variance.
 Alternative Hypothesis: H1: ≠ (two tailed test)
 Test Procedure: = = = 22 and = = = 35
Level of Significance = 0.05
 The statistic F is defined by the ratio = ,
 where = = = 13.33
= = = 28.54
Since > larger variance must be put in the numerator and smaller in the denominator
= = 2.14
The table value of F with 11 and 9 d.f at 5% los = 3.10
Inference : Since Fcal < (11,9), we accept null hypothesis at 5% level of
significance and conclude that the two samples may be regarded as drawn from the
populations having same variance.
Example-2:
 The following data refer to yield of wheat in quintals on plots of equal area in two
agricultural blocks A and B Block A was a controlled block treated in the same way as
Block B expect the amount of fertilizers used

 Use F test to determine whether variance of the two blocks differ significantly?
 Solution: We are given that = 8 =6 XAbar = 60 XBbar = 51 =50 = 40
 Null hypothesis: : = ie there is no difference in the variances of yield of wheat.
 Alternative Hypothesis: : (two tailed test)
 Level of significance: Let α = 0.05
Test Procedure:
 = = 57.14
 and = = 48
 Since > , = = = 1.19
 Table value of F for (7,5) d.f at 5% los = 4.88
 Inference: Since < (7,5), we accept the null hypothesis and hence infer that there is
no difference in the variances of yield of wheat.
Large Sample Tests:

 Large samples (n > 30):


 The tests of significance used for problems of large samples are different from those used in
case of small samples as the assumptions used in both cases are different. The following
assumptions are made for problems dealing with large samples:
 (i) Almost all the sampling distributions follow normal distribution asymptotically.
 (ii) The sample values are approximately close to the population values.
 The following tests are discussed in large sample tests.
 (i) Test of significance for proportion
 (ii) Test of significance for difference between two proportions.
 (iii) Test of significance for mean
 (iv) Test of significance for difference between two means.
Test of Significance for Proportion:
 Test Procedure :
 Set up the null and alternative hypotheses
 : P = against = P ≠ (P> or P < )
 Level of significance: Let α = 0 .05 or 0.01.
 Calculation of statistic: Under the test statistic is =
 Inference: (i) If the computed value of Zcal ≤ table value we accept the null
hypothesis and conclude that the sample is drawn from the population with
proportion of success .
 (ii) If Zcal > we reject the null hypothesis and conclude that the sample has not
been taken from the population whose population proportion of success is .
Example-1:
 In a random sample of 400 persons from a large population 120 are females. Can it
be said that males and females are in the ratio 5:3 in the population? Use 1% level of
significance.
Solution: Given Data: n = 400 and x = No. of females in the sample = 120 p =
observed proportion of females in the sample = =0.30, = 3/8=0.375
Null Hypothesis: : P = 3/8 = 0.375
Alternative Hypothesis: : P 0.375
Level of significance: α = 1 % or 0.01
Test Statistic is = = = = 3.125
Table value of Z at 1% level of significance is =2.58, = 2.33
Inference : Since the calculated Zcal > we reject our null hypothesis at 1% level of
significance and conclude that the males and females in the population are not in the
ratio 5:3.
Example-2
 In a sample of 400 parts manufactured by a factory, the number of defective parts was
found to be 30. The company, however, claimed that only 5% of their product is
defective. Is the claim tenable?
 Solution: Given Data: n =400, x=30, = = = 0.075.
 Null hypothesis: The claim of the company is tenable : P ==0.05
 Alternative Hypothesis: H1 : P > 0.05 (Right tailed Alternative).
Level of significance: 5%
Calculation of statistic: Under H0, the test statistic is = =
Therefore, = = 2.27
= 1.65 Table of Z at 5% level of significance. 0.5-0.05 =0.45
Inference : Since the calculated Zcal > Z0.05, we reject our null hypothesis at 5% level of
significance and we conclude that the company’s claim is not tenable.
Test of significance for difference between two proportion:
 Test Procedure:
 Set up the null and alternative hypotheses:
 : = P (say)
 : (P1>P2 or P1 <P2), Two-sided alternative hypothesis
 Level of significance: Let α = 0.05 or 0.01
 Calculation of statistic: Under H0, the test statistic is
 = ,
 = , Under :
 where are sample proportions. D= = 0, under Ho.

For unknown population proportions
 = , if and are unknown.
 where P^ = and Q^ = 1 – P^
 Inference: (i) If ≤ table value of Z, we accept the null hypothesis and conclude
that the difference between proportions are due to sampling fluctuations.
 (ii) If > , we reject the null hypothesis and conclude that the difference between
proportions cannot be due to sampling fluctuations.
 For single sided alternative hypotheses, the inference is:
 (i) If ≤ table value of Z, we accept the null hypothesis and conclude that the
difference between proportions are due to sampling fluctuations.
 (ii) If > , we reject the null hypothesis and conclude that the difference between
proportions cannot be due to sampling fluctuations.
Example-1:
 In a referendum submitted to the ‘student body’ at a university, 850 men and 550
women voted. 530 of the men and 310 of the women voted ‘yes’. Does this indicate a
significant difference of the opinion on the matter between men and women students?
 Solution: Given Data: n1= 850, n2 = 550, x1= 530, x2=310
 = = 0.62, = = 0.56 and P^ = = == 0.60 and Q^ = 0.40
 Null hypothesis: H0: P1= P2 ie the data does not indicate a significant difference of
the opinion on the matter between men and women students.
 Alternative Hypothesis: H1 : P1≠ P2 (Two tailed Alternative)
 Level of significance: Let α = 0.05
 Calculation of statistic: Under H0, the test statistic is
 = , if and are unknown
 = = 2.22

Inference:

 Inference : Since Zcal > table value, we reject our null hypothesis at 5% level of
significance.
 Say that the data indicate a significant difference of the opinion on the matter
between men and women students.
 Example: In a certain city 125 men in a sample of 500 are found to be self
employed. In another city, the number of self employed are 375 in a random
sample of 1000. Does this indicate that there is a greater population of self
employed in the second city than in the first?
Example-2
 In a certain city 125 men in a sample of 500 are found to be self employed. In another city,
the number of self employed are 375 in a random sample of 1000. Does this indicate that
there is a greater population of self employed in the second city than in the first?
Test of significance for mean:
 Test of significance for mean: Let Xi (i = 1,2…..n) be a random sample of size n from a population
with variance , then the sample mean x is given by

 =
 V() = V(
 =
 ==
 Test Procedure: Null and Alternative Hypotheses: H0:µ = µo. H1:µ ≠ µo (µ > µo or µ < µo) -Two
sided alternative hypothesis
 Level of significance: Let α = 0.05 or 0.01

Calculation of statistic: Under H0, the test statistic is

 =
 Compare the calculated value of Z, say table value of Z at .
 Inference :
 For two sided alternative hypothesis: If , we accept our null hypothesis and
conclude that the sample is drawn from a population with mean µ = µ0
 If > ,we reject H0 in favor of H1 and conclude that the sample is not drawn from
a population with mean µ = µ0
 For one sided alternative hypothesis: If , we accept our null hypothesis and
conclude that the sample is drawn from a population with mean µ = µ0
 If > ,we reject H0 in favor of H1 and conclude that the sample is not drawn from
a population with mean µ = µ0
Example
 The mean lifetime of 100 fluorescent light bulbs produced by a company is computed
to be 1570 hours with a standard deviation of 120 hours. If µ is the mean lifetime of all
the bulbs produced by the company, test the hypothesis µ=1600 hours against the
alternative hypothesis µ ≠ 1600 hours using a 5% level of significance.
 Solution: Given data: n=100, Xbar=1570, and σ^ = s = 120 and µo = 1600 .
 Test Procedure:
 Null and Alternative Hypotheses: H0:µ = 1600. H1:µ ≠ 1600 (µ > 1600 or µ < 1600)
 Level of Significance: 0.05
 Test statistic under Ho is = = = = 2.5
 Table value of = 1.96
 Now, = 2.5 > = 1.96, so reject the null hypothesis H0:µ = 1600 in favor of alternative
hypothesis H1:µ 1600. We conclude that the mean life time of light bulb is not 1600
time units.
Test the significance of two population means:
Suppose we wish to compare the means of two distinct populations. Each population has a mean and a
standard deviation

. We arbitrarily label one population as Population 1 and the other as Population 2, and subscript the
parameters with the numbers 1 and 2 to tell them apart. We draw a random sample from Population 1 and
label the sample statistics it yields with the subscript 1. Without reference to the first sample we draw
a sample from Population 2 and label its sample statistics with the subscript 2.
Fig1. sampling from
Two independent
Normal poplns
100(1−α)%100(1−α)% Confidence Interval for the Difference Between Two Population
Means: Large, Independent Samples


Test of independence

 Let us suppose that the given population consisting of N items is divided into r mutually
disjoint (exclusive) and exhaustive classes , , …, with respect to the attribute A so that
randomly selected item belongs to one and only one of the attributes , , …, .Similarly
let us suppose that the same population is divided into c mutually disjoint and exhaustive
classes , , …, w.r.t another attribute B so that an item selected at random possess one
and only one of the attributes , , …, . The frequency distribution of the items belonging
to the classes , , …, and , , …, can be represented in the following r × c manifold
contingency table
rxc contingency tsble
 Contingency Table:

 (Ai) is the number of persons possessing the attribute Ai, (i=1,2,…r), (Bj) is the
number of persons possessing the attribute Bj,(j=1,2,3,….c) and (Ai Bj) is the
number of persons possessing both the attributes Ai and Bj(i=1,2,…r ,j=1,2,…c).
 Also ΣAi= ΣBj= N
Contd…

 Under the null hypothesis that the two attributes A and B are independent, the expected frequency
for (AiBj) is given, the under null hypothesis of the independence of attributes, the expected
frequencies for each of the cell frequencies of the above table can be obtained on using the formula
= ,
 where = , i=1, 2, ...r; j=1,2….c
 Compare value with that of table value of at (r-1)x(c-1) d.f
 Inference: If > , we reject the null hypothesis in favour of alternative
hypotheses. at 100α% level of significance.
 Otherwise accept the null hypothesis.
Example-1
 Two researchers adopted different sampling techniques while investigating the same
group of students to find the number of students falling in different intelligence levels.
The results are as follows:

 Would you say that the sampling techniques adopted by the two researchers are
independent?
Interval Estimation:

 Confidence Interval for Mean of the Distribution:


 Interval Estimation provides a range of values (an interval) that may contain the unknown parameter
(such as the population mean µ).
 Confidence Intervals: an interval that contains the unknown parameter (such as the population mean
µ) with certain degree of confidence.
 Let be the value that cuts off an area of α/2 in the upper tail of the standard normal distribution. The
100(1 − α)% confidence interval for the population mean µ is
 (− , + ), if , the standard deviation of the normal distribution is known

 (− , +), if the standard deviation of the normal distribution is unknown


 Remark: If the sample is large, then we can use the above confidence interval for mean irrespective ot
the population distribution from which the sample is drawn.
95%Confidence Interval for Mean:
 Under the normality assumption
 P( − 1.96( σ/ √ n) ≤ µ ≤ + 1.96 (σ /√ n)) = 0.95.
 is 95% confidence interval for population mean.
 Ex: Consider the distribution of serum cholesterol levels for all males in the US who are
hypertensive and who smoke. This distribution has an unknown mean µ and a standard
deviation 46 mg/100ml. Suppose we draw a random sample of 12 individual from this
population and find that the mean cholesterol level is = 217mg/100ml. Obtain the 95%
confidence interval for mean.
 Given = 217mg/100ml is a point estimate of the unknown mean cholesterol level µ in the
population.
Example:

 A 95% confidence interval for µ is


 (217 − 1.96x 46 /√ 12 , 217 + 1.96 x46 /√ 12 )
 Or
 (191, 243).
 A 99% confidence interval for µ is
 (217 − 2.58 x46/ √ 12 , 217 + 2.58x 46 /√ 12 ).
 Or
 (183, 251).
Confidence Interval for Population variance
 The confidence interval for Population variance , when mean is unknown:
 P(< < ) 1-
 i.e P(< < ) 1-
 Since (n-1) is distribution, so choose and such that
 P( ) = /2 = P( ) ,( then
 = and =
 Thus 100(1- confidence interval for whe mean is unknown is

 If mean is known, then is distribution. Therefore the 100(1- confidence interval for is
Confidence interval for Population Proportion:

You might also like