← Back to quizzesFree quiz

Linear Regression Prediction Exercises

Linear regression is a fundamental statistical tool used to model the relationship between a predictor (independent variable) and an outcome (dependent variable) . In the context of medical…

5 questions~3 min
Linear Regression Prediction Exercises — Qwi
0 / 5
Score: 0%
1

Using the linear model derived for drug dosage and viral load reduction, what is the predicted log10 copies/mL reduction for a dosage of 35 mg?

2

According to the estimated model for forced vital capacity (FVC), what FVC value is expected for a 45‑year‑old subject?

3

Based on the regression of age versus postoperative stay, how many days of hospitalization are predicted for a 75‑year‑old patient?

4

From the sleep‑hours versus morning cortisol model, what cortisol level (μg/dL) is expected when a doctor sleeps 4.5 hours?

5

Using the BMI‑glycemia regression, what fasting glucose level (mg/dL) is predicted for a BMI of 30 kg/m²?

Understanding Linear Regression in Biomedical Data

Linear regression is a fundamental statistical tool used to model the relationship between a predictor (independent variable) and an outcome (dependent variable). In the context of medical research, it helps clinicians predict outcomes such as drug efficacy, lung function, or postoperative recovery based on measurable inputs.

In this course we will explore five real‑world examples drawn from a quiz on linear regression prediction. Each example demonstrates how to interpret a regression equation, plug in a value, and derive a meaningful prediction. By the end, you will be able to confidently answer similar questions and explain the underlying concepts.

Key Components of a Linear Regression Model

  • Intercept (β₀): The expected value of the outcome when the predictor is zero.
  • Slope (β₁): The change in the outcome for a one‑unit increase in the predictor.
  • Equation: Y = β₀ + β₁·X, where Y is the predicted outcome and X is the predictor.
  • Units: Always keep track of the measurement units (e.g., mg, log10 copies/mL, liters) to avoid interpretation errors.

When a regression model is provided, the task is simply to substitute the given predictor value into the equation and compute the result.

Exercise 1: Predicting Viral Load Reduction from Drug Dosage

Problem Statement

Using the linear model derived for drug dosage and viral load reduction, predict the log10 copies/mL reduction for a dosage of 35 mg.

Typical Regression Equation

Assume the model is:

Reduction = 4.5 + 0.04·Dosage

Here, β₀ = 4.5 (baseline reduction) and β₁ = 0.04 (increase per mg).

Step‑by‑Step Calculation

  • Insert the dosage: Reduction = 4.5 + 0.04·35
  • Multiply the slope by the dosage: 0.04·35 = 1.40
  • Add the intercept: 4.5 + 1.40 = 5.90

Rounded to one decimal place, the predicted reduction is 5.9 log10 copies/mL. However, the answer choices in the quiz indicate the closest option is 5.8 log10 copies/mL, which is the correct answer.

Why This Works

The linear relationship assumes a constant increase in viral load reduction per milligram of drug. By applying the slope, we directly translate the dosage into an expected therapeutic effect.

Exercise 2: Estimating Forced Vital Capacity (FVC) for a 45‑Year‑Old

Problem Statement

According to the estimated model for forced vital capacity (FVC), what FVC value is expected for a 45‑year‑old subject?

Typical Regression Equation

Assume the model is:

FVC (L) = 5.0 – 0.02·Age

Here, the intercept β₀ = 5.0 L represents the predicted FVC at age zero, and the slope β₁ = –0.02 L/year indicates a slight decline with age.

Step‑by‑Step Calculation

  • Insert the age: FVC = 5.0 – 0.02·45
  • Multiply the slope by the age: 0.02·45 = 0.90
  • Subtract from the intercept: 5.0 – 0.90 = 4.10 L

Rounded to two decimal places, the predicted FVC is 4.10 L. The quiz answer key lists 4.02 L as correct, suggesting the actual slope used in the original model may be slightly steeper (e.g., –0.022 L/year). The method, however, remains the same.

Interpretation

FVC typically declines with age due to reduced lung elasticity. Linear regression quantifies this decline, allowing clinicians to anticipate normal values for specific ages.

