1. Home
  2. Explore
  3. Statistics
  4. Biomedical Data Modeling

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Biomedical Data Modeling

Speaker 1Speaker 2

Biomedical Data Modeling

16:19
0:00-16:19
  1. Hope

    Welcome to our conversation about data modeling and inference. This seminar section follows an overview of computing and cloud-based infrastructure for biomedical big data, and it begins with a practical challenge: how do we understand complex datasets well enough to find real patterns?

  2. Maria

    Our guide is a biostatistician whose research uses statistical methods for genomics and computational biology, including microarrays and next-generation sequencing. The central idea is that data analysis is not just pushing measurements through a standard workflow. We need to understand what each step assumes and whether those assumptions fit the data.

  3. Hope

    The talk starts with a basic question from statistical inference. Imagine comparing the average heights of two populations, such as men and women. We usually cannot measure everyone, so we take samples and use the sample averages to learn about the population averages.

  4. Maria

    But a sample average is not fixed. Take a different sample of ten people and you’ll probably get a different average. If we repeatedly took samples and plotted their averages, we’d get a sampling distribution that shows how much the estimate can vary just because we sampled different people.

  5. Hope

    That variability is the foundation of inference. It helps us judge whether an observed difference is consistent with the population means being the same, or whether it is large relative to the variation we’d expect from sampling. In the height example, a sample showed a difference of about three inches, but we still need to ask how uncertain that estimate is.

  6. Maria

    And increasing the sample size makes the sample mean less variable. In the familiar approximation, the standard error of a mean is the population standard deviation divided by the square root of the sample size. That’s why larger samples generally give us more precise estimates.

  7. Hope

    In practice, we often use a t-statistic to compare a difference with its estimated uncertainty. A model tells us how much that statistic would vary by chance, which lets us calculate a p-value or construct a confidence interval. The particular model can vary, but the important point is that inference accounts for variability.

  8. Maria

    That point can get lost when people try to reduce variability by pooling biological samples. Consider comparing gene expression between two strains of mice. If we measure twelve mice in each strain, the differences among mice help us judge whether a gene’s expression difference might show up again in another experiment.

  9. Hope

    But if we combine the twelve mice into one pool and then measure that pool four times, those four measurements are technical replicates of the same pooled material. They can tell us something about measurement repeatability, but they no longer show us the variation from mouse to mouse.

  10. Maria

    It’s like measuring ten people’s heights, averaging them, and then measuring that one average four times. You might see very little variation across those repeated measurements, but you haven’t learned whether the original group included both tall and short people. That biological variation is exactly what you need for the inference about the population.

  11. Hope

    The talk illustrated this with two genes. After pooling, both appeared to have very small t-statistics in the sense of very small chance probabilities, and both looked statistically significant. But when the original measurements across mice were examined, one gene showed substantial biological variability and was no longer significant; the other was more consistent and remained significant.

  12. Maria

    So the pooled results could make a claim look more reliable than the experiment actually supports. The question is not simply whether we can measure a sample repeatedly. It’s whether a result is likely to hold across the biological individuals we want to understand. The researcher noted that this issue was discussed in a paper on experimental design published in 2005.

  13. Hope

    There’s another inference issue that becomes especially important with high-throughput data: multiple comparisons. If we test ten thousand genes and use a five-percent p-value cutoff for each one, then even if all the null hypotheses are true, we’d expect about five hundred results to pass that cutoff by chance.

  14. Maria

    That’s why we can’t treat each test as if it were the only test we ran. When thousands of genes, methylation sites, or binding sites are examined, the analysis needs to account for the many simultaneous comparisons. Otherwise, a list of apparently significant results can contain many false positives.

  15. Hope

    The talk then moves from basic inference to a broader lesson: don’t trust a workflow just because it looks standard. A diagram might suggest that data go through a series of boxes and emerge as knowledge, but every box embodies choices and assumptions. A quick plot can reveal that a supposedly routine procedure is producing confusion rather than discovery.

  16. Maria

    Exploratory data analysis is not just a way to catch mistakes. It can also help reveal patterns that a poorly chosen analysis would miss. The speaker compared this to improvements in microscopes: when scientists could see a clearer image, they could discover things that had been there all along but were previously out of focus.

  17. Hope

    For data, figures play a similar role. They turn large collections of measurements into something we can inspect. A plot can show whether samples group as expected, whether there are strange clusters, or whether an apparent signal might instead come from a problem in how the data were collected or processed.

  18. Maria

    One example used gene-expression measurements from public repositories. Each sample had around twelve thousand measurements, so the researcher used the first two principal components to make a two-dimensional overview. Each point represented a sample, and the distances between points in that summary were intended to reflect similarities in the original high-dimensional data.

  19. Hope

    The samples came from several tissues, and we might expect samples from the same tissue to have similar gene-expression patterns. But the plot did not show the expected groups cleanly: some samples from different tissues were close together, while samples from the same tissue were far apart. If we blindly ran a clustering workflow, we might incorrectly conclude that tissue types were not very distinct.

  20. Maria

    Instead, the researcher went back to the measurements and examined them more closely. That led to a second example, involving microarray measurements and a test of whether the technology could distinguish two samples that were actually the same. A single RNA sample was split into two portions, which were then measured separately.

  21. Hope

    For most genes, the two measurements should have agreed, so their log ratios should have been near zero. The experiment also included genes deliberately made twice as abundant in one sample, so those genes provided a known signal. The goal was to see whether the analysis could distinguish those genuine differences from noise.

  22. Maria

    The original processing produced a plot with a lot of noise. The deliberately altered genes were visible, but other points had large differences too. If someone had been asked to report the largest changes, the genuine signals could easily have been buried among the noisy measurements.

  23. Hope

    To understand why, the researchers examined how the measurements were generated. A measurement unit captured both gene signal and background. Different units could have different background levels, so the model was roughly: observed measurement equals signal plus a unit-specific background.

  24. Maria

    The original correction approach added measurements intended to capture background alone, then subtracted them from the signal-plus-background measurements. But that assumes the two background measurements are identical, or at least treats them too simply. A negative-control experiment showed they were correlated, but not equal: there was substantial variation between them.

  25. Hope

    Once we allow that randomness into the model, the noise in a difference between measurements depends on the signal size. The mathematical result described in the talk was that the variance of the log-ratio is proportional to the reciprocal of the signal squared. In other words, the correction method could create especially large variability for weaker signals.

  26. Maria

    That matters because the problem was not necessarily that the biology or the instrument was hopelessly noisy. The way the data were modeled and corrected contributed to the problem. A better statistical method could reduce the variance, even if it introduced a small amount of bias—a trade-off related to shrinkage or regularization.

  27. Hope

    With that improved approach, the same data became much clearer. The known altered genes stood out, and the noisy scatter was reduced. Applying the method to the tissue data also produced groups much more consistent with the expected pattern: samples from the same tissue looked alike and differed from other tissues.

  28. Maria

    So that example shows how a better model can improve what the measurements tell us without running a new experiment. But another challenge is less about a measurement correction and more about when and how samples were processed. That’s the batch effect: differences associated with processing batches, dates, labs, or other technical groupings.

  29. Hope

    The seminar described a study comparing gene expression in blood from two ethnic groups. The authors followed recommended processing, used t-tests, and applied a conservative Bonferroni correction for multiple comparisons. Even so, they reported that 1,097 of 4,197 tested genes differed between the groups—a surprising result.

  30. Maria

    A principal-component plot of the samples initially seemed to support that result: the two groups separated clearly. But looking more carefully, the samples also formed clusters within the groups, and one group seemed much more variable than the other. Those patterns suggested there might be another explanation for the separation.

  31. Hope

    The samples had been processed over several years, and the dates were recorded in the raw data files. When the same plot was colored by processing year instead of ethnic group, the clusters lined up with different years. Looking at the data by month revealed further changes, even within one group.

  32. Maria

    That makes the result difficult to interpret because group and processing date were confounded. If one group was mostly processed in one batch and the other group in another, a difference in the measurements could come from biology, from the batch, or from both. The data alone may not let us separate those explanations.

  33. Hope

    Here’s the statistical idea. For each group, we can think of a measurement as a group mean plus individual variation. When we compare the group averages, the shared baseline cancels out, and individual variation averages down. That’s the logic behind the usual comparison and its standard error.

  34. Maria

    But with a batch effect, we also need a batch-specific contribution. If each biological group was measured in a different batch, the difference between the observed averages includes both the biological difference we care about and the difference introduced by the batches. We can’t tell which caused the result if those factors are completely confounded.

  35. Hope

    That can make an ordinary t-test misleading. If the model leaves out batch variation, it underestimates the uncertainty in the comparison, so the test statistics can look larger—and the evidence can look stronger—than it really is. This kind of confounding happens, for example, when all the controls are run first and all the treatments are run later.

  36. Maria

    And batch effects are not unique to high-throughput biology. The talk used historical measurements of the astronomical unit as an example. Estimates from different experiments appeared to shift over time, with confidence intervals that seemed too narrow to explain the differences.

  37. Hope

    When the measurements were considered together and grouped by laboratory, a lab effect became visible. Within an individual lab, the measurements could look consistent, so the reported uncertainty was small. Across labs, though, the results varied much more. That broader variation is the kind of uncertainty we need to consider.

  38. Maria

    When batch structure is present but not perfectly tangled up with the biological question, statistical methods can sometimes help. One family of approaches uses factor analysis to estimate hidden patterns of variation in the data. The researcher showed that the samples had blocks of correlation, and those blocks seemed related to processing dates but were not explained by a simple date label alone.

  39. Hope

    The example used a smaller set of samples—twelve males and twelve females—with dates unevenly distributed between the groups. Some genes on the Y chromosome showed the expected biological difference between males and females. Other genes appeared to vary with date, so a straightforward comparison could mistakenly identify them as sex-related.

  40. Maria

    A correlation plot showed why a simple adjustment for June versus October might not be enough: there were smaller subgroups and additional structure within those dates. Factor-analysis approaches try to represent that kind of hidden structure with additional components, then account for it in the analysis.

  41. Hope

    The tricky part is protecting the biology we actually care about. We want the model to preserve the male–female difference where it is real, while accounting for the patterns that appear to come from batches. Different ways of fitting these models have been developed, which is why this remains an area of research rather than a one-size-fits-all fix.

  42. Maria

    In the example, applying one of these methods reduced the number of apparent false positives among genes not expected to differ. It also helped separate the variation into parts: differences associated with sex, patterns associated with batch, and remaining measurement error. The goal is not to erase every difference, but to distinguish the effects we care about from technical structure.

  43. Hope

    There’s an important limit, though. If the biological group and the batch are completely confounded, the data do not contain enough information to separate them. A statistical correction cannot magically recover an answer that the experimental design made impossible to identify.

  44. Maria

    That’s why good design matters as much as good analysis. Balance groups across batches when possible, retain the biological replicates needed for inference, and explore the data before trusting a workflow’s output. Better modeling can reduce false positives, but it can also help reveal true patterns that were hidden by noisy or poorly processed measurements.

  45. Hope

    The final question was how exploratory discovery fits with confirmation. The speaker’s answer was to work closely with collaborators who understand the subject matter, so that patterns can be judged in the context of existing knowledge. And when possible, follow exploratory findings with confirmatory analyses or experiments.

  46. Maria

    Exploration can generate discoveries, but it can also uncover problems in published results that standard workflows missed. A single surprising result should not automatically become scientific consensus. Replication, confirmation, and the accumulated judgment of experts all contribute to a stronger scientific conclusion.

  47. Hope

    So the through-line is this: inference depends on representing the variation that matters; multiple testing needs to be handled; and data need to be explored, not merely sent through a sequence of boxes. Thoughtful statistical models can clarify measurements and help separate biology from technical effects—but they work best alongside sound experimental design and confirmation.

  48. Maria

    And for listeners who want to build those skills, the speaker mentioned free, self-paced online courses in data analysis, including courses that use R, as well as a free accompanying book whose analysis code is available on GitHub. It’s a practical way to learn both the statistical ideas and how to reproduce the analyses.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent