Review Exercise for Medical Statistics

📚 Review Exercise for Medical Statistics.docx

Brief overview

This document provides a review of essential medical statistics concepts and methods. It is designed to solidify understanding of foundational statistical principles and their application in medical research and practice.

Key points

  • Overview of basic statistical concepts and data types, including normal distribution, categorical/numerical data, and sampling error.
  • Principles and applications of hypothesis testing, covering t-tests, chi-square tests, ANOVA, and p-values.
  • Calculation and interpretation of confidence intervals for population means and proportions.
  • Exploration of various probability distributions and their uses in statistical inference.
  • Detailed coverage of statistical analysis methods like ANOVA, regression, and chi-square tests.

1. Basic statistical concepts and data types

1.1 Data types

  • Categorical data: Represents qualities or characteristics that can be grouped.
  • Numerical data: Represents quantities that can be measured.
Data TypeDescriptionExamples
CategoricalGroups or categories, no inherent order.Blood type, gender, nationality
NumericalMeasured quantities, can be ordered.Height, weight, age, temperature
  DiscreteCountable, distinct values.Number of children, number of units sold
  ContinuousCan take any value within a range.Lifetime of rats, weight of dogs, temperature

1.2 Measures of central tendency

Measures of central tendency describe the center or typical value of a dataset.

  • Mean: The average of all values. It is calculated by summing all values and dividing by the number of values.
  • The sum of deviations from the mean is always zero.
  • The mean is sensitive to extreme values.
  • Median: The middle value in a sorted dataset. It is resistant to extreme values.
  • Mode: The value that appears most frequently in a dataset.

Mean is easily influenced by extreme values; Median is resistant.

1.3 Data distribution shapes

The shape of a distribution describes how data is spread.

  • Symmetric distribution: The left and right sides of the distribution are mirror images.
  • In a symmetric distribution, the mean, median, and mode are typically equal.
  • Negatively skewed distribution: The long tail is on the left.
  • The mean is typically less than the median.
  • Positively skewed distribution: The long tail is on the right.
  • The mean is typically greater than the median.

For a positively skewed distribution, mean > median. For a negatively skewed distribution, median > mean.

Distribution TypeTail DirectionRelationship: Mean vs. Median
SymmetricN/AMean = Median
Negatively skewedLeftMean < Median
Positively skewedRightMean > Median

1.4 Normal distribution

The normal distribution, or Gaussian distribution, is a fundamental probability distribution.

  • It is characterized by its bell shape and symmetry about the mean.
  • It has two parameters: the mean (μ\mu) and the standard deviation (σ\sigma).
  • The area under the normal curve represents probabilities.
  • A key property is that approximately 68.27% of the data falls within 1 standard deviation of the mean, 95% within 1.96 standard deviations, and 99.7% within 3 standard deviations.

Under a standard normal distribution, the area between -1 and +1 standard deviation is about 0.6827.

Standard Deviation RangeApproximate Area Under Curve
μ±1σ\mu \pm 1\sigma68.27%
μ±1.96σ\mu \pm 1.96\sigma95%
μ±2.58σ\mu \pm 2.58\sigma99%
μ±3σ\mu \pm 3\sigma99.7%

1.5 Samples and sampling error

Statistical inference uses samples to draw conclusions about populations.

  • Sample: A subset of individuals selected from a larger population.
  • Samples should be selected randomly to be representative.
  • There should be enough individuals in a sample for meaningful analysis.
  • Population: The entire group of individuals or items being studied.
  • Sampling error: The natural variation between a sample statistic and the population parameter. It occurs because the sample may not perfectly represent the population.
  • Sampling error cannot be avoided in sampling studies.
  • It is influenced by standard deviation and sample size. Increasing sample size generally decreases sampling error.
  • Standard error: A measure of the variability of sample statistics. It quantifies the typical size of the sampling error.

Sampling error is influenced by standard deviation and sample size. Increasing sample size decreases standard error.

🔑 Important: Sample statistics estimate population parameters, and random sampling is crucial for valid inferences.

1.6 Other key statistical concepts

  • Random variable: A variable whose value is a numerical outcome of a random phenomenon.
  • Examples: Test marks, temperature, number of votes.
  • Not a random variable: the number of seconds in a minute (fixed).
  • Variance: The average of the squared differences from the mean. It is the square of the standard deviation.
  • Coefficient of variation (CV): A measure of relative dispersion. It is calculated by dividing the standard deviation by the mean and multiplying by 100. It has no units and is reported as a percentage.
  • Mean deviation: The average of the absolute differences of each value from the mean.
  • Point estimate: A single value used to estimate an unknown population parameter.
  • Confidence interval: A range of values that estimates an unknown population parameter with a certain level of confidence.
  • A 90% confidence interval means that if we repeatedly drew samples and calculated intervals, 90% of them would contain the true population mean.

📝 Example: A confidence interval of (10, 18) for a population mean suggests the sample mean used for calculation was 14.

  • Hypothesis testing: A statistical method used to make decisions about a population based on sample data.
  • Null hypothesis (H₀): A statement of no effect or no difference.
  • Alternative hypothesis (H₁): A statement that contradicts the null hypothesis.
  • A small p-value (typically < 0.05) leads to rejecting the null hypothesis.
  • A p-value > 0.05 generally means there is not enough evidence to reject the null hypothesis.

A smaller P-value means stronger evidence against the null hypothesis.

🔑 Important: The null hypothesis is a claim about a population parameter, not a sample statistic.

🔑 Important: Rejecting the null hypothesis suggests the alternative hypothesis is likely true.

🔑 Important: When comparing two sample means, if the original observations are adjusted by subtracting a constant, the t-value remains the same.

🔑 Important: Standardized rates are needed for comparing prevalence if the underlying populations differ in characteristics like age.

1.7 Data types

  • Categorical data: Represents qualities or labels that cannot be measured numerically.
  • Examples: blood group, yes/no answers.
  • Examples: height in centimeters, blood pressure.

1.8 Measures of central tendency

  • Mean: The average of all values in a dataset. It is calculated by summing all values and dividing by the number of values.
  • It is sensitive to extreme values.
  • Median: The middle value in a dataset when values are ordered from least to greatest.
  • If there's an even number of values, it's the average of the two middle values.
  • It is not affected by extreme values.

📝 Example: For the data {2, 6, 8, 20, 80, 800}, the median is the average of 8 and 20, which is 14.

📝 Example: For the heights {122, 108, 125, 121, 124}, ordering them gives {108, 121, 122, 124, 125}. The mean is (108 + 121 + 122 + 124 + 125) / 5 = 120.

1.9 Sample properties and error

  • A sample is a subset of a larger group, called the population.
  • The population is the entire group of interest.
  • A sample should be representative of the population.
  • Samples should have enough individuals to be meaningful.
  • Variation within the population is expected.

📝 Example: To evaluate a vaccine's effect, 300 vaccinated children out of 1000 are randomly selected. The population is the 1000 vaccinated children. The sample is the 300 children examined.

  • Sampling error: The difference between a sample statistic and the true population parameter.
  • It occurs because a sample may not perfectly represent the population.
  • The standard error often quantifies sampling error.

🔑 Important: Sampling error reflects random chance, not flaws in the sampling method.

1.10 Distribution shapes and measures

  • Normal distribution: A symmetrical bell-shaped curve where the mean, median, and mode are equal.
  • Many natural phenomena follow this distribution.
  • Positively skewed distribution: The tail of the distribution extends to the right.
  • In this case, the mean is typically greater than the median.

🔑 Important: In a positively skewed distribution, the mean is pulled towards the higher values in the tail.

  • The coefficient of variation (CV) is a measure of relative variability.
  • It is calculated as the standard deviation divided by the mean.
  • It is useful for comparing variability between datasets with different means.

Math Formula: CV=Standard DeviationMeanCV = \frac{\text{Standard Deviation}}{\text{Mean}}

ConceptProperty
RangeDifference between the largest and smallest values
VarianceAverage of the squared differences from the mean
Standard DeviationSquare root of the variance

🔑 Important: The standard deviation divided by the mean is the coefficient of variation.

1.11 Standard normal distribution and confidence

  • The standard normal distribution has a mean of 0 and a standard deviation of 1.
  • Under the standard normal distribution, approximately 95% of the data falls within 1.96 standard deviations of the mean.
  • The area between -1.96 and +1.96 on a standard normal curve is about 0.95.

Area between z=−1.96z = -1.96 and z=+1.96≈0.95z = +1.96 \approx 0.95

  • If heights are normally distributed, approximately 99% of heights fall within 2.58 standard deviations of the mean.
Probability RangeArea under Standard Normal Curve
Within ±1.96\pm 1.96 SDs0.95 (95%)
Within ±2.58\pm 2.58 SDs0.99 (99%)

🔑 Important: A confidence interval for a population mean, like (10, 18), uses the sample mean as its center point. For this interval, the sample mean would be 14.

🔑 Important: The relationship between the mean and median depends on the distribution's skewness. For a positively skewed distribution, the mean is greater than the median.

2. Hypothesis testing and confidence intervals

2.1 Introduction to hypothesis testing and confidence intervals

  • Hypothesis testing: A statistical method to decide if a claim about a population is supported by sample data.
  • Null hypothesis (H0H_0): A statement of no effect or no difference, which we try to disprove.
  • Alternative hypothesis (H1H_1 or HaH_a): A statement that contradicts the null hypothesis, representing what we suspect might be true.
  • P-value: The probability of observing sample data as extreme as, or more extreme than, what was actually observed, assuming the null hypothesis is true.
  • A small p-value (typically < 0.05) provides evidence against the null hypothesis.

Key idea: We aim to reject the null hypothesis, not prove the alternative hypothesis absolutely.

  • Confidence interval (CI): A range of values calculated from sample data that is likely to contain the true population parameter.
  • A 95% CI means that if we were to take many samples and construct CIs, 95% of them would capture the true population parameter.

P-value vs. CI: A CI can be used to conduct a hypothesis test. If the hypothesized value from H0H_0 falls outside the CI, we reject H0H_0.

2.2 Measures of central tendency and dispersion

  • Mean: The average of all values; calculated by summing values and dividing by the number of values. Sensitive to extreme values.
  • Median: The middle value in a sorted dataset. Resistant to extreme values.
  • Mode: The value that occurs most frequently in a dataset.
MeasureCalculation/DefinitionSensitivity to Outliers
MeanSum of values / Number of valuesHigh
MedianMiddle value in a sorted datasetLow
ModeMost frequent valueLow
Mean DeviationAverage of absolute differences from the meanModerate
VarianceAverage of squared differences from the meanHigh
Std. DeviationSquare root of varianceHigh
Coefficient of Variation(Std. Deviation / Mean) * 100%Moderate
  • Variance: The average of the squared differences from the mean.
  • Standard deviation (SD): The square root of the variance; it's a measure of data spread in original units.
  • Coefficient of variation (CV): A measure of relative dispersion, calculated as (SD / Mean) * 100%. It's unitless and useful for comparing variability between datasets with different means.

Key relationship: The sum of deviations from the mean is always zero.

2.3 Distributions and their properties

  • Normal distribution: A bell-shaped, symmetric distribution with two parameters: the mean (μ\mu) and the standard deviation (σ\sigma).
  • In a normal distribution:
  • Mean, median, and mode are equal.
  • The curve is symmetric about the mean.
  • There are specific rules for areas under the curve.
  • Approximately 68.27% of data falls within ±1\pm 1 SD of the mean.
  • Approximately 95% of data falls within ±1.96\pm 1.96 SDs of the mean.
  • Approximately 99.73% of data falls within ±2.58\pm 2.58 SDs of the mean.

Rule of thumb: For adequate approximation of binomial to normal distribution, require np≥5np \geq 5 and n(1−p)≥5n(1-p) \geq 5.

  • Skewness: Describes the asymmetry of a distribution.
  • Positively skewed (right-skewed): The long tail is to the right. Mean > Median > Mode.
  • Negatively skewed (left-skewed): The long tail is to the left. Mean < Median < Mode.
  • Symmetric: Mean = Median = Mode.
Skewness TypeMean vs. Median Relationship
PositiveMean > Median
NegativeMean < Median
SymmetricMean = Median

2.4 Sampling and estimation

  • Population: The entire group of interest.
  • Sample: A subset of the population from which data is collected.
  • Sampling error: The difference between a sample statistic and its corresponding population parameter, due to random chance.
  • Increasing sample size generally decreases sampling error.

Key concept: The individuals in a sample should be selected randomly from the population.

  • Standard error (SE): A measure of the variability of sample statistics (like the sample mean) across different samples. It quantifies sampling error.
  • The SE of the sample mean is affected by the population standard deviation and the sample size (nn). A larger sample size leads to a smaller standard error. SExˉ=σnSE_{\bar{x}} = \frac{\sigma}{\sqrt{n}} (where σ\sigma is the population standard deviation; if unknown, the sample standard deviation ss is used).