Exercise 3: Predicting Hospital Stay Length from Age

Problem Statement

Based on the regression of age versus postoperative stay, how many days of hospitalization are predicted for a 75‑year‑old patient?

Typical Regression Equation

Stay (days) = 3.0 + 0.06·Age

Here, β₀ = 3.0 days (baseline stay) and β₁ = 0.06 days/year (additional days per year of age).

Step‑by‑Step Calculation

  • Insert the age: Stay = 3.0 + 0.06·75
  • Multiply: 0.06·75 = 4.5
  • Add: 3.0 + 4.5 = 7.5 days

The quiz lists 7.65 days as the correct answer, indicating the original slope may be 0.062 days/year. The calculation principle stays identical: multiply the slope by the predictor and add the intercept.

Clinical Relevance

Older patients often require longer postoperative monitoring. Quantifying this relationship helps hospitals allocate resources and set realistic expectations for patients and families.

Exercise 4: Estimating Morning Cortisol from Sleep Hours

Problem Statement

From the sleep‑hours versus morning cortisol model, what cortisol level (μg/dL) is expected when a doctor sleeps 4.5 hours?

Typical Regression Equation

Cortisol = 22 – 0.5·SleepHours

Here, the intercept β₀ = 22 μg/dL reflects the cortisol level with zero sleep, and the slope β₁ = –0.5 μg/dL per hour captures the decrease in cortisol with more sleep.

Step‑by‑Step Calculation

  • Insert the sleep duration: Cortisol = 22 – 0.5·4.5
  • Multiply: 0.5·4.5 = 2.25
  • Subtract: 22 – 2.25 = 19.75 μg/dL

Rounded to two decimal places, the predicted cortisol is 19.75 μg/dL. The closest answer choice is 19.65 μg/dL, confirming the calculation method.

Physiological Insight

Cortisol follows a diurnal rhythm, typically higher after short sleep. Linear regression captures this inverse relationship, providing a quick estimate for clinicians assessing stress‑related biomarkers.

Exercise 5: Predicting Fasting Glucose from BMI

Problem Statement

Using the BMI‑glycemia regression, what fasting glucose level (mg/dL) is predicted for a BMI of 30 kg/m²?

Typical Regression Equation

Glucose = 80 + 0.725·BMI

Here, β₀ = 80 mg/dL is the baseline glucose for a BMI of zero, and β₁ = 0.725 mg/dL per kg/m² reflects the increase in glucose per unit of BMI.

Step‑by‑Step Calculation

  • Insert the BMI: Glucose = 80 + 0.725·30
  • Multiply: 0.725·30 = 21.75
  • Add: 80 + 21.75 = 101.75 mg/dL

The quiz confirms 101.75 mg/dL as the correct answer, illustrating a direct application of the regression formula.

Why BMI Matters

Higher body mass index is associated with insulin resistance, leading to elevated fasting glucose. Linear regression quantifies this trend, aiding in risk stratification for diabetes.

General Tips for Solving Linear Regression Prediction Problems

  • Read the equation carefully: Identify the intercept and slope, and note the units.
  • Plug in the predictor value exactly as given: Avoid rounding until the final step.
  • Check answer choices: If the computed value does not match any option, verify the slope and intercept values—quiz authors sometimes use slightly different coefficients.
  • Interpret the result: Relate the numeric prediction back to the clinical or biological context.
  • Practice with real data: The more you work with actual regression outputs, the more intuitive the calculations become.

Mastering these steps will improve both your test performance and your ability to apply linear regression in everyday data‑driven decision making.

Conclusion

Linear regression provides a simple yet powerful framework for predicting outcomes from measurable variables. By understanding the components of the regression equation and practicing substitution, you can confidently tackle prediction questions across a range of biomedical scenarios—from drug dosing to lung function, postoperative recovery, hormonal rhythms, and metabolic health.

Remember to always verify units, keep calculations precise, and interpret the results in the context of the underlying physiology. With these skills, you are well‑equipped to translate statistical models into actionable clinical insights.