Oct 18 2022 05:07 PM
It is about different results between Excel Quartile function and manual calculation. Though this question has been asked previously by someone else. I didn't see a solution.
For even numbered dataset, the lower quartile and upper quartile are different from statistic methods. https://support.microsoft.com/en-us/office/quartile-function-93cf8f62-60cd-4fdb-8a92-8451041e1a2a The example shows the 1st quartile is 3.5, while I calculated the 1st quartile is 3. I understand that there are different formulas to calculate quartiles. Does anyone find out the formula used by Excel or solution? Thank you.
Amy
Oct 18 2022 06:03 PM
Solution
Unfortunately, MSFT has been "sanitizing" the function help pages, removing a lot of useful stuff.
I found the following explanation in the PERCENTILE.INC online help page (click here:(
``If k is not a multiple of 1/(n - 1), PERCENTILE.INC interpolates to determine the value at the k-th percentile.``
For QUARTILE (QUARTILE.INC), "k" would be 0, 25%, 50% 75% and 100%.
Unfortunately, MSFT help pages are unreliable in general. I would not trust that kind of information without some careful testing.
It might be helpful if you posted some examples where your calculation differs -- and show how you are calculating your results.
I do see your one example. But you do not "show your work". And some more examples might be helpful for inferring the algorithm.
(I will also try to find a set of examples that might be dispositive.)
As you noted, that does not make either method more or less correct, since statisticians do not agree on methods for interpolating percentiles -- or not.
Oct 20 2022 08:57 AM
Oct 18 2022 06:03 PM
Solution
Unfortunately, MSFT has been "sanitizing" the function help pages, removing a lot of useful stuff.
I found the following explanation in the PERCENTILE.INC online help page (click here:(
``If k is not a multiple of 1/(n - 1), PERCENTILE.INC interpolates to determine the value at the k-th percentile.``
For QUARTILE (QUARTILE.INC), "k" would be 0, 25%, 50% 75% and 100%.
Unfortunately, MSFT help pages are unreliable in general. I would not trust that kind of information without some careful testing.
It might be helpful if you posted some examples where your calculation differs -- and show how you are calculating your results.
I do see your one example. But you do not "show your work". And some more examples might be helpful for inferring the algorithm.
(I will also try to find a set of examples that might be dispositive.)
As you noted, that does not make either method more or less correct, since statisticians do not agree on methods for interpolating percentiles -- or not.