Solved

Mean, StdDev, and Variance (for subset of data)

Posted on 2013-06-18
7
484 Views
Last Modified: 2013-06-19
I need some help with computing (in Excel) the mean, standard deviation, and variance.

Trick is that some survey answers have not been selected (e.g., value of 0) and thus must be skipped.

For example, the following data set must provide the following answers:
Answer ID:      Number of Responses
1                       0
2                       0
3                       1
4                       3
5                       0
6                       0
7                       1

Average = 4.40
StDev = 1.52
Variance = 2.30

Again, given that zeros must be ignored, what are the proper Excel functions for each of these three statistics?

Thanks,
EEH
0
Comment
Question by:ExpExchHelp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 24

Accepted Solution

by:
Steve earned 500 total points
ID: 39257620
It has been a little while since I did StdDev and Variance of Frequency distributions.
But the attached has an attempt by me, but the values are not exactly the same as yours.
I think they are pretty close to the required calculations though.
Formulas.xlsx
0
 

Author Comment

by:ExpExchHelp
ID: 39258965
The_Barman:

Thousand thanks... as I only need two decimals, your numbers match a 100%.

Again, thank you so much for your assistance.

EEH
0
 

Author Comment

by:ExpExchHelp
ID: 39258990
The_Barman:

Again, thanks for your help... quick follow-up.

When I used a few other frequency distribution, their StDev and Variance did not match though.

Example #1:

Score      Frequency
1      1
2      0
3      0
4      1
5      0
6      1
7      0

The survey's tool value equal:  
Mean                        3.67
Standard Dev.      2.52
Variance                        6.33

The Excel formula's (your XLS) result in:
Average      3.67
StdDev      0.86
Variance      0.74

*****************************

Example #2:

Score      Frequency
1      0
2      2
3      2
4      0
5      1
6      0
7      0

The survey's tool value equal:  
Mean                        3.00
Standard Dev.      1.22
Variance                        1.50

The Excel formula's (your XLS) result in:
Average      3.00
StdDev      1.63
Variance      2.67


So, for some strange reason, the original dataset I provided resulted in the same values.   The next two or three frequency distribution, however, resulted in different values.

Any ideas what might be causing this?

Thanks,
EEH
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 24

Expert Comment

by:Steve
ID: 39259144
There will likely be something in the order of the formula (braket in wrong place etc)
I will read my book again and should be able to sort it :)
0
 

Author Comment

by:ExpExchHelp
ID: 39259213
The_Barman:

Thanks so much... I truly appreciate it!!

EEH
0
 
LVL 24

Expert Comment

by:Steve
ID: 39259974
OK, I have taken the time to actually make 100% on this one...

The actual values your servey tool is giving for Variance and Standard deviation are for an n-1 standard deviation of a sample rather than population.

In Excel there are two functions Stdev.P and Stdev.S
One uses N as the divisor one uses N-1 as a better approximation of true standard deviation.

I have provided the formula and excel method for both in the attached file.
Some would argue that N is correct others N-1.
I will leave it up to you.

ATB
Steve.
Formulas.xlsx
0
 

Author Comment

by:ExpExchHelp
ID: 39260980
Steve:

Absolutely fantastic... that is awesome.  

Thank you for providing both solutions for either approach... besides, I really like the presentation/visual in the XLS.

Again, thousand thanks!!!

EEH
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question