Statistics And Probability
How is Bayes' theorem applied in medical testing ?
If a disease has prevalence P(D) = 0.01, test sensitivity P(+|D) = 0.95, and false positive rate P(+|D') = 0.05, then: P(D|+) = (0.95 × 0.01) / (0.95 × 0.01 + 0.05 × 0.99) ≈ 0.16. Even with a positive test, the probability of disease is only about 16%, illustrating the base rate fallacy.
The CDF gives the probability that a random variable takes a value less than or equal to x: F(x) = P(X ≤ x). It is non-decreasing, ranges from 0 to 1, and is defined for both discrete and continuous random variables.
The Poisson distribution models the number of events occurring in a fixed interval of time or space. PMF: P(X=k) = (λᵏ × e⁻λ) / k!, where λ is the average rate. Both mean and variance equal λ. It is used for rare events like arrivals, defects, or accidents.
The normal (Gaussian) distribution is a symmetric, bell-shaped continuous distribution defined by mean μ and standard deviation σ. Its PDF is f(x) = (1/σ√(2π)) × e^(-(x-μ)²/(2σ²)). About 68% of data falls within 1σ, 95% within 2σ, and 99.7% within 3σ of the mean.
Statistics And Probability
What are degrees of freedom in a chi-square test?
For a goodness-of-fit test: df = k - 1, where k is the number of categories. For a test of independence: df = (r - 1)(c - 1), where r is the number of rows and c is the number of columns in the contingency table.
If the p-value ≤ α (significance level), reject H₀; the result is statistically significant. If the p-value > α, fail to reject H₀. For example, with α = 0.05, a p-value of 0.03 leads to rejection of H₀, while a p-value of 0.12 does not.
The chi-square test of independence determines whether two categorical variables are related. It compares observed frequencies to expected frequencies: χ² = Σ (O - E)² / E, where E = (row total × column total) / grand total. A large χ² suggests the variables are not independent.
The median is the middle value when data is sorted in order. For an even number of observations, it is the average of the two middle values. It is preferred over the mean when data is skewed or contains outliers, as it is more robust.
Statistics And Probability
What are the conditions for a binomial experiment ?
When σ is unknown, use the t-distribution: CI = x̄ ± t* × (s / √n), where t* is the critical t-value with n-1 degrees of freedom and s is the sample standard deviation. For large n, t* approaches z*.
The mode is the value that appears most frequently in a dataset. A dataset can be unimodal (one mode), bimodal (two modes), or multimodal (more than two modes). If no value repeats, the dataset has no mode.
A binomial experiment requires: (1) a fixed number of trials n, (2) each trial has exactly two outcomes (success/failure), (3) the probability of success p is constant across trials, and (4) trials are independent of each other.
If a disease has prevalence P(D) = 0.01, test sensitivity P(+|D) = 0.95, and false positive rate P(+|D') = 0.05, then: P(D|+) = (0.95 × 0.01) / (0.95 × 0.01 + 0.05 × 0.99) ≈ 0.16. Even with a positive test, the probability of disease is only about 16%, illustrating the base rate fallacy.
Statistics And Probability
What is a controlled experiment ?
Sampling bias occurs when the sampling method systematically favors certain members of the population over others. This produces a non-representative sample and can lead to incorrect conclusions. Examples include voluntary response bias (only motivated people respond) and undercoverage.
If a disease has prevalence P(D) = 0.01, test sensitivity P(+|D) = 0.95, and false positive rate P(+|D') = 0.05, then: P(D|+) = (0.95 × 0.01) / (0.95 × 0.01 + 0.05 × 0.99) ≈ 0.16. Even with a positive test, the probability of disease is only about 16%, illustrating the base rate fallacy.
A controlled experiment manipulates an independent variable while holding other variables constant to observe the effect on a dependent variable. It includes a treatment group and a control group. Random assignment helps ensure that differences in outcomes are due to the treatment, not confounding factors.
Response bias occurs when respondents give inaccurate answers due to question wording, social desirability, leading questions, or misunderstanding. For example, people may underreport alcohol consumption. Careful survey design with neutral wording helps minimize response bias.