Important: Sampling error cannot be avoided if a random sample is taken, but it can be estimated and minimized.

  • Point estimate: A single value used to estimate a population parameter (e.g., sample mean for population mean).

2.5 Hypothesis testing procedures

  • When performing a hypothesis test for two sample means:
  • If the data is normally distributed and population variances are unknown, a two-sample t-test is appropriate.
  • Subtracting a constant from all observations in a t-test for two sample means does not change the t-value.
  • The t-distribution is used when the population standard deviation is unknown. Its degrees of freedom are typically n−1n-1 for a single sample or n1+n2−2n_1 + n_2 - 2 for two independent samples.
  • Chi-square (χ2\chi^2) tests are used for categorical data, such as:
  • Goodness-of-fit tests (comparing observed frequencies to expected frequencies).
  • Tests of independence for contingency tables (e.g., comparing prevalence rates between groups).
  • For a χ2\chi^2 test on a 2x2 table, a continuity correction is used when certain conditions (e.g., T>5 and n>40) are met.

Decision rule: Reject H0H_0 if the computed test statistic (e.g., t-value, χ2\chi^2 value) is more extreme than the critical value, or if the p-value is less than the significance level (α\alpha).

2.6 Analysis of Variance (ANOVA)

  • ANOVA is used to compare means of three or more groups.
  • It partitions the total variation in the data into variation between groups (between-group variance, SSbg) and variation within groups (within-group variance, SSwg).
  • The null hypothesis for one-way ANOVA is that all population means are equal (μ1=μ2=...=μk\mu_1 = \mu_2 =... = \mu_k).
  • The alternative hypothesis is that at least one population mean is different.
  • MSbg (Mean Square Between) and MSwg (Mean Square Within) are used to calculate the F-statistic.
  • MSbg=SSbgdfbgMS_{bg} = \frac{SS_{bg}}{df_{bg}} where dfbg=k−1df_{bg} = k-1 (k = number of groups).
  • MSwg=SSwgdfwgMS_{wg} = \frac{SS_{wg}}{df_{wg}} where dfwg=n−kdf_{wg} = n-k (n = total number of observations).
  • For completely randomized designs, SStotal=SSbg+SSwgSStotal = SS_{bg} + SS_{wg}.
  • ANOVA results should be consistent with t-tests for comparing two means.

Important assumption: For ANOVA, samples should come from populations with equal variances and follow a normal distribution.

2.7 Confidence intervals in practice

  • A confidence interval for a population mean (μ\mu) is typically calculated as: Sample Mean±(Critical Value×Standard Error)\text{Sample Mean} \pm (\text{Critical Value} \times \text{Standard Error})
  • The sample mean is the center of the confidence interval. For an interval (LCL, UCL), the sample mean is LCL+UCL2\frac{LCL + UCL}{2}.
  • For example, if a 95% CI for a population mean is (10, 18), the sample mean used to calculate it was 14.
  • If the null hypothesis value falls outside the CI, it suggests statistical significance at the corresponding alpha level.

Key interpretation: A confidence interval provides a range of plausible values for a population parameter.

🔑 Important: Hypothesis testing and confidence intervals are two sides of the same coin, allowing us to make inferences about population parameters from sample data.

2.8 Introduction to hypothesis testing and confidence intervals

  • Null hypothesis (H0): A claim about a population parameter. It is the statement being tested.
  • Alternative hypothesis (H1): A claim that contradicts the null hypothesis. It is what we accept if H0 is rejected.
  • When rejecting the null hypothesis, we conclude the alternative hypothesis is true.
  • Statistical inferences for qualitative data often use the chi-square test.
  • The t distribution is similar to the standard normal distribution.
  • A confidence interval provides a range of plausible values for a population parameter.

🔑 Important: Hypothesis testing starts with a specific claim (null hypothesis) and uses sample data to decide if there's enough evidence to reject it in favor of an alternative claim.

2.9 Types of statistical tests

  • For comparing the means of two independent groups (e.g., experimental vs. control), a two-sample t-test is appropriate.
  • If the data is paired (e.g., before and after treatment on the same individuals), a paired t-test should be used.
  • The chi-square test is used for categorical data, often to assess independence or compare proportions.

📝 Example: If you are comparing the average ages of two different patient groups, you would use a two-sample t-test, assuming ages are normally distributed.

