Moderated t-Test for Expression Data (Empirical Bayes)
Moderated t-test for expression data (empirical Bayes) tests each gene for a group difference while shrinking gene-wise residual variances toward a common prior estimated from all genes.
발현 자료의 조정 t 검정(경험적 베이즈)은 유전자마다 집단 차이를 검정하되, 유전자별 잔차분산을 모든 유전자에서 추정한 공통 사전분포 쪽으로 수축시켜 쓰는 방법입니다.
I have log expression values for 15,000 genes in 4 treated and 4 control samples; which genes are differentially expressed when sample sizes are this small?
처리군 4개, 대조군 4개 표본에서 유전자 15,000개의 로그 발현값을 얻었는데, 표본이 이렇게 적을 때 어떤 유전자가 차등 발현되었는지 어떻게 찾나요?
Each gene is fitted with the same linear model (group plus optional covariates), and its residual variance is pulled toward a prior s0² with d0 prior degrees of freedom estimated from the spread of all gene variances, so the moderated t uses d + d0 degrees of freedom. This stabilises tests with few replicates; results are reported with log fold changes, Benjamini-Hochberg q-values and a B log-odds statistic, plus a moderated F when there are three or more groups.
When to use Moderated t-Test for Expression Data (Empirical Bayes)
- Rows are samples, columns are many genes or features with continuous (log-scale) expression, and a group column defines the comparison.
- There are few replicates per group, so ordinary per-gene t tests have unstable variance estimates.
- You want a ranked gene table with fold changes, adjusted p-values and counts of up- and down-regulated genes.
When to use something else
- The data are raw sequencing counts with strong mean-variance dependence; use Differential Expression for RNA-seq Counts (Negative Binomial GLM).
- You are testing only one or a few outcomes; an Independent Samples t test or Welch's t-test is enough.
Assumptions and requirements
- Expression is on a log scale (values ≥ 0 with a maximum above 50 are transformed to log2(x+1) automatically).
- Residuals within each gene are approximately normal and samples are independent.
- Gene variances follow a scaled inverse chi-square prior; shrinkage is reliable with hundreds or more genes and at least two samples per group.
- Genes with any missing value are dropped (no imputation); up to 60,000 genes per run.
What the analysis reports
- Gene table: log fold change, average expression, moderated t, p, BH q, B statistic and the ordinary t and p for comparison
- Prior degrees of freedom d0, prior variance s0² and total degrees of freedom
- Numbers of genes below the FDR threshold, split into up and down
- Moderated F and its p for designs with three or more groups; bar chart of top genes
How to report it
Empirical Bayes moderated t-tests (log2 expression, [value] genes, n = [value]) shrank gene-wise variances toward s0² = [value] with d0 = [value] prior degrees of freedom; [value] genes had BH q < .05 ([value] up, [value] down), and the top gene was [value] (log fold change = [value], moderated t = [value], p = [value]).
Related methods
- Differential Expression for RNA-seq Counts (Negative Binomial GLM)
- Welch's t-test
- Benjamini-Hochberg FDR Correction
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Moderated t-Test for Expression Data (Empirical Bayes) on Quorant
- Data you need
- a table (CSV or Excel) with item columns (e.g. questionnaire items) and a grouping variable
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.