The Wayback Machine - https://web.archive.org/web/20240827045730/https://www.geeksforgeeks.org/mathematics-mean-variance-and-standard-deviation/
Open In App

Mean, Variance and Standard Deviation

Last Updated : 20 Aug, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow
Show Topics
Solve Problem
Basic
70.83%
23.7K

Mean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data’s central tendency, dispersion, and spread, which are crucial for making informed decisions in various engineering fields.

This article explores the definitions, formulas, and applications of mean, variance, and standard deviation in engineering.

Mean-Variance-and-Standard-Deviation-1

What is Mean?

The mean, also known as the average, is a measure of the central tendency of a dataset. It is calculated by summing up all the values in the dataset and dividing them by the number of values.

Mean Formula

For a dataset with n values x1, x2, x3, ……., xn the mean Ξ is given by:

Ξ = [Tex]\frac{1}{n} \sum_{i=1}^{n}x_i[/Tex]

Mean Example

For the dataset {4,8,6,5,3,7}:

Ξ=4+8+6+5+3+7 / 6 = 33/6 = 5.5

What is Variance?

Variance measures the dispersion of a dataset, indicating how much the values differ from the mean. It is the average of the squared differences from the mean.

Variance Formula

For a dataset with n values x1, x2, x3, ……., xn the mean σ2 is given by:

σ2 = [Tex]\frac{1}{n} \sum_{i=1}^{n} (x_i – \mu)^2[/Tex]

Variance Example

For the dataset {4,8,6,5,3,7} with mean = 5.5

σ2 = (4 – 5.5)2 + (8 – 5.5)2 + (6−5.5)2 + (5−5.5)2 + (3−5.5)2 + (7- 5.5)2 / 6

σ2 = 17.5/6 = 2.92

Standard Deviation

Standard deviation is the square root of the variance, providing a measure of the spread of the dataset in the same units as the data.

Standard Deviation Formula

For a dataset with n values x1, x2, x3, ……., xn the mean σ is given by:

σ = [Tex]\sqrt σ2[/Tex] = [Tex]\sqrt {\frac{1}{n} \sum_{i=1}^{n} (x_i – \mu)^2}[/Tex]

Standard Deviation Example

For the dataset {4,8,6,5,3,7} , with variance σ2 = 2.92

σ = 1.71

Solved Example 1:

Consider the data set: 4, 8, 6, 5, 3, 9.

Step 1: Calculate the Mean

Add up all the numbers: 4 + 8 + 6 + 5 + 3 + 9 = 35.

Divide by the number of values (6): 35 / 6 = 5.83.

So, the mean is 5.83.

Step 2: Calculate the Variance

Subtract the mean from each number, square the result, and find the average:

(4 – 5.83)Âē + (8 – 5.83)Âē + (6 – 5.83)Âē + (5 – 5.83)Âē + (3 – 5.83)Âē + (9 – 5.83)Âē

= 3.35 + 4.68 + 0.03 + 0.69 + 8.00 + 10.03 = 26.78.

Then, divide by 6: 26.78 / 6 = 4.80.

So, the variance is 4.80.

Step 3: Calculate the Standard Deviation

Take the square root of the variance: √4.80 = 2.19.

So, the standard deviation is 2.19.

Practice Problems

Q1. Find the mean, variance, and standard deviation for this data set: 12, 15, 10, 10, 14, 8.

Q2. For the numbers 7, 9, 5, 13, 11, 12, calculate the mean, variance, and standard deviation.

Q3. A student’s quiz scores are 20, 25, 22, 18, and 30. What are the mean, variance, and standard deviation of these scores?

Related Articles:

Below questions have been asked in previous year GATE exams 
https://www.geeksforgeeks.org/gate-gate-cs-2012-question-64/ 

Applications in Engineering

1. Quality Control

In manufacturing and quality control, these measures help monitor and maintain product quality by analyzing variations in production processes.

2. Signal Processing

In signal processing, mean, variance, and standard deviation are used to analyze noise and signal strength, helping to improve the accuracy of signal transmission and reception.

3. Reliability Engineering

In reliability engineering, these measures are used to predict the lifespan and failure rates of components and systems, aiding in the design of more reliable products.

4. Financial Engineering

In financial engineering, mean, variance, and standard deviation are used to analyze investment risks and returns, helping to make better investment decisions.