2.10 Understanding statistical measures and distributions

  • The mean deviation is the average of the absolute differences between each data point and the mean.
  • The standard deviation divided by the mean equals the coefficient of variation (CV).
  • Sampling error refers to the difference between a sample statistic and the population parameter it estimates. This is often quantified by the standard error.
  • A sample should be randomly drawn from the population to ensure it is representative.
  • Variation in the sample is expected and is used for inference; a population with no variation would make sampling studies pointless.
  • The sample median is the middle value of a dataset when ordered. For the data 2, 6, 8, 20, 80, 800, the median is 14.
  • The sample mean is the average of all values in the sample. For heights 122, 108, 125, 121, 124 cm, the mean is 122 cm.

🔑 Important: The mean is an average value for the whole sample; it can increase if the sample size is enlarged, but it's not always larger than the median or standard deviation.

2.11 Data types and distributions

  • Categorical data represent distinct categories, such as blood groups. Blood pressure, height, and vital capacity are typically considered continuous or numerical data.
  • For a positively skewed distribution, the mean is typically greater than the median.

2.12 Confidence intervals and probability

  • The area under the standard normal distribution curve between -1.96 and +1.96 is 0.95. This corresponds to a 95% confidence interval.
  • If a confidence interval for a population mean is (10, 18), the sample mean used to calculate this interval is the midpoint, which is 14.
  • For a normal distribution, the probability that a value falls within 2.58 standard deviations of the mean is approximately 99%.

2.13 Hypothesis testing in practice

  • Scenario: Comparing hemoglobin (Hb) levels between normal females and female patients.

  • Population mean (normal females) = 132 g/L.

  • Sample (patients): n=25, sample mean = 150 g/L, SD = 16.5 g/L.

  • Null hypothesis (H0): The mean Hb is the same for normal females and patients (d=0d=0).

  • Alternative hypothesis (H1): The mean Hb differs (d≠0d \neq 0).

  • Significance level (α\alpha) = 0.05.

  • Calculated test statistic = 5.45.

  • Since the p-value is less than 0.05, we reject H0. There is a statistically significant difference in mean Hb levels.

  • Scenario: Assessing systolic blood pressure in healthy males.

  • A 95% confidence interval for the population mean needs to be calculated.

  • Scenario: Testing if the population mean hemoglobin in a region is 140.0 g/L.

  • Sample: n=144, sample mean = 136 g/L, S = 6.0 g/L.

  • Null hypothesis (H0): μ=140.0\mu = 140.0 g/L.

  • Alternative hypothesis (H1): μ≠140.0\mu \neq 140.0 g/L.

  • Calculated Z statistic = 8.

  • Since Z > Z0.05/2Z_{0.05/2} (which is 1.96), the result is statistically significant. We reject H0.

  • Scenario: Comparing success proportions between two treatments (A and B).

  • Group A: 70 successes from 80 trials.

  • Group B: 75 successes from 90 trials.

  • Null hypothesis (H0): The proportions of success are equal (π1=π2\pi_1 = \pi_2).

  • Alternative hypothesis (H1): The proportions of success are different (π1≠π2\pi_1 \neq \pi_2).

  • The calculated test statistic is 0.59.

  • Since P > 0.05, we do not reject H0. There is no significant difference in the success rates of the two treatments.

GroupSuccessNon-successTotal
A701080
B751590
Total14525170
  • Scenario: Comparing the increase in hemoglobin (g/L) between a novel and a routine drug for children with anemia.
  • Study design: Unpaired design (children randomly allocated to two groups).
  • Null hypothesis (H0): The mean increase in hemoglobin is the same for both drugs (μ1=μ2\mu_1 = \mu_2).
  • Alternative hypothesis (H1): The mean increase in hemoglobin is different (μ1≠μ2\mu_1 \neq \mu_2).
  • Given t=1.0195t = 1.0195.
  • Critical t value (t0.05/2,18t_{0.05/2, 18}) = 2.101.
  • Since t<t0.05/2,18t < t_{0.05/2, 18}, the p-value is greater than 0.05.
  • We do not reject the null hypothesis at the 0.05 significance level. There is no significant difference in the mean increase of hemoglobin between the two drugs.
Novel drug group increase (g/L)Routine drug group increase (g/L)
2414
3618
2520
1415
2622
3424
2321
2025
1527
1923

🔑 Important: Hypothesis testing allows us to make informed decisions about population parameters based on sample data, while confidence intervals provide a range for these parameters.

🔑 Important: Understanding whether to use a t-test, chi-square test, or Z-test, and whether the data is paired or unpaired, is critical for correct statistical inference.

