Q. What is a quartile? How is it related to quantile? How do you generate it in Pandas?


Answer :-

Quartiles Q1, Q2 and Q3 are three points that divide a distribution into 4 equal parts containing 25% percentile each of entire distribution. The 4-quantiles called quartiles. A quantile refers to an equal share in an equally divided distribution e.g., median quantile divides a distribution into 2 equal parts and each equal share is 50% quantile.
Quartile on the other hand refers to when a distribution is divided into four quantiles each containing 25% percentile.
In Pandas, we generate these with function quantile().

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post