An open API service indexing awesome lists of open source software.

https://github.com/arasgungore/central-limit-theorem

A MATLAB project which applies the central limit theorem on PDFs and CDFs of different probability distributions.
https://github.com/arasgungore/central-limit-theorem

bernoulli-distribution central-limit-theorem cumulative-distribution-function distribution-function exponential-distribution gaussian-distribution matlab normal-distribution poisson-distribution probability probability-density-function probability-distribution probability-distributions probability-theory probability-theory-course random-distribution random-distributions random-variable random-variables uniform-distribution

Last synced: 22 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://render.githubusercontent.com/render/math?math=X_1,X_2,\ldots,X_n), a sequence of independent and identically distributed (IID) random variables with expected value ![expected_value](https://render.githubusercontent.com/render/math?math=\mu_x) and variance ![variance](https://render.githubusercontent.com/render/math?math=\sigma_x^2), the cumulative distribution function (CDF) of ![sum](https://render.githubusercontent.com/render/math?math=Z_n=\sum_{i=1}^n\frac{X_i-n\mu_X}{\sqrt{n\sigma_X^2}}) has the property ![equation](https://render.githubusercontent.com/render/math?math=\lim_{n\to\infty}F_{Z_n}(z)=\Phi(z)). Briefly, the theorem states that as n increases, the sum of n IID random variables converges to a [normal distribution](https://en.wikipedia.org/wiki/Normal_distribution).

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

## Run on Terminal

```sh
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**

* LinkedIn: [@arasgungore](https://www.linkedin.com/in/arasgungore)
* GitHub: [@arasgungore](https://github.com/arasgungore)