SlideShare a Scribd company logo
1 of 26
Sociology 601 Class 7: September 22, 2009
• 6.4: Type I and type II errors
• 6.5: Small-sample inference for a mean
• 6.6: Small-sample inference for a proportion
• 6.7: Evaluating p of a type II error.
1
6.5: Why the problem with small samples?
– Within a distribution of samples, the estimated variance and
standard deviation will vary, even for samples with the same
sample mean.
– s2
will sometimes be larger than σ2
and sometimes smaller.
– when s is smaller than σ, a moderate difference between Ybar
and μ0 might be statistically significant.
– when s is larger than σ, a large difference between Ybar and μ0
might not be statistically significant.
3
What causes this problem?
• The problem is that an imprecise estimator of
sigma can distort p-values.
• This problem arises even though the population
has a normal distribution, and even though the
(imprecise) estimator is unbiased.
4
Correcting the problem: the t-test.
• SOLUTION: calculate test statistics as before, but
recalculate the table we use to find p-values.
• the t-score for small samples is calculated in the same way
as the z-score for large samples.
• look up the test statistic in Table B, page 669
• degrees of freedom = n-1
• conduct hypothesis tests or estimate confidence intervals as
with a larger sample.
ns
Y
es
Y
t
Y
00
..
µµ −
=
−
=
5
Properties of the t-distribution:
• the t-distribution is bell-shaped and symmetric about 0.
• Compared to a z-distribution, the t-distribution has extra
area in the extreme tails.
• as n-1 increases, the t-distribution becomes
indistinguishable from the normal distribution.
6
Student’s t-distribution
t-distribution (df=1) and normal distribution:
7
Student’s t-distribution
8
Using table B on page 669:
• You have a t-score: what is the p-value?
t n Lower t in
Table B
Lower p in
Table B
Higher t in
Table B
Higher p in
Table B
P (1-sided) P (2-
sided)
2.130 5
2.130 16
2.130 601
9
10
Using table B on page 669:
• You have a t-score: what is the p-value?
t N Lower t in
Table B
Lower p in
Table B
Higher t in
Table B
Higher p in
Table B
P (1-sided) P (2-
sided)
2.130 5 1.533 .100 2.132 .050 p<.10 n.s.
2.130 16 1.753 .050 2.131 .025 p<.05 p<.10
2.130 601 1.960 .025 2.326 .010 p<.025 p<.05
11
Using STATA to find t-scores and p-values
• t-statistics and p-values using DISPLAY INVTTAIL and
DISPLAY TPROB:
– You provide the df and either the 1-tailed p or the 2-tailed
t
– compare to table B, page 669
– examples given for sample sizes 10000 and 5 (df = n – 1)
– Compare also to invnorm and normprob
. display invttail(9999,.025)
1.9602012
. display invttail(4,.025)
2.7764451
. display tprob(9999,1.96)
.05002352
. display tprob(4,1.96)
.12155464
12
STATA commands for section 6.5 or 6.2
• immediate test for sample mean using TTESTI:
• (note use of t-score, not z-score)
. * for example, in A&F problem 6.8, n=100 Ybar=508 sd=100 and mu0=500
. ttesti 100 508 100 500, level(95)
One-sample t test
------------------------------------------------------------------------------
| Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
x | 100 508 10 100 488.1578 527.8422
------------------------------------------------------------------------------
Degrees of freedom: 99
Ho: mean(x) = 500
Ha: mean < 500 Ha: mean != 500 Ha: mean > 500
t = 0.8000 t = 0.8000 t = 0.8000
P < t = 0.7872 P > |t| = 0.4256 P > t = 0.2128
13
T-test example: small-sample study of Anorexia
• A study compared various treatments for young girls
suffering from anorexia. The variable of interest was the
change in weight from the beginning to the end of the study.
• For a sample of 29 girls receiving a cognitive behavioral
treatment, the changes in weight are summarized by
Ybar = 3.01 and s = 7.31 pounds
• “Does the cognitive behavioral treatment work?”
14
T-test example: small-sample study of Anorexia
• Assumptions:
– We are working with a random sample of some sort.
– Observations are independent of each other.
– Change in weight is an interval scale variable.
– Change in weight is distributed normally in the
population.
• Hypothesis:
– H0: µ = 0. The mean change in weight is zero for the
conceptual population of young girls undergoing the
anorexia treatment. 15
T-test example: small-sample study of Anorexia
• Test statistic: if Ybar =3.01, s = 7.31, and n=29, then
Standard error = 7.31/sqrt(29) = 1.357
t = 3.01 / 1.357 = 2.217
• P-value:
df = 29 – 1 = 28
T(.025, 28df) = 2.048, T(.010, 28df) = 2.467
2.467 > 2.217 > 2.048
.01 < p < .025
P < .025 (one-sided), so
P < .05 (two-sided)
16
T-test example: small-sample study of Anorexia
• conclusion: reject H0: girls who undergo the cognitive
behavioral treatment do not stay the same weight.
• By this analysis, the results of the study are statistically
significant. To conclude that the results are substantively
significant, we need to address more questions.
• Q: Is 3.1 pounds a meaningful increase in weight?
– Note: s = 7.31. This number has substantive as well as
statistical importance.
• Q: Would we really expect girls to have no change in weight
if there was no effect of the program?
17
confidence interval using a t-test
• This is a formula for a 95% confidence interval for a two-
sided t-test.
• Anorexia example again:
– Ybar = 3.01, s=7.31, n=29, df=29-1=28, t(.025,28) = 2.048
• c.i. = 3.01 ± 2.048(7.31/SQRT(29)) = 3.01 ± 2.780
• c.i. = (0.23, 5.79)






±=±=
n
s
tYestYic Y 025.025. ..*..
18
6.6: Small-sample inference for a population proportion:
the Binomial Distribution
• With large samples, we have been treating population
proportions as a special case of a population mean, but with
slightly different equations.
– z = ( - πo ) /s.e.
– = ( - πo ) / (σ0 / SQRT(N) )
– = ( - πo ) / ( [ SQRT(πo(1- πo)) ] / SQRT(N) )
• With small samples, however, tests for population means
require the specific assumption that the variable has a
normal distribution within the population.
• We need a statistic from which we can draw inferences
when np < 10 or n(1-p) < 10.
ˆπ
ˆπ
ˆπ
19
Definitions for the Binomial Distribution
• Often, a single ‘random trial’ will have two possible
outcomes, “yes” (=1) and “no (=0).
• Let B be a random variable generated by a yes/no process.
Then B has a probability distribution:
– P(B=1) = p ; P(B=0) = 1-p.
– a heads on a coin flip: p =.5;
– a 6 on a die role p: = .167;
– for left-handed p: = ~.10;
• For a fixed number of observations N, each observation falls
into one of the two categories.
• A key assumption is that the outcomes of successive
observations are independent.
– coin flips? left-handedness? 20
Probabilities for the Binomial Distribution
• If we know the population proportion π and the sample size
N, we can calculate the probability of exactly X outcomes for
any value of X from 0 to N:
• where N! = 1*2*…*N
• example: What is the probability of getting 3 heads (and 1
tail) when flipping a coin four times?
• example: What is the probability of rolling a die 6 times and
getting exactly 1 six? Exactly 2 sixes?
P(X) =
N!
X!(N − X)!
πX
(1−π)N−X
21
Small sample example for population proportion.
• Gender and selection of manager trainees:
• If there is no gender bias in trainee selection and the
pool of potential trainees is 50% male and 50%
female, what is the possibility of getting only two
women in a sample of 10 trainees?
• Alternately, is there evidence of gender bias in
trainee selection?
22
Hypothesis test for a population proportion.
1. Assumptions: we are estimating a population
proportion, and the observations are dichotomous,
identical, and independent.
2. Hypothesis: Ho: π = .5, where π is the population
proportion of trainees who are women.
3. Test statistics: none: we calculate p-values by
hand using an exact application of the binomial
distribution.
a. P(0 women) = (10!/0!*10!)*(.5)0
*(1-.5)10
= .000977
b. P(1 woman) = (10!/1!*9!)*(.5)1
*(1-.5)9
= .000977
Binomial distribution for n= 10, π =.5:
x 0 1 2 3 4 5 6 7 8 9 10
P(x) .001 .010 .044 .117 .205 .246 .205 .117 .044 .010 .001
23
Hypothesis test for a population proportion.
4. p-value: the p-value is the sum of p(x) for every X
at least as unlikely as the x we measure.
a. with 2 women and 8 men, we get …
b. p = .001+.010+.044+.044+.010+.001 = .110
4. Conclusion: Do not reject Ho: from this sample, we
cannot conclude with certainty that women and
men do not have an equal chance of being
selected into the training program.
24
STATA command for binomial distributions
• immediate test for small sample proportion using BITESTI:
• In a jury of 12 persons, only two are women, even though
women constitute 53% of the jury-age population. Is this
evidence for systematic selection of men in the jury?
• bitesti 12 2 .53
• N Observed k Expected k Assumed p Observed p
• ------------------------------------------------------------
• 12 2 6.36 0.53000 0.16667
• Pr(k >= 2) = 0.998312 (one-sided test)
• Pr(k <= 2) = 0.011440 (one-sided test)
• Pr(k <= 2 or k >= 11) = 0.017159 (two-sided test)
25
Alternative STATA command for testing probabilities:
useful for large n
immediate test for sample proportion using PRTESTI:
. * for proportion: in A&F problem 6.12, n=832 p=.53 and p0=.5
. prtesti 832 .53 .50, level(95)
One-sample test of proportion x: Number of obs = 832
------------------------------------------------------------------------------
Variable | Mean Std. Err. [95% Conf. Interval]
-------------+----------------------------------------------------------------
x | .53 .0173032 .4960864 .5639136
------------------------------------------------------------------------------
Ho: proportion(x) = .5
Ha: x < .5 Ha: x != .5 Ha: x > .5
z = 1.731 z = 1.731 z = 1.731
P < z = 0.9582 P > |z| = 0.0835 P > z = 0.0418 26
Comparison of a binomial distribution and a normal distribution
• with a large enough N, a binomial distribution will look like a
normal distribution.
• With small samples, and with very low or high sample
proportions, the binomial distribution is not normal enough
to allow us to extrapolate from a t-score to a p-value.
• With the binomial, we do not calculate means and standard
deviations: we calculate p directly.
27

More Related Content

What's hot (20)

Z And T Tests
Z And T TestsZ And T Tests
Z And T Tests
 
Sampling Distributions and Estimators
Sampling Distributions and EstimatorsSampling Distributions and Estimators
Sampling Distributions and Estimators
 
02a one sample_t-test
02a one sample_t-test02a one sample_t-test
02a one sample_t-test
 
Chapter4
Chapter4Chapter4
Chapter4
 
The Standard Normal Distribution
The Standard Normal DistributionThe Standard Normal Distribution
The Standard Normal Distribution
 
Case study using one way ANOVA
Case study using one way ANOVACase study using one way ANOVA
Case study using one way ANOVA
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Section 07 manova
Section 07 manovaSection 07 manova
Section 07 manova
 
Chi square test
Chi square testChi square test
Chi square test
 
Probability concept and Probability distribution_Contd
Probability concept and Probability distribution_ContdProbability concept and Probability distribution_Contd
Probability concept and Probability distribution_Contd
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)
 
The Central Limit Theorem
The Central Limit Theorem  The Central Limit Theorem
The Central Limit Theorem
 
Reporting a single sample t-test
Reporting a single sample t-testReporting a single sample t-test
Reporting a single sample t-test
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
Chi sqr
Chi sqrChi sqr
Chi sqr
 
One-Sample Hypothesis Tests
One-Sample Hypothesis TestsOne-Sample Hypothesis Tests
One-Sample Hypothesis Tests
 
Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3
 
Chapter12
Chapter12Chapter12
Chapter12
 

Viewers also liked

Lingwistyka 4: kwadrat komunikacyjny
Lingwistyka 4: kwadrat komunikacyjnyLingwistyka 4: kwadrat komunikacyjny
Lingwistyka 4: kwadrat komunikacyjnyKonrad Juszczyk
 
Abdul Rehman Bin Zia CV-International
Abdul Rehman Bin Zia CV-InternationalAbdul Rehman Bin Zia CV-International
Abdul Rehman Bin Zia CV-InternationalAbdul Rehman Bin Xia
 
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREE
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREEWEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREE
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREEsamsudobd
 
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)Techart Marketing Group
 
"Фейки" в маркетинговых отчетах и аудитах
"Фейки" в маркетинговых отчетах и аудитах"Фейки" в маркетинговых отчетах и аудитах
"Фейки" в маркетинговых отчетах и аудитахTechart Marketing Group
 
Diapo mélissa stacey charlotte
Diapo mélissa stacey charlotteDiapo mélissa stacey charlotte
Diapo mélissa stacey charlotteyoyobig
 

Viewers also liked (15)

Lingwistyka 4: kwadrat komunikacyjny
Lingwistyka 4: kwadrat komunikacyjnyLingwistyka 4: kwadrat komunikacyjny
Lingwistyka 4: kwadrat komunikacyjny
 
Engr. SAFEER CV
Engr. SAFEER CV Engr. SAFEER CV
Engr. SAFEER CV
 
Week days
Week daysWeek days
Week days
 
1 putovanje u bugarsku
1 putovanje u bugarsku1 putovanje u bugarsku
1 putovanje u bugarsku
 
ÅA examensdiplom
ÅA examensdiplomÅA examensdiplom
ÅA examensdiplom
 
Diabetes
DiabetesDiabetes
Diabetes
 
Abdul Rehman Bin Zia CV-International
Abdul Rehman Bin Zia CV-InternationalAbdul Rehman Bin Zia CV-International
Abdul Rehman Bin Zia CV-International
 
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREE
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREEWEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREE
WEBSITE DESIGN + SEO,SMM AND DOMAIN HOSTING FREE
 
Verbs matching
Verbs matchingVerbs matching
Verbs matching
 
Kognitywne 2012 1
Kognitywne 2012 1Kognitywne 2012 1
Kognitywne 2012 1
 
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)
Актуальные тенденции интернет-маркетинга и рекламы (10.12.2015)
 
"Фейки" в маркетинговых отчетах и аудитах
"Фейки" в маркетинговых отчетах и аудитах"Фейки" в маркетинговых отчетах и аудитах
"Фейки" в маркетинговых отчетах и аудитах
 
Sémiologie et Nosologie Psychiatrie pour l'ECN
Sémiologie et Nosologie Psychiatrie pour l'ECNSémiologie et Nosologie Psychiatrie pour l'ECN
Sémiologie et Nosologie Psychiatrie pour l'ECN
 
Semiologie aesp
Semiologie aespSemiologie aesp
Semiologie aesp
 
Diapo mélissa stacey charlotte
Diapo mélissa stacey charlotteDiapo mélissa stacey charlotte
Diapo mélissa stacey charlotte
 

Similar to Sociology 601 class 7

Sampling distribution.pptx
Sampling distribution.pptxSampling distribution.pptx
Sampling distribution.pptxssusera0e0e9
 
Chapter one on sampling distributions.ppt
Chapter one on sampling distributions.pptChapter one on sampling distributions.ppt
Chapter one on sampling distributions.pptFekaduAman
 
Chapter 7Hypothesis Testing ProceduresLearning.docx
Chapter 7Hypothesis Testing ProceduresLearning.docxChapter 7Hypothesis Testing ProceduresLearning.docx
Chapter 7Hypothesis Testing ProceduresLearning.docxmccormicknadine86
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in StatisticsVikash Keshri
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testRavindra Nath Shukla
 
Sqqs1013 ch6-a122
Sqqs1013 ch6-a122Sqqs1013 ch6-a122
Sqqs1013 ch6-a122kim rae KI
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptxChinna Chadayan
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
Parametric tests
Parametric testsParametric tests
Parametric testsheena45
 
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptxHASDINABKARIANEBRAHI
 
