{"id":23224057,"url":"https://github.com/junaidsalim/implementation_of_central_limit_theorem","last_synced_at":"2025-04-05T16:44:35.959Z","repository":{"id":176914407,"uuid":"659734643","full_name":"JunaidSalim/Implementation_of_Central_Limit_Theorem","owner":"JunaidSalim","description":"C++ code implementing the Central Limit Theorem for calculating mean, standard deviation, and sample mean, generating random samples, and calculating Z-values.","archived":false,"fork":false,"pushed_at":"2024-01-17T16:44:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:52:27.395Z","etag":null,"topics":["central-limit-theorem","cpp","maths","statistics"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JunaidSalim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-28T12:54:22.000Z","updated_at":"2024-02-11T08:15:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"3da32958-bb91-4812-8cf3-7b3365fa71d7","html_url":"https://github.com/JunaidSalim/Implementation_of_Central_Limit_Theorem","commit_stats":null,"previous_names":["junaidsalim/c-implementation-of-central-limit-theorem","junaidsalim/implementation_of_central_limit_theorem"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FImplementation_of_Central_Limit_Theorem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FImplementation_of_Central_Limit_Theorem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FImplementation_of_Central_Limit_Theorem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JunaidSalim%2FImplementation_of_Central_Limit_Theorem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JunaidSalim","download_url":"https://codeload.github.com/JunaidSalim/Implementation_of_Central_Limit_Theorem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369932,"owners_count":20927927,"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":["central-limit-theorem","cpp","maths","statistics"],"created_at":"2024-12-18T23:30:00.547Z","updated_at":"2025-04-05T16:44:35.932Z","avatar_url":"https://github.com/JunaidSalim.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C-plusplus-Implementation-of-Central-Limit-Theorem\nC++ code implementing the Central Limit Theorem for calculating mean, standard deviation, and sample mean, generating random samples, and calculating Z-values.\n\n## Central Limit Theorem C++ Implementation\n\nThis C++ program demonstrates the Central Limit Theorem by calculating mean, standard deviation, sample mean, and Z-values. It also generates random samples from a dataset and saves the calculated values in output files.\n\n### Instructions:\n\n1. **Data File**: Make sure you have a data file named \"EmployeeData.csv\" in the same directory as the program. The file should contain the dataset from which random samples will be extracted.\n\n2. **Libraries**: The program requires the following libraries: `\u003ciostream\u003e`, `\u003cfstream\u003e`, `\u003cvector\u003e`, `\u003cstring\u003e`, `\u003ccmath\u003e`, `\u003ccstdlib\u003e`, and `\u003ctime.h\u003e`. Ensure that these libraries are available in your C++ environment.\n\n3. **Compile**: Compile the program using a C++ compiler. For example, using g++ in the command line:\n\n   ```\n   g++ central_limit_theorem.cpp -o central_limit_theorem\n   ```\n\n4. **Run**: Execute the compiled program:\n\n   ```\n   ./central_limit_theorem\n   ```\n\n5. **Output Files**: The program will generate two output files:\n   - \"Output10.txt\": Contains the Z-values calculated for sample size 10. Each value is listed on a separate line.\n   - \"test.txt\": Contains the Z-values calculated for sample size 300. Each value is listed on a separate line.\n\n6. **Review Results**: Open the output files to review the calculated Z-values.\n\nNote: The program assumes that the data file is in the correct format and the dataset contains at least 1000 entries.\n\n### Additional Notes:\n\n- The program uses random number generation to extract samples from the dataset.\n- The Central Limit Theorem states that as the sample size increases, the distribution of sample means approaches a normal distribution, regardless of the shape of the original population.\n- The calculated Z-values represent the standardized deviation of the sample mean from the population mean, taking into account the sample size and standard deviation.\n\n**Important**: Ensure that you have a proper understanding of the Central Limit Theorem and the code before using it or making any modifications.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidsalim%2Fimplementation_of_central_limit_theorem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunaidsalim%2Fimplementation_of_central_limit_theorem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunaidsalim%2Fimplementation_of_central_limit_theorem/lists"}