Last updated: 2019-06-16
Checks: 2 0
Knit directory: stats topics/
This reproducible R Markdown analysis was created with workflowr (version 1.4.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
Unstaged changes:
Modified: analysis/index.Rmd
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view them.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | ffc3849 | Zhengyang Fang | 2019-06-16 | start |
question asked \(\neq\) data measured / analysis performed
confounding variables
Analysis assumes a model that is false
The data is used to guide choices made in the analysis
Multiple comparisons
Binary - hypothesis testing
Parameter estimation
Prediction
Situations where we aren’t targeting a single number
Assuming:
Formulation of Multiple testing
problem:
There are a list of null hypothesis \(H_{o1},H_{o2},\dots,H_{on}\), and the p-values for each hypothesis are \(p_1,p_2,\dots,p_n\).
A Testing procedure
is a function mapping \(\{p_1,\dots,p_n\}\) to a subset of \(\{1,2,\dots,n\}\) (discoveries/rejections).
Possible goals to control false positives
:
FamilyWise Error Rate (FWER): Bound \(\mathbb P\)(any false discoveries)
Bound \(\mathbb P\)(more than … % false discoveries)
Bound \(\mathbb P\)(# false discoveries)
Bound \(\mathbb P\)(proportion of false discoveries(FDP) )
Bound \(\mathbb P\)(false discoveries rate (FDR) )
1, 4, 5 are more common (they have abbreviation!)
Goal: test \(H_{o,global}=\) all n nulls are true \((=\bigcap_{i=1,2,\dots,n}H_{oi})\).
Statistic \(= \min\{p_1,p_2,\dots,p_n\}.\)
Reject if \(\min_i \{p_i\}\leq c\), where \(c = \frac \alpha n\), \(\alpha\) is the level of test.
Proof (upperbound of type_I error): \(\mathbb P(\min_i p_i\leq c)\leq \sum_i\mathbb P(p_i\leq c)=nc\), using the property \(\mathbb P(A\cup B)\leq \mathbb P(A)+\mathbb P(B)\).
Very conservative: the bound in the proof is hard to reach.
Statistic \[F = -2\sum_i \log(p_i).\]
Under \(H_o,global\), \(p_i\sim unif (0,1)\), if additionally \(p_i\)’s are independent, then \(F\sim \chi_{2n}^2\).
Reject if \(F\geq (1-\alpha)\) -quantile of \(\chi^2_{2n}\).
Reject \(H_{o,global}\) if:
Theorem: Under \(H_{o,global}\), if \(p_i\)’s are independent. Then \(\mathbb P\)(Simes rejects at level \(\alpha\))\(=\alpha\).