95% confidence interval & p value 19am … · uniqueness extreme value & the mean (! )...

38
95% Confidence Interval & p value Nguyen Quang Vinh - Nguyen Thi Tu Van

Upload: others

Post on 25-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

95% Confidence Interval

& p value

Nguyen Quang Vinh - Nguyen Thi Tu Van

Page 2: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Introduction

Page 3: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Statistics• Descriptive:

- Measures of central tendency

- Measures of dispersion

• Inferential:

- Estimation

- Hypothesis testing

Page 4: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Median The & valueExtreme•

Simplicity•

Uniqueness•

)(!Mean The & valueExtreme•

Simplicity•

Uniqueness•

:

:

(Md)Median The

mean) c(arithmetiMean The

TENDENCY CENTRAL OF MEASURES

N

xmeanPopulation

n

xxmeanSample

data equalitativ describingfor Use•

)(! Midrange The & valueExtreme•

Simplicity•

grasp-to-easyAn •

median andmean an popular th Less•

2

(Mo) Mode

Midrange TheHL

Mr

(Mr)

Page 5: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

MEASURES OF DISPERSION

(dispersion, variation, spread, scatter)

1. Range

2. Variance

3. Standard Deviation

4. Coefficient of Variance

Page 6: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

%C.V.

.x

sC.V.

N

x

n

xx

nn

xxs

s

100 aobtain topossible isit , variationextreme with sets datafor *

2

2

2

100

:Variation* oft Coefficien 4.

: Deviation, Standard Population

1

1

1

: Deviation, Standard Sample

Deviation Standard 3.

DISPERSION OF MEASURES

Page 7: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

N

x

n

xx

nn

xxs

s

LH

2

2

2

2

2

2

2

2

: variance,Population

1

1

1

: variance,Sample

Variance 2.

Range 1.

scatter) spread, , variationn,(dispersio

DISPERSION OF MEASURES

Page 8: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

SAMPLING DISTRIBUTION

The probability distribution of a

sample statistic is its sampling

distribution.

Page 9: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Standard error of the mean

is called:

• the standard error of the mean

(S.E.M.), or

• the standard error (S.E.), or

• the standard deviation of the

probability distribution for the mean

nX

Page 10: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Estimation

Page 11: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Estimator Parameter

Parameters:

• Population mean

• Population proportion

• Population variance

• The difference between 2 means

• The difference between 2 proportions

• The ratio of 2 variances

Page 12: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Estimator Parameter

• Each of these parameters:

Point estimate

Interval estimate

Page 13: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

CONFIDENCE INTERVAL FOR A

POPULATION MEAN

In general, an interval estimate is obtained by the

formula

estimator ± (reliability coefficient) x (standard error)

In particular, when sampling is from a normal

distribution with known variance, an interval estimate

for may be expressed as:

xzx 2/

Page 14: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

How to interpret the interval

given by this expression

• In repeated sampling, from a normally distributed population, 100(1 - )% of all intervals of the form will in the long run include the population mean,

• The quantity 1 - , is called the confidencecoefficient, &

The interval , is called the confidence interval for

xzx 2/

Page 15: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

The practical interpretation

• We are 100(1 - )% confident that the single

computed interval

contains the population mean,

• E = margin error = maximum error = practical /

clinical acceptable error:

xzx 2/

nzzE x

2/2/

Page 16: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

DISTRIBUTION OF

THE SAMPLE MEAN• Sampling is from a non-normally

distributed population:

Central limit theorem:

Given a population of any non-normal functional form with a mean, , and finite variance, 2; the sampling distribution of , computed from samples of size n from this population, will be approximately normallydistributed with mean, , and variance, 2/n, when the sample size is large.

X

X

Page 17: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

How large does the sample have

to be in order for the central limit

theorem to apply?

• There is no one answer, since the size of the

sample needed depends on the extent of non-

normality present in the population.

• Rule of thumb: in most practical situations, a

sample of size 30 is satisfactory.

• In general the approximation to normality of the

sampling distribution becomes better and better

as the sample size increases.X

Page 18: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

SAMPLING FROM

NONNORMAL POPULATIONS

Sampling from:

• Nonnormally distributed populations

• Populations whose functional forms are

not known

Taking large enough sample Central

limit theorem

Page 19: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE DIFFERENCE

BETWEEN 2 SAMPLE MEANS

When the population variances are known, the

100(1 - )% confidence interval for 1 - 2 is

given by

Sampling from nonnormal populations: taking large

enough samples n1, n2 → Central limit theorem

212/21 )( xxzxx

2

2

2

1

2

12/21 )(

nnzxx

Page 20: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE DIFFERENCE

BETWEEN 2 SAMPLE MEANS

When the population variances are unknown, we

distinguish between 2 situations:

(1) The population variances are equal

• If the assumption of equal population variances is

justified, a pooled estimate of the common variance is

given by the formula:

• The 100(1 - )% C.I. for 1 - 2 is given by:

2

)1()1(

21

2

22

2

112

nn

snsns p

2

2

1

2

2,2/21 21)(

n

s

n

stxx

pp

nn

Page 21: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE DIFFERENCE

BETWEEN 2 SAMPLE MEANS

(2) The population variances are not equal

• When one is reluctant to assume that the variances of 2

populations of interest are equal, the 100(1 - )% C.I. for

1 - 2 is given by

2

2

2

1

2

1'

2/21 )(n

s

n

stxx

21

2211'

2/ww

twtwt

1,2/2

1,2/1

2

2

22

1

2

11

2

1

n

n

tt

tt

n

sw

n

sw

ťα/2 is called Cochran reliability factor

Page 22: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR

A POPULATION PROPORTION• The sample proportion is used as the point estimator

of the population proportion p, then a C.I. is obtained by the general formula:

estimator ± (reliability coefficient) x (standard error)

• When np & n(1-p) are greater than 5, the sampling distribution of is # the normal distribution.

Therefore, the reliability coefficient is some value of z from the standard normal distribution.

• The standard error is

Since p is unknown, we must used as an estimate. Thus is estimated by

nppp /)1(ˆ

nppp /)ˆ1(ˆˆ

Page 23: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR

A POPULATION PROPORTION

• The 100 (1 - )% C.I. for p is given by

• Hence, the 95% C.I. for p is

nppzp

zp p

/)ˆ1(ˆˆ

ˆ

2/

ˆ2/

nppp

p p

/)ˆ1(ˆ96.1ˆ

96.1ˆˆ

Page 24: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE DIFFERENCE BETWEEN

2 POPULATION PROPORTIONS

When: n1 & n2 are large & the population

proportions, p1 - p2, are not too close to 0 or 1

→ the central limit theorem applies & normal

distribution theory may be employed to obtain

C.I.

)( )ˆ - ˆ( 2121 pppp

)ˆ - (1 ˆ

)ˆ - (1 ˆ

..2

22

1

11ˆˆ 21 n

pp

n

ppES pp

)ˆ - (1 ˆ

)ˆ - (1 ˆ

z )ˆ - ˆ(2

22

1

11/221

n

pp

n

pppp

The 100 (1 - )%

C.I. for p1 - p2

Page 25: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Notes

* As a rule 2 is unknown 2 has to be estimated

* The most frequently used sources of estimates for

2 are the following:

1. A pilot sample

2. Previous or similar studies

3. R/4 (or R/6) (approximately normal

distributed & some knowledge of the

smallest and largest value of the variable in

the population)

4. s IQR/1.35

Page 26: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE VARIANCE OF

A NORMALLY DISTRIBUTED POPULATION

2

2/

2

2

2/1

2

2

2/

22

2

2/1

2

2

2/1

222

2/

)1()1(

)1()1(

/)1(

snsn

snsn

sn

The (100 - )% C.I.

for (n-1)s2/2

The (100 - )% C.I.

for 2

The (100 - )% C.I.

for

Page 27: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE VARIANCE OF A NORMALLY

DISTRIBUTED POPULATION

Drawbacks

Although this method of constructing C.Is. for 2 is

widely used, it is not without drawbacks:

• The assumption of the normality of the

population from which the sample is drawn is

crucial.

• The estimator is not in the center of the C.I.,

because the 2 distribution, unlike the normal, is

not symmetric.

Page 28: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE VARIANCE OF

A NORMALLY DISTRIBUTED POPULATION

n

szs

n

szs

If

22

:large is size sample the

2/12/1

The (100 - )% C.I.

for

Page 29: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE RATIO OF THE VARIANCES OF

2 NORMALLY DISTRIBUTED POPULATIONS

2

2

2

2

2

1

2

1

s

s

follows the F distribution.

With the assumptions:

are computed from independent

samples of size n1 & n2,

respectively, drawn from 2

normally distributed populations

2

2

2

1 & ss

Page 30: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

C.I. FOR THE RATIO OF THE VARIANCES OF

2 NORMALLY DISTRIBUTED POPULATIONS

2/

2

2

2

1

2

2

2

1

2/1

2

2

2

1

2/1

2

2

2

2

2

1

2

1

2/

F

ss

F

ss

Fs

s

F

The (100 - )% C.I. for

2

2

2

2

2

1

2

1

ss

The (100 - )% C.I. for

2

2

2

1

Page 31: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Note

12

21

,,

,),1(

1

F

F

Where:

1 = n1 - 1 (numerator degrees of freedom)

2 = n2 - 1 (denominator degrees of freedom)

Page 32: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

32

Hypothesis Testing

Page 33: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

33

Introduction

Reaching a decision concerning a population by examining a sample from that population

Two types of hypotheses:

(1) Research Hypotheses:

- The conjecture or supposition

- It may be the results of years of observation

- Leads directly to Statistical H.

(2) Statistical Hypotheses:

Hypotheses are stated in such a way that they may be evaluated by appropriate statistical techniques

Page 34: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

34

Conditions under

which type I & type

II errors may be

committed (the four

possibilities)

Truth in the population

Association

between

predictor &

outcome

(Ho false)

No association

between

predictor &

outcome

(Ho true)

The results

in the study

sample →

Conclusion:

Reject

Ho

Correct

decision

Type I

error

Fail to

reject Ho

Type II

error

Correct

decision

Page 35: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

35

Ho, HA & must be defined before we observe any data

In other words, do not let the data dictate our hypotheses

The smaller is, the large is → if we want to be small, we choose a large value of

For most situations the range of acceptable values is .01 to .1

If there is no significant difference between the effects a type I error vs. a type II error, researchers often choose = .05

Note

Page 36: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

36

The Five-Step Procedure for

Hypothesis Testing

• Step 1: Set up Ho - HA

• Step 2: Define the test statistic, and its distribution

• Step 3: Define a rejection region: having determined a value for α

• Step 4: Calculate the value of the test statistic, and carry out the test → p value

State our decision: to reject Ho or to fail to reject Ho

• Step 5: Give a conclusion – free of statistical jargon.

Page 37: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

37

If H0 is rejected, we conclude that HA is true.

If H0 is not rejected, we conclude that H0

may be true.

- We avoid using the word “accept” in the case that the Ho is not rejected, we should say that the Ho is “not rejected”

NINE-STEP PROCEDURE

Page 38: 95% Confidence Interval & p value 19AM … · Uniqueness Extreme value & The Mean (! ) Simplicity Uniqueness:: The Median (Md) The Mean (arithmeti c mean) MEASURES OF CENTRAL TENDENCY

Summary

(1) Hypothesis testing, in general, is not a

procedure to proof a hypothesis - It merely

indicates whether the null hypothesis is supported

or not supported by the available data

(2) What we expect to be able to conclude as a

result of the test usually should be placed in the HA

(3) The HO is the hypothesis that is tested

(4) The HO & HA are complementary