0% found this document useful (0 votes)
123 views22 pages

Hypothesis Testing-1,2

Here are the steps to solve this problem: 1) The confidence level is 95% = 0.95 2) The margin of error is ±3% = 0.03 3) Since we are estimating a percentage, we can assume a population proportion of p=0.5 to get the maximum sample size. 4) Using the formula for sample size calculation for proportions: n = (Zα/2)2 * p(1-p) / e2 Where, Zα/2 = 1.96 (for 95% confidence level) p = 0.5 e = margin of error = 0.03 5) Plugging in the values, we get: n =

Uploaded by

Said Varshik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views22 pages

Hypothesis Testing-1,2

Here are the steps to solve this problem: 1) The confidence level is 95% = 0.95 2) The margin of error is ±3% = 0.03 3) Since we are estimating a percentage, we can assume a population proportion of p=0.5 to get the maximum sample size. 4) Using the formula for sample size calculation for proportions: n = (Zα/2)2 * p(1-p) / e2 Where, Zα/2 = 1.96 (for 95% confidence level) p = 0.5 e = margin of error = 0.03 5) Plugging in the values, we get: n =

Uploaded by

Said Varshik
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Hypothesis Testing

Proposition: It is a statement about observable


phenomena(concepts) that may be judged as
true or false.

Hypothesis: It is a formulated proposition for


empirical testing.

A hypothesis is of a tentative and conjectural


nature.
Null hypothesis(𝐇𝟎 ): A statement in which no
difference or effect is expected.

If the null hypothesis is not rejected ,no change


will be made.

Alternative hypothesis (𝐇𝟏 ): A statement that


some difference or effect is expected.

Accepting the alternative hypothesis will lead to


changes in opinions or actions.
One-tailed test: A test of the null hypothesis
where the alternative hypothesis is expressed
directionally.
Right tail test
H0 : P ≤ 0.4
H1 : P ˃ 0.4

Left tail test


H0 : P ≥ 0.4
H1 : P ˂ 0.4
Two-tailed test: A test of the null hypothesis
where the alternative hypothesis is not
expressed directionally.
H0 : P = 0.4
H1 : P ≠ 0.4
Test statistic
A measure of how close the sample has come to
the null hypothesis
𝑡−𝜃
Z=
𝑆𝐸(𝑡)
It often follows a well known distribution,such
as normal, t or chi-square distribution
Test-Statistic Used for
(i) Z-test For test of Hypothesis involving large sample i.e. > 30
(ii) t-test For test of Hypothesis involving small sample i.e. ≤30 and
if is σ unknown
(iii) χ𝟐 - test For testing the discrepancy between observed
frequencies and expected frequencies without any
reference to population parameter
(iv) F-test For testing the sample variances.
Statistical Decision of the Test
True Situation
H0 is the True H0 if False
Accept H0 Correct Decision(1-α) Type-II Error (β)

Reject H0 Type-I Error(α) Correct Decision(1-β)

Type I error: Also known as alpha error, it occurs


when the sample results lead to the rejection of a
null hypothesis that is in fact true.

Type II error: Also known as beta error, it occurs


when the sample results lead to the acceptance of a
null hypothesis that is in fact false.
α =The Probability of doing Type I error

Β =The Probability of doing Type II error

Level of significance(α): It is the Probability of


doing Type I error

Power of a test(1-β): The Probability of rejecting


