cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Why does JMP Not calculate STDEV correct

JMP is over estimating the STDEV. In R/Excel this number is less than the mean. Why is JMP calculating these over estimations? 

Screen Shot 2022-04-08 at 11.07.49 AM.png

M. Dereviankin
6 REPLIES 6

Re: Why does JMP Not calculate STDEV correct

I think you will need to provide more details. JMP does indeed correctly calculate a standard deviation. So, a few questions:

* What version of JMP are you using?

* Can you share some of your data, even if it is anonymized? You may have your data formatted in an unusual way.

* How much data do you have for each of these categories?

* Have you verified these exact same calculations with this exact same data in R or Excel?

 

Remember that there is no requirement that a standard deviation be less than a mean. For skewed distributions, the standard deviation could certainly be larger than the mean.

Dan Obermiller

Re: Why does JMP Not calculate STDEV correct

Using JMP 16 Pro. 

I've attached some data where you can calculate the standard deviation per the 3 factors above (Gender, Age, Ethnicity) for each Congener. You'll notice that this calculation will indeed deviate if you run it with R. Even when analyzing these distributions or doing a normalization technique (log normalization), you'll note that the standard deviations are still completely off. 

Attached is the data and a summary table I generated in R. JMP cannot replicate these calculations. 

M. Dereviankin
Craige_Hales
Super User

Re: Why does JMP Not calculate STDEV correct

Are you using a script like this?

Data Table( "NHANES 2003-2004" ) << Summary(
    Group( :Gender, :Age, :Ethnicity, :Congener ),
    Mean( :Lipid Weight ),
    Std Dev( :Lipid Weight ),
    Freq( "None" ),
    Weight( "None" )
)

The largest difference seems to agree to the resolution of the CSV numbers.

Craige
Georg
Level VII

Re: Why does JMP Not calculate STDEV correct

Dear @MikeDereviankin ,

I cannot reproduce the problem.

When importing your data into JMP (JMP Pro 16.1, Win10), I get exactly the same numbers (see Tabulate left) than you posted in your Summary (Summary Table right).

Perhaps there is an issue with importing the data?

 

 

Georg_0-1649584139264.png

 

Georg

Re: Why does JMP Not calculate STDEV correct

The CSV data is helpful, but the issue could be how you have your JMP table formatted. Could you attach your JMP file??

Dan Obermiller
Byron_JMP
Staff

Re: Why does JMP Not calculate STDEV correct

Change Gender Age and Ethnicity to Nominal (not continuous)

 

I ran tabulate just like you did in your first post, and made a data table from it.

Then I used tables>compare on my table and your summary.csv

 

The tables are identical

Byron_JMP_0-1650378604736.png

 

coding data correctly is very important

 

 

JMP Systems Engineer, Health and Life Sciences (Pharma)