Docsity

Statistical Hypothesis Testing - Lecture Slides | BIOE 594, Study notes of Biology

Partial preview of the text

Download Statistical Hypothesis Testing - Lecture Slides | BIOE 594 and more Study notes Biology in PDF only on Docsity!

Bioe594 Computational Functional GenomicsLecture # 5Review of statistics 3Yang DaiUIC.

Prof. Yang Dai, BioE954 Computational Functional Genomics

Statistical hypothesis testing †^ A hypothesis may be simply a statement about one ormore populations. †^ Hypothesis testing steps^ „

Collect data „ Make assumption, e.g. normality of population distribution,independent of samples. „ Set up hypotheses^ †^

Null hypothesis

Å

the hypothesis to be tested,

†^ Alternative hypothesis

Å^

a statement of what we will believe is true if

the sample data cause us to reject the null hypothesis

H^0

HA

Prof. Yang Dai, BioE954 Computational Functional Genomics

Rules for stating statistical hypotheses †^ If we want to answer the question : can we conclude that a certainpopulation mean is not 50? †^ If we want to know if we can conclude that the population mean isgreat than 50, †^ If we want to know if we can conclude that the population mean isless than 50, †^ The 1

st^ case is two-sided alternative, and the 2nd and 3

rd^ cases are

called one-sided alternative † What you hope to be able to conclude as a result

Æ^ alternative

hypothesis † Null hypothesis is the one to be tested † Null and alternative hypothesis : complementary

50 (^50) :=μ H 0 : ≠μ H A 50 (^50) :<μ H 0 : ≥μ H A (^50) :≥μ H 0 50 : <μ H A

Prof. Yang Dai, BioE954 Computational Functional Genomics

Test statistic †^ Test statistic

Å^ computed from the sample

†^ The decision to reject or not to reject the null hypothesis dependson the magnitude of the test statistic.

relevant to the statistic

†^ General formula for test statistic †^ Distribution of test statistic

Æ^ key to statistical inference

†^ the distribution of

follows the standard normal

„^ if the null hypothesis is true and the assumptions are met

mean
populationaof
valueed
hypothesizais
where
/^

0 0

μ

μ x − z = σ^ n
tistic
levent sta
of the re
dard errors
ter
zed parame
hypothesi
tatistic -
relevent s
stic
test stati
=tan
x^ n

z^ /^ σ

μ−=

x^ n
z^ /

μ−^0 σ

Prof. Yang Dai, BioE954 Computational Functional Genomics Significance level †^ Level of significance

is a probability of rejecting a

true null hypothesis † Level of significance

Æ^ set-up the rejection and

nonrejection regions † A computed value of the test statistic that falls in therejection region is said to be significant † Since to reject a true null hypothesis would constitutean error, it seems only reasonable that make

small

†^ Frequently take

α .01, .05 and.

α

α

Prof. Yang Dai, BioE954 Computational Functional Genomics Type of errors †^ If^

is rejected we conclude that

is true. If

is not

rejected we conclude that

may be true.

†^ P-value : a value tells us how unusual the sampleresults are, given that null hypothesis is true. Indicatethat the sample results are not likely to have occurred.

Correct action

Type I error

Reject

Type II error

Correct action

Fail to reject

False

True

H^0 H 0

H^^0

H^ A

H^0

H^0

Prof. Yang Dai, BioE954 Computational Functional Genomics

Example continued^ †^ Let

(^05) .=α

0.95 -1.^

(^96). 1 = z (^975).

−= z 025.

(^025). (^2) / = α^

(^025). (^2) / = α

1.96z 1.96-

1.96z and (^96). 1 ≤≤

−< z

Rejection regionNon-rejection region

z value for the current sample isaction: rejectConclude that mean age is not 30In this case P value : p{z<-2.12 or z>2.12}=.0340 from z-table ofprobability distribution

= μ H 0

3027 −−=^10 / 20
= z

Prof. Yang Dai, BioE954 Computational Functional Genomics

Testing

by means of a confidence interval

†^ For the example, we can arrive at the same conclusionby using a

percent confidence interval.

†^ The 95 percent confidence interval for †^ Since the interval does not include 30, we say 30 is nota candidate for the mean, therefore

is not equal to 30,

and^

is rejected.

„^ When testing a null hypothesis by means of a two-sideconfidence interval, we reject

at the

level when the

hypothesized parameter is not contained within thepercent confidence interval. If the hypothesized parameter iscontained within the interval ,

cannot be rejected at the

level of significance

H^0

(^100) *) (^1) (^ α−

μ

H^0

μ

H^0

(^100) *) (^1) (^ α−

H^0

α^

α

Prof. Yang Dai, BioE954 Computational Functional Genomics

Example: diabetic weight^ †^

Measure “% of ideal body weight” in 18 diabetics” † Data points are (actual body weight) ÷ (ideal body weight) ×100% † Data^ ⇒

{107, 119, 99, 114, 120, 104, 88, 114, 124, 116, 101, 121,

152, 100, 125, 114, 95, 117} † Calculate „^ sample mean = 112.778, sample standard deviation (

s ) = 14.

†^ Research claim is “diabetics are over-weight” †^ Convert claim to a

null hypothesis „^ “Diabetics are

not^ overweight” „^ Not overweight = 100 of ideal body weight „^ Therefore,

H : μ = 100^0 „^ Search for evidence against

H^0

†^ Alternative hypothesis

can be

„^ H : μ^1

≠^ 100 (two-sided) „^ H : μ > 100 (one-sided to right)^1 „^ H : μ < 100 (one-sided to left)^1 † In practice, we rarely set

α

Prof. Yang Dai, BioE954 Computational Functional Genomics

Calculate the

t stat

s^ n
sem
ndf
x sem
t
meanof
error
standard
estimated
andnull
under themean
population
where
with

0

0

stat μ

ttells you how many standard errors the sample mean falls fromstat^ hypothesized population mean
424.^400.^318100778. 112400.^3

stat

s = semn x^ μ t sem ndf

ttells you the sample mean is 3.76 standard error away from hypothesizedstat^ population mean on
t^17

Prof. Yang Dai, BioE954 Computational Functional Genomics

One-sample

t^ test - Summary

Conditions: †^ Simple random sample †^ Normal population or large

n

†^ σ

estimated with

s

†^ Measurements are validProcedure (Steps) †^ Null and alternative hypotheses †^ α

(fixed-level testing only) †^ Test statistic is

t stat

†^ Convert

t stat^

to^ p^

value with

t^ table or computer

†^ draw the conclusion

Prof. Yang Dai, BioE954 Computational Functional Genomics

Example – variance test †^ When we have two independent samples, we might ask if the variancesof the two populations differ. †^ Consider the following two sets of data:Sample 1: {3, 4, 5, 8}

Sample 2: {4, 6, 7, 9}

The first sample has s

2 =4.677 and the second sample has s^1

2 =4.333.^2

Is it possible that the observed difference reflects random variation andthe variances in the population are the same? † We test null hypothesis: † We ask “What is the probability of taking samples from two populationswith identical variances and observing sample variances as different as^2 s^ and s^1

2?^2 †^ If this probability is low (say, less than .06 ), we will reject

H^ and^0

conclude the two samples came from populations with unequalvariances. If this probability is

not^ too low, we will say there is insufficient

evidence to reject the null hypothesis. † The process can be performed with an F ratio test.

:^

H

Prof. Yang Dai, BioE954 Computational Functional Genomics Paired and Independent Samples †^ Paired samples

are samples in which natural or matched couplings occur. In paired samples, each data point in one sample is matched to aunique data point in the second sample. An example of a paired sampleis a pre-test/post-test study design in which a factor is measured beforeand after an intervention. Sample size : n

=n^12

†^ Using paired samples, we could take two measurements on individualsin the sample before and after certain treatment. These data are paired. †^ Independent samples

consider two or unrelated separate groups. Two

samples are independent when the data points in one sample areunrelated to the data points in the second sample. † We could also study the effects of different medications in two separategroups, e.g. Women and In this instance, data are obtained fromunrelated groups and data points in one sample would not be matched tothe data points in the second sample.

Prof. Yang Dai, BioE954 Computational Functional Genomics

Example „^ Researchers wish to know if the data they have collected providesufficient evidence to indicate the difference in mean serum uric acidlevels between normal individuals and individuals with Down’s syndrome.The data consist of serum uric acid readings on 12 individuals witt Down’ssyndrome and 15 normal individuals. The means are „^ We assume the data constitute two independent random simples eachdrawn from a normally distributed population with a variance equal to 1 forthe Down’s syndrome population and 1.5 for the normal distribution. „^ Hypotheses. „^ When the null hypothesis is true, the test statistics follows the standardnormal distribution. „^ LetThe critical value for z is +-1.96.

Reject

. (^100) / (^4). (^3) , (^100) / (^5). 4

2 1

mlmg xml mgx

= = (^21222121) 2 21 (^2101)

)( 0 )(: :

0 :

x^ nn x H HA statisticsTest

μμ σσ μμ μμ

−−− + =− ≠− (^05). (^0) =α

(^0102). 0

(^96). (^157). 2 (^0) ) (^4). (^35). (^4) ( (^5). (^1115120) =

= −−= z + H p