I'm attempting to use StdDev with limited success and am wondering if anyone else has come across the same discrepancy between CR's StdDev result and Excel's STDEV result. If I use identical values in both CR and Excel for calculating Standard Deviation, I get different results.
Whatever result Excel calcualates for Standard Dev is considered gospel since our clients MAY use Excel to check our calculations using CR. Unfortunately, CR's results differ from Excel which is unacceptable.
Has anyone else noticed different results as I've mentioned? I'm using nonbiased Standard Deviation in both CR and Excel and am beginning to realize that duplicating results between the two apps may be an exercise in futility; yet they shouldn't be so different as I'm experiencing.
In case anyone's interested, Standard Dev is desired for the following values
100,99.99999,99.99999,99.99999,99.99999,100.00000,100.00000,99.99999,99.99999,99.99999,
Excel Standard Deviation = 0.00000458469553
CR Standard Deviaion = .0000051469
CR code sample below...
thanks
Jim
Whatever result Excel calcualates for Standard Dev is considered gospel since our clients MAY use Excel to check our calculations using CR. Unfortunately, CR's results differ from Excel which is unacceptable.
Has anyone else noticed different results as I've mentioned? I'm using nonbiased Standard Deviation in both CR and Excel and am beginning to realize that duplicating results between the two apps may be an exercise in futility; yet they shouldn't be so different as I'm experiencing.
In case anyone's interested, Standard Dev is desired for the following values
100,99.99999,99.99999,99.99999,99.99999,100.00000,100.00000,99.99999,99.99999,99.99999,
Excel Standard Deviation = 0.00000458469553
CR Standard Deviaion = .0000051469
CR code sample below...
Code:
dim ict as number
Dim nSum2 as number
Dim nPos as number
Dim nLen as Number
dim sSampdat as string
sSampdat = "100,99.99999,99.99999,99.99999,99.99999,100.00000,100.00000,99.99999,99.99999,99.99999,"
Dim sSampArray() As number
ReDim sSampArray(10)
nPos = 1
nLen = 0
For iCt = 1 To 10
sSampArray(iCt) = tonumber(Mid(sSampdat, nPos, InStr(nPos, sSampdat, ",", 1) - nPos))
nLen = Len(Mid(sSampdat, nPos, InStr(nPos, sSampdat, ",", 1)))' - nPos))
nPos = nPos + Len(Mid(sSampdat, nPos, InStr(nPos, sSampdat, ",", 1) - nPos))+1
Next iCt
nSum2 = StdDev(sSampArray)
formula = nSum2
thanks
Jim