Probability & Naïve Bayes Classifier
Probability is simply how likely something is to happen. Whenever we’re unsure about the outcome of an event, we can talk about the probabilities of certain outcomes—how likely they are. The analysis of events governed by probability is called statistics. The best example for understanding probability is flipping a coin: There are two possible outcomes—heads or tails. What’s the probability of the coin landing on Heads? We can find out using the equation P(H) = ? P ( H ) = ? P, left parenthesis, H, right parenthesis, equals, question mark .You might intuitively know that the likelihood is half/half, or 50%. But how do we work that out? Probability = Formula for calculating the probability of certain outcomes for an event In this case: Probability of a coin landing on heads Probability of an event = (# of ways it can happen) / (total number of outcomes) P(A) = (# of ways A can happen) / (Total number of outcomes) Example 1 There are six different outcomes. Differ...