CalcWorldHub
Free online calculator · no signup

Explained Variance Score Calculator

Compare prediction residual variation with target variation to calculate an explained-variance score.

4,000 tools
Explained Variance Score Calculator — Observed values y, Predicted values ŷ and calculation method
Explained Variance Score Calculator: inputs and calculation method.

How to use this calculator

Compare prediction residual variation with target variation to calculate an explained-variance score.

  1. Enter Observed values y, Predicted values ŷ. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Data science calculation

How this calculation works

Explained variance summarizes how much of the target series variation remains after prediction errors are considered. It is useful when reviewing a regression or forecast model, but its treatment of a constant offset differs from R-squared.

Inputs and units

actualValues — Observed values y
Enter one finite observed value per case, separated by commas. Negative values are allowed when the measured quantity permits them.
predictedValues — Predicted values ŷ
Enter one finite prediction for each observed value in exactly the same order.

Formula

Displayed formula

EV = 1 − Var(y − ŷ) / Var(y), where y is the observed value and ŷ is its prediction; both variances use the same population convention. Mean residual = mean(y − ŷ).

Method

The calculator forms a residual for each aligned observation, then divides residual variance by observed-target variance. Population variance is used for both series, so the common denominator convention cancels in the ratio. A constant residual offset does not change residual variance.

Worked example

For observed values 3, 5, 7 and predictions 2, 5, 8, the residuals are 1, 0, and −1. Their population variance is 2/3, while the observed-value variance is 8/3, so EV = 1 − (2/3)/(8/3) = 0.75.

Assumptions and limits

Observed values must vary; a constant target series makes the denominator zero. Scores can be negative when residual variation exceeds target variation. Explained variance can equal 1 despite a constant prediction bias, so inspect the mean residual or another error metric as well. This score does not establish causality or model suitability.

Frequently asked questions

Can explained variance be negative?

Yes. It is negative when residual variation is greater than the variation in the observed values.

Is explained variance the same as R-squared?

Not always. A constant residual offset leaves residual variance unchanged, so explained variance may be 1 even when predictions are consistently biased.

Why must the observed values vary?

The score divides by observed-value variance. If every observed value is identical, that denominator is zero.

How do I use the Explained Variance Score Calculator?

Enter Observed values y, Predicted values ŷ. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Explained Variance Score?

For observed values 3, 5, 7 and predictions 2, 5, 8, the residuals are 1, 0, and −1. Their population variance is 2/3, while the observed-value variance is 8/3, so EV = 1 − (2/3)/(8/3) = 0.75.