Key Concepts in Probability and Statistics
Introduction to Probability
Probability is the branch of mathematics concerning events and numerical descriptions of how likely they are to occur.
Important Properties of Probability
Non-negativity: Probability cannot be negative.
Range: The possible range of the probability of an event is [0, 1].
Total Probability: The total probability of all possible outcomes is 1.
Discrete vs Continuous:
If an event has a finite number of possible values, it has discrete probabilities.
If an event has an infinite number of possible values, it has a continuous probability distribution.
Classical Definition of Probability
Terms:
Random Experiment: An experiment whose outcome is uncertain.
Outcome: The result of a random experiment.
Event: A collection of outcomes.
Probability of Event A:
Where:
= Total number of possible outcomes
= Number of outcomes belonging to event A.
Sample Space and Events
A sample space, S, contains all possible outcomes of a random experiment.
Each possible outcome is a sample point, , and an event corresponds to one or more sample points.
Axiomatic Definition of Probability
A probability space consists of the following:
Sample space S of elementary events.
A set of events that are subsets of S.
A probability measure to each event A, defined by:
For mutually exclusive events, .
Bernoulli Trials
A Bernoulli trial (or binomial trial) has two outcomes, A or B. The probabilities remain consistent across trials:
Example: Flipping a coin.
Probabilities: ,
Formula for k successes out of n trials:
Where:
Total probability of events equals 1.
Uniform Distribution
In discrete uniform distribution, if K possible values exist:
Continuous Probability Density Function (PDF)
Continuous random values are studied using PDFs, :
The area under equals 1, and for a range [a, b]:
P[a < x \leq b] = \int_{a}^{b} f(x) \, dx
Continuous Uniform Distribution
For in the range [a, b]:
f(x) = \begin{cases}
\frac{1}{b-a} & \text{for } x \in [a, b] \
0 & \text{otherwise}
\end{cases}
Random Number Generator (RNG) in MATLAB
MATLAB's
rand()function generates uniformly distributed random values in [0, 1].To scale to range [a, b]:
To reset RNG:
Use
rng('default')
Histogram
Histograms group data into bins to analyze distribution.
To plot in MATLAB:
histogram(x, nbins)for a specified number of bins.
Mean and Variance
Mean ($\mux$):
Variance ($\sigma^2$) measures data spread:
Cumulative Distribution Function (CDF)
The CDF describes the probability distribution completely:
For discrete random variables:
Properties of Normal Distribution
The normal distribution is given by:
Standard Normal Distribution: when and .
68.3%, 95.4%, and 99.7% of values lie within 1, 2, and 3 standard deviations from the mean, respectively.
To calculate the CDF in MATLAB for normal distributions:
Use
normcdf(x, mu, sigma)