In this document, we explore how bayes' rule can be applied to distinguish between cats and dogs based on weight, using given prior probabilities and class conditional density functions. An example of how to classify an unknown animal with a weight of 35 pounds using the given probabilities.
Download Using Bayes' Rule to Classify Animals Based on Weight - Prof. Ramani Duraiswami and more Assignments Computer Science in PDF only on Docsity!
Suppose we are trying to distinguish cats from dogs and the only measurement we have is weight. Let the prior probabilities for cats and dogs be P(CAT) = 0.3, p(DOG) = 0.7 and let the class conditional density functions for (integer-valued) weight given class be uniformly distributed as follows: –P(Weight|CAT) is uniform on [20, 39] –P(Weight|DOG) is uniform on [30,59]. Explain how Bayes’ rule can be used to classify an unknown animal having weight 35 pounds given the prior and conditional probabilities defined above. :