AI Glossary / Statistics and probability / Intermediate

Homogeneity of variance in arrays

Definition

Homogeneity of variance in arrays is the condition that the variance of an outcome Y is the same at different values of a predictor X. In this older statistical terminology, an array is the collection or conditional distribution of Y values associated with a particular X value. The condition is commonly called constant conditional variance or homoskedasticity.

What it means

Imagine vertical slices through a scatterplot. Each slice contains outcomes for one predictor value. Their centers may rise or fall with X, while their spreads remain equal.
The word arrays here does not refer to a programming data structure. It describes conditional groups of observations. Equal spread across those groups is different from a flat relationship, equal means, or independence between X and Y.

How it works

Write the condition as Var(Y|X = x) = sigma² for the relevant predictor values. The conditional mean E(Y|X = x) can still vary. In a model Y = m(X) + error with a correctly specified mean, the same condition applies to the conditional error variance.
With replicated observations at several X settings, compare within-setting spreads around their own means. Do not compute variability around one overall mean and call that the conditional variance: changes in the mean across X also contribute to overall variation.
When X is continuous and exact replicates are rare, fit an appropriate mean model and examine residual spread against X and fitted values. A roughly constant-width band is compatible with constant variance; a widening or narrowing band suggests changing variance. Such plots provide evidence, not mathematical proof.
Check the mean specification first. Curvature left out of a straight-line model can create residual patterns that should not be interpreted solely as a variance problem. A few unusual observations or different measurement precision across settings can also affect the visual impression.
Fitted residuals are not identical to the unobserved errors. Even under a homoskedastic ordinary least-squares model, individual residual variances depend on leverage through sigma²(1 - h_ii). Standardized residual diagnostics can help account for this feature when assessing spread.
If variability changes, an appropriate variance model, transformation, weighted fit, or heteroskedasticity-consistent inference may be considered. These address different objectives. Robust coefficient standard errors do not automatically supply correct prediction intervals for individual future observations.
Keep conditional and marginal statements separate. Equal conditional variance does not imply a small overall variance, because outcomes can have substantially different conditional means. Nor does it imply normality: distributions can share a variance while differing in other features.
The condition is directional. Constant Var(Y|X) does not by itself establish constant Var(X|Y). State which outcome is being modeled and over which predictor range the assumption is intended to hold.

Three practical examples

  • An AI evaluator checks whether response-score variability is similar at different task-length settings after modeling the average score.
  • A calibration study compares repeated measurements at several known input levels.
  • A service analyst investigates whether processing-time uncertainty grows as request size increases, rather than assuming one residual spread for all requests.

Think of it this way

Think of several vertical bundles of arrows along a rising line. The bundles can be equally wide even though their centers move upward. Homogeneity in arrays concerns each bundle's spread around its own center, not the spread of all arrows combined.

Worked example

Consider illustrative observations at two predictor settings. At X = 1, outcomes are 8, 10, and 12. At X = 2, outcomes are 18, 20, and 22. The conditional sample means are 10 and 20.
Each setting has deviations -2, 0, and 2 from its own mean. Both within-setting sample variances are (4 + 0 + 4)/(3 - 1) = 4. Thus the observed arrays have identical sample spread despite different centers.
Pooling all six outcomes gives an overall mean of 15. Squared deviations from 15 sum to 49 + 25 + 9 + 9 + 25 + 49 = 166. The overall sample variance is 166/(6 - 1) = 33.2, much larger than either within-setting variance.
The difference is not inconsistent: the pooled calculation includes variation between the two means. A fitted mean relationship of 10X would leave residuals -2, 0, and 2 at each setting.
If the second array were instead 16, 20, and 24, its mean would remain 20 but its sample variance would become (16 + 0 + 16)/2 = 16. That would show a wider observed array at X = 2. These tiny samples illustrate the calculations; they cannot establish equality or inequality of the underlying population conditional variances with confidence.

Illustrative case study

Fictional case: Amber Calibration measures an AI-assisted inspection system at several controlled input settings. Its overall output variance is large, leading a manager to assume the system is inconsistent everywhere.
The analyst separates variation in the average response across settings from variation among repeated measurements at the same setting. Within-setting plots reveal similar spread over much of the range, with noticeably greater scatter at the highest inputs.
The team investigates whether the high-input pattern reflects sensor saturation or a changing error process. Its report uses conditional uncertainty and avoids extending a constant-variance assumption beyond the range supported by observations.

Common misconceptions and mistakes

Common mistakes include interpreting array as a software container, comparing raw deviations from the grand mean instead of conditional means, and assuming a rising regression line violates constant variance.
A tidy residual plot does not prove normality, independence, or correct causal interpretation. Conversely, modest differences in sample spreads can occur even when the population condition holds. Do not demand identical empirical variances as a mechanical acceptance rule.

Business use

This concept helps businesses distinguish predictable changes in average performance from changes in reliability. It matters when uncertainty should vary with operating conditions. A useful report states whether one common error spread is adequate and how the analysis handles ranges with greater or lesser variability.

People also ask

Can Y depend strongly on X while variance in arrays is homogeneous?

Yes; the conditional mean can change substantially.

Is the overall variance equal to the conditional variance?

Not generally.

Does constant variance imply a normal distribution?

No.

Check your understanding

What are the two within-setting sample variances in the first example?

Answer: Both are four.

Why is the pooled variance 33.2?

Answer: It includes the separation between the conditional means.

What changes in the alternative second array?

Answer: Its spread increases while its mean stays twenty.

Related terms

  • Conditional distribution
  • Leverage
  • Prediction interval
  • conditional variance
  • homoskedasticity
  • heteroskedasticity
  • residual plot
  • variance decomposition

Learn next

Plot repeated outcomes at several predictor values and separate within-setting from between-setting variation. Then study residual standardization and how conditional variance models affect prediction intervals.

More in Statistics and probability

  • Holm - Bonferroni method - The Holm - Bonferroni method is a step-down multiple-testing procedure that controls the family-wise error rate: the probability of rejecting at least one...
  • Homogeneity of regression - Homogeneity of regression usually means equality of the covariate regression slopes across groups in a common-slope analysis of covariance model.
  • Homogeneity of variance - Homogeneity of variance is the condition that the populations or model-error distributions being compared have the same variance.
  • Horvitz - Thompson estimator - The Horvitz - Thompson estimator estimates a finite population total by summing each sampled unit's observed value divided by its probability of inclusion.
  • Hosmer - Lemeshow test - The Hosmer-Lemeshow test is a grouped goodness-of-fit test commonly used with binary logistic regression.
  • Hot deck imputation - Hot deck imputation fills a missing value using an observed value from a suitable donor record in the same current dataset or survey collection.

Sources

David Howell, glossary, arrays and homogeneity of variance in arrays: https://www.uvm.edu/~statdhtx/methods8/Glossary/Glossary.html NIST, model residual diagnostics: https://www.itl.nist.gov/div898/handbook/pri/section2/pri24.htm NIST, DOE scatter plots: https://www.itl.nist.gov/div898/handbook/eda/section3/eda33b.htm

Previous: Homogeneity of variance Next: Homography transformation

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer