640 likes | 838 Views
How Statistics Can Empower Your Research? Part II. Xiayu (Stacy) Huang Bioinformatics Shared Resource Sanford | Burnham Medical Research Institute. Outline. Summary of Previous Talk Descriptive & inferential statistics Student’s T test, one-way ANOVA
E N D
How Statistics Can Empower Your Research? Part II Xiayu (Stacy) Huang Bioinformatics Shared Resource Sanford | Burnham Medical Research Institute
Outline • Summary of Previous Talk • Descriptive & inferential statistics • Student’s T test, one-way ANOVA • More common statistical tests and applications • Repeated measures one-way ANOVA • Two-way ANOVA • Power analysis • Common data transformation methods
Summary of previous talk • Descriptive statistics • Measure of central tendency, dispersion, etc. • Inferential statistics • Hypothesis, errors, p-value, power • Three statistical tests and their applications • Two sample unpaired test, paired t test and one way ANOVA Power point presentation at http://bsrweb.burnham.org
one-way anova example • Goal:studying the effect of mice genotypes on their learning skills on rotarod. • Dependent variable: number of seconds staying on a rotarod
Data analysis in graphpad prism Variance check
Repeated measures one-way anova • Compares the means of 3 or more groups • Repeated measurements on the same group of subjects • Assumptions: • Sampling should be independent and randomized. • Equal sample size per group preferred. • Sphericity or homogeneity of covariance • Data is normally distributed.
Application of repeated measures one-way anova in biology Days
Repeated measures one-way anova example • Goal:studying the effect of practice on maze learning for rats. • independent variable : days • dependent variable: number of errors made each day Rat_1 Rat_2 Rat_3
table format in graphpad prism– repeated measures one-way anova
Two-way anova • One dependent variable and two independent variables or factors • Assumptions • samples are normally or approximately normally distributed • The samples from each treatment group must be independent • The variances of the populations must be equal • equal sample size per treatment group preferred • Treatment group • all possible combinations of the two factors
Two-way anova • Main effect • Effect of individual factor • Interaction effect • Effect of one factor on the other • Hypotheses • The population means of the first factor A are equal • The population means of the second factor B are equal • There is no interaction between the two factors • Test • F test: mean square for each main effect and the interaction effect divided by the within variance
Main effects • Asprin • Ibuprophen • Asprin • Ibuprophen B--Treatment A--Time Pain score B A 1st hr 2nd hr 1st hr 2nd hr II. Main effect of treatment only I. No main effects for both time and treatment • Asprin • Ibuprophen • Asprin • Ibuprophen 1st hr 2nd hr 1st hr 2nd hr III. Main effect of time only IV. Main effects of time and treatment
Main effect and interaction effect • Asprin • Ibuprophen • Asprin • Ibuprophen Pain score 1st hr 1st hr 2nd hr 2nd hr V. Interaction effect only VI. Main effect of time only and interaction effect • Asprin • Ibuprophen • Asprin • Ibuprophen 1st hr 2nd hr 1st hr 2nd hr VII. Main effect of treatment only and interaction effect VIII. Main effects of time and treatment, and interaction effect
Two-way anova experimental design I. Balanced design with equal replication (Best) II. Proportional design replication (Acceptable) III. One replication only (Not recommended) IV. Disproportional design (Bad)
Application of two-way anova in biology 0 mM 50 mM 75 mM Microarray: Time-dose relationship
Two-way anova with replication example Study the effect of gender and anti-cancer drugs on tumor growth
Two-way repeated measures anova example Goal: Investigating gender and caffeine consumption on the effect of memory Independent variables: gender and caffeine consumptions Dependent variable: memory score
Analysis result Matching not effective???
Outline • Summary of Previous Talk • Descriptive & inferential statistics • Student’s T test, one-way ANOVA • More common Statistical tests and Applications • Repeated-measures one-way ANOVA • Two-way ANOVA • Power analysis • Common data transformation methods
Power analysis • Power depends on: • Sample size ( ) • Standard deviation ( or ) • Minimal detectable difference ( ) • False positive rate ( ) • Power analysis includes: • Sample size required • Effect size or Minimal detectable difference • Power of the test effect size
Power analysis software/packages • G*Power (free!!!) • Optimal design (free!!!) • SPSS sample power • PASS • SAS proc power, Stata sampsi, etc • Mplus for more advanced/complicated analysis • Many free on-line programs • http://www.stat.uiowa.edu/~rlenth/Power/
Two independent sample power analysis--input and output parameters in G*Power • Sample size required • Input parameters • Effect size ( ) • False positive rate ( ) • Minimum Power ( ) • Ratio of two sample sizes • Output parameters • Noncentrality parameter ( ) • Critical t • Degree of freedom • Sample size for each group • Total sample size • Actual power
Two independent samples power analysis--input and output parameters in G*Power • Effect size • Input parameters • False positive rate • Minimum power • Sample size for each group • Output parameters • Noncentrality parameter • Critical t • Degree of freedom • Effect size • Minimal detectable difference
Factor affecting power—two independent samples • Power increases as total sample size increases • Power increases as effect size increases • Power increases as significance level increases
One-way anova power analysis--input and output parameters in G*Power • Sample size required • Input parameters • Effect size ( ) • False positive rate ( ) • Minimum Power ( ) • Number of groups • Output parameters • Noncentrality parameter ( ) • Critical F • Degree of freedom • Total sample size • Actual power
One-way anova sample power analysis--input and output parameters in G*Power • Effect size • Input parameters • False positive rate • Minimum power • Total sample size • Number of groups • Output parameters • Noncentrality parameter • Critical F • Numerator and denominator degree of freedom • Effect size • Minimal detectable difference