HW1_SolutionSet - Homework#1 Solution Set Problem 1...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - Homework #1 Solution Set Problem 1 Solution: Use the COUNTIF and COUNTIFS functions in Excel to populate the following table: Worker Type Drinking Preference Total L R N B 111 122 17 250 W 79 59 12 150 Total 190 181 29 400 For example, to calculate Total B use =COUNTIF(B4:B403,"B") = 250 to calculate Total L use =COUNTIF(C4:C403,”L”) = 190 to calculate B L use =COUNTIFS(B4:B403,"B",C4:C403,”L”) = 111 Dividing each entry by the grand total 400 provides the joint probability table: Worker Type Drinking Preference Total L R N B 0.278 0.305 0.043 0.625 W 0.198 0.148 0.030 0.375 Total 0.475 0.453 0.073 1.000 (a) P(prefers light beer, given blue collar) = 444 . 0 625 . 0 278 . 0 ) ( ) ( ) | ( B P B L P B L P (b) P(prefers light beer, given white collar) = 527 . 0 375 . 0 198 . 0 ) ( ) ( ) | ( W P W L P W L P (c) There are 371 people who like to drink beer (light or regular). 233 of them are blue collar drinkers and 138 are white collar drinkers. Therefore, P(prefers light beer, given blue collar drinker) = P(prefers light beer AND blue collar drinker)/P(blue collar drinker) = (111/371)/(233/371) = 111/233 = 0.476 (d) P(prefers light beer, given white collar drinker)
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern