{"id":20027673,"url":"https://github.com/fabriziomusacchio/sir_model","last_synced_at":"2026-05-16T11:04:27.371Z","repository":{"id":180829761,"uuid":"665761525","full_name":"FabrizioMusacchio/SIR_model","owner":"FabrizioMusacchio","description":"This repository contains the code for the blog post on The SIR model: A mathematical approach to epidemic dynamics. For further details, please refer to this post.","archived":false,"fork":false,"pushed_at":"2023-07-13T01:10:33.000Z","size":375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T03:39:19.004Z","etag":null,"topics":["python","simulation","sir-model"],"latest_commit_sha":null,"homepage":"https://www.fabriziomusacchio.com/blog/2020-12-11-sir_model/","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/FabrizioMusacchio.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}},"created_at":"2023-07-13T00:25:08.000Z","updated_at":"2023-07-18T09:46:35.000Z","dependencies_parsed_at":"2023-07-13T02:34:45.607Z","dependency_job_id":null,"html_url":"https://github.com/FabrizioMusacchio/SIR_model","commit_stats":null,"previous_names":["fabriziomusacchio/sir_model"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FabrizioMusacchio/SIR_model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioMusacchio%2FSIR_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioMusacchio%2FSIR_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioMusacchio%2FSIR_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioMusacchio%2FSIR_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabrizioMusacchio","download_url":"https://codeload.github.com/FabrizioMusacchio/SIR_model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioMusacchio%2FSIR_model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["python","simulation","sir-model"],"created_at":"2024-11-13T09:11:20.940Z","updated_at":"2026-05-16T11:04:27.354Z","avatar_url":"https://github.com/FabrizioMusacchio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The SIR Model\n\nThis repository contains the code for the blog posts on [The SIR model: A mathematical approach to epidemic dynamics](https://www.fabriziomusacchio.com/blog/2020-12-11-sir_model/) and [Interactive COVID-19 data exploration with Jupyter notebooks](https://www.fabriziomusacchio.com/blog/2020-12-15-covid19_interactive_plot/). For further details, please refer to these posts.\n\nFor reproducibility:\n\n```powershell\nconda create -n sir_model_covid19 -y python=3.9\nconda activate sir_model_covid19\nconda install -y mamba\nmamba install -y pandas matplotlib numpy scipy scikit-learn ipykernel notebook ipympl mplcursors\n```\n\n## Acknowledgement\nI acknowledge that the main code is based on this [blog post](https://numbersandshapes.net/posts/fitting_sir_to_data_in_python/)  and this [documentation page](https://scientific-python.readthedocs.io/en/latest/notebooks_rst/3_Ordinary_Differential_Equations/02_Examples/Epidemic_model_SIR.html). I have made some modifications to the code to make it more readable and understandable.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabriziomusacchio%2Fsir_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabriziomusacchio%2Fsir_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabriziomusacchio%2Fsir_model/lists"}