{"id":26105350,"url":"https://github.com/arasgungore/central-limit-theorem","last_synced_at":"2025-04-12T18:26:21.183Z","repository":{"id":44578295,"uuid":"482067469","full_name":"arasgungore/central-limit-theorem","owner":"arasgungore","description":"A MATLAB project which applies the central limit theorem on PDFs and CDFs of different probability distributions.","archived":false,"fork":false,"pushed_at":"2022-08-08T12:18:53.000Z","size":1609,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T12:46:49.563Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arasgungore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-15T19:44:21.000Z","updated_at":"2023-12-13T13:53:44.000Z","dependencies_parsed_at":"2022-08-28T21:23:43.905Z","dependency_job_id":null,"html_url":"https://github.com/arasgungore/central-limit-theorem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arasgungore%2Fcentral-limit-theorem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arasgungore%2Fcentral-limit-theorem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arasgungore%2Fcentral-limit-theorem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arasgungore%2Fcentral-limit-theorem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arasgungore","download_url":"https://codeload.github.com/arasgungore/central-limit-theorem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248611937,"owners_count":21133206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2025-03-09T21:06:09.609Z","updated_at":"2025-04-12T18:26:21.158Z","avatar_url":"https://github.com/arasgungore.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# central-limit-theorem\n\nA 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.\n\nThe 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).\n\nThis homework was assigned for the Probability for Electrical Engineers (EE 313) course in the Fall 2021-22 semester.\n\n\n\n## Run on Terminal\n\n```sh\nmatlab -nodisplay -nosplash -nodesktop -r \"run('main.m');exit;\"\n```\n\n\n\n## Proof\n\n### 1) E[A] and Var[A]\n\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Proof/Q1/q1.jpg\" width=\"800\"\u003e\n\u003c/p\u003e\n\n```\n𝐸[𝐴] = 𝐸[𝐾1 + 𝐾2 + ⋯ + 𝐾𝑛] =\n𝐸[𝐾1] + 𝐸[𝐾2] + ⋯ + 𝐸[𝐾𝑛] =\n𝐸[𝐾] + 𝐸[𝐾] + ⋯ + 𝐸[𝐾] =\u003e\n𝐸[𝐴] = 𝑛 · 𝐸[𝐾]\n\n𝑉𝑎𝑟[𝐴] = 𝑉𝑎𝑟[𝐾1 + 𝐾2 + ⋯ + 𝐾𝑛] =\n𝑉𝑎𝑟[𝐾1] + 𝑉𝑎𝑟[𝐾2] + ⋯ + 𝑉𝑎𝑟[𝐾𝑛] =\n𝑉𝑎𝑟[𝐾] + 𝑉𝑎𝑟[𝐾] + ⋯ + 𝑉𝑎𝑟[𝐾] =\u003e\n𝑉𝑎𝑟[𝐴] = 𝑛 · 𝑉𝑎𝑟[𝐾]\n```\n\n\n\n## Figures\n\n### 2) Uniform PDF\n\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q2/q2_1.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q2/q2_2.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q2/q2_3.jpg\" width=\"400\" height=\"250\"\u003e\n\u003c/p\u003e\n\n\n### 3) Exponential PDF\n\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q3/q3_1.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q3/q3_2.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q3/q3_3.jpg\" width=\"400\" height=\"250\"\u003e\n\u003c/p\u003e\n\n\n### 4) Bernoulli CDF\n\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q4/q4_1.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q4/q4_2.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q4/q4_3.jpg\" width=\"400\" height=\"250\"\u003e\n\u003c/p\u003e\n\n\n### 5) Poisson CDF\n\n\u003cp align=\"left\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q5/q5_1.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q5/q5_2.jpg\" width=\"400\" height=\"250\"\u003e\n  \u003cimg alt=\"Figure\" src=\"https://raw.githubusercontent.com/arasgungore/central-limit-theorem/main/Figures/Q5/q5_3.jpg\" width=\"400\" height=\"250\"\u003e\n\u003c/p\u003e\n\n\n\n## Author\n\n👤 **Aras Güngöre**\n\n* LinkedIn: [@arasgungore](https://www.linkedin.com/in/arasgungore)\n* GitHub: [@arasgungore](https://github.com/arasgungore)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farasgungore%2Fcentral-limit-theorem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farasgungore%2Fcentral-limit-theorem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farasgungore%2Fcentral-limit-theorem/lists"}