Tutorials › Regression Analysis (Undergraduate) › What a Fitted Conditional Mean Represents

Predictions for Conditional Means · Tutorial 692 of 991

What a Fitted Conditional Mean Represents

Distinguish a population conditional mean from an observed outcome and interpret a regression model’s fitted mean as an estimate of that mean.

Beginner 9 min read

What You'll Learn

  • Define the conditional mean of an outcome for a specified set of predictor values
  • Distinguish the population conditional mean from an individual observed outcome
  • Explain what a fitted conditional mean estimates and where its value comes from
  • Interpret fitted means in context, including their units
  • Recognize why a fitted mean is not automatically a causal effect or a guaranteed individual outcome
  • Identify the limits of interpreting predictions for poorly represented predictor profiles

Introduction

A regression prediction is often written as a single number, but that number can answer different questions. It might describe the average outcome among cases with particular predictor values, or someone might mistakenly treat it as the outcome that one particular person will have. These are not the same quantity.

The conditional mean is the average outcome for the population of cases whose predictor values match a specified profile. A fitted conditional mean is the value a regression model estimates for that population average. Understanding this distinction helps keep a prediction in its proper role: it summarizes an expected outcome at a profile, not a promise about any individual case.

The Conditional Mean for a Predictor Profile

Let \(Y\) be an outcome and let \(\mathbf X\) denote one or more predictors. A predictor profile, written \(\mathbf x\), specifies particular values of those predictors. For example, a profile might specify a patient’s age and treatment group, or a home’s floor area and number of bedrooms. The conditional mean of \(Y\) at that profile is the population average outcome among cases with those predictor values.

Definition: The conditional mean at profile \(\mathbf x\) is \(m(\mathbf x)=E(Y\mid\mathbf X=\mathbf x)\), provided that this expectation exists and is finite. It is a population quantity: the average outcome associated with the specified predictor profile, not the outcome of one particular case.

The word conditional indicates that the average is taken within the group defined by the predictor values. The word mean indicates an average outcome. If \(Y\) is measured in days, the conditional mean is also measured in days; it is not a probability unless the outcome and model make it one.

For continuous predictors, an exact profile such as age 47.3 years may not occur repeatedly in a finite data set. The conditional mean still has a clear population meaning: it describes the mean of the outcome distribution at that predictor value. In practice, a regression model uses the observed data and its assumed mean structure to estimate that quantity. The quality of the estimate depends on whether the profile is supported by the data and whether the model represents the mean pattern adequately.

An Observed Outcome Is Not a Conditional Mean

An individual case has one observed outcome, say \(Y_i\), along with its observed predictor profile. That outcome can be above or below the population conditional mean for the profile. A useful way to express the distinction is to write the outcome as the conditional mean plus a departure from that mean:

$$ Y=m(\mathbf x)+\varepsilon \quad \text{when } \mathbf X=\mathbf x, \qquad E(\varepsilon\mid\mathbf X=\mathbf x)=0. $$

Here, \(\varepsilon\) represents the case-specific difference from the conditional mean. The equation does not say that each case equals the mean. It says that, at a given profile, the departures average to zero in the population. A particular observed outcome may differ substantially from the mean.

This decomposition also clarifies what a fitted mean estimates. A regression procedure uses a sample and a chosen model to produce an estimate, written \(\widehat m(\mathbf x)\), of the population quantity \(m(\mathbf x)\). The fitted value is not itself a newly observed outcome. Nor is it necessarily the average of only the observations that happen to have exactly that profile; a regression model may use information across many profiles to estimate the mean at the requested one.

Key distinction: \(m(\mathbf x)\) is the population conditional mean. \(\widehat m(\mathbf x)\) is the model-based estimate of that mean. \(Y_i\) is an individual observed outcome. These quantities may have similar numerical values, but they answer different questions.

Worked Examples

Worked Example: An Individual Outcome Versus a Group Mean

Suppose a hypothetical clinic records the number of days until symptoms improve for four patients who received the same treatment and have the same recorded predictor profile. Their outcomes are 4, 6, 7, and 7 days. Find the sample average for these four cases and explain how it relates to the conditional mean and to an individual outcome.

The arithmetic average of the four observed outcomes is

$$ \bar{Y}=\frac{4+6+7+7}{4} =\frac{24}{4} =6.0\text{ days}. $$

The value 6.0 days is the observed sample average for these four hypothetical patients. It can serve as an estimate of the population conditional mean for this profile, but it is not automatically equal to that population quantity. The population conditional mean refers to the average for all relevant patients at this profile, whereas the calculation uses only four observed cases.

One patient’s outcome was 4 days. That observation is not the conditional mean: relative to the sample average, the patient’s outcome was \(4-6.0=-2.0\) days. Another patient’s outcome was 7 days, which was \(7-6.0=1.0\) day above the sample average. Both are individual outcomes; 6.0 days summarizes the group.

Worked Example: Interpreting a Fitted Mean

A hypothetical regression model is fitted to data on resting systolic blood pressure. For a specified profile—an adult aged 50 years with the recorded health characteristics used by the model—the fitted conditional mean is 142.6 mmHg. A new adult with that profile has an observed blood pressure of 151.0 mmHg. Interpret both numbers and calculate the difference.

