LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating Percentile

Hi,

 

I am using Percentiles VI that comes with LabVIEW on my input array (see attached). I am however noticing some difference when I do the same percentile calculation using Microsoft Excel. Am I missing anything or doing something wrong in LabVIEW?

 

Thanks.

 

Download All
0 Kudos
Message 1 of 4
(3,833 Views)

You should not be suprised. You should not trust excel, when it comes to precision. I tried the same using MATLAB:

 

Untitled.jpg

LabVIEW and MATLAB gives the same result. I suspect it is the formula excel uses to calculate the percentile.

 

But I will go with LabVIEW, especially since it is confirmed with MATLAB.

0 Kudos
Message 2 of 4
(3,802 Views)

Thanks for checking the numbers with Matlab. I will go ahead and use the percentile VIs for statistical computation.

 

I came across the Wiki page that mentioned about NIST standard that Excel uses (http://en.wikipedia.org/wiki/Percentile)

 

0 Kudos
Message 3 of 4
(3,796 Views)

Strange is that Open Office gives the same as Excel*

However it is noted that LabVIEW returns 84.95 for the  67th percentile.

 

The distribution of your data is a litle bit off:

Distribution.png

Especially in the end you see large jumps.

 

Ton

* not so strange, OO wants to mimic excel as good as possible.

 

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(3,795 Views)