Testing of Hypothesis - P&S AR - 20
Testing of Hypothesis - P&S AR - 20
(AUTONOMOUS)
Permanently Affiliated to JNTUK, Approved by AICTE
Accredited by NBA
Department of CSE
II B.Tech II Semester
Probability and Statistics
(AR – 20)
UNIT – IV
TEST OF HYPOTHESIS
Introduction: After estimating the value(s) of a parameter(s), we need to decide whether to accept or reject a statement
about the parameter. This statement is called hypothesis and the decision making procedure about the hypothesis is
called hypothesis testing.
In many circumstances, to arrive at decisions about the population on the basis of sample information, we
make assumptions or guess about the population parameters involved. Such an assumption or statement is called a
Statistical Hypothesis which may or may not be true. The procedure which enables us to decide on the basis of sample
represents whether a hypothesis is true or not is called “Test of Hypothesis” or “Test of significance”. Hypothesis are
of two types, they are (i) Null Hypothesis, and (ii) Alternative Hypothesis.
Null Hypothesis: A null hypothesis is the hypothesis which asserts that there is no significant difference between the
statistic and the population parameter. In general it is denoted by ' H0 ' .
Ex: H 0 : 0
Alternative Hypothesis: Any hypothesis which contradicts the null hypothesis is called an Alternative hypothesis. In
general, it is denoted by ' H1 ' .
Ex: For testing the null hypothesis that the population has a specified mean
ii H1 : 0 , and iii H1 : 0 .
Errors of Sampling: The main objective of sampling is to draw valid inferences about the population parameters on
the basis of the samples results. In practice we decide to accept or to reject the lot after examining a sample from it.
As such we have two types of errors: (i) Type – I error, and (ii) Type – II error.
Type – I error: Rejecting H0 , when H0 is true. If the null hypothesis H0 is true but it is rejected by test
procedure, then the error made is called Type – I error.
Type –II error: Accepting H0, when H0 is false. If the null hypothesis H0 is false but it is accepted by test procedure,
then the error made is called Type –II error.
Level of Significance: It is the confidence with which we reject or accept null hypothesis i.e., it is the maximum
possible probability with which we are willing to risk an error in rejecting H0, when H0 is true. In general it is denoted
by ‘α’ (size of the test).
Power of the test: Probability of Type – II error is known as “power of the test” and is denoted by ‘β’ and (1-β) is
known as “power function”.
Critical Region: A region corresponding to a statistic ‘t’ in the sample space ‘S’, which leads to the rejection of H0
is called “critical region” or “rejection region”.
A sample point falls in a region, so that we reject the null hypothesis is known as “critical region”, a sample
point falls in a region, so that we accept the null hypothesis is known as “Acceptance Region”.
Two-tailed tests: If the alternative hypothesis not of equality type, then the corresponding test comes under two-
tailed.
Ex: To test whether the population mean ‘μ’ has a specified value ‘μ0’, then the null hypothesis is H 0 : 0 and
the alternative hypothesis is H1 : 0 .
In case of two-tailed test the size of the critical region or level of significance(α) is divided into two equal
parts(α/2) and each is located at the extreme ends of the probability curve.
One-tailed tests: If the alternative hypothesis is of greater than or less than type then the test comes under one-tailed
test.
Specifically, if the alternative hypothesis is of greater than type, then the corresponding test comes under
right-one tailed test i.e., H1 : 0 . In case of right one tailed test, the size of the critical region or level of
If the alternative hypothesis is of less than type, then the corresponding test comes under left-one
tailed test i.e., H1 : 0 . In case of left one tailed test, the size of the critical region or level of significance
is located only left extreme end of the probability curve.
Z–critical values:
Procedure for testing hypothesis (or) Five step procedure for testing hypothesis: Various steps involved in testing
of hypothesis are given below
Step(1): Setup or construct null hypothesis H 0 ,by taking nature of the problem into consideration as well as the data
involved.
Step(2):Setup or construct alternative hypothesis H 1 , so that we could decide whether we should use one-tailed or
two-tailed.
Step (3): Select the appropriate level of significance depending on the reliability of the estimates and permissible
risk and get the critical value(s) from the respective tables, based on Step (2).
Step (4): Compute the test statistic value by using the corresponding test statistic. In case of large sample tests (n>30)
we use the following test statistic
t E t
Zcal ~ N 0,1 Where t be the statistic.
S .E.t
Step (5): We compare the test statistic value with the critical value(s),
If the test statistic value lies between the critical values Z /2 Zcal Z /2 (in case of two tailed test) (or)
Zcal Z (or) Z
cal Z , we accept the null hypothesis, otherwise, we reject the null hypothesis, that is, we
accept the alternative hypothesis.
Q.) Write down the test procedure for testing mean (large)
Test of significance for single mean: Suppose there is a large random sample of size 'n ' drawn from a population
having mean ' ' , variance '
2
' , and the sample mean ' x ' . Now, we want to test if there is any significant
Step (1):
H 0 : There is no significant difference between sample and population means.
i.e., H 0 : 0 .
Step (2): H1 : There is a significant difference between sample and population means.
i.e., H1 : 0 (two-tailed test)
Step (3): Let the level of significance be % and the critical values are
Z /2 and Z /2 .
x Ex x
Step (4): Test statistic Z cal ~ N 0,1
S .E . x / n
Step (5): The value of the test statistic lies between the critical values,
Test of significance for difference of two means: Let ‘ x1 ’ be the mean of a random sample of size ‘ n1 ’ drawn
from a population with mean ‘ 1 ’ and variance ’ 1 ’, and ‘ x2 ’ be the mean of an independent sample of size ‘ n2
2
’ drawn from another population with mean ‘ 2 ’ and variance ’ 2 ’, for testing if there is any significant difference
2
Step (3): Let the level of significance be % and the critical values are
Z /2 and Z /2 .
Step (4): Test statistic
x1 x2 1 2
12 22
n1 n2
x1 x2
~ N 0,1
12 22
n1 n2
Suppose the samples are taken from the populations having same
variance i.e., 12 22 2 .
Step (5): The value of the test statistic lies between the critical values,
Test of significance for single proportion: Suppose a random sample of size 'n ' is drawn from a population.
X
Among which ' X ' be the number of successes. Then the sample proportion of success is p and population
n
proportion of success is ' P ' . For testing the significant difference between the sample and population proportions,
we use the following 5 step procedure.
Step (1):
H 0 : There is no significant difference between sample and population
proportions. i.e., H 0 : P P0
Step (2):
H1 : There is a significant difference between sample and population
proportions. i.e., H1 : P P0 two tailed test
Step (3):Let the level of significance be % and the critical values are
Z /2 and Z /2 .
p E p pP
Step (4):Test statistic Z cal ~ N 0,1
S .E . p PQ
n
Step (5):The value of the test statistic lies between the critical values,
i.e., Z /2 Z cal Z /2 .We accept the null hypothesis, otherwise, we
reject the null hypothesis ( we accept alternative hypothesis).
Test of significance for difference of proportions: Suppose we want to compare two distinct populations with
respect to a certain attribute (qualitative characteristic). Let X1 and X 2 be the number of units possessing the given
attribute in large random samples of sizes n1 n
and 2 taken respectively from two different populations with
Zcal
p1 p2 E p1 p2
S .E. p1 p2
p1 p2 P1 P2
PQ PQ
1 1
2 2
n1 n2
p1 p2 X X 2 n1 p1 n2 p2
where Pˆ 1 = and Qˆ 1 Pˆ
n n n n
ˆ ˆ 1 1
PQ
1 2 1 2
n1 n2
Step (5): The value of the test statistic lies between the critical values,
i.e., Z /2 Z cal Z /2 .We accept the null hypothesis, otherwise, we
reject the null hypothesis ( we accept alternative hypothesis).
t – distribution (or) Student’s t – distribution: It is used for testing of hypothesis when the sample size is small
n 30 , population is normal from which sample is drawn and population standard deviation is unknown.
Def.: If x1, x2 ,......, xn be a random sample of size ' n ' drawn from a normal (or) approximately normal population
with mean ' ' and unknown variance, then
n
x
t x ~ t n1 ,
i
the test statistic ' t ' is defined by where x i 1
be the sample mean,
s/ n n
1 n
s xi x be the sample standard deviation.
2
n 1 i 1
Properties of t – distribution:
(1) The shape of t -distribution is bell-shaped, which is similar to that of a normal distribution and is symmetrical
about the mean.
Degrees of Freedom: It is the difference between the number of independent observations and the number of
estimated parameters by using that information.
1
2 / 2 / 2
2 / 2 1 2
e ;2 0
f
2
0; otherwise
Where ' ' is a positive integer is the only parameter of the distribution, also known as “degrees of freedom”.
Properties of Chi-square distribution:
(1) Chi-square distribution curve is not symmetrical, it lies entirely in the first quadrant and it varies from o to
.
(2) It depends only on degrees of freedom .
(3) If 12 and 22 are two independent Chi-square variates with and degrees of freedom then
1 2
F-distribution: The ratio of two independent chi-square variates divided by their respective degrees of freedom is F-
distribution.
s12
F 2 ~ F , , where 1 n1 1 and 2 n2 1 .
s2 1 2
Properties of F-distribution:
(1) It is free from population parameters and depends upon degrees of freedom only.
(2) F-distribution curve lies entirely in first-quadrant.
(3) F-distribution curve depends not only on two parameters 1 and 2 , but also on the order in which they
are stated.
1
(4) F1 1 2 , where F 1,2 is the value of ' F ' with 1 and 2 degrees of
F 1 ,2
,
freedom.
Step (1):
H 0 : There is no significant difference between sample and population means.
i.e., H 0 : 0 .
Step (2): H1 : There is a significant difference between sample and population means.
i.e., H1 : 0 (two - tailed test)
Step (3):Let the level of significance be % and the critical values are
1 n
xi x
2
Where s be the sample standard deviation.
n 1 i 1
Step (5):The value of the test statistic lies between the critical values,
Note: If t0.05/2 is the table value of ' t ' for n 1 degrees of freedom at 5% level of significance, then 95%
s
confidence limits for true mean ' ' are x t0.05/2 similarly, 99% confidence limits for true mean ' '
n
are x t0.01/2 s .
n
Test of significance for difference of two means (independent samples, small sample): Let x1, x2 ,....., xn1
and y1, y2 ,....., yn2 be two independent random samples of sizes n1 and n2 , whose means and variances are
x , y, sx2 and s 2y respectively drawn from two distinct populations with mean ‘ 1 ’ and ‘ 2 ’ respectively. For
testing if there is any significant difference between the population means, we use the following 5 step procedure
Step (3): Let the level of significance be % and the critical values are
tcal x y ~ t n n
2 2
1 1 1
s
n1 n2
( xi x ) ( y j y )2
2
n1 1 sx2 n2 1 s 2y
s
2 i 1 j 1
n1 n2 2 n1 n2 2
Step (5): The value of the test statistic lies between the critical values,
Note: If t0.05/2 is the table value of ' t ' for n1 n2 2 degrees of freedom at 5% level of significance, then
1 1
95% confidence limits for the difference of true means 1 2 are x y t0.05/2 s .
n1 n2
Similarly, 99% confidence limits for the difference of true means 1 2 are
1 1
x y t0.05/2 s .
n1 n2
Test of significance for difference of two means (dependent samples, small sample) (or) Paired t-test::
Suppose the two samples are dependent and they are drawn from same or distinct population, for testing the difference
between the means, we use Paired t- test.
n
Step (1): H 0 : d =0.
i 1
i
n
Step (2): H1 : d
i 1
i 0.
tcal d ~t
sd / n
n1
n
di
Where d i 1
, d i X i Yi and
n
1 n
sd n 1
(d i d ) 2
i 1
Step (5): The value of the test statistic lies between the critical values,
i.e., t and t .We accept the null hypothesis, otherwise, we
/2 /2
reject the null hypothesis ( we accept alternative hypothesis).
Test for significance of Variance (Chi-square test for variance):
x1, x2 ,....., xn 'n ' drawn from a population having variance ' '
2
Let be a sample of size and sample variance
' s ' . Now, we want to test if there is any significant difference between the sample and population variances. For
2
Step (1):
i.e., H0 : 2 02 .
Step (2):
2
Step (4): Test statistic cal xi x
n 2
n 1 s 2
~ 2n1
i 1 2
1 n
xi x
2
Where s be the sample standard deviation.
n 1 i 1
populations with variances 12 and 22 respectively. The sample variances are respectively s12 and s22 . For
testing if there is any significant difference between the population variances, we use the following 5 step procedure
i.e., H 0 : 12 22 .
Step (3): Let the level of significance be % and the critical values are
s12
Fcal ~ F n 1,n 1 , if s12 s22
s22 1 2
Step (5): The value of the test statistic lies between the critical values,
1
Note: F1 /2 .
F /2
Chi-square test for independence of attributes: Suppose the given population is classified according to two
attributes A, and B and the classification is dichotomous (each is classified into only two sub-classes). For testing if
there is any association between the attributes A and B, it is by Chi-square test for independence of attributes.
Ai Ai B j ; i 1, 2, 3,...., m ; B j Ai B j ; j 1, 2,3,...., n ; N Ai B j .
n m m n
j 1 i 1 i 1 j 1
If the test statistic value lies between the critical values, then we accept the null hypothesis, otherwise we reject the
null hypothesis.
Chi-square test for goodness of fit: Suppose a distribution is fitted to the given data. To test if the fitted distribution
is suitable or not, by Chi-square for goodness of fit.
H0: The fitted distribution is suitable.
n n
i.e., H0: There is no significant difference between the observed and expected
O E frequencies.
i 1
i
i 1
i
Q1). A sample of 400 items is taken from a population whose standard deviation is 10. The mean of the sample is 40.
Test whether the sample has come from a population with mean 38.
Solution:
From the given information, sample size n 400, sample mean x 40, population mean =38,
and population standard deviation 10.
Step 1: Null hypothesis H 0 : 38
Step 2: Alternative hypothesis H1 : 38
Step 3: It is two tailed test, since the alternate hypothesis is of not equality type .
Let the level of significance be = 0.05, then the critical values are Z 0.05/ 2 1.96.
x 40 38
Step 4: Test statistic Z cal 4.00.
/ n 10 / 400
Step 5: The value of the test statistic Z cal 4.00, does not lies between the critical values
Z 0.05/ 2 1.96. It falls in rejection region, we reject the null hypothesis.
Therefore, there is enough evidence to conclude that the sample has come from a population
with mean 38.
Q2). A sample of 64 students have a mean weight of 70 kgs. Can this be regarded as a sample from a population with
mean weight 56 kgs and standard deviation 25 kgs. at 1% level of significance.
Solution:
From the given information, sample size n 64, sample mean x 70, population mean =56,
and population standard deviation 25.
Step 1: Null hypothesis H 0 : 56
Step 2: Alternative hypothesis H1 : 56
Step 3: It is two tailed test, since the alternate hypothesis is of not equality type .
Level of significance be = 0.01, then the critical values are Z 0.01/2 2.58.
Solution:
From the given information, sample size n 64, sample mean x 5.23, population mean =5.5,
and sample standard deviation s 0.24.
Step 1: Null hypothesis H 0 : 5.5
Step 2: Alternative hypothesis H1 : 5.5
Step 3: It is one tailed test, since the alternate hypothesis is of inequality type .
Level of significance be = 0.05, then the critical value is t 0.05,63 1.671.
x 5.23 5.5
Step 4: Test statistic tcal 9.0.
s / n 0.24 / 64
Step 5: The value of the test statistic tcal 9.0, less than the critical value
t 0.05,63 1.671. It falls in rejection region, we reject the null hypothesis.
There is enough evidence to conclude that 5.5 at 1% level of significance.
Q6). The heights of 10 males of a given locality are found to be 70, 67, 62, 68, 61, 68, 70, 64, 64, and 66 inches. Is it
reasonable to believe that the average height is greater than 64 inches at 5% level of significance?
Solution:
x i
660
Sample mean is x i 1
66,
n 10
1 n
Sample standard deviation is s
n 1 i 1
( xi x ) 2 3.1623,
Degrees of freedom n 1 10 1 9.
Null Hypothesis H 0 : 64
Alternative Hypothesis H A : 64
Level of significance 0.05, then the critical value is t ,n 1 t 0.05,9 1.833.
x 66 64
Test statistic tcal 2.00.
s / n 3.1623 / 10
Solution:
x i
41
Sample mean is x i 1
4.1,
n 10
1 n
Sample standard deviation is s
n 1 i 1
( xi x ) 2 1.1747,
Degrees of freedom n 1 10 1 9.
Null Hypothesis H 0 : 4
Alternative Hypothesis H1 : 4
Let the level of significance be 0.05, then the critical values are t /2,n1 t 0.05/ 2,9 2.262.
x 4.1 4.0
Test statistic tcal 0.2692.
s / n 1.1747 / 10
The value of the test statistic tcal 0.2692 lies between the critical values
t /2,n 1 2.262. It falls in acceptance region.
We fail to reject the null hypothesis.
Yes, we can accept the hypothesis that the average life time of bulbs is 4000 hrs.
Q8). A manufacturer claimed that at least 95% of the equipment which he supplied to a factory confirmed
specifications. An examination of a sample of 200 pieces of equipment revealed that 18 were faulty. Test his claim
at 5% level of significance.
Solution:
From the given information, size of the sample n 200, no. of equipments
confirming specification X 200 18 182, and population proportion of
equipments confirmed to specification P 95%.
X 182
Sample proportion p 0.91.
n 200
Solution:
From the given information, size of the sample n 1000, no. of rice eaters X 540.
X 540
Sample proportion p 0.54.
n 1000
Q10). An urban community would like to show that the incidence of breast cancer is higher than in a nearby rural
area. If it is found that 20 of 200 adult women in the urban community have breast cancer and 10 of 150 adult women
in the rural community have breast cancer, can we conclude at the 0.01 level of significance that breast cancer is more
prevalent in the urban community?
Solution:
Solution:
Solution:
Null hypothesis H 0 : 1 2
Alternative hypothesis H a : 1 2
The Student's t. We assume that both population distributions are approximately normal
with unknown standard deviations.
Level of signifcance be = 0.01, then the critical values are t0.01/2,198 2.576.
1 2
n1 n2 100 100
The value of the test statistic tcal 5.22 does not lies between the critical value,
it falls in the rejection region, we reject the null hypothesis.
There is sufficient evidence to conclude that the difference of means is significant.
Q13). A manufacturer claims that the average tensile strength of thread A exceed the average tensile strength of thread
B by at least 12 kilograms. To test his claim, 50 pieces of each type of thread are tested under similar conditions.
Type A thread had an average tensile strength of 86.7 kilograms with known standard deviation of A 6.28
kilograms, while Type B thread had an average tensile strength of 77.8 kilograms with known standard deviation of
B 5.61 kilograms. Test the manufacturers claim at 0.01 level of significance.
n1 n2 50 50
The value of the test statistic tcal 5.22 does not lies between the critical value,
it falls in the rejection region, we reject the null hypothesis.
There is sufficient evidence to conclude that the difference of means is significant.
Q14). The height of 6 randomly chosen sailors is, inches 63, 65, 68, 69, 71, and 72. Those of 9 randomly chosen
soldiers are 61, 62, 65, 66, 69, 70, 71, 72, and 73. Test whether the sailors are on the average taller than soldiers. Use
a 0.05 level of significance.
Solution:
x i
1
From the given information , for Sailors: x1 68, s x x 3.46,
i 2
i 1
n1
1
n 1
1 i
j x j 1
n1 6,for Soldiers: x2 67.67, s2 x x2 4.36, and n2 9.
2
n2 n2 1 j
j
Null hypothesis H 0 : 1 2
Alternative hypothesis H a : 1 2
Level of significance = 0.05 then the critical values are t 0.05,13 1.771,
degrees of freedom n1 n2 2 6 9 2 13.
Solution:
The value of the test statistic greater than the critical value, we reject the null hypothesis,
otherwise,we fail to reject the null hypothesis.
10
d i
The mean of the differences is d i 1
5.00,
10
n
1
di d 7.32.
2
standard deviation of the differences sd
n 1 i 1
d 5.00
The test statistic tcal 2.16.
sd / n
7.32 / 10
The test statistic value tcal =2.16 greater than the critical value t 0.05,9 1.833.
It falls in the rejection region, we reject the null hypothesis.
Therefore, there is enough evidence to conclude that t he intensive training is useful.
Q16). The following random samples are measurements of heat producing capacity in millions of calories per ton of
specimens of coal from two mines.
Mine 1 8260 8130 8350 8070 8340
Mine 2 7950 7890 7900 8140 7920 7840
Use 0.01 level of significance to test whether the difference between the means of these two samples is significant?
Solution:
1 i
j x j 1
for Mine-2: x2 7940, s2
104.5, and n2 6. x x2
2
n2 n 1 2
j
j
Null hypothesis H 0 : 1 2
Alternative hypothesis H a : 1 2
Level of significance = 0.01 then the critical values are t 0.01/2,9 3.2498,
degrees of freedom n1 n2 2 5 6 2 9.
Before 45 73 46 124 33 57 83 34 26 17
After 36 60 44 119 35 51 77 29 24 11
Solution:
Appropriate test for this data is Paired t test. Since, the observatios are dependent.
Level of significance be 0.05 then the critical value is t 0.05,10 1 1.833.
The value of the test statistic greater than the critical value, we reject the null hypothesis,
otherwise,we fail to reject the null hypothesis.
10
d i
The mean of the differences is d i 1
5.20,
10
x i
From the given information , for Horse-A: x1 i
31.29,
n1
1
s x x 2.29, n1 7.
2
1 i 1
n 1
1 i
j x j 1
for Horse-B: x2 28.17, s x x2 2.32, and n2 6.
2
n2 2
n2 1 j
j
Null hypothesis H 0 : 1 2
Alternative hypothesis H a : 1 2
Let the level of significance be = 0.05 then the critical values are t 0.05/2,11 2.201,
degrees of freedom n1 n2 2 7 6 2 11.
From the given information, for Urban: X 1 63, n1 100, for Suburban: X 2 59, and n2 125.
X1 63 X2 59
sample proportions pˆ 1 0.63, pˆ 2 0.472.
n1 100 n2 125
Null hypothesis H 0 : P1 P2
Alternative hypothesis H a : P1 P2
Let the level of significance be = 0.05, then the critical values are Z 0.05/2 1.96.
X X2 63 59
Pooled proportion Pˆ 1 0.542
n1 n2 100 125
and Qˆ 1 Pˆ 1 0.542 0.458
Solution:
x i
678
Sample mean is x i 1
67.8,
n 10
1 n
Sample standard deviation is s
n 1 i 1
( xi x ) 2 3.011,
Degrees of freedom n 1 10 1 9.
Solution:
Q22). Five measurements of tar content of certain kind of cigarette yielded 14.5, 14.2, 14.4, 14.3, and 14.6 milligrams
per cigarette. Show that the difference between the mean of this sample and the average tar claimed by the
manufacturer μ=14.0 mg/cigarette is significant at α=0.05?
Solution:
x i
Sample mean is x i 1
14.4,
n
1 n
Sample standard deviation is s
n 1 i 1
( xi x ) 2 0.158,
Degrees of freedom n 1 5 1 4.
Null Hypothesis H 0 : 14
Alternative Hypothesis H A : 14
Level of significance 0.05, then the critical value is t / 2, n1 t 0.05/2,4 2.776.
x 14.4 14
Test statistic tcal 5.66.
s / n 0.158 / 5
The value of the test statistic tcal 5.66 does not lies between the critical values
t / 2,n 1 2.776. It falls in the rejection region.
We reject the null hypothesis.
Therefore, there is no enough evidence to conclude that the difference between the
mean of this sample and the average tar claimed by the manufacturer 14.0 mg / cigarette
is significant at 0.05
Q23). An insurance agent has claimed that the average age of policy holders who insure through him is less than the
average for all their agents which is 30.5 years. A random sample of 100 policy holders who had insured through him
reveal that the mean and S.D. are 28.8 years and 6.35 years respectively. Test his claim at 5% level of significance?
Solution:
From the given information, sample size n 100, sample mean x 28.8, population mean =30.5,
and sample standard deviation S 6.35.
Step 1: Null hypothesis H 0 : 30.5
Step 2: Alternative hypothesis H1 : 30.5
Step 3: It is one tailed test, since the alternate hypothesis is of inequality type .
Level of significance be = 0.05, then the critical value is Z 0.05 1.645.
x 28.8 30.5
Step 4: Test statistic Z cal 2.677.
/ n 6.35 / 100
Step 5: The value of the test statistic Z cal 2.677, less than the critical value
Z 0.05 1.645. It falls in rejection region, we reject the null hypothesis.
Solution:
X 50
Sample proportion of top quality products p 0.125.
n 400
Level of significance = 0.05, then the critical values are Z 0.05 / 2 1.96 and Z 0.05/ 2 1.96.
Therefore, there is no enough evidence to conclude that 20% of a manufactured product is of the top quality.
Q25). A sample of size 400 was drawn and the sample mean was found to be 99. Test whether this sample could
have come from a population with mean 100 and variance 64 at 5% level of significance.
Solution:
From the given information, sample size n 400, sample mean x 99, population mean =100,
and population variance 2 64.
Step 1: Null hypothesis H 0 : 100
Step 2: Alternative hypothesis H1 : 100
Step 3: It is two tailed test, since the alternate hypothesis is of not equality type .
Level of significance be = 0.05, then the critical values are Z 0.05/ 2 1.96.
x 99 100
Step 4: Test statistic Z cal 2.50.
/ n 8 / 400
Step 5: The value of the test statistic Z cal 2.50, does not lies between the critical values
Z 0.05/ 2 1.96. It falls in rejection region, we reject the null hypothesis.
Solution:
From the given information, sample size n 105, sample mean x 10, population mean =12,
and population standard deviation 4.
Step 1: Null hypothesis H 0 : 12
Step 2: Alternative hypothesis H1 : 12
Step 3: It is two tailed test, since the alternate hypothesis is of not equality type .
Let the level of significance be = 0.05, then the critical values are Z 0.05/ 2 1.96.
x 10 12
Step 4: Test statistic Z cal 5.1235.
/ n 4 / 105
Step 5: The value of the test statistic Z cal 5.1235, does not lies between the critical values
Z 0.05/ 2 1.96. It falls in rejection region, we reject the null hypothesis.
Therefore, there is no enough evidence to conclude that the given sample is drawn from a population whose mean is
12 ft. and standard deviation is 4 ft.
Q27). A manufacturer claims that the mean breaking strength of a cable is 8 kgs, with a standard deviation of 0.5kg.
Test the hypothesis that the mean μ=8 kgs against μ≠ 8 kgs if a random sample of 50 cables is tested and found to
have a mean breaking strength of 7.8 kgs. Use 0.01 level of significance.
Solution:
From the given information, sample size n 50, sample mean x 7.8kgs, population mean =8kgs,
population standard deviation 0.5kg , and level of significance =0.01.
Step 1: Null hypothesis H 0 : 8
Step 2: Alternative hypothesis H1 : 8
Step 3: It is two tailed test, since the alternate hypothesis is of not equality type .
Level of significance be = 0.01, then the critical values are Z 0.01/2 2.58.
x 7.8 8
Step 4: Test statistic Z cal 2.8284.
/ n 0.5 / 50
Step 5: The value of the test statistic Z cal 2.8284, does not lies between the critical values
Z 0.01/ 2 2.58. It falls in rejection region, we reject the null hypothesis.
Therefore, there is no enough evidence to conclude that the mean breaking strength of cable is 8 kgs.
Q28). A manufacturer of a medicine claimed that it was 90% effective in relieving an allergy in 8 hours. In a
sample of 200 people who had the allergy, the medicine provided relief for 160 people. Determine whether the
manufacturer’s claim is legitimate at 0.01 level of significance.