This is just a hypothetical question that I had (I made this question myself, just am curious about something). What if we were trying to find the $20\text{th}$ percentile in a discrete probability distribution from $0 \leq x \leq 5$, where
$F(0) = 0.1$
$F(1) = 0.3$
$F(2) = 0.5$
$F(3) = 0.6$
$F(4) = 0.8$
$F(5) = 1$
$F(x)$ is the cdf of course.
Would the $20\text{th}$ percentile be $0$ or $1$ or something else entirely?
This is where the $20\text{th}$ percentile is the value above or equal to $20%$ of the data
Can anyone give me the algorithm to find percentile in a discrete probability distribution if there is one?
Thank you for any help/comments.