0 Y i D 1 P X i 1 Y i D N D N DA N D P X i 1 Y i H N HA N H P X i 0 Y i H 1 P X

0 y i d 1 p x i 1 y i d n d n da n d p x i 1 y i h n

This preview shows page 3 out of 3 pages.

= 0 | Y i = D ) = 1 - P ( X i = 1 | Y i = D ) = N D - N DA N D , P ( X i = 1 | Y i = H ) = N HA N H , P ( X i = 0 | Y i = H ) = 1 - P ( X i = 1 | Y i = H ) = N H - N HA N H . Estimate these probabilities from the data in trainPatient , and report their values. b) Test the Bayesian classifier based on feature A i using the data in testPatient . What is the accuracy (percentage of correctly classified patients) of this classifier on that data? c) Consider now the feature X i = E i , where E i = 1 if exercise causes patient i to experience chest pain, and E i = 0 if it does not. Estimate and report conditional probabilities for this new feature as in part (a). What is the accuracy of a Bayesian classifer based on feature E i on the data in testPatient ? d) Consider the pair of features X i = ( A i , E i ) . This pair of features can take on 4 values: (0 , 0) , (0 , 1) , (1 , 0) or (1 , 1) (we do not assume that A i and E i are independent). By counting as in part (a), compute and report the probabilities of these four events given Y i = D and given Y i = H . What is the accuracy of a Bayesian classifier based on feature X i on the data in testPatient ? Compare the accuracy of this classifier to those from parts (b) and (c), and give an intuitive explanation for what you observe. 3
Image of page 3
  • Fall '08
  • Smyth,P
  • Normal Distribution, Probability theory, probability density function, Yi, Cumulative distribution function

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

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes