Basis of statistical Inference 2 - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Basis of statistical Inference 2

Description:

Ho: 'all swans are white' H1: 'at least one swan is not white' 7/11/09. Cord Heuer ... 'all swans are white' Deduction: 'there were no black swans' 7/11 ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 26
Provided by: epicentre6
Category:

less

Transcript and Presenter's Notes

Title: Basis of statistical Inference 2


1
Basis of statistical Inference 2
  • BMLS 202.251
  • Dr. Cord Heuer
  • EpiCentreMassey University

2
Confidence Interval
  • sample mean
  • ? is not known, but estimated by the sample
    standard deviation (s) if n reasonably large (gt
    30)
  • n sample size
  • z standard normal score

Confidence interval
3
Confidence interval
  • informal
  • 95 confident that the true mean lies in the
    interval
  • formal
  • if we repeated sampling an infinite number of
    times, 95 of the intervals would overlap the
    true mean

4
Sample size to estimate a mean
becomes
becomes
5
Example 95CI Estimation ???Unknown
  • A random sample of n 10 has 37.2 and
  • S 7.13. Set up a 95 confidence interval
    estimate for ?.
  • from to

?
?
?
32.1
42.3
6
Confidence Interval
If ? 0.05, the 95 CI of about 5 from 100
samples will not overlap the true population mean
7
Hypothesis testing
  • generation of hypothesis testing theory depends
    on assumption of random sampling
  • begins with null hypothesis
  • and alternate hypothesis

8
Hypothesis testing
  • we cannot prove the alternate hypothesis
  • we can only become increasingly confident that
    the null hypothesis may not be true

9
Cannot prove the alternative hypothesis
Ho all swans are white H1 at least one swan
is not white
10
The concept of reasoning
Induction all swans are white
sample
population
Deduction there were no black swans
11
Cannot prove the alternative hypothesis
Ho all swans are white H1 at least one swan
is not white
Oilpest ? Birth defect ? More of those ?
12
Inference for Meanst-test One sample
Example Ho sample new value z 1.35
What is the area under the normal curve outside
1.35 and 1.35 i.e. the probability of obtaining
an absolute z-value greater or smaller than
1.35? P 0.18
Not enough evidence that the new value comes
from a different population
13
P Ho new value mean1
P 0.089
P 0.089
area outside 2 0.089 0.178 ie. 18
14
2-sample t-test
page 16
H0 x-bar1 - xbar2 0 or xbar1 xbar2 Ha
x-bar1 ? xbar2
15
P-value
  • Answers the question
  • Assuming the null hypothesis is true,
  • what is the probability of obtaining a
    test-statistic this large or larger.
  • the smaller the P-value, the less confidence we
    have in the null hypothesis

16
P-value
  • Then compare the calculated P-value to a
    pre-defined threshold 0.05
  • If Plt 0.05
  • if the null hypothesis is true, there is lt5
    probability of getting a difference this large.
  • so - reject the null hypothesis !?

17
One Sample
  • Examples
  • Height of a student at Massey
  • Ho height of an individual mean height
  • Difference between paired body weights
  • Weight gain Ho difference 0
  • Slope coefficient age vs. WBC
  • Ho slope 0
  • Size of an association between gender and
    respiratory disease
  • Ho OR 1

18
Power
  • Error
  • ? probability of accepting Ho when the sample
    populations are in fact different.
  • Commonly set to 0.2
  • Power 1- ?
  • Commonly set to 0.8
  • 80 chance of detecting a difference (effect) if
    it exists

19
Power analysis
page 22
  • Steps
  • Define Ho and Ha
  • Find z for Pgt(1-?) ? lack of confidence
  • Find x-bar at that point
  • Compute the probability that Ha will be concluded

20
P(ower) of accepting Ha given X1
1) Define Ho and Ha Ho X0 vs. Ha X1 2) Find
z for Pgt(1-?) 1.67 (one sided, ?0.05) 3) Find
x-bar at that point 01.67SE 0.658 4) Compute
the probability that Ha will be
concluded P(xgt0.658Xbar1) Pzgt(0.658-1)/SE
0.80
21
EXAMPLE
  • Training effect on race dogs Xdifference
  • Ho X0 sec Ha X2 sec
  • n20 sd3
  • For P gt 0.951-sided tdf19, 1-sided1.729
  • find X-bar for the upper end of the conf. int.
    under Ho
  • z(1.16) under Ha
  • P(Zgtz) 0.89

22
Use of power analysis
  • Determine sample size while designing a study
  • Post hoc after completing a study
  • estimate power
  • estimate required sample size ? cost
  • estimate the effect size that would have been
    significant by the study

23
Ways to increase power
  • increase sample size
  • consider a 1-sided test
  • allow a larger type-I error
  • increase precision of measurements
  • use paired or matched subjects
  • use unequal group sizes

24
Odds Ratio
  • 95 CI
  • From elnOR 1.96SE(lnOR)
  • to elnOR 1.96SE(lnOR)

25
Relative Risk
  • RR has approximately normal distribution at the
    log-scale (use ln)
  • 95 CI
  • From elnRR 1.96SE(lnRR)
  • To elnRR 1.96SE(lnRR)
Write a Comment
User Comments (0)
About PowerShow.com