The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

What is the prior probability P(C = ‘no’) ? how i can find prior probability in this table ? Naïve

Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi,

    in the RapidMiner Academy there are multiple videos about Naive Bayes.

    Here's RapidMiner founder Ingo explaining the algorithm:
    https://academy.rapidminer.com/learn/article/naive-bayes-are-we-playing-golf-today

    If you look at the model description, it says:

    SimpleDistribution

    Distribution model for label attribute Play
    
    Class no (0.357143)
    4 distributions
    
    Class yes (0.642857)
    4 distributions
    These are exactly the fractions of the values in the entire distribution - the prior probability of the class in the training data.

    The numbers you see in the table can be interpreted as "the fraction of the data where Outlook = overcast and Play = yes". 

    Regards,
    Balázs
  • Telcontar120Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    If you look at the table, you can see that the probabilities shown will total to 1 (not accounting for rounding) for each class for each attribute.  So there are 4 possible values for the outlook attribute (rain, overcast, sunny, unknown) and 2 classes (yes/no) and the sums for each set will total to 1. 
    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
Sign In or Register to comment.