tests of significance
tests of significancetests of significance
tests of significancebenita regi
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testdr.balan shaikh
 

Similar to Sociology 601 class 7 (20)

Sampling distribution.pptx
Sampling distribution.pptxSampling distribution.pptx
Sampling distribution.pptx
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Chapter one on sampling distributions.ppt
Chapter one on sampling distributions.pptChapter one on sampling distributions.ppt
Chapter one on sampling distributions.ppt
 
Chapter 7Hypothesis Testing ProceduresLearning.docx
Chapter 7Hypothesis Testing ProceduresLearning.docxChapter 7Hypothesis Testing ProceduresLearning.docx
Chapter 7Hypothesis Testing ProceduresLearning.docx
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
 
Sqqs1013 ch6-a122
Sqqs1013 ch6-a122Sqqs1013 ch6-a122
Sqqs1013 ch6-a122
 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Nonparametric and Distribution- Free Statistics _contd
Nonparametric and Distribution- Free Statistics _contdNonparametric and Distribution- Free Statistics _contd
Nonparametric and Distribution- Free Statistics _contd
 
Statistical analysis.pptx
Statistical analysis.pptxStatistical analysis.pptx
Statistical analysis.pptx
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
Population and sample mean
Population and sample meanPopulation and sample mean
Population and sample mean
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx
7-THE-SAMPLING-DISTRIBUTION-OF-SAMPLE-MEANS-CLT.pptx
 
Sampling Concepts
 Sampling Concepts Sampling Concepts
Sampling Concepts
 
tests of significance
tests of significancetests of significance
tests of significance
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
Test of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square testTest of-significance : Z test , Chi square test
Test of-significance : Z test , Chi square test
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
 
Aron chpt 8 ed
Aron chpt 8 edAron chpt 8 ed
Aron chpt 8 ed
 

