This community-built FAQ covers the “Quantiles Review” exercise from the lesson “Quantiles”.
Paths and Courses
This exercise can be found in the following Codecademy content:
FAQs on the exercise Quantiles Review
There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
Agree with a comment or answer? Like () to up-vote the contribution!
Need broader help or resources? Head here.
Looking for motivation to keep learning? Join our wider discussions.
Learn more about how to use this guide.
Found a bug? Report it!
Have a question about your account or billing? Reach out to our customer support team!
None of the above? Find out where to ask other questions here!
Hi team,
I just finished learning the Quartiles, Quantiles and Percentiles part in Data Science path. I need a bit more perspective in interpreting this graph from the lesson:
The questions are:
- If you had an SAT score of
1350
, which tenth of the data would you be in for each school?
- Then, which schools should you apply to?
- Would any of the schools be unrealistic options?
I personally can answer question 1, but not so much for question 2 and 3.
It would be great if some aspiring Data Scientist can explain their answers to Q2 and Q3.
Looking forward to it.
Regards,
Jimmy
1 Like
I plotted the line with:
plt.axvline(x=1350, c = ‘yellow’)
You will see that with that score yow would be top of the class in schools 2 and 3 but just below the half in school 1. It appears that School One is the better school.
Question 3. I have no idea.
As @bjrompal pointed out, you could easily draw the 1350 line to have a better visualization of this score vs the different percentiles.
Q1: which percentile for each school?
- School 1: 1350 places you in the fifth decile, aka top 50% (but just slightly above the median). It is unlikely that you would be successful in applying to this school.
- School 2: 1350 places you in the first decile, aka top 10%. Your chances of getting into that school are extremely high.
- School 3: 1350 places you in the second decile, (just below the first decile). Your are in the top 20% scores, so your chances of getting into that school are also very high.
Q2: which schools to apply to?
Based on the info above, schools 2 and 3.
Q3: unrealistic option?
School 1 would be an unrealistic option as almost 50% of other students have a better SAT score.
I hope that helps
1 Like
When creating the deciles is it better practice to manually write out all of the steps or would it be better to create the list using np.arange as shown below?
deciles_one = np.quantile(school_one, [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
deciles_one = np.quantile(school_one, np.arange(.1,1,.1))