Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 Standard Deviation question...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mikebsr

13 Posts

Posted - 10 Apr 2008 :  22:33:25  Show Profile  Reply with Quote
For some reason, I've found myself terribly confused about the standard deviation value returned to me from the SPCArrayStatistics.GetStandardDeviation function.

I have a dataset of 30 values (listed below). When I plug these values into MS Excel, I get a standard deviation value of .34. If I subtract the lower control limit (5.49) of the control chart from the upper control limit (7.46) and divide by 6, I get somewhere around .32 (close enough due to rounding I assume). But the SPCArrayStatistics.GetStandardDeviation returns 1.21.

The SPCArrayStatistics.GetMean returns a value of 6.27 where Excel returns 6.48. I assume the difference is because of rounding.

I don't know what I'm doing wrong. Any ideas? I'm using a batch variable control chart.


6.64
6.47
5.74
6.66
6.66
6.74
6.65
7.02
6.09
6.2
6.09
6.26
6.36
7.27
6.44
6.9
6.23
6.2
6.62
6.52
6.1
6.94
6.66
6.86
6.69
6.17
6.57
6.3
6.08
6.27

quinncurtis

1164 Posts

Posted - 10 Apr 2008 :  23:40:20  Show Profile  Reply with Quote
We cannot reproduce your results. There seem to errors in the use of our software.

Here is the code we used:

C#
double[] testdata = {6.64,6.47,5.74,6.66,6.66,6.74,6.65,7.02,6.09,6.2,6.09,6.26,6.36,7.27,
                              6.44,6.9,6.23,6.2,6.62,6.52,6.1,6.94,6.66,6.86,6.69,6.17,6.57,6.3,6.08,6.27};
double std = SPCArrayStatistics.GetStandardDeviation(testdata);
double mean = SPCArrayStatistics.GetMean(testdata);


VB
Dim testdata() As Double = {6.64, 6.47, 5.74, 6.66, 6.66, 6.74, 6.65, 7.02, 6.09, 6.2, 6.09, 6.26, 6.36, 7.27, _
6.44, 6.9, 6.23, 6.2, 6.62, 6.52, 6.1, 6.94, 6.66, 6.86, 6.69, 6.17, 6.57, 6.3, 6.08, 6.27}
Dim std As Double = SPCArrayStatistics.GetStandardDeviation(testdata)
Dim mean As Double = SPCArrayStatistics.GetMean(testdata)

The standard deviation returns 0.34005. Excel returns 0.34005
The mean returns 6.48. Excel returns 6.48

Double check your methodology. Perhaps you are using VB and did not size your array correctly

Below is a simple copy of the Excel worksheet

6.64 STD 0.340050706
6.47
5.74 Mean 6.48
6.66
6.66
6.74
6.65
7.02
6.09
6.2
6.09
6.26
6.36
7.27
6.44
6.9
6.23
6.2
6.62
6.52
6.1
6.94
6.66
6.86
6.69
6.17
6.57
6.3
6.08
6.27

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07