3. Probability distributions and their applications

3.1 Introduction to probability distributions

  • A probability distribution outlines all possible values a random variable can take and their associated probabilities.
  • It can be represented by a table, formula, or graph.

3.1.1 Types of random variables

  • Random variables are quantities whose values are determined by chance.
  • Discrete random variables take on a finite or countably infinite number of values.
  • Example: The number of hamburgers sold each day.
  • Continuous random variables can take any value within a given range.
  • Example: The amount of milk produced by a cow in 24 hours.

3.1.2 Measures of center and dispersion

  • Measures of center describe the typical value in a dataset.
  • Mean: The average of all values. It is computed by summing values and dividing by the count.
  • Median: The middle value when data is ordered. It is resistant to extreme values.
  • Mode: The value that occurs most frequently.
  • Measures of dispersion describe the spread or variability of data.
  • Standard deviation: A measure of the average distance of data points from the mean.
  • Variance: The square of the standard deviation.
  • Coefficient of variation (CV): A measure of relative dispersion, calculated as (standard deviation / mean) * 100. It has no units.
  • Range: The difference between the maximum and minimum values.

Key measures of dispersion: Standard deviation, variance, CV, range.

3.1.3 Distribution shapes

  • The shape of a distribution describes its form.
  • Symmetric distribution: The left and right sides are mirror images. The mean, median, and mode are typically equal.
  • Positively skewed distribution: The long tail extends to the right. Mean > Median > Mode.
  • Negatively skewed distribution: The long tail extends to the left. Mode > Median > Mean.

Shape indicators: Mean, median, and mode relationship.

3.2 Normal distribution

  • The normal distribution is a fundamental continuous probability distribution.
  • It is symmetric, bell-shaped, and defined by its mean (μ{\mu}) and standard deviation (σ{\sigma}).
  • The total area under the normal curve is 1.

3.2.1 Properties and applications

  • A certain rule governs the area under the normal curve:
  • Approximately 68.27% of data falls within 1 standard deviation of the mean (μ±1σ{\mu \pm 1\sigma}).
  • Approximately 95% of data falls within 1.96 standard deviations of the mean (μ±1.96σ{\mu \pm 1.96\sigma}).
  • Approximately 99.7% of data falls within 3 standard deviations of the mean (μ±3σ{\mu \pm 3\sigma}).

Key areas: ±1.96σ\pm 1.96\sigma covers 95% of data.

  • For a normally distributed variable, the mean and median are always equal.
  • The normal distribution can approximate other distributions, like the binomial distribution, under specific conditions.
  • Approximation is adequate if np≥5{\text{np} \ge 5} and n(1−p)≥5{\text{n}(1-\text{p}) \ge 5}.

Binomial to normal approximation: Use if np≥5{\text{np} \ge 5} and n(1−p)≥5{\text{n}(1-\text{p}) \ge 5}.

3.2.2 Standard normal distribution

  • The standard normal distribution is a special case with a mean of 0 (μ=0{\mu=0}) and a standard deviation of 1 (σ=1{\sigma=1}).
  • It uses the variable ZZ. The area between −1-1 and +1+1 is approximately 0.6827.
DistributionMean (μ{\mu})Standard Deviation (σ{\sigma})Area between -1 and +1
Standard Normal010.6827
General NormalVariesVariesDepends on ZZ-scores

Standard normal: μ=0,σ=1,Z{\mu=0, \sigma=1, Z} values.

3.3 Other probability distributions

  • Binomial distribution: Models the number of successes in a fixed number of independent trials, each with two possible outcomes (success/failure) and a constant probability of success.

  • Conditions:

  • Fixed number of trials (nn).

  • Each trial is independent.

  • Constant probability of success (pp).

  • Two outcomes per trial (success/failure).

  • The random variable of interest is typically discrete.

  • t-distribution: Used for statistical inference about the mean when the population standard deviation is unknown and the sample size is small.

  • It is similar to the standard normal distribution but has heavier tails.

  • It depends on degrees of freedom, which is usually n−1n-1 for a single sample mean.

  • The t-distribution approaches the normal distribution as the sample size increases.

t-distribution: Use when σ{\sigma} is unknown and sample size is small.

