Module 2
Module 2
Event (E):
o A subset of the sample space.
Probability Axioms:
o Axiom 1 (Non-negativity): For any event E, P(E)≥0. (Probability is never
negative.)
o Axiom 2 (Total Probability): P(S)=1. (The probability of the entire sample space
is 1.)
o Axiom 3 (Additivity for Mutually Exclusive Events): If E1 and E2 are mutually
exclusive (they cannot both occur), then P(E1∪E2)=P(E1)+P(E2).
Example: event of rolling a 1 and event of rolling a 2 on a die are mutually
exclusive. So the probability of rolling a 1 or a 2 is the sum of the individual
probabilities.
Example:
o Experiment: Rolling a fair six-sided die.
o Discrete: E[X]=∑x⋅P(X=x)
o Continuous: E[X]=∫x⋅f(x)dx
o Example: If you roll a fair 6 sided die, the expected value is:
E[X]=(1/6)∗1+(1/6)∗2+(1/6)∗3+(1/6)∗4+(1/6)∗5+(1/6)∗6=3.5
Variance (Var(X) or σ²):
o Measures the spread or dispersion of a random variable's values.
o Var(X)=E[(X−E[X])2]
o Discrete: Var(X)=∑(x−E[X])2⋅P(X=x)
o Continuous: Var(X)=∫(x−E[X])2⋅f(x)dx
o σ=Var(X)
o It's in the same units as the random variable, making it easier to interpret.
y=mx+b
Example: Predicting house prices based on square footage.
Example: Predicting exam scores based on study time, attendance, and prior
grades.
Example:
o A study wants to see if there is a relationship between the amount of fertilizer used
and crop yield.
o Regression analysis can be used to create a model that predicts crop yield based on
the amount of fertilizer used.
o The regression model will provide information about the strength and direction of
the relationship.
These are the fundamental concepts of probability theory and statistics. They form the basis for
many applications in fields such as science, engineering, finance, and data science.