Recently uploaded

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Sociology 601 class 7

  • 1. Sociology 601 Class 7: September 22, 2009 • 6.4: Type I and type II errors • 6.5: Small-sample inference for a mean • 6.6: Small-sample inference for a proportion • 6.7: Evaluating p of a type II error. 1
  • 2. 6.5: Why the problem with small samples? – Within a distribution of samples, the estimated variance and standard deviation will vary, even for samples with the same sample mean. – s2 will sometimes be larger than σ2 and sometimes smaller. – when s is smaller than σ, a moderate difference between Ybar and μ0 might be statistically significant. – when s is larger than σ, a large difference between Ybar and μ0 might not be statistically significant. 3
  • 3. What causes this problem? • The problem is that an imprecise estimator of sigma can distort p-values. • This problem arises even though the population has a normal distribution, and even though the (imprecise) estimator is unbiased. 4
  • 4. Correcting the problem: the t-test. • SOLUTION: calculate test statistics as before, but recalculate the table we use to find p-values. • the t-score for small samples is calculated in the same way as the z-score for large samples. • look up the test statistic in Table B, page 669 • degrees of freedom = n-1 • conduct hypothesis tests or estimate confidence intervals as with a larger sample. ns Y es Y t Y 00 .. µµ − = − = 5
  • 5. Properties of the t-distribution: • the t-distribution is bell-shaped and symmetric about 0. • Compared to a z-distribution, the t-distribution has extra area in the extreme tails. • as n-1 increases, the t-distribution becomes indistinguishable from the normal distribution. 6
  • 8. Using table B on page 669: • You have a t-score: what is the p-value? t n Lower t in Table B Lower p in Table B Higher t in Table B Higher p in Table B P (1-sided) P (2- sided) 2.130 5 2.130 16 2.130 601 9
  • 9. 10
  • 10. Using table B on page 669: • You have a t-score: what is the p-value? t N Lower t in Table B Lower p in Table B Higher t in Table B Higher p in Table B P (1-sided) P (2- sided) 2.130 5 1.533 .100 2.132 .050 p<.10 n.s. 2.130 16 1.753 .050 2.131 .025 p<.05 p<.10 2.130 601 1.960 .025 2.326 .010 p<.025 p<.05 11
  • 11. Using STATA to find t-scores and p-values • t-statistics and p-values using DISPLAY INVTTAIL and DISPLAY TPROB: – You provide the df and either the 1-tailed p or the 2-tailed t – compare to table B, page 669 – examples given for sample sizes 10000 and 5 (df = n – 1) – Compare also to invnorm and normprob . display invttail(9999,.025) 1.9602012 . display invttail(4,.025) 2.7764451 . display tprob(9999,1.96) .05002352 . display tprob(4,1.96) .12155464 12
  • 12. STATA commands for section 6.5 or 6.2 • immediate test for sample mean using TTESTI: • (note use of t-score, not z-score) . * for example, in A&F problem 6.8, n=100 Ybar=508 sd=100 and mu0=500 . ttesti 100 508 100 500, level(95) One-sample t test ------------------------------------------------------------------------------ | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] ---------+-------------------------------------------------------------------- x | 100 508 10 100 488.1578 527.8422 ------------------------------------------------------------------------------ Degrees of freedom: 99 Ho: mean(x) = 500 Ha: mean < 500 Ha: mean != 500 Ha: mean > 500 t = 0.8000 t = 0.8000 t = 0.8000 P < t = 0.7872 P > |t| = 0.4256 P > t = 0.2128 13
  • 13. T-test example: small-sample study of Anorexia • A study compared various treatments for young girls suffering from anorexia. The variable of interest was the change in weight from the beginning to the end of the study. • For a sample of 29 girls receiving a cognitive behavioral treatment, the changes in weight are summarized by Ybar = 3.01 and s = 7.31 pounds • “Does the cognitive behavioral treatment work?” 14
  • 14. T-test example: small-sample study of Anorexia • Assumptions: – We are working with a random sample of some sort. – Observations are independent of each other. – Change in weight is an interval scale variable. – Change in weight is distributed normally in the population. • Hypothesis: – H0: µ = 0. The mean change in weight is zero for the conceptual population of young girls undergoing the anorexia treatment. 15
  • 15. T-test example: small-sample study of Anorexia • Test statistic: if Ybar =3.01, s = 7.31, and n=29, then Standard error = 7.31/sqrt(29) = 1.357 t = 3.01 / 1.357 = 2.217 • P-value: df = 29 – 1 = 28 T(.025, 28df) = 2.048, T(.010, 28df) = 2.467 2.467 > 2.217 > 2.048 .01 < p < .025 P < .025 (one-sided), so P < .05 (two-sided) 16
  • 16. T-test example: small-sample study of Anorexia • conclusion: reject H0: girls who undergo the cognitive behavioral treatment do not stay the same weight. • By this analysis, the results of the study are statistically significant. To conclude that the results are substantively significant, we need to address more questions. • Q: Is 3.1 pounds a meaningful increase in weight? – Note: s = 7.31. This number has substantive as well as statistical importance. • Q: Would we really expect girls to have no change in weight if there was no effect of the program? 17
  • 17. confidence interval using a t-test • This is a formula for a 95% confidence interval for a two- sided t-test. • Anorexia example again: – Ybar = 3.01, s=7.31, n=29, df=29-1=28, t(.025,28) = 2.048 • c.i. = 3.01 ± 2.048(7.31/SQRT(29)) = 3.01 ± 2.780 • c.i. = (0.23, 5.79)       ±=±= n s tYestYic Y 025.025. ..*.. 18
  • 18. 6.6: Small-sample inference for a population proportion: the Binomial Distribution • With large samples, we have been treating population proportions as a special case of a population mean, but with slightly different equations. – z = ( - πo ) /s.e. – = ( - πo ) / (σ0 / SQRT(N) ) – = ( - πo ) / ( [ SQRT(πo(1- πo)) ] / SQRT(N) ) • With small samples, however, tests for population means require the specific assumption that the variable has a normal distribution within the population. • We need a statistic from which we can draw inferences when np < 10 or n(1-p) < 10. ˆπ ˆπ ˆπ 19
  • 19. Definitions for the Binomial Distribution • Often, a single ‘random trial’ will have two possible outcomes, “yes” (=1) and “no (=0). • Let B be a random variable generated by a yes/no process. Then B has a probability distribution: – P(B=1) = p ; P(B=0) = 1-p. – a heads on a coin flip: p =.5; – a 6 on a die role p: = .167; – for left-handed p: = ~.10; • For a fixed number of observations N, each observation falls into one of the two categories. • A key assumption is that the outcomes of successive observations are independent. – coin flips? left-handedness? 20
  • 20. Probabilities for the Binomial Distribution • If we know the population proportion π and the sample size N, we can calculate the probability of exactly X outcomes for any value of X from 0 to N: • where N! = 1*2*…*N • example: What is the probability of getting 3 heads (and 1 tail) when flipping a coin four times? • example: What is the probability of rolling a die 6 times and getting exactly 1 six? Exactly 2 sixes? P(X) = N! X!(N − X)! πX (1−π)N−X 21
  • 21. Small sample example for population proportion. • Gender and selection of manager trainees: • If there is no gender bias in trainee selection and the pool of potential trainees is 50% male and 50% female, what is the possibility of getting only two women in a sample of 10 trainees? • Alternately, is there evidence of gender bias in trainee selection? 22
  • 22. Hypothesis test for a population proportion. 1. Assumptions: we are estimating a population proportion, and the observations are dichotomous, identical, and independent. 2. Hypothesis: Ho: π = .5, where π is the population proportion of trainees who are women. 3. Test statistics: none: we calculate p-values by hand using an exact application of the binomial distribution. a. P(0 women) = (10!/0!*10!)*(.5)0 *(1-.5)10 = .000977 b. P(1 woman) = (10!/1!*9!)*(.5)1 *(1-.5)9 = .000977 Binomial distribution for n= 10, π =.5: x 0 1 2 3 4 5 6 7 8 9 10 P(x) .001 .010 .044 .117 .205 .246 .205 .117 .044 .010 .001 23
  • 23. Hypothesis test for a population proportion. 4. p-value: the p-value is the sum of p(x) for every X at least as unlikely as the x we measure. a. with 2 women and 8 men, we get … b. p = .001+.010+.044+.044+.010+.001 = .110 4. Conclusion: Do not reject Ho: from this sample, we cannot conclude with certainty that women and men do not have an equal chance of being selected into the training program. 24
  • 24. STATA command for binomial distributions • immediate test for small sample proportion using BITESTI: • In a jury of 12 persons, only two are women, even though women constitute 53% of the jury-age population. Is this evidence for systematic selection of men in the jury? • bitesti 12 2 .53 • N Observed k Expected k Assumed p Observed p • ------------------------------------------------------------ • 12 2 6.36 0.53000 0.16667 • Pr(k >= 2) = 0.998312 (one-sided test) • Pr(k <= 2) = 0.011440 (one-sided test) • Pr(k <= 2 or k >= 11) = 0.017159 (two-sided test) 25
  • 25. Alternative STATA command for testing probabilities: useful for large n immediate test for sample proportion using PRTESTI: . * for proportion: in A&F problem 6.12, n=832 p=.53 and p0=.5 . prtesti 832 .53 .50, level(95) One-sample test of proportion x: Number of obs = 832 ------------------------------------------------------------------------------ Variable | Mean Std. Err. [95% Conf. Interval] -------------+---------------------------------------------------------------- x | .53 .0173032 .4960864 .5639136 ------------------------------------------------------------------------------ Ho: proportion(x) = .5 Ha: x < .5 Ha: x != .5 Ha: x > .5 z = 1.731 z = 1.731 z = 1.731 P < z = 0.9582 P > |z| = 0.0835 P > z = 0.0418 26
  • 26. Comparison of a binomial distribution and a normal distribution • with a large enough N, a binomial distribution will look like a normal distribution. • With small samples, and with very low or high sample proportions, the binomial distribution is not normal enough to allow us to extrapolate from a t-score to a p-value. • With the binomial, we do not calculate means and standard deviations: we calculate p directly. 27