arasgungore / central-limit-theorem

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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