{"id":25434454,"url":"https://github.com/prateekmaj21/disease-outbreak-simulation","last_synced_at":"2025-05-14T21:13:30.949Z","repository":{"id":48341309,"uuid":"391272360","full_name":"prateekmaj21/Disease-Outbreak-Simulation","owner":"prateekmaj21","description":"Simulation of a disease based on OOP","archived":false,"fork":false,"pushed_at":"2021-07-31T07:13:40.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T06:16:50.962Z","etag":null,"topics":["oop","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/prateekmaj21.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":"2021-07-31T06:18:28.000Z","updated_at":"2021-07-31T07:13:43.000Z","dependencies_parsed_at":"2022-09-19T13:20:22.964Z","dependency_job_id":null,"html_url":"https://github.com/prateekmaj21/Disease-Outbreak-Simulation","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/prateekmaj21%2FDisease-Outbreak-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekmaj21%2FDisease-Outbreak-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekmaj21%2FDisease-Outbreak-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prateekmaj21%2FDisease-Outbreak-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prateekmaj21","download_url":"https://codeload.github.com/prateekmaj21/Disease-Outbreak-Simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227626,"owners_count":22035671,"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":["oop","python3"],"created_at":"2025-02-17T06:16:53.916Z","updated_at":"2025-05-14T21:13:30.904Z","avatar_url":"https://github.com/prateekmaj21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disease-Outbreak-Simulation\n## Simulation of a disease based on OOP\n\nCreated using python. It simulates the spread of a communicable infectious disease through the population. Both, an individual and whole population’s attributes are modelled using classes.\n\nWe can set various initial conditions like size of population, rate of infection, mortality rate, infection duration. We can also select the number of days; we want the simulation to run.\n\nThe interaction of people in the population and spread of infection get simulated. For each day of the simulation, we get details of the spread of disease.\nAt the end of the simulation, we get the timeline of the infected and deaths in graph format.\n\nIt can show the rise of infection in early stages of growth of disease.\n\n## File\n```\nsimulation.py\n```\n## SAMPLE EXECUTION\n\nDisease Outbreak Simulation\n\nBased on statistical assumptions.\n1. We must know the total population size\n\nEnter the population size: 1000000\n\n2. First theoretical assumption is that a part of the population is infected.\n\nEnter the percentage (0-100) of the population who are already infected: 0.01\n\n3. We must know the risk a person has to contract the disease when he is exposed to the pathogens.\n\nEnter the probability (0-100) that an individual gets infected when exposed to the pathogens: 20\n\n4. We must know how many days infection will last when exposed\n\nEnter the average duration (in days) the infection lasts in a person: 15\n\n5. Next required data is the mortality rate of those who are exposed\n\nEnter the mortality rate (0-100) of the infection: 2\n\n6. We need information on how many days simulation is to be run\n\n   Please keep input under 100 Days.\n\nEnter the number of days to simulate: 20\n\n\nPress enter to start the simulation\nAll data in the Excel file!\n\nThe simulation infected cases and deaths over the days:\n\u003cdiv\u003e\n\u003cimg align=\"left\" src=\"https://github.com/prateekmaj21/Disease-Outbreak-Simulation/blob/main/Graph.jpg\"\u003e\n\u003c/div\u003e\n\n\n![Screenshot](https://github.com/prateekmaj21/Disease-Outbreak-Simulation/blob/main/Data.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekmaj21%2Fdisease-outbreak-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprateekmaj21%2Fdisease-outbreak-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprateekmaj21%2Fdisease-outbreak-simulation/lists"}