The model’s fitted mean is \(\widehat m(\mathbf x)=142.6\) mmHg for the specified profile. Its interpretation is that the model estimates the population average systolic blood pressure at this profile to be 142.6 mmHg. It does not assert that every adult at this profile has a blood pressure of 142.6 mmHg.

The observed outcome for the new adult is 151.0 mmHg. The difference between this observed outcome and the fitted mean is

$$ 151.0-142.6=8.4\text{ mmHg}. $$

Thus, this individual’s observed blood pressure is 8.4 mmHg above the model’s estimated conditional mean. The comparison is descriptive; it does not show that the model’s estimate is wrong, because individual outcomes vary around their conditional mean. It also does not establish that any predictor caused the observed difference.

Worked Example: A Profile With Several Predictors

A hypothetical model estimates the mean hospital stay for patients with a specified profile: age 65 years, a particular procedure, and no recorded complication. Its fitted mean is 6.8 days. For three hypothetical patients matching that profile, the observed stays are 4, 7, and 9 days. Calculate their sample average and compare it with the fitted mean.

The average of these three observed stays is

$$ \bar{Y}=\frac{4+7+9}{3} =\frac{20}{3} \approx 6.67\text{ days}. $$

The sample average, about 6.67 days, is based on these three patients. The fitted conditional mean, 6.8 days, is the model’s estimate of the population mean for the entire specified profile. Their difference is

$$ 6.8-6.67\approx 0.13\text{ days}. $$

The fitted mean is therefore about 0.13 days higher than this small sample average. That small difference does not make the two quantities identical: one is a model-based estimate for a population profile, and the other is an average of three observed outcomes. The fitted mean may draw on more information than these three cases, depending on the model and data.

What Makes a Fitted Mean an Estimate?

A fitted mean depends on both the observed data and the regression model used to summarize them. The model specifies how the conditional mean is represented as predictor values change. Fitting the model then uses the sample to estimate the unknown features of that mean pattern. For a requested profile, the resulting fitted value \(\widehat m(\mathbf x)\) is the model’s estimate of \(m(\mathbf x)\).

The meaning of the target, \(m(\mathbf x)\), does not depend on choosing a particular regression method. It is defined by the population distribution of outcomes at that profile. The fitted estimate does depend on the selected model, the sample, and the estimation method. Two models fitted to the same data can therefore give different fitted means at a profile.

The basic definition of a conditional mean requires that the outcome have a finite mean at the profile. It does not, by itself, require normally distributed outcomes. However, using a fitted mean responsibly requires attention to the model: its mean structure should be suitable for the data, and the requested profile should be represented well enough for the sample to inform the estimate. A prediction at a profile far outside the observed data requires extrapolation and may be unreliable.

1
Specify the profile.
State the values of the predictors that define the group or case type of interest.
2
Name the population target.
The target is \(m(\mathbf x)\), the mean outcome for the population at that profile.
3
Identify the fitted estimate.
The regression model supplies \(\widehat m(\mathbf x)\), an estimate of the population target based on the sample and model.
4
Keep individual outcomes distinct.
An observed \(Y_i\) belongs to one case and may lie above or below the fitted mean.

Why the Distinction Matters

The distinction matters whenever a fitted value is communicated or used. Saying “the predicted mean stay is 6.8 days for this profile” describes an estimated population average. Saying “this patient will stay 6.8 days” incorrectly turns that average into an individual guarantee. Many patients with the same profile may have shorter stays, and many may have longer stays.

It also matters for interpretation. A conditional mean is an association between predictor values and an average outcome in the population described by the model. By itself, it is not a causal effect. A fitted mean does not establish what would happen if a predictor were changed; that conclusion would require additional design and assumptions beyond the meaning of a regression prediction.

Finally, the profile must be described precisely. A fitted mean is conditional on the predictor values supplied to the model. If relevant predictors are omitted from the description, or if the profile is outside the range of cases that informed the fit, a reader may misunderstand what the estimate applies to. Always report the outcome’s units and enough of the profile to make the target clear.

Common Mistake

Incorrect reasoning: “The fitted mean is 142.6 mmHg, so every person with this profile should have a blood pressure of 142.6 mmHg. A person with 151.0 mmHg shows the model failed.”

Correction: The fitted value estimates a population average at the profile, not each individual outcome. A value of 151.0 mmHg is 8.4 mmHg above the fitted mean, but individual departures are expected. Whether the model estimates the population mean well is a separate question; one individual outcome alone does not answer it.

Key takeaway: A conditional mean is the population average outcome at a specified predictor profile. A fitted conditional mean estimates that average from a regression model and sample. Neither quantity should be confused with the outcome observed for one individual.

Check Your Understanding

For each question, distinguish the population target, the fitted estimate, and any individual observation where relevant.

  1. In your own words, what does \(E(Y\mid\mathbf X=\mathbf x)\) describe?
  2. A model gives a fitted mean of 5.2 days for a profile. Does this mean every individual with that profile will have an outcome of 5.2 days? Explain.
  3. For three cases with outcomes 3, 5, and 7 hours, calculate the sample average. Is that automatically the population conditional mean? Why or why not?
  4. Why can a fitted conditional mean be interpreted in the outcome’s units?
  5. What concern arises if a regression model is used to estimate a mean at a predictor profile far outside the range represented in its data?