3.3.1 t-test and ANOVA

  • t-tests are used to compare means.
  • One-sample t-test: Compares a sample mean to a known population mean.
  • Two-sample t-test: Compares the means of two independent groups.
  • Paired t-test: Compares the means of two related groups (e.g., before and after treatment).
  • Analysis of Variance (ANOVA): Used to compare means of three or more groups.
  • It partitions the total variation in the data into variation between groups (treatment effects) and variation within groups (sampling error).
  • Key components: Sum of Squares (SS), Mean Squares (MS), and degrees of freedom (ν{\nu}).
  • Null hypothesis (H0H_0): All population means are equal.
  • Alternative hypothesis (H1H_1): At least one population mean is different.
  • The FF-statistic is the ratio of MS between groups to MS within groups (F=MSbg/MSwgF = \text{MS}_{\text{bg}} / \text{MS}_{\text{wg}}).
  • If H0H_0 is rejected, it means there is a significant difference among at least two group means.
  • Adding or subtracting a constant from observations does not change the t-value or F-value.
ANOVA ComponentNotationRepresents
Sum of Squares BetweenSSbgSS_{\text{bg}}Variation between group means
Sum of Squares WithinSSwgSS_{\text{wg}}Variation within each group (error)
Sum of Squares TotalSStotalSS_{\text{total}}Total variation in the data
Mean Square BetweenMSbgMS_{\text{bg}}Average variation between group means
Mean Square WithinMSwgMS_{\text{wg}}Average variation within groups (an estimate of variance)
Degrees of Freedom bgνbg{\nu}_{\text{bg}}Number of groups minus 1 (k−1k-1)
Degrees of Freedom wgνwg{\nu}_{\text{wg}}Total observations minus number of groups (n−kn-k)
Degrees of Freedom totalνtotal{\nu}_{\text{total}}Total observations minus 1 (n−1n-1)

ANOVA relationship: SStotal=SSbg+SSwgSS_{\text{total}} = SS_{\text{bg}} + SS_{\text{wg}}.

  • For comparing two sample means, ANOVA and the t-test should yield comparable results.

3.4 Sampling and inference

  • Sampling involves selecting a subset of individuals from a larger population.
  • A sample should be representative of the population.
  • Random sampling methods (e.g., simple random sample) are crucial to minimize bias.
  • Sampling error is the natural difference between a sample statistic and the corresponding population parameter. It cannot be avoided when sampling.
  • It is influenced by standard deviation and sample size. Increasing sample size generally decreases sampling error.
  • Standard error is used to quantify sampling error.
  • Statistical inference uses sample data to draw conclusions about a population.
  • Point estimate: A single value used to estimate a population parameter (e.g., sample mean for population mean).
  • Confidence interval: A range of values likely to contain the population parameter.
  • A 90% confidence interval means that if we repeatedly drew samples and calculated intervals, 90% of those intervals would contain the true population mean.
  • It is defined by a lower and upper confidence limit associated with a specific confidence level.

Confidence interval interpretation: 90% of intervals capture the true mean.

3.4.1 Hypothesis testing

  • Hypothesis testing is a formal procedure to assess evidence against a null hypothesis.
  • Null hypothesis (H0H_0): A statement of no effect or no difference (e.g., population mean = 60).
  • Alternative hypothesis (H1H_1): A statement that contradicts the null hypothesis (e.g., population mean ≠\ne 60).
  • p-value: The probability of observing sample results as extreme as, or more extreme than, the ones observed, assuming the null hypothesis is true.
  • A smaller p-value provides stronger evidence against the null hypothesis.
  • If p-value <α< \alpha (significance level, typically 0.05), we reject H0H_0.
  • When H0H_0 is rejected, we conclude there is statistical significance, suggesting the alternative hypothesis might be true.

Hypothesis testing: Reject H0H_0 if p-value < α{\alpha}.

3.4.2 Specific tests

  • Chi-squared test (χ2{\chi^2} test): Used for categorical data to test goodness-of-fit or independence in contingency tables.
  • Requires sample size (nn) and expected cell counts to be sufficiently large (e.g., T>5T>5 and n>40n>40 for continuity correction).
  • Regression analysis: Examines the relationship between variables.
  • Residuals represent the difference between actual and predicted y values.
  • In simple linear regression, the slope indicates the average change in y per unit change in x.

Regression residuals: Actual y minus predicted y.

🔑 Important: Understanding the properties and appropriate uses of different probability distributions is essential for accurate statistical inference and decision-making in various fields.

4. Statistical analysis methods

4.1 Analysis of Variance (ANOVA)

  • ANOVA: A statistical method to compare means of three or more groups.
  • Null hypothesis (H0): All population means are equal.
  • Alternative hypothesis (Ha): At least one population mean is different.

H0: μ1=μ2=⋯=μk\mu_1 = \mu_2 = \dots = \mu_k Ha: Not all μi\mu_i are equal.

  • In a completely randomized design, MSbg (Mean Square Between groups) indicates the effect of the treatment.
  • MSwg (Mean Square Within groups) indicates the sampling error.
  • The total sum of squares (SStotal) equals the sum of the between-group sum of squares (SSbg) and the within-group sum of squares (SSwg).

SStotal = SSbg + SSwg

  • If the null hypothesis in a one-way ANOVA is not rejected, SSbg is determined by random sampling error.

  • ANOVA and t-tests yield the same results when comparing two sample means if conditions are met.

  • Conditions for ANOVA:

  • All data follow a normal distribution.

  • All samples come from populations with equal variances.

  • Samples are independent.

ConditionRequirement
DistributionNormal distribution for each group
VarianceEqual variances across groups (homoscedasticity)
IndependenceObservations within and between groups are independent

ANOVA assumes equal variances.

4.2 Chi-Square Test

  • The chi-square test analyzes categorical data.

  • It compares observed frequencies with expected frequencies under a null hypothesis.

  • Chi-Square Test for 2x2 Tables:

  • Continuity correction is used when the expected count (T) is between 1 and 5, and the total sample size (n) is greater than 40.

  • If the expected count T > 5 and n > 40, continuity correction may not be strictly necessary but can still be applied.

  • If the null hypothesis is not rejected in a chi-square test:

  • There is no statistical difference between observed and expected frequencies.

  • The computed chi-squared value is less than the critical value.

  • If the null hypothesis is rejected:

  • The difference between observed and expected frequencies is significant.

  • The computed chi-squared value is greater than the critical value.

Reject H0 when computed chi-squared > critical value.

  • Constitute: Refers to how an event or composition is made up.

  • Changes in one part can influence others.

  • Rates need standardization for comparison if related constitutes differ.

  • When comparing prevalence rates directly without standardization, conclusions may be misleading.

Standardization is crucial when comparing rates from different groups.

4.3 Descriptive Statistics

  • Arithmetic mean: Sum of values divided by the number of values.

  • For a symmetric distribution, the mean, median, and mode are equal.

  • Geometric mean: Used for calculating average rates of increase over time, like stock market averages.

Use geometric mean for growth rates.

  • Mean deviation: The average of the absolute differences between each value and the mean.

It measures the average distance of each data point from the mean.

  • Range: The difference between the largest and smallest observation.

If the range is 5 and the largest value is 50, the lowest value is 45 (50 - 5).

  • Quartile deviation and inter-quartile range (IQR): Based on the middle 50 percent of observations.

  • Point estimate: A single number used to estimate a population parameter.

Example: The sample mean estimates the population mean.

  • Standard error: Affected by the sample's standard deviation and the sample size. A larger sample size reduces the standard error.

Smaller standard error means estimates are closer to the population parameter.

  • Coefficient of Variation (CV): The standard deviation divided by the mean. It expresses relative variability.

CV = σμ\frac{\sigma}{\mu}

  • Sampling error: The difference between a sample statistic and the population parameter. It is reflected by the standard error.

4.4 Inferential Statistics

  • Two-sample t-test: Used to compare the means of two independent groups, assuming normal distribution.

  • For example, comparing the mean ages of patients and a control group.

  • The alternative hypothesis can state that the population mean is greater than, less than, or not equal to a specific value.

Example: Ha: population mean > 23 years old.

  • The t-distribution is a continuous distribution similar to the standard normal distribution.

  • It accounts for uncertainty from estimating the population standard deviation.

  • Null hypothesis: A claim about a population parameter's value.

Example: H0: population mean = 23.

  • When the null hypothesis is rejected, it means there is sufficient evidence to conclude that the alternative hypothesis is true.

Rejecting H0 implies support for Ha.

  • Statistical inferences for qualitative data typically use the chi-square test.

  • In a chi-square test for a fourfold table, a small value (e.g., < 0.05) indicates that the two rates being compared are different.

Small chi-square p-value suggests a significant difference.

🔑 Important: Statistical analysis methods like ANOVA, chi-square tests, and t-tests are essential for drawing valid conclusions from data by testing hypotheses and estimating population parameters.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also