Skip to content

Latest commit

 

History

History
85 lines (52 loc) · 4 KB

README.md

File metadata and controls

85 lines (52 loc) · 4 KB

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