eduKateSG · Why Science?
Extract a useful low-dimensional signal from sparse count data—while checking which zeros, covariates and modelling choices shaped the map
Reading routes
Science learning becomes useful when a familiar object or observation is turned into a system of quantities, mechanisms and claim limits. This guide owns one applied evidence-reading job inside eduKateSG’s wider Science estate. It connects naturally to Why Science Single Cell Rna Sequencing Barcodes Transcriptome Heterogeneity Evidence; Why Science Mast Hurdle Models Single Cell Differential Expression; Why Science Scdd Distributional Changes Single Cell Expression; Why Science Tradeseq Pseudotime Gene Expression Trajectories; Education Hub; Singapore Secondary School Directory; Career Adulthood Hub; Science Learning Hub. It also keeps current school and public claims traceable to visible primary sources: ZINB-WaVE primary study; ZINB-WaVE PubMed record; ZINB-WaVE open full text; Official Bioconductor zinbwave package; 2026 Singapore–Cambridge O-Level Biology syllabus; MOE G2/G3 Lower Secondary Science syllabus; 2026 MOE G2 Computing syllabus. The sources describe the scientific scope; this article translates that scope into a calm route for Primary Science, PSLE Science, Secondary Science, O-Level Science, STEM exploration, school choices and career pathways without inventing admission or employment outcomes.
ZINB-WaVE—Zero-Inflated Negative Binomial-based Wanted Variation Extraction—was introduced by Risso and colleagues in Nature Communications in 2018. It models count data with negative-binomial variation, a zero-inflation component, observed covariates and latent factors to produce a low-dimensional representation. That representation can support visualisation, clustering and lineage exploration, but it remains a fitted summary: sparse counts, model specification, penalties and downstream choices all influence what becomes visible.
Inside this guide
1–12 · Foundations and models
- 1. Begin with sparse counts
- 2. Define wanted variation
- 3. Define unwanted variation
- 4. Understand negative-binomial variation
- 5. Understand structural zeros cautiously
- 6. Choose a clear downstream purpose
- 7. Read the 2018 evidence in scope
- 8. Preserve raw-count provenance
- 9. Build cell and gene metadata
- 10. Inspect depth and detection
- 11. Create a design matrix deliberately
- 12. Select latent dimension
13–24 · Evidence, testing and applications
- 13. Set penalties transparently
- 14. Fit the model reproducibly
- 15. Practise with a fictional ZINB-WaVE table
- 16. Read the W matrix
- 17. Inspect fitted mean and zero components
- 18. Visualise without confusing axes
- 19. Cluster as a downstream decision
- 20. Explore lineages conditionally
- 21. Use known labels as checks
- 22. Run dimension sensitivity
- 23. Run penalty sensitivity
- 24. Compare zero-inflated and simpler models
25–36 · Learning, decisions and pathways
- 25. Hold out samples when possible
- 26. Compare with PCA
- 27. Compare with scDD
- 28. Build a representation evidence card
- 29. Connect ZINB-WaVE to school science
- 30. Try a map-compression activity
- 31. Connect to mathematics
- 32. Connect to computing and AI literacy
- 33. Connect to school and career pathways
- 34. Create a family evidence habit
- 35. Use precise ZINB-WaVE language
- 36. Finish with a counts-to-map bundle
Section 1 of 36
1. Begin with sparse counts
A single-cell count matrix contains many zeros, different library sizes and more genes than can be viewed directly. The scientific task is to compress it without erasing the structure needed for the question.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 2 of 36
2. Define wanted variation
Wanted variation is the biological structure an analysis hopes to retain, such as cell identity or a developmental continuum. The model cannot discover the analyst’s intention unless covariates and evaluation criteria make it testable.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 3 of 36
3. Define unwanted variation
Batch, library depth and processing effects can obscure biology. Calling a factor unwanted requires evidence because a technical label may also be entangled with condition or sample.
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 4 of 36
4. Understand negative-binomial variation
Count data often vary more than a Poisson model allows. Negative-binomial dispersion provides room for this extra variability instead of forcing every departure into the latent map.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 5 of 36
5. Understand structural zeros cautiously
The zero-inflation component represents an extra route to zero beyond the count distribution. Its usefulness depends on assay, preprocessing, gene and model fit.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 6 of 36
6. Choose a clear downstream purpose
A representation for visualisation may not be optimal for clustering, trajectory inference or differential testing. Declare the intended use before tuning the model.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
Section 7 of 36
7. Read the 2018 evidence in scope
Risso and colleagues introduced ZINB-WaVE as a flexible framework for extracting low-dimensional signal from zero-inflated, overdispersed count data and evaluated it through simulations and single-cell applications.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 8 of 36
8. Preserve raw-count provenance
Record genome build, quantification, cell calling, feature filtering and matrix orientation. A sophisticated model cannot repair an ambiguous input.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 9 of 36
9. Build cell and gene metadata
Link each cell to sample, batch, condition and quality fields, and each feature to stable identifiers. Check uniqueness and missing values before fitting.
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 10 of 36
10. Inspect depth and detection
Plot total counts, detected genes, mitochondrial fractions and zero rates by sample and batch. These patterns guide covariates and reveal confounding.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 11 of 36
11. Create a design matrix deliberately
Known covariates enter through explicit matrices. Avoid including redundant terms or variables perfectly aligned with the biological contrast.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 12 of 36
12. Select latent dimension
Too few factors can blur genuine populations; too many can encode noise. Use held-out behaviour, stability and downstream reproducibility rather than one attractive picture.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
Section 13 of 36
13. Set penalties transparently
Regularisation controls model flexibility and numerical behaviour. Record all values and explain whether they were defaults, data-driven selections or sensitivity choices.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 14 of 36
14. Fit the model reproducibly
Log the function call, seeds, convergence messages, computing environment and elapsed resources. A result that cannot be recreated is difficult to audit.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 15 of 36
15. Practise with a fictional ZINB-WaVE table
This classroom table is invented and is not a result from the ZINB-WaVE paper.
| Fictional setting | Latent factors | Batch covariate | Stable clusters | Caution |
|---|---|---|---|---|
| A | 2 | No | 3 | Batch split |
| B | 5 | Yes | 4 | Check rare cluster |
| C | 10 | Yes | 7 | Possible overfitting |
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 16 of 36
16. Read the W matrix
Rows of W locate cells in the learned latent space. Plot these coordinates with sample, batch and known markers, not only final cluster labels.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 17 of 36
17. Inspect fitted mean and zero components
Check whether fitted counts and zero frequencies resemble observations across genes and samples. Systematic residual structure signals a model mismatch.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 18 of 36
18. Visualise without confusing axes
A two-dimensional plot may use W directly or another embedding of W. Distances and visible gaps depend on both stages and should not be overinterpreted.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
Section 19 of 36
19. Cluster as a downstream decision
Clusters are produced by a separate algorithm, resolution and neighbour graph. Repeat clustering across reasonable settings and verify marker coherence.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 20 of 36
20. Explore lineages conditionally
A trajectory built from latent coordinates is conditional on feature filters, latent dimension and root choice. It does not measure time without temporal evidence.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 21 of 36
21. Use known labels as checks
When trustworthy annotations exist, ask whether related cells remain near one another and technical batches mix appropriately. Avoid tuning solely to reproduce expected labels.
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 22 of 36
22. Run dimension sensitivity
Refit with nearby latent dimensions and compare neighbourhoods, clusters and broad biological patterns. Report which conclusions remain stable.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 23 of 36
23. Run penalty sensitivity
Vary regularisation within plausible ranges. If a rare population appears only at one setting, mark it as exploratory.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 24 of 36
24. Compare zero-inflated and simpler models
Fit defensible alternatives when feasible. Agreement suggests robustness; disagreement identifies assumptions requiring closer examination.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
Section 25 of 36
25. Hold out samples when possible
Evaluate whether coordinates or downstream labels generalise to unseen biological samples rather than memorising the training collection.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 26 of 36
26. Compare with PCA
PCA is fast and familiar but does not model raw sparse counts in the same way. The comparison should use the same cells, genes and downstream evaluation.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 27 of 36
27. Compare with scDD
scDD tests changes in full expression distributions between conditions. ZINB-WaVE primarily learns a low-dimensional representation for cells and can feed later analyses.
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 28 of 36
28. Build a representation evidence card
Record filters, covariates, latent dimension, penalties, fit diagnostics, stability, downstream use, sample coverage and external validation.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 29 of 36
29. Connect ZINB-WaVE to school science
A good model simplifies a complex system while preserving features relevant to a question, just as a map omits detail but retains useful routes.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 30 of 36
30. Try a map-compression activity
Describe the same classroom using two, five and ten measurements. Test which version preserves seating groups and which begins to encode incidental clutter.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
Section 31 of 36
31. Connect to mathematics
Counts, probabilities, dispersion, matrices, dimensions and regularisation show how algebra and statistics create useful summaries from high-dimensional observations.
ZINB-WaVE combines a negative-binomial count model with a zero-inflation component, observed covariates and latent factors; each part answers a different modelling need.
Archive the sample manifest, count matrix provenance, formula, contrasts, filters, software versions, random seeds and exclusions so another analyst can reconstruct the decision path.
Section 32 of 36
32. Connect to computing and AI literacy
An embedding is learned, not photographed. Inputs, objectives and hyperparameters determine what a computer makes easy to see.
The latent matrix W is a compact coordinate system learned from the data. Its axes are not named biological processes unless external evidence supports that interpretation.
Keep the biological sample as the unit of replication. More cells can improve cellular description, but they do not create more independent people, animals or cultures.
Section 33 of 36
33. Connect to school and career pathways
Interest in models and cells can lead toward biology, biotechnology, statistics, computing, medicine or bioinformatics through different education routes.
Library size, batch and other known influences can enter the model, helping separate wanted latent structure from recorded nuisance variation when the design supports that separation.
Use negative controls, simulated nulls or label permutations only when their exchangeability assumptions match the design, and state which false signal each check can reveal.
Section 34 of 36
34. Create a family evidence habit
When a colourful cell map appears, ask what data entered it, which variables were adjusted, how many dimensions were chosen and whether samples were held out.
A zero count may reflect low expression, limited capture or other processes. A zero-inflation model is an assumption to test, not a universal biological verdict about every zero.
Report effect direction, uncertainty, sample support and sensitivity beside adjusted evidence; a ranked gene list or colourful embedding is not a complete result.
Section 35 of 36
35. Use precise ZINB-WaVE language
Say the fitted representation separates or organises cells under stated settings. Avoid saying it proves a cell type, lineage or disease mechanism.
Penalty choices and the selected latent dimension influence stability. Neighbouring settings should be explored before clusters or trajectories are treated as robust.
Create an evidence card naming the comparison, measured modality, statistical unit, model, result, validation status, unresolved alternatives and narrowest defensible claim.
Section 36 of 36
36. Finish with a counts-to-map bundle
Deliver raw-count provenance, metadata, design matrices, parameters, diagnostics, latent coordinates, stability checks, sample-aware validation and bounded conclusions.
Downstream clustering, visualisation and lineage inference inherit uncertainty from the fitted representation, so validation must travel with the coordinates.
Write association, representation or distributional difference when that is what was tested. Reserve cause, diagnosis and benefit for designs that support stronger claims.
## Source date and scope note Primary papers, open records and official software documentation were checked for this article on 11 October 2026. Software interfaces and recommendations can change, so readers should consult the linked current documentation before reproducing an analysis.
## Final reader checklist Before accepting a claim, confirm the biological sample count, condition definition, measured modality, preprocessing, statistical unit, model formula, uncertainty, software version, negative controls, sensitivity checks, independent validation and the exact boundary between association and causation.
Contents · Previous section · Continue to the Science Learning Hub
