Learn how to a build a cloud-first strategyRegister Now

x
Solved

# Calculating Standard Deviation and Mean: Include zeros?

Posted on 2010-11-11
Medium Priority
4,507 Views
A sample of 30 items were pulled from a universe of 323.
Each of the 30 rows has an "overpayment" amount. Values range from \$0 to \$7,000.
16 of 30 rows have an overpayment value > zero.
14 of 30 rows have an "overpayment" value = zero.

I need to calculate the Mean and Standard Deviation of the overpayment amount.
Are rows with a value of zero used in this calculation?

[My calculations done two different ways:]

Mean (\$65,235.42 / 30 total items including zeros)                  \$2,174.51
Mean Overpayment (\$65,235.42 / 16 overpayments)                  \$4,077.21
Standard Deviation (of 16 overpayments)                  1546.38
Standard Deviation (of all 30 rows including \$0 "overpayments")                  2348.83
0
Question by:nicholasjwolf
• 9
• 4
• 2
• +1

LVL 37

Expert Comment

ID: 34115799
This is application dependent. I would say that you would skip the 0 rows since there is no overpayment for those rows. But I would also ask the person who asked you the question which they intended.
0

LVL 37

Accepted Solution

TommySzalapski earned 1500 total points
ID: 34115818
If you are trying to find the average wait time at a checkout line, you would include 0s because the people who didn't have to wait at all still checked out. For overpayments though, I would give the percent of overpayments (53.33%) and report the average separately without the 0s.
0

LVL 93

Assisted Solution

Patrick Matthews earned 500 total points
ID: 34115996
nicholasjwolf,Depends on what you are trying to do, as Tommy indicates.For example, do you want (mean / min / max / st dev / variance) for all payments, or just for those payments that included an overpayment?Indeed, assuming you might have some underpayments out there, then you may be best off basing your stats on the absolute value of the difference between the actual payment received and the expected payment.  For example, you could take the quadratic mean of difference.Admittedly, while I do not know all of your requirements, excluding the payments with no overage seems like a cheat to me.  If you must do this, then you had better start with a larger sample, because drawing any kind of conclusions on a sample size of 16 could be hazardous to your employment status :)Patrick
0

Author Comment

ID: 34116310
The data I am viewing is a probe/discovery sample of 30 items (insurance claims) from a universe of 323.
Based on established criteria, it was determined by an expert that 16 out of 30 claims were overpaid.
We now need to determine a full sample size. For RAT-STATS I am reading: "Once the mean and standard deviation of the overpayment amount in the Discovery Sample have been calculated, the Full Sample size can be determined."
So, when calculating the mean and standard deviation of the overpayment, I don't know yet whether to include the \$0 items.
0

LVL 37

Assisted Solution

TommySzalapski earned 1500 total points
ID: 34116330
Then I would say you really should think about including the underpayments and report the average overpayment but let it be negative if, on average, it is underpaid.
0

LVL 37

Assisted Solution

TommySzalapski earned 1500 total points
ID: 34116372
If the underpayments are truncated, then your report should look like this:

53.33% of payments were overpaid. Of those, the average overpayment was \$4,077.21 with a standard deviation of \$1,546.38
0

LVL 37

Expert Comment

ID: 34116391
Reporting the average truncating underpayments as 0 is falsifying data and it would be a legitimate lawsuit if you got sued over it. The average overpayment may well be negative if you are considering all of them. Of course, the bosses are probably trying to save a buck so they most likely only want to see the overpayments, in which case just be sure to not that that's what you are reporting on (like in my previous example)
0

LVL 37

Expert Comment

ID: 34116393
Hah, you must have accepted while I was typing. Oh, well. I didn't really add anything new.
0

LVL 9

Expert Comment

ID: 34116411
Because the zero values represent valid data, you should include them.  They are not missing data.  The actual overpayment amount is zero.  If the overpayment amount were \$0.01 or \$1, would you include that?

The only reason not to include the zero overpayments would be if you wanted to make some kind of contingent statement ("When a non-zero overpayment occurs, ...").  However, if you wish to assess the performance of  a payment program, the program should clearly get credit when it performs well (ie, overpayment = 0).  Similarly, if assessing performance is a goal, using absolute value in the case of an underpayment makes sense.
0

LVL 37

Expert Comment

ID: 34116541
Zero is not valid. Most of them should be negatives. The goal is to pay the right amout. If your goal was to get 0 for overpayments, you would pay \$0 for all claims.
0

LVL 9

Expert Comment

ID: 34116605
I don't understand that last statement.

If the overpayment amount is zero, that means exactly the right amount was paid.

If you pay zero, you are underpaying if the approved claim amount is non-zero.
0

LVL 37

Expert Comment

ID: 34116619
No, if the overpayment is 0 the claim could have been underpaid.
0

LVL 9

Expert Comment

ID: 34116665
Are you assuming there are two non-negative fields, overpayment and underpayment, one or both of which would be zero?

I am assuming a single field, overpayment, which (theoretically) might have negative values.  I suppose it might be more accurate to call such a field paymenterror.

The original problem statement only mentioned one field (overpayment) and said there were no negative values.
0

LVL 37

Expert Comment

ID: 34116831
Right. That's what my point was. The underpayments were not reported and certainly should not be assumed to be 0. If you used 0 in the calculations, that's what you would be assuming which is why I said it would be false.
0

Author Comment

ID: 34116889

I think this thread is showing me that I need to talk again with my colleague and make sure I understand our end result. :)
0

LVL 9

Expert Comment

ID: 34116932
I see what you mean now.  If there were a second "underpayment" field, an overpayment of zero could mean either an underpayment or an accurate payment.

However, if there were only an overpayment field (with possible negative values for underpayments), then an overpayment of zero would mean there was no error (and it should be counted), and I would count the zeros.  I would also use absolute values and would label the amount as an "error", rather than as an "overpayment".

Impossible to decide without knowing more about the data and what's required.

0

## Featured Post

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custoâ€¦
###### Suggested Courses
Course of the Month21 days, 7 hours left to enroll