From a sample of 250 data scientists, determine the ratio of those proficient in Python to those proficient in R.
- Proficient in Python and R: 50
- Proficient in Python only: 80
- Proficient in R only: 70
- Proficient in neither language: 50
- Total sample size: 250
Show answer & explanation
Correct answer: A.
Add the ‘both’ group to each ‘only’ group.
1
Count Python users
Python and R + Python only = 50 + 80 = 130
2
Count R users
Python and R + R only = 50 + 70 = 120
3
Write the ratio
130 : 120 = 13 : 12
Final Answer
13 : 12
Want to time yourself and track progress? Solve it in practice mode →