null hypothesis when it is in fact false and
should be rejected
Critical value 𝑍𝛼 at 𝛼% level of significance
Level of
Type of Test Significance
1% 5%
1. Two-tailed 2.58 1.96
2. One-tailed
-Right tail +2.33 +1.645
-Left tail -2.33 -1.645
A General Procedure for hypothesis testing
1.Formulate the null hypothesis and alternative
hypothesis.
2.Select an appropriate test
3.Choose the level of significance
4.Collect data and calculate the test
statistic(𝑍𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 ).
5.Determine the critical value of the test(𝑍𝑡𝑎𝑏𝑢𝑙𝑎𝑟 )
6.Make a statistical decision
If 𝑍𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 < 𝑍𝑡𝑎𝑏𝑢𝑙𝑎𝑟 then H0 is accepted
𝑍𝑐𝑎𝑙𝑐𝑢𝑙𝑎𝑡𝑒𝑑 > 𝑍𝑡𝑎𝑏𝑢𝑙𝑎𝑟 then H0 is rejected
7.Express the statistical decision in to research decision
1. Test for Mean of any Z= 𝑿ഥ −μ
ഥ)
𝑺𝑬(𝑿
random sample if σ
population standard 𝑺𝑬(𝑿 ഥ)=
𝒏
deviation ( ) is known Or
𝑺
𝑺𝑬(𝑿ഥ)=
𝒏

ഥ = Sample mean
Where, 𝑿
μ= population mean

Where, σ = population S.D.


S = population S.D.

n= sample size

Note: In case of finite population, the standard error has to be multiplied by the
𝑁−𝑛
finite population multiplier,
𝑁−1
Case Study - 1.Phillips company claims that the
length of life of its electric bulbs 2000 hours with
standard deviation of 30 hours. A random
sample of 25 showed an average life of 1940
hours with a standard deviation of 25 hours. At
5% level of significance can we conclude that
the sample has come from a population with
mean of 2000 hours?
Discussion of Case Study - 1.
Hint: 𝑯𝟎 can be confirmed from the statement
of claim / conclusion, if population standard
deviation is given then sample standard
deviation is redundant.
Discussion of Case Study - 1.
• Hint: 𝑯𝟎 can be confirmed from the statement of claim / conclusion, if
population standard deviation is given then sample standard deviation is
redundant.

• Solution:
• Give ∝= 𝟓%, 𝒙 ഥ = 𝟏𝟗𝟒𝟎, 𝝁 = 𝟐𝟎𝟎𝟎, 𝝈 = 𝟑𝟎, 𝑺 = 𝟐𝟓, 𝒏 = 𝟐𝟓
• 𝑯𝟎 : 𝝁 = 𝟐𝟎𝟎𝟎 𝒉𝒐𝒖𝒓𝒔
• 𝑯𝟏 : 𝝁 ≠ 𝟐𝟎𝟎𝟎 𝒉𝒐𝒖𝒓𝒔 (two tailed test)
• 𝒕=𝒙 ഥ
𝝈 𝟑𝟎
• 𝒙) =
S.E (ഥ = =𝟔
𝒏 𝟐𝟓

𝒙−𝝁 𝟏𝟗𝟒𝟎−𝟐𝟎𝟎𝟎
• Z = 𝑺.𝑬(ഥ𝒙) = = −𝟏𝟎
𝟔
• 𝒁𝒕𝒂𝒃𝒖𝒍𝒂𝒓 = −𝟏𝟎 = 𝟏𝟎
• 𝒁𝒕𝒂𝒃𝒖𝒍𝒂𝒓 = 𝒁𝟎.𝟎𝟓 = 𝟏. 𝟗𝟔
• 𝒁𝒄𝒂𝒍 > 𝒁𝒕𝒂𝒃

• Since the calculated value of 𝒁 is greater than the tabular value, 𝑯𝟎 is rejected.
• The sample has not come from a population with mean 2000.
Case Study - 2. A pharma company hypothesizes
that the effect of a certain sedative is 13 hours
with a known standard deviation of 2 hours.
From a sample of 16 patients, it is found that
the sample mean to be 12 hours. At 0.01 level of
significance, should be company conclude that
the average effect of the sedative is less than or
equal to 13 hours.
Discussion of Case Study - 2.
Hint: Less than or equal is null hypothesis.
Discussion of Case Study - 2.
Hint: Less than or equal is null hypothesis.
Given 𝝁𝟎 = 𝟏𝟑, 𝝈 = 𝟐, 𝒏 = 𝟏𝟔, 𝒙 ഥ = 𝟏𝟐
∝= 𝟎. 𝟎𝟏
𝑯𝟎 : 𝝁 ≤ 𝟏𝟑
𝑯𝟏 : 𝝁 > 𝟏𝟑 (one tailed)
𝝈 𝟐 𝟐 𝟏
𝒙) =
S.E (ഥ = = = = 𝟎. 𝟓
𝒏 𝟏𝟔 𝟒 𝟐
ഥ−𝝁
𝒙 𝟏𝟐−𝟏𝟑
Z= = = −𝟐
𝑺.𝑬(ഥ
𝒙) 𝟎.𝟓
𝒁𝒄𝒂𝒍𝒄𝒖𝒍𝒂𝒕𝒆𝒅 = 𝟐
𝒁𝒕𝒂𝒃𝒖𝒍𝒂𝒓 = 𝒁𝟎.𝟎𝟏 = 𝟐. 𝟑𝟑 (one tailed)
𝑺𝒊𝒏𝒄𝒆 𝒁𝒄𝒂𝒍 < 𝒁𝟎.𝟎𝟏 = 𝟐. 𝟑𝟑,

𝑯𝟎 is accepted. Hence the average effect of the sedative is


less than or equal to 13 hours.
Case Study - 3. In order to test whether the
average weekly maintenance cost of a fleet of
buses is more than Rs.500, a random sample of
49 buses was taken. The mean and the standard
deviation were found to be Rs.506 and Rs.42.
Assume α = 0.05
Discussion of Case Study - 3.
Hint: Sample standard deviation is used in S.E.
as 𝝈 is unknown, more than 𝝁𝟏
Discussion of Case Study - 3.
Hint: Sample standard deviation is used in S.E. as 𝝈 is
unknown, more than 𝝁𝟏
Given 𝝁𝟎 = 𝟓𝟎𝟎, 𝒏 = 𝟒𝟗, 𝒙 = 𝟓𝟎𝟔, 𝑺 = 𝟒𝟐, ∝=
𝟎. 𝟎𝟓
𝑯𝟎 : 𝝁 ≤ 𝟓𝟎𝟎
𝝁𝟏 : 𝝁 > 𝟓𝟎𝟎 (one tailed)
𝑺 𝟒𝟐
𝒙) = =
SE (ഥ = 𝟔
𝒏 𝟒𝟗
ഥ−𝝁
𝒙 𝟓𝟎𝟔−𝟓𝟎𝟎
Z= = =𝟏
𝑺.𝑬(ഥ
𝒙) 𝟔
𝒁𝒕𝒂𝒃𝒖𝒍𝒂𝒓 = 𝒁𝟎.𝟎𝟓 =1.645 (one tailed)
Since 𝒁𝑪𝒂𝒍 < 𝒁𝒕𝒂𝒃 = 𝟏. 𝟔𝟒𝟓, 𝑯𝟎 𝒊𝒔 𝒂𝒄𝒄𝒆𝒑𝒕𝒆𝒅
Hence, the average weekly maintenance cost of a fleet
of bases is not more than Rs.500.
Sample Size Determination based on
Precision Rate and Confidence
𝑡−𝜃
Z=
𝑆𝐸(𝑡)
Where 𝜃 ϵ [t –Z. 𝑆𝐸(𝑡), t +Z. 𝑆𝐸(𝑡)],
i.e, The parameter , 𝜃 has a chance of belonging to the
confidence interval with the lower limit t –Z. 𝑆𝐸(𝑡) to the
upper limit t +Z. 𝑆𝐸(𝑡).
i.e ,There is a chance of getting 𝜃 if one searches with in the
distance of Z. 𝑆𝐸(𝑡) with reference to t.
i.e There is a confidence of getting 𝜃 at a distance of Z.
𝑆𝐸(𝑡) either to the left or to the right of t.
Hence Z. 𝑆𝐸(𝑡) is the acceptance error which is known as
the desired precision.
e= Error of acceptance= Precision=Z𝜶 . 𝑺𝑬(𝒕)
Case Study-I:
Determine the size of the sample for estimating
the true weight of the cereal containers for the
universe with N=5000 on the basis of the
following information:
(1) The variance of weight = 4 ounces on the
basis of past records
(2) Estimate should be with in 0.8 ounces of the
true average weight with 99% probability.
Will there be a change in the size of the sample
if we assume infinite population in the above
given case ?
Case Study- II:
Suppose a certain hotel management is
interested in determining the percentage of the
hotel’s guess who stay for more than 3 days.The
reservation manager wants to be 95 percent
confident that the percentage has been
estimated to be within ± 3% of the true value.
What is the most conservative sample size
needed for this problem ?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy