Question: Please help with python coding! Problem 2 - Calculating Probabilities from Data In this exercise, you will be working with the file survey _ data.csv
Please help with python coding!
Problem Calculating Probabilities from Data
In this exercise, you will be working with the file surveydata.csv This data has a list of college students
who were asked their hair color and eye color.
Use Python code to answer the following questions.
Based off of this data, what is the probability a college student has brown hair?
Based off of this data, what is the probability a college student has blue eyes?
Based off of this data, what is the probability a college student has blue eyes given that they have
brown hair?
Based off of this data, what is the probability a college student has brown hair given that they have
blue eyes?
Do your results above indicate that college students having brown hair and blue eyes are independent
of one another? Explain.
Create a bar graph of the hair color and eye color of this group of students. Label the graphs appro
priately.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
