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.
- Host: GitHub
- URL: https://github.com/arasgungore/central-limit-theorem
- Owner: arasgungore
- License: mit
- Created: 2022-04-15T19:44:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T12:18:53.000Z (over 2 years ago)
- Last Synced: 2025-03-26T12:46:49.563Z (about 1 month ago)
- Topics: 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
- Language: MATLAB
- Homepage:
- Size: 1.53 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 , a sequence of independent and identically distributed (IID) random variables with expected value  and variance , the cumulative distribution function (CDF) of  has the property =\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]
![]()
```
πΈ[π΄] = πΈ[πΎ1 + πΎ2 + β― + πΎπ] =
πΈ[πΎ1] + πΈ[πΎ2] + β― + πΈ[πΎπ] =
πΈ[πΎ] + πΈ[πΎ] + β― + πΈ[πΎ] =>
πΈ[π΄] = π Β· πΈ[πΎ]πππ[π΄] = πππ[πΎ1 + πΎ2 + β― + πΎπ] =
πππ[πΎ1] + πππ[πΎ2] + β― + πππ[πΎπ] =
πππ[πΎ] + πππ[πΎ] + β― + πππ[πΎ] =>
πππ[π΄] = π Β· πππ[πΎ]
```## Figures
### 2) Uniform PDF
![]()
![]()
![]()
### 3) Exponential PDF
![]()
![]()
![]()
### 4) Bernoulli CDF
![]()
![]()
![]()
### 5) Poisson CDF
![]()
![]()
![]()
## Author
π€ **Aras GΓΌngΓΆre**
* LinkedIn: [@arasgungore](https://www.linkedin.com/in/arasgungore)
* GitHub: [@arasgungore](https://github.com/arasgungore)