5. Civil Engineering

In civil engineering, these statistical measures are used to analyze data from material tests, environmental studies, and structural performance, ensuring safety and compliance with standards.

Mean, Variance and Standard Deviation – FAQs

What is the Difference Between Standard Deviation and Variance?

Standard deviation and variance both measure the spread of data points in a dataset relative to the mean. The key difference is that variance measures the average of the squared deviations from the mean, while standard deviation is the square root of the variance, providing a measure of spread in the same units as the data.

How Do You Calculate Mean, Variance, and Standard Deviation?

  • Mean: Add all the numbers together and divide by the count of numbers.
  • Variance: Calculate the mean, subtract the mean from each number, square the result, sum these squared results, and divide by the count of numbers minus one.
  • Standard Deviation: Take the square root of the variance.

Why Are Mean, Variance, and Standard Deviation Important?

These statistical measures are crucial for understanding the distribution of data. The mean provides a central value, while variance and standard deviation give insights into the data’s variability or spread, indicating the consistency or volatility of the dataset.

Can Variance and Standard Deviation Be Negative?

No, variance and standard deviation cannot be negative. Variance is calculated as the average of the squared differences from the Mean, resulting in a non-negative value. Since standard deviation is the square root of variance, it also cannot be negative.

How Does Outliers Affect Mean, Variance, and Standard Deviation?

Outliers can significantly affect the mean by pulling it towards the outlier value, thus not accurately reflecting the dataset’s central tendency. Variance and standard deviation are also affected as they will increase, indicating a higher spread of data due to the outlier(s).



Previous Article
Next Article

Similar Reads

