Code Monkey home page Code Monkey logo

arasgungore / central-limit-theorem Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 1.57 MB

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

License: MIT License

MATLAB 100.00%
bernoulli-distribution central-limit-theorem cumulative-distribution-function exponential-distribution poisson-distribution probability probability-density-function probability-distribution random-variables uniform-distribution

central-limit-theorem's Introduction

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

central-limit-theorem's People

Contributors

arasgungore avatar kodlayanfahriye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.