{"id":16403181,"url":"https://github.com/bm777/bootstrap-method-for-error-estimation","last_synced_at":"2025-10-25T21:48:29.692Z","repository":{"id":107400995,"uuid":"334471884","full_name":"bm777/bootstrap-method-for-error-estimation","owner":"bm777","description":"Bootstrap method to estimate error like standard error or confident interval","archived":false,"fork":false,"pushed_at":"2021-03-06T13:59:58.000Z","size":3200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T07:45:28.827Z","etag":null,"topics":["error-estimation","error-estimators","standard"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bm777.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-30T17:30:42.000Z","updated_at":"2021-03-06T14:00:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8964f3a-6e40-430e-af79-25ebf7831d7b","html_url":"https://github.com/bm777/bootstrap-method-for-error-estimation","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/bm777%2Fbootstrap-method-for-error-estimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm777%2Fbootstrap-method-for-error-estimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm777%2Fbootstrap-method-for-error-estimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm777%2Fbootstrap-method-for-error-estimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bm777","download_url":"https://codeload.github.com/bm777/bootstrap-method-for-error-estimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240348896,"owners_count":19787411,"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":["error-estimation","error-estimators","standard"],"created_at":"2024-10-11T05:48:28.940Z","updated_at":"2025-10-25T21:48:24.653Z","avatar_url":"https://github.com/bm777.png","language":"Python","readme":"# bootstrap-method-for-error-estimation\n#### Tools used:\nPython 3 on Ubuntu 18.04 and Core i7-9750 (CPU @2.60GHz x 12).\n\n#### Type of data\nThe main dataset is made up by IQ. list of 40 sample and each between 30 and 170.\n\n#### Result of computing\n![alt](assets/top.png)\n![alt](assets/new.gif)\n\n### How to use the Class\nTasks you have TO DO.\n- [x] Step [1] : DATASET GENERATION\n```\nestim = Estimator(default=40) # 40 is the default lenght of the set\ncounter = 0         # important for the next step\nmaximum = 10000     # you have to set your max number for iteration\n```\n- [x] Step [5] : REPEAT STEP 2 though 4 10000 times (start of loop)\n```\nwhile counter \u003c maximum\n    # step [2,3] := RANDOM PICK UP FOR ALL SAMPLES(default=40)\n    estim.pick()\n    # step [4] := CAULCULATE our SAMPLE STATISTIC(mean and median)\n    estim.mean_median[0].append(estim.calculate_mean(estim.pick()))\n    estim.mean_median[1].append(estim.calculate_median(estim.pick()))\n```\n- [x] Step [6] := CAULCULATE STANDARD DEVIATION of distribution of the 10,000 means and medians\n```\nestim.calculate_SD(estim.mean_median[0]) # SD of mean\nestim.calculate_SD(estim.mean_median[1]) # SD of median\n```\n- [x] Step [7] := CAULCULATE 2.5th and 97.5th centiles of the 10,000 means and medians\n```\nmean_of_mean = estim.calculate_mean(estim.mean_median[0])\nmean_of_median = estim.calculate_mean(estim.mean_median[1])\nsd_of_mean = estim.calculate_SD(estim.mean_median[0])\nsd_of_median = estim.calculate_SD(estim.mean_median[1])\n\nestim.small_centile([mean_of_mean, sd_of_mean])       # 2.5th centile of 10000 means\nestim.big_centile([mean_of_mean, sd_of_mean])         # 97.5th centile of 10000 means\nestim.small_centile([mean_of_median , sd_of_median])  # 2.5th centile of 10000 medians\nestim.big_centile([mean_of_median , sd_of_median])    # 97.5th centile of 10000 medians\n```\n\n\n#### Credit to this.\nThis [LINK](https://www.dummies.com/education/science/biology/the-bootstrap-method-for-standard-errors-and-confidence-intervals/) help me to understand the fundamental notion of bootstrap method.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm777%2Fbootstrap-method-for-error-estimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbm777%2Fbootstrap-method-for-error-estimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm777%2Fbootstrap-method-for-error-estimation/lists"}