# Variance Decomposition in LLM Experiments · AIScholar

> Variance decomposition partitions variation in LLM experiment outcomes into condition, model, prompt-variant, and residual components — showing what drives results.

Canonical: https://aischolar.cc/glossary/variance-decomposition

Methodology glossary

# Variance decomposition

Variance decomposition partitions the total variation in an experiment's outcomes into interpretable components — how much is attributable to the experimental conditions, to model identity, to prompt wording, and to residual trial-to-trial noise.

## What "Variance decomposition" means

An observed effect is only as interesting as the share of variation it explains. If conditions account for 40% of outcome variance, the manipulation is doing real work; if prompt wording accounts for more variance than the conditions do, the study is chiefly measuring phrasing artifacts. Decomposing variance makes these proportions explicit instead of leaving them buried in a significance test.

In LLM research the decomposition has a characteristic structure: condition (the factors you designed), model (when several subject models are included), prompt variant (when semantically-equivalent paraphrases are run as a random effect), and residual (the stochastic draw-to-draw variation of sampling). Each component answers a different question — is the effect real, is it model-specific, is it wording-fragile, and how noisy is the measurement.

The technique pairs naturally with mixed-effects models, which estimate the same structure inferentially: fixed effects for designed factors, random effects for items and prompt variants. Reporting variance components alongside p-values gives readers the magnitude context that null-hypothesis tests alone omit.

## Related terms

-   [

    ### Prompt sensitivity

    Measuring how results change under semantically-equivalent rewordings of a prompt.

    ](https://aischolar.cc/glossary/prompt-sensitivity)
-   [

    ### Semantic uncertainty

    Shannon entropy over meaning-clustered responses — response consistency as a measurable outcome.

    ](https://aischolar.cc/glossary/semantic-uncertainty)
-   [

    ### Factorial & fractional factorial design

    Full vs. fractional crossing of factor levels, aliasing trade-offs, and when to use each.

    ](https://aischolar.cc/glossary/factorial-design)

[Browse all 11 glossary terms](https://aischolar.cc/glossary)

## How AIScholar uses it

AIScholar runs variance decomposition as a built-in analysis, partitioning outcome variance into condition, model, prompt-variant, and residual components, and supports linear mixed models with crossed random effects for the inferential counterpart.

-   [Built-in statistical analyses](https://aischolar.cc/features/analysis)
-   [Walkthrough: prompt-sensitivity study](https://aischolar.cc/examples/prompt-sensitivity)

## See the method in action.

Explore an illustrative prompt-sensitivity study, then review execution costs and scope before planning your own.

[Start your first study](https://aischolar.cc/sign-in)
