Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Building your own Covid-19 Epidemic Simple Model Using Python
Towards Data Science ^ | March 19, 2020 | Sadegh Maghsoudi

Posted on 04/10/2020 11:12:13 AM PDT by Renkluaf

If you live in this world, there is a very small chance you may have not yet heard of this novel Coronavirus Covid-19 and the pandemic it caused literally all over the world. Actually, it is a good chance that you are reading this while self quarantined at your home, social distancing from public and like many, have very much of extra time to deal with. So, if you are familiar with programming, why not try this: build your own epidemic model at home. Which helps you boost your programming abilities, and, helps you understand the concepts and basic dynamics of epidemics.

(Excerpt) Read more at towardsdatascience.com ...


TOPICS: Government; Miscellaneous; News/Current Events; Political Humor/Cartoons
KEYWORDS:
Navigation: use the links below to view more comments.
first 1-2021-31 next last
Be the first on your block to have a Covid-19 Model say what you want it to say and have that nasty neighbor up the street become a casualty.
1 posted on 04/10/2020 11:12:13 AM PDT by Renkluaf
[ Post Reply | Private Reply | View Replies]

To: Renkluaf

You get a Covid model, I get a covid model, everybody gets a covid model!


2 posted on 04/10/2020 11:14:46 AM PDT by proust (Justice delayed is injustice.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: All

The ONLY Python I want is made by Colt.


3 posted on 04/10/2020 11:18:57 AM PDT by BipolarBob (Don't cough on your keyboard because everybodys virus protection may not be updated.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: BipolarBob

And that ought to be a .357 stainless, the heaviest load it ever seen were a few .38 specials. Otherwise it is kept as a display.


4 posted on 04/10/2020 11:31:24 AM PDT by saintgermaine (THE TIME TRAVELLER)
[ Post Reply | Private Reply | To 3 | View Replies]

To: BipolarBob

No kidding! Real programmers use C anyway.


5 posted on 04/10/2020 11:33:37 AM PDT by GingisK
[ Post Reply | Private Reply | To 3 | View Replies]

To: Renkluaf
That's pretty cool ! Thanks for finding and posting. I just upgraded to 3.8. I use Python to process data, simulate mechanical apparatus, and etc. Will check out the code.

Do you use Python?

6 posted on 04/10/2020 11:35:01 AM PDT by amorphous
[ Post Reply | Private Reply | To 1 | View Replies]

To: Renkluaf

No partial differential equations? It can’t be any good.


7 posted on 04/10/2020 11:36:54 AM PDT by ProtectOurFreedom
[ Post Reply | Private Reply | To 1 | View Replies]

To: Renkluaf

Sounds like all the FB ads on SNAKE OIL.


8 posted on 04/10/2020 11:40:06 AM PDT by GailA (I'm a Trump Girl)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Renkluaf; All
By the way, if you have exceeded your "free" monthly limit of Medium articles, you can use the "Bypass Paywalls for Firefox" extension to permanently defeat the Medium paywall. It also works for the Wall Street Journal and over 50 other publications.
9 posted on 04/10/2020 11:40:21 AM PDT by ProtectOurFreedom
[ Post Reply | Private Reply | To 1 | View Replies]

To: ProtectOurFreedom
"...partial differential equations..."

I presume you really know that, on a digital computer, they all become partial difference equations.

(...from one who has programmed solutions for thousands of 'em.)

10 posted on 04/10/2020 11:46:48 AM PDT by budj (Combat vet, 2nd of three generations.)
[ Post Reply | Private Reply | To 7 | View Replies]

To: budj

I used an IBM 360 in Mechanical Engineering college around 1970 to solve equations using minimization of successive difference with the Newton-Raphson Method. It was one of our very first programming assignments.

I think a big problem with programmers is they don’t tend to think in terms of expressing the problem first using equations, then figuring out how to solve it using programming tools. They have a tendency to just jump into the programming. It’s kind of like 8th or 9th graders wanting to jump to solving a problem by inspection rather than figuring out the mathematical equations and a model (I was reprimanded for that many times!).


11 posted on 04/10/2020 11:51:24 AM PDT by ProtectOurFreedom
[ Post Reply | Private Reply | To 10 | View Replies]

To: Renkluaf

Nice job.

I too have a simulation that has been extremely accurate. My secret for success: I predict tomorrow only.

That’s actually pretty straight forward. Predicting a week ahead is problematic and a month ahead is, IMHO, impossible. It is way to dependent on the actions of 330,000,000 people.


12 posted on 04/10/2020 11:53:53 AM PDT by InterceptPoint (Ted, you finally endorsed.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Renkluaf
Not really a model - a simulation with arbitrary input parameters.
13 posted on 04/10/2020 12:00:45 PM PDT by NobleFree ("law is often but the tyrant's will, and always so when it violates the right of an individual")
[ Post Reply | Private Reply | To 1 | View Replies]

To: ProtectOurFreedom
http://csc.ucdavis.edu/~cmg/Group/readings/pythonissue_3of4.pdf
14 posted on 04/10/2020 12:01:32 PM PDT by amorphous
[ Post Reply | Private Reply | To 7 | View Replies]

To: amorphous

I scanned that and was going to ask “What? No FORTRAN?”

Then I read a bit of it and saw this: “Although the code seems clean and simple, it’s due to a powerful combination of C/C++/Fortran and Python.”

Whew. Saved.


15 posted on 04/10/2020 12:06:57 PM PDT by ProtectOurFreedom
[ Post Reply | Private Reply | To 14 | View Replies]

To: GingisK

The best rapid programmers who use lots of data, heavy math, and need super graphs use LabVIew. And it’s 3x faster to do the same program function than C.

But it requires a very high IQ, and different, non-linear brain, to really rock in it. It’s graphical. Want a loop? Drag a loop around your code block, using your mouse. Visual programming language, not text.

Why so much faster to program. Things like, when you think loop, you picture an actual loop. In C and other text based languages, you must translate that mental picture of a loop intoproperly formatted lines of code. Why not just draw a loop? Yup, that’s faster, and more intuitive. And self-documenting. Anyone can see the drawn loop, and immediately know what it does.

Timer? Drop the timer icon in it. Etc...


16 posted on 04/10/2020 12:12:41 PM PDT by Basket_of_Deplorables (Unredact the 99 Collyer Report!!!)
[ Post Reply | Private Reply | To 5 | View Replies]

To: ProtectOurFreedom

Lol...that’s funny!


17 posted on 04/10/2020 12:14:44 PM PDT by amorphous
[ Post Reply | Private Reply | To 15 | View Replies]

To: Basket_of_Deplorables

Or MatLab. Or R.


18 posted on 04/10/2020 12:16:33 PM PDT by ProtectOurFreedom
[ Post Reply | Private Reply | To 16 | View Replies]

To: GingisK

Assembler.


19 posted on 04/10/2020 12:16:40 PM PDT by quatro
[ Post Reply | Private Reply | To 5 | View Replies]

To: Basket_of_Deplorables

Drag and drop programming, brought to you by the C guy.


20 posted on 04/10/2020 12:17:59 PM PDT by GingisK
[ Post Reply | Private Reply | To 16 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-31 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson