LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Statistics Express Kurtosis inconistency Labview 2011 (Bug 215683)

Hi All,

 

I am currently working with a data collection program from which I need to output the skew and kurtosis values for an array of 30 data points. As I was already using the Statistics Express VI to calculate mean, s.d. etc. I just added the skew and kurtosis outputs to that VI. I then set up a basic VI to generate a 1D array of random numbers to let me compare the Express VI to the skew and kurtosis VI on the mathematics > probability and stats. palette.

 

The skew and kurtosis values are inconsistent between the two VIs. If I calculate the skew and kurtosis by hand I can see that the non-express VI appears to be giving the correct answer. I did some digging and found that this has been labelled as bug no. 215683 and is described as having been fixed as part of Labview 2011. I am running Labview 2011 with SP1 so I'm not quite sure why the two VIs are still inconsistent. 

 

I realise that I can simply use the VI which is giving the correct answer but I am curious as to why a bug which should be fixed still appears to be active in my version of Labview.

 

Any thoughts/ input would be greatly appreciated.

 

Many thanks in advance

 

Front Panel.png   Stats VI.png

 

 

0 Kudos
Message 1 of 7
(3,010 Views)

Hi. Have you tried running this on a newer version of LabVIEW. This may have been repaired in a later version of LabVIEW.

0 Kudos
Message 2 of 7
(2,964 Views)

Thanks for the reply, unfortunately I do not have access to a newer version of Labview. In this white paper, the bug is described as having been fixed between Labview 2010 and Labview 2011 which is why I'm a little confused as to why it is still occurring in my Labview 2011 installation.

 

 

0 Kudos
Message 3 of 7
(2,957 Views)

Hi cat,

 

why don't you get rid of that buggy (as it seems) ExpressVI?

The remaining data (StDev, variance) are provided by just another function from math->statistics palette…

 

You can also opne the ExpressVI to see, how it calculates those data and why it does produce different results!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,949 Views)

Hi. I have managed to replicate the issue in LabVIEW 2013 so it appears this bug is still present. I will get in touch with our r&d team with regards to this bug and make sure this gets looked into by our developers. Are you happy to use the regular VIs in the meantime?

0 Kudos
Message 5 of 7
(2,943 Views)

Hi there,

 

I have added the separate VIs into my program. Fortunately, as I'm fairly new to Labview, I've been checking that calculation VIs give me the correct answers so that I can understand the possibility of things like rounding errors occuring (and because it shows me how to build calculations of my own).

 

Thanks again for the help.

0 Kudos
Message 6 of 7
(2,936 Views)

Hi catofthefens,

 

The fix for bug 215683 was to add the non-express VI on statistics palette.   The express VI assumes the input sequence is a complete population to calculate the skewness and kurtosis. 

 

The non-express VI gives the option between population and samples.  And the default option is samples, which is a more valid option in other software.

 

We will add more description in the document to help user understand the difference between these VIs.

 

Thanks,

Michael

0 Kudos
Message 7 of 7
(2,924 Views)