Var
VAR Function¶
The VAR function in Excel is used to estimate the variance based on a sample of data provided. Variance is a
measure of how much the data points in a dataset deviate from their mean (average value). Use this function when the
data represents only a subset, or sample, of a larger population.
Key Features of VAR:¶
- Sample Variance: Computes variance for a sample, rather than the entire population.
- Estimated Analysis: Assumes the data is a subset and adjusts for this by dividing by
(n-1)instead ofn. - Statistical Insight: Useful for understanding the spread or variability in a dataset.
Syntax:¶
-
number1, number2, ...: Required. The first number, and subsequent numbers (up to 254), can be entered as arguments or as cell ranges.
- You must provide at least one numeric argument.
- Data ranges can also be used (e.g.,
A1:A10).
How It Works:¶
- Computes the mean (average) of the given data points.
- Determines the squared difference between each data point and the mean.
- Divides the sum of these squared differences by
(n-1)(wherenis the total number of data points).
Examples:¶
- Basic VAR Calculation:
To calculate the sample variance for
{3, 5, 7, 9, 11}:
- Step 1: Calculate the mean: `(3 + 5 + 7 + 9 + 11) / 5 = 7`.
- Step 2: Find squared differences from the mean:
`[(3-7)^2, (5-7)^2, (7-7)^2, (9-7)^2, (11-7)^2] = [16, 4, 0, 4, 16]`.
- Step 3: Divide the sum of squared differences by `(n-1)`:
`(16 + 4 + 0 + 4 + 16) / 4 = 10`.
Result: 10.
- Using Ranges:
For a dataset in cells
B1:B5containing3, 5, 7, 9, 11:
Produces the same result as above.
- Larger Dataset:
For a dataset stored across cells
C1:C20:
This estimates the sample variance across all 20 data points provided.
Notes:¶
- Distinction from
VAR.P:- Use
VARwhen working with a sample. - Use
VAR.Pwhen the dataset contains the entire population, asVAR.Pdoes not make the(n-1)sample adjustment.
- Use
- Non-Numeric Values:
- Any text, logical values, or blanks in the range are ignored.
- Logical values like
TRUEorFALSEare excluded automatically.
- Error Handling:
- If fewer than 2 numeric arguments are provided, Excel returns a
#DIV/0!error. - If invalid data (e.g., non-numeric inputs) is included, Excel may produce a
#VALUE!error.
- If fewer than 2 numeric arguments are provided, Excel returns a
Applications:¶
- Statistical Analysis: Helps in estimating data variability based on a sample in demographics, surveys, and science.
- Data Insights: Assists in determining how data points in a sample deviate from the mean.
- Sampling Tasks: Ideal for datasets where complete population data is unavailable.
- Predictive Modeling: Enables a better understanding of data variability for sample-based analysis.
Tip: Use the
VAR.Sfunction in modern versions of Excel for better clarity, asVARis meant for backward compatibility.VARandVAR.Sperform the same calculation.