Expanded article (#24271)
* Expanded article Expanded article on how to Calculate Percentiles * Remove 'this is a stub' text
This commit is contained in:
@ -3,13 +3,10 @@ title: How to Calculate Percentiles
|
|||||||
---
|
---
|
||||||
## How to Calculate Percentiles
|
## How to Calculate Percentiles
|
||||||
|
|
||||||
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/statistics/how-to-calculate-percentiles/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
|
We can calculate the kth percentile (where k is any number between zero and one hundred) by first ordering all values in the data set from smallest to largest. Then we can multiply k percent by the total number of values, n.
|
||||||
|
|
||||||
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
|
If n is not a whole number, round it up to the nearest whole number and go to A. If n is a whole number, go to B.
|
||||||
|
|
||||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
|
||||||
|
|
||||||
#### More Information:
|
|
||||||
<!-- Please add any articles you think might be helpful to read before writing the article -->
|
|
||||||
|
|
||||||
|
A) Count the values in your data set from left to right (from the smallest to the largest value) until you reach n. The corresponding value in your data set is the kth percentile.
|
||||||
|
|
||||||
|
B) Count the values in your data set from left to right until you reach n. The kth percentile is the average of that corresponding value in your data set and the value that directly follows it.
|
||||||
|
Reference in New Issue
Block a user