09test+of+hypothesis+small+sample.ppt - copy (2) - copy
TRANSCRIPT
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 1/37
Quantitative Methods
Varsha Varde
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 2/37
Varsha Varde 2
� Contents:
� 1. Introduction
� 2. Student¶s t distribution� 3. Small-sample inferences about a population
mean
� 4. Small-sample inferences about the difference
between two means: Independent Samples
� 5. Small-sample inferences about the difference
between two means: Paired Samples
� 6. Inferences about a population variance� 7. Comparing two population variances
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 3/37
Introduction
� When the sample size is small we only
deal with normal populations.
� For non-normal (e.g. binomial) populations
different techniques are necessary
Varsha Varde 3
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 4/37
Summary of Test Statistics to be Used in aSummary of Test Statistics to be Used in a
Hypothesis Test about a Population MeanHypothesis Test about a Population Mean
nn >> 30 ?30 ?
known ?known ?Popul.Popul.
approx.approx.
normalnormal??
known ?known ?
UseUse ss totoestimateestimate
UseUse ss toto
EstimateEstimate
IncreaseIncrease nntoto >> 3030/
x
z
n
Q
W
!
/
x
z
s n
Q!
/
x
z
n
Q
W
!
/
xt
s n
Q!
YesYes
YesYes
YesY
es
YesYes
NoNo
NoNo
NoNo
NoNo
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 5/37
Student¶s t Distribution
� For small samples (n < 30) from normal
populations, we have� z =x¯ - µ/ /¥n
� If is unknown, we use s instead; but we
no more have a Z distribution� Assumptions.
� 1. Sampled population is normal
� 2. Small random sample (n < 30)� 3. is unknown
� t =x¯ - µ/s/¥nVarsha Varde 5
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 6/37
Properties of the t Distribution:
� (i) It has n - 1 degrees of freedom (df)
� (ii) Like the normal distribution it has a symmetricmound-shaped probability distribution
� (iii) More variable (flat) than the normal distribution
� (iv) The distribution depends on the degrees of freedom.
Moreover, as n becomes larger, t converges to Z.
� (v) Critical values (tail probabilities) are obtained from
the t table
� Examples.
� (i) Find t 0.05,5
= 2.015
� (ii) Find t 0.005,8 = 3.355
� (iii) Find t 0.025,26 = 2.056
Varsha Varde 6
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 7/37
Small-Sample Inferences About a Population Mean
� Parameter of interest: µ
� Sample data: n, x¯, s� Other information: µ0 = target value ;
� Point estimator: x¯
� Estimator mean: µ x¯ = µ
� Estimated standard error x¯ = s/¥n� Confidence Interval for µ :
� x ± t / 2 ,n-1 (s/¥n )
Varsha Varde 7
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 8/37
Student¶s t test� Test: H 0 : µ = µ0
� H a : 1) µ > µ0; 2) µ < µ0; 3) µ = µ0.
� Critical value: either t ,n-1 or t / 2 ,n-1
� T.S. : t = x¯-µ0 /s/¥n
� RR:1) Reject H 0 if t > t ,n-1
� 2) Reject H 0 if t < -t ,n-1
� 3) Reject H 0 if t > t / 2 ,n-1 or t < -t / 2,n-1
� Decision: 1) if observed value is in RR: ³Reject H 0´
� 2) if observed value is not in RR: ³Do not reject H 0´
� Conclusion: At 100% significance level there is (in)sufficient statistical evidence to ³favor H a´ .
� Assumptions.1. Small sample (n < 30)� 2. Sample is randomly selected
� 3. Normal population
� 4. Unknown variance
Varsha Varde 8
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 9/37
Example� Example: It is claimed that weight loss in a new diet
program is at least 20 pounds during the first month.
Formulate &Test the appropriate hypothesis
� Sample data: n = 25, x¯ =19.3, s2 = 25, µ0 = 20, =0.05
� Critical value: t 0.05,24 = -1.711
� H 0 : µ � 20 (µ is greater than or equal to 20 )
� H a : µ < 20,� T.S.:t =(x¯ - µ0 )/s/¥n=(19.3 20)/ 5 /¥25 =-0.7
� RR: Reject H 0 if t <-1.711
� Decision: Reject H 0
� Conclusion: At 5% significance level there is insufficient
statistical evidence to conclude that weight loss in a new
diet program exceeds 20 pounds per first month.
Varsha Varde 9
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 10/37
Two Means: Independent Samples
� Parameter of interest: µ1 - µ2
� Sample data:Sample 1: n1, x 1, s1 ;Sample 2: n2, x 2, s2
� Other information: D0 = target value ; � Point estimator: X¯ 1 X¯ 2� Estimator mean: µ X¯1 X¯2= µ1 - µ2
� Assumptions.
� 1. Normal populations 2. Small samples ( n1 < 30; n2 < 30)
� 3. Samples are randomly selected4. Samples are independent
� 5. Variances are equal with common variance
� 2 = 21 = 22
� Pooled estimator for .
� s = ¥[(n1 - 1)s21 + (n2 - 1)s2
2
] /(n1 + n2 2)� Estimator standard error:
� X¯1 X¯2= ¥ (1/n1+1/n2 )
� Confidence Interval:
� ( x¯ 1 - x¯ 2 ) ± (t /2 ,n1+n2-2 )(s ¥1/n1+1/n2)
Varsha Varde 10
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 11/37
Two Means: Independent Samples
� Test:H
0 : µ1 - µ2 = D0 � H a : 1)µ1 - µ2 > D0 or
2) µ1 - µ2 < D0 or
3) µ1 - µ2 = D0
� T.S. :t =( x¯ 1 - x¯ 2 ) - D 0 /s ¥1/n1+ 1/n2
� RR: 1) Reject H 0 if t > t ,n1+n2-2
2) Reject H 0 if t < - t ,n1+n2-2
3) Reject H 0 if t > t /2,n1+n2-2 or t < - t /2,n1+n2-2
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 12/37
Example.(Comparison of two weight loss programs)
� Refer to the weight loss example. Test the hypothesis that weight
loss in a new diet program is different from that of an old program.
We are told that that the observed value of Test Statistics is 2.2 and we know that
� Sample 1 : n1 = 7 ; Sample 2 : n2 = 8 ; = 0.05
� Solution.
�H
0 : µ1 - µ2 = 0 � H a : µ1 - µ2 �0
� T.S. :t =( x 1 - x 2 ) 0/s ¥1/n1+ 1/n2= 2.2
� Critical value: t.025,13 = 2.16
� RR: Reject H 0 if t > 2.160 or t < -2.160
� Decision: Reject H 0
� Conclusion: At 5% significance level there is sufficient
statistical evidence to conclude that weight loss in the
two diet programs are differentVarsha Varde 12
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 13/37
ma - amp e n erences ou e erence
Between
Two Means: Paired Samples
� Parameter of interest: µ1 - µ2 = µd
� Sample of paired differences data:
� Sample : n = number of pairs, d¯ = sample mean, sd
� Other information: D0 = target value,
� Point estimator: d¯ � Estimator mean: µd¯ = µd
� Assumptions.
� 1. Normal populations
� 2. Small samples ( n1 < 30; n2 < 30)� 3. Samples are randomly selected
� 4. Samples are paired (not independent)
Varsha Varde 13
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 14/37
� Sample standard deviation of the sample
of n paired differences
n� sd = ¥ (d i - ¯d)2 / n-1i=1
� Estimator standard error: d = sd /¥n� Confidence Interval.
� ¯d ± t /2,n-1sd /¥n
Varsha Varde 14
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 15/37
Test.� H 0 : µ1 - µ2 = D0 (equivalently, µd = D0 )
� H a : 1) µ1 - µ2 = µd > D0 ;
� 2) µ1 - µ2 = µd < D0 ;� 3) µ1 - µ2 = µd = D0 ,
� T.S. :t =¯d - D0 /sd /¥n
� RR:
� 1) Reject H 0 if t > t , n-1
� 2) Reject H 0 if t < -t ,n-1
� 3) Reject H 0 if t > t /2,n-1 or t < -t /2,n-1
Varsha Varde 15
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 16/37
Example.� A manufacturer wishes to compare wearing qualities of
two different types of tires, A
and B. For the comparisona tire of type A and one of type B are randomly assigned
and mounted on the rear wheels of each of five
automobiles. The automobiles are then operated for a
specified number of miles, and the amount of wear is
recorded for each tire. These measurements aretabulated below.
� Automobile Tire A Tire B
� 1 10.6 10.2
� 2 9.8 9.4� 3 12.3 11.8
� 4 9.7 9.1
� 5 8.8 8.3
� Varsha Varde 16
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 17/37
� x¯ 1 = 10.24 x¯ 2 = 9.76
� Using the previous section test we would have t = 0.57 resulting inan insignificant test which is inconsistent with the data.
� Automobile Tire A Tire B d=A-B
� 1 10.6 10.2 0.4
� 2 9.8 9.4 0.4
� 3 12.3 11.8 0.5
� 4 9.7 9.1 0.6
� 5 8.8 8.3 0.5� x¯1 = 10.24 x¯2 = 9.76 d¯ =0 .48
� Q1: Provide a summary of the data in the above table.
� Sample summary: n = 5, d ¯= .48, sd = .0837
Varsha Varde 17
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 18/37
� Q2: Do the data provide sufficient evidence to indicate a
difference in average wear for the two tire types.� Test. (parameter µ d = µ 1 - µ 2 )
� H 0 : µd = 0
� H a : µd � 0
� T.S. :t =d ̄ - D0 /sd /¥n� =.48 0/.0837/¥5 = 12.8
� RR: Reject H 0 if t > 2.776 or t < -2.776 ( t .025,4 = 2.776)
� Decision: Reject H 0
� Conclusion: At 5% significance level there is sufficientstatistical evidence to to conclude that the average
amount of wear for type A tire is different from that for
type B tire.
� Exercise. Construct a 99% confidence interval for thedifference in average wear for the two tire types.18
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 19/37
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 20/37
Inferences About a Population Variance� Test.H 0 : 2 = 20
� H a : 2
�
20 (two-tailed test).
� H a : 2 < 20 (One ±tailed test )
� T.S. : X 2 =(n - 1)s2 / 20
� RR: (two-tailed test).
� Reject H 0 if X 2 > X 2/2 or X 2 < X 2 1-/2 where� X 2 is based on (n - 1) degrees of freedom.
� RR: (One-tailed test).
� Reject H 0 if X 2 < X 2 1- where
� X 2 is based on (n - 1) degrees of freedom
� Assumptions.
� 1. Normal population
� 2. Random sampleVarsha Varde 20
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 21/37
Example
� Future Technologies ltd. manufactures high
resolution telescopes .The management wantsits products to have a variation of less than 2 sd
in resolution while focusing on objects which are
beyond 500 light years. When they tested their
newly manufactured telescope for 30 times tofocus on an object 500 light years away they
found sample sd to be 1.46. State the
Hypothesis and test it at 1% level of significance.
Can the management accept to sell thisproduct?
Varsha Varde 21
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 22/37
Solution� Given ,n=30 and S2=(1.46)2, 20 =4 We set up hypothesis
� H0: 2 =4
� Ha: 2< 4
� Significance Level =1%=.01
� This is a one tailed test
� T.S = X 2 =(n - 1)s2 / 20= (30-1)(1.46)2/4=15.45
� Referring to X 2 tables we find at 29 d.f the value of X 2
that leaves an area of 1-.01 =.99 in the upper tail and .01in the lower tail is 14.256.Since calculated value 15.45 is
greater than the cut off level 14.256 we accept null hypothesis and conclude that sd=2. There foremanagement will not allow sale of its telescope.
Varsha Varde 22
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 23/37
� F-distribution. When independent samples are drawn from two
normal populations with equal variances then S21 /S2
2 possesses a
sampling distribution that is known as an
� F distribution. That is� F = S2
1 /S22
� Degrees of freedom (df): 1 = n1 - 1; 2 = n2 - 1
� Graph: Non-symmetrical and depends on df
� Critical values: using F tables
� Test.
� H 0 : 21 = 22
� H a : 21� 22(two-tailed test).
� T.S. :F = S21 /S2
2
� Where S21is the larger sample variance.
� Note: F = larger sample variance/ smaller sample variance
� RR: Reject H 0 if F > F /2 where F /2 is based on (n1 - 1) and (n2 - 1)degrees of freedom.
� Assumptions.
� 1. Normal populations 2. Independent random samples
23
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 24/37
Example� Investment risk is generally measured by the volatility of
possible outcomes of the investment. The most common
method for measuring investment volatility is bycomputing the variance ( or standard deviation) of
possible outcomes. Returns over the past 10 years for
first alternative and 8 years for the second alternative
produced the following data:
� Data Summary:
� Investment 1: n1 = 10, x¯ 1 = 17.8%; s21 = 3.21
� Investment 2: n2 = 8, x¯2 = 17.8%; s22 = 7.14
� Both populations are assumed to be normallydistributed.
Varsha Varde 24
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 25/37
Solution� Q1: Do the data present suffcient evidence to indicate
that the risks for investments1 and 2 are unequal ?
� Solution.
� Test:H 0 : 21 = 22
� H a : 21 � 22 (two-tailed test).
� T.S. :F = S2
1 /S2
2=7.14/ 3.21= 2.22
� .RR: Reject H 0 if F > F/2 where
� F /2,n2-1,n1-1 = F .025,7,9 = 4.20
� Decision: Do not reject H 0
� Conclusion: At 5% significance level there is insuffcientstatistical evidence to indicate that the risks for
investments 1 and 2 are unequal.
� Exercise. Do the upper tail test. That is
� H a : 21
> 2
2. 25
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 26/37
Varsha Varde 26
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 27/37
Varsha Varde 27
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 28/37
Varsha Varde 28
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 29/37
Varsha Varde 29
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 30/37
Varsha Varde 30
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 31/37
Varsha Varde 31
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 32/37
Varsha Varde 32
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 33/37
Varsha Varde 33
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 34/37
Varsha Varde 34
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 35/37
Varsha Varde 35
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 36/37
Varsha Varde 36
8/6/2019 09test+of+Hypothesis+Small+Sample.ppt - Copy (2) - Copy
http://slidepdf.com/reader/full/09testofhypothesissmallsampleppt-copy-2-copy 37/37
Varsha Varde 37