Standard Error of Mean vs. Standard Deviation
Standard Error of the Mean (SEM) and Standard Deviation (SD) are measures used in statistics, but they serve different purposes and provide different information about a data set. In this article, we will learn about Standard Deviation definition, Standard Error of Mean definition and their differences in detail. Table of Content What is Standard D
6 min read
Variance and standard-deviation of a matrix
Prerequisite - Mean, Variance and Standard Deviation, Variance and Standard Deviation of an arrayGiven a matrix of size n*n. We have to calculate variance and standard-deviation of given matrix. Examples : Input : 1 2 3 4 5 6 6 6 6 Output : variance: 3 deviation: 1 Input : 1 2 3 4 5 6 7 8 9 Output : variance: 6 deviation: 2 Explanation: First mean
8 min read
Variance and Standard Deviation
Variance and Standard Deviation are the important measures used in Mathematics and Statics to find the meaning from a large set of data. The different formulas for Variance and Standard Deviation are highly used in mathematics to determine the trends of various values in mathematics. Variance is the measure of how the data points vary according to
8 min read
Difference Between Variance and Standard Deviation
Variance and Standard deviation both formulas are widely used in mathematics to solve statistics problems. They provide various ways to extract information from the group of data. They are also used in probability theory and other branches of mathematics. So it is important to distinguish between them. Let's learn about Standard Deviation, Variance
7 min read
Measures of Spread - Range, Variance, and Standard Deviation
Collecting the data and representing it in form of tables, graphs, and other distributions is essential for us. But, it is also essential that we get a fair idea about how the data is distributed, how scattered it is, and what is the mean of the data. The measures of the mean are not enough to describe the data and its nature. We also need to measu
9 min read
Program for Variance and Standard Deviation of an array
Given an array, we need to calculate the variance and standard deviation of the elements of the array. Examples : Input : arr[] = [1, 2, 3, 4, 5]Output : Variance = 2 Standard Deviation = 1 Input : arr[] = [7, 7, 8, 8, 3]Output : Variance = 3 Standard Deviation = 1We have discussed program to find mean of an array. Mean is average of element. Mean
9 min read
How to Find Probability with Mean and Standard Deviation?
Answer: To find probability using the mean (Ξ) and standard deviation (σ) in a normal distribution, use the z-score formula:[Tex]P(X \leq x) = \Phi\left(\frac{x - \mu}{\sigma}\right) [/Tex]Mean and Standard Deviation:In a normal distribution, the mean (Ξ) represents the central tendency of the distribution, indicating the average value around which
2 min read
Binomial Mean and Standard Deviation - Probability | Class 12 Maths
Binomial distribution is the probability distribution of no. of Bernoulli trials i.e. if a Bernoulli trial is performed n times the probability of its success is given by binomial distribution. Keep in mind that each trial is independent of another trial with only two possible outcomes satisfying the same conditions of Bernoulli trials. Consider th
7 min read
Sample Variance vs Population Variance
Sample and Population variance are two essential measures in statistics used to quantify the spread or variability of data points in a dataset. Population variance measures how spread out the values are in an entire group (or population). On the other hand, sample variance is used when we have only a part of the group (a sample) and want to estimat
5 min read
Find Harmonic mean using Arithmetic mean and Geometric mean
Given two numbers, first calculate arithmetic mean and geometric mean of these two numbers. Using the arithmetic mean and geometric mean so calculated, find the harmonic mean between the two numbers. Examples: Input : a = 2 b = 4 Output : 2.666 Input : a = 5 b = 15 Output : 7.500 Arithmetic Mean: Arithmetic Mean 'AM' between two numbers a and b is
5 min read
Given N and Standard Deviation, find N elements
Given N and Standard deviation find the N elements. Mean is average of element. Mean of arr[0..n-1] = ?(arr[i]) / n where 0 <= i < nVariance is sum of squared differences from the mean divided by number of elements.Variance = ?(arr[i] - mean)2 / nStandard Deviation is square root of variance Standard Deviation = ?(variance)Please refer Mean,
8 min read
Differences between Range and Standard Deviation
In statistics, Range and standard deviation provide insight into the spread or dispersion of data points within the data set. Range and standard deviation are both measures of variability in a dataset, but they differ in their calculation and interpretation. The purpose of this article is to know the difference between range and standard deviation
5 min read
What is Difference Between Z-Score and Standard Deviation?
The standard deviation measures the dispersion of data in a distribution, while the Z-score indicates how many standard deviations a particular data point is from the mean of that distribution.Let's look at the difference between Z-score and standard deviations. AspectStandard DeviationZ-ScoreDefinitionMeasures the dispersion or spread of a data se
1 min read
How to Calculate Standard Deviation in Excel: Quick Guide with Formulas and Examples
Understanding standard deviation in Excel is crucial for anyone looking to measure the spread or variability of a data set. Whether you're a student analyzing exam scores, a business professional evaluating sales data, or a researcher interpreting experimental results, knowing how to calculate standard deviation in Excel can provide valuable insigh
11 min read
Find combined mean and variance of two series
Given two different series arr1[n] and arr2[m] of size n and m. The task is to find the mean and variance of combined series.Examples : Input : arr1[] = {3, 5, 1, 7, 8, 5} arr2[] = {5, 9, 7, 1, 5, 4, 7, 3} Output : Mean1: 4.83333 mean2: 5.125 StandardDeviation1: 5.47222 StandardDeviation2: 5.60938 Combined Mean: 5 d1_square: 0.0277777 d2_square: 0.
12 min read
Class 12 RD Sharma Solutions - Chapter 32 Mean and Variance of a Random Variable - Exercise 32.2 | Set 1
Calculate the mean deviation from the median of the following frequency distribution :Question 1(i): Find the mean and standard deviation of each of the following probability distributions: xi: 2 3 4 pi: 0.3 0.5 0.3 Solution: Mean of any probability distribution is given by Mean = ∑xipi Standard Deviation is given by SD = √Variance where variance i
15+ min read
Class 12 RD Sharma Solutions - Chapter 32 Mean and Variance of a Random Variable - Exercise 32.1 | Set 2
Question 16. Two cards are drawn successively with replacement from well-shuffled pack of 52 cards. Find the probability distribution of number of kings. Solution: Given that two cards are drawn with replacement from well shuffled pack of 52 cards. Then the values of random variable for the probability distribution could be, i. No king ii. One king
7 min read
Expression for mean and variance in a running stream
Calculating the mean and variance in a running data stream is a fundamental task in statistics and data analysis. These metrics provide insights into the central tendency and variability of data, respectively. Unlike static datasets, a running stream of data continuously updates, requiring efficient algorithms to compute these statistics in real ti
6 min read
How to Find Probability Using the Mean and Variance in Normal Distribution?
You can calculate the probability in a normal distribution using the z-score formula: P(X<x)=ÎĶ(x–ξ​)/σ, where ÎĶ is the cumulative distribution function, x is the value, Ξ is the mean, and σ is the standard deviation.To calculate the probability in a normal distribution given the mean (Ξ) and variance (σ2), you can use the z-score formula along w
2 min read
Class 12 RD Sharma Solutions- Chapter 32 Mean and Variance of a Random Variable - Exercise 32.1 | Set 1
Question 1. Which of the following distributions of probabilities of random variables are their probability distributions?i. X3210-1P(X)0.30.20.40.10.05Solution: We know that the sum of probability distribution is always 1. Sum of probabilities (P(X))=P(X=3)+P(X=2)+P(X=1)+P(X=0)+P(X=-1) =0.3+0.2+0.4+0.1+0.05=1.05>1 The sum of probability distrib
10 min read
Class 12 RD Sharma Solutions - Chapter 32 Mean and Variance of a Random Variable - Exercise 32.2 | Set 2
Question 13: Two cards are selected at random from a box which contains five cards numbered 1,1,2,2, and 3. Let X denote the sum and Y the maximum of the two numbers drawn. Find the probability distribution, mean and variance of X and Y.Solution: As box contains cards numbered as 1,1,2,2 and 3 âˆī possible sums of card numbers are 2,3,4 and 5 Hence,
15 min read
Program to implement standard deviation of grouped data
Given a class interval and frequency of the class and the task is to find standard deviation of grouped data. Formula to find standard deviation Standard Deviation = ?( (?(F x M2 - n x ?2)) / (n-1) )Where, F - frequency of the class. M - mid value of class interval. ? - Mean of the grouped data. n - sum of frequency. Examples: Input : lower_limit[]
8 min read
Real Life Applications of Standard Deviation
Standard deviation is a statistical measure that tells us how spread out numbers are in a dataset. It shows the variation or dispersion from the average (mean). It helps in understanding how consistent or variable the data is. From finance and quality control to education, sports, and even weather forecasting, there are many practical uses of stand
5 min read
Relative Standard Deviation Formula
Relative standard deviation is defined as a percentage standard deviation that calculates how much the data entries in a set are distributed around the mean value. It tells whether the regular standard deviation is a small or high number when compared to the data set's mean. In other words, it indicates the percentage distribution of the data. If a
7 min read
How to Find Sum of Squares from Standard Deviation?
Answer: The sum of squares can be found by squaring the standard deviation and then multiplying it by the number of observations.The sum of squares (SS) is a measure of the spread or variability of a set of values. It can be calculated from the standard deviation (SD), which is another measure of the dispersion of data points. Here's the detailed e
2 min read
How to Determine if Standard Deviation Is High/Low?
To determine if the standard deviation is high or low, compare it to the range of the dataset: if the standard deviation is close to the range, it's considered high; if it's significantly smaller, it's considered low.Standard deviation measures the dispersion or spread of data points around the mean in a dataset. When considering whether the standa
4 min read
How to Find Standard Deviation of Probability Distribution
Standard Deviation is a measure in statistics that determines the amount of variability or dispersion in a set of values. Understanding how to calculate the standard deviation is useful for analyzing the variability or spread of random variables in probability distributions. In this article, we will learn about standard deviation and how to find th
10 min read
How to Calculate Standard Deviation?
Standard Deviation is a measure of how data is spread out around the mean. It is a statistical tool used to determine the amount of variation or dispersion of a set of values from the mean. A low standard deviation indicates that the data points are clustered closely around the mean, while a high standard deviation means that the data points are sp
7 min read
How to find the Standard deviation in Statistics?
Answer: Standard deviation in statistics is calculated using formula:[Tex]s=\frac{\sqrt{\sum({x_i-\bar{x}})^2}}{N}[/Tex]Statistics is the study of data gathering, organization, interpretation, analysis, and presentation in mathematics. The primary goal of statistics is to plan the obtained data in terms of experimental designs and statistical surve
3 min read
Standard Deviation - Formula, Examples & How to Calculate
Standard deviation is a fundamental concept in statistics that measures the dispersion of data points which defines the extent to which data points in a dataset deviate from the mean, providing a clear sense of the variability or spread within the data. The standard deviation formula is used to find the deviation of the data value from the mean val
15+ min read