Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Written by Prashant Basnet
Prashant Basnet, a software engineer at Unisala.com, focuses on software development and enjoys building platforms to share knowledge. Interested in system design, data structures, and is currently learning NLP
Bayes' Rule:
A fundamental concept in probability theory. It allows us to update our belief about an event based on new evidence.
probability of an event A, given B is probability of event B given a * probability of Event A / Probability of event
With a clear example:
Let's see how can we can use this baye's theorem practically.
Remember:
Events:
Now, let's explain P(A|B) and P(B|A):
Let's use a simpler example to illustrate:
Imagine we're talking about just one couple, let's call them Amy & Sam.
Now, let's say we actually see Amy & Sam. having a public argument. We want to update our belief about whether they'll break up.
We use Bayes' Rule:
Before we saw them argue, we though Alex and Sam had 30% chance of breaking up. After seeing them argue in public we now think they have 77% chance of breaking up.
Baye's theorem helped us update our belief about likelihood of break up after obeserving new evidence (the public argument).
Baye's theorm
Where:
1. What is posterior probability, P(A|B) ?
2. What is likelihood, P(B|A)?
The likelihood, denoted as P(B|A), is the probability of observing the evidence B, given that the hypothesis A is true.
P(B|A) is the likelihood of observing a public argument among couples who are destined to break up. Among couples who are going to break up, 80% of them will have a public argument.
3. What is the prior probability, P(A)?
P(A) is the probability that a couple will break up, before we observe any arguments or other evidence. For example, if P(A) = 0.3, it means we believe that 30% of couples in general will break up.
4. What is the evidence, P(B)?
P(B) is the overall probability of observing a public argument, regardless of whether the couple breaks up or not. It's called the evidence because it's what we actually observe. P(B) considers all scenarios: arguments from couples who will break up and from those who won't.
For example, if P(B) = 0.4, it means that 40% of all couples have public arguments, regardless of their eventual outcome.
To illustrate:
P(B) is crucial because it normalizes our calculation in Bayes' Rule, ensuring our updated probability (posterior) is properly scaled.
Most important probability distributions in statistics
Probability distributions are mathematical function that describe the likelihood of different outcomes in an experiment. They are fundamental to statistics & probability theory, providing a framework for understanding & analyzing random phenomena.
Types of Probability Distributions:
Discrete Distribution:
Continuous Distributions:
It's characterized by its bell-shaped curve and is defined by two parameters: the mean (μ) and the standard deviation (σ). symmetric around the mean.
68-95-99.7 Rule:
Parameters: Characterized by two parameters:
Importance:
Key concepts:
Gaussian distribution:
what is anti-derivative?
1/(2 * pie) ^ 1/2 (e ^(-1/2 * x^ 2))
S e^ (-x)^2 * dx does not have an anti derivative.
true mean = expectation of probability density function.
statistics that estimates the true mean.
mass probability.