Community Data Science Course (Spring 2019)/Day 4 Coding Challenges: Difference between revisions
From CommunityData
(Created page with "# Rework all of The day 3 challenges. # Get the ratio of names that start with each letter. ## Do this...") |
No edit summary |
||
Line 1: | Line 1: | ||
# Rework all of [[Community_Data_Science_Course_(Spring_2019)/Day_3_Coding_Challenges|The day 3 challenges.]] | # Rework all of [[Community_Data_Science_Course_(Spring_2019)/Day_3_Coding_Challenges|The day 3 challenges.]] | ||
# Get the ratio of names that start with each letter. | # Get the ratio of names that start with each letter. | ||
## Do this for boys and girls. | |||
## '''Hint''' First line of output is a boys: 0.10120456305133887 girls: 0.18231978026407467 | |||
# Are girls or boys more likely to have a name that is used by both genders? | # Are girls or boys more likely to have a name that is used by both genders? | ||
# How many babies were born that share a name with exactly 4 other babies? With 5 other babies? With 6? Build a histogram. | # How many babies were born that share a name with exactly 4 other babies? With 5 other babies? With 6? Build a histogram. | ||
## Use this to extrapolate and guess the number of babies with unique names. We did this in class. |
Revision as of 18:38, 24 April 2019
- Rework all of The day 3 challenges.
- Get the ratio of names that start with each letter.
- Do this for boys and girls.
- Hint First line of output is a boys: 0.10120456305133887 girls: 0.18231978026407467
- Are girls or boys more likely to have a name that is used by both genders?
- How many babies were born that share a name with exactly 4 other babies? With 5 other babies? With 6? Build a histogram.
- Use this to extrapolate and guess the number of babies with unique names. We did this in class.