Skip to content

A MATLAB project which applies the central limit theorem on PDFs and CDFs of different probability distributions.

License

Notifications You must be signed in to change notification settings

arasgungore/central-limit-theorem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

central-limit-theorem

A MATLAB project which applies the central limit theorem (CLT) on probability density functions (PDFs) and cumulative distribution functions (CDFs) of different probability distributions such as uniform, exponential, Bernoulli, and Poisson distribution.

The central limit theorem (CLT) implies that given sequence, a sequence of independent and identically distributed (IID) random variables with expected value expected_value and variance variance, the cumulative distribution function (CDF) of sum has the property equation. Briefly, the theorem states that as n increases, the sum of n IID random variables converges to a normal distribution.

This homework was assigned for the Probability for Electrical Engineers (EE 313) course in the Fall 2021-22 semester.

Run on Terminal

matlab -nodisplay -nosplash -nodesktop -r "run('main.m');exit;"

Proof

1) E[A] and Var[A]

Figure

𝐸[𝐴] = 𝐸[𝐾1 + 𝐾2 + ⋯ + 𝐾𝑛] =
𝐸[𝐾1] + 𝐸[𝐾2] + ⋯ + 𝐸[𝐾𝑛] =
𝐸[𝐾] + 𝐸[𝐾] + ⋯ + 𝐸[𝐾] =>
𝐸[𝐴] = 𝑛 · 𝐸[𝐾]

𝑉𝑎𝑟[𝐴] = 𝑉𝑎𝑟[𝐾1 + 𝐾2 + ⋯ + 𝐾𝑛] =
𝑉𝑎𝑟[𝐾1] + 𝑉𝑎𝑟[𝐾2] + ⋯ + 𝑉𝑎𝑟[𝐾𝑛] =
𝑉𝑎𝑟[𝐾] + 𝑉𝑎𝑟[𝐾] + ⋯ + 𝑉𝑎𝑟[𝐾] =>
𝑉𝑎𝑟[𝐴] = 𝑛 · 𝑉𝑎𝑟[𝐾]

Figures

2) Uniform PDF

Figure Figure Figure

3) Exponential PDF

Figure Figure Figure

4) Bernoulli CDF

Figure Figure Figure

5) Poisson CDF

Figure Figure Figure

Author

👤 Aras Güngöre