Tag Archives: Pandas

Fooled by probability – Monty Hall Problem

“You made a mistake, but look at the positive side. If all those Ph.D.’s were wrong, the country would be in some very serious trouble.” Everett Harman, Ph.D. U.S. Army Research Institute Probability is a terrible branch of science, I … Continue reading

Posted in Data Analytics | Tagged , , , , , | 3 Comments

Fast Fourier Transform – An Intuition

One of my favorite youtube channels, 3Blue1Brown, has a great video on the intuition of the FFT. Check the video above. Below Python code to implement that intuition:

Posted in Data Analytics | Tagged , , , | Leave a comment

Python Pandas – descriptive stats from a frequency table

Suppose you are a teacher, and want to keep track of and do some simple descriptive stats on your student’s scores in a number of subjects. So you have recorded scores in a frequency table as below: Left-most column has … Continue reading

Posted in Data Analytics | Tagged , , | Leave a comment

Covid-19 Sweden: A summary

Sweden has been painted as the Black Sheep of the international community with respect to its ways to deal with the Covid-19 virus.  People and orginizations around the world were very quick to paint Sweden as the Sodom & Gomorra … Continue reading

Posted in Bayes, Data Analytics, Epidemics, MCMC, Pandas, Politik, Probability, PYMC, Python, Society, Statistics, Sverige | Tagged , , , , , , , , , , , | 4 Comments

Sweden : Age adjusted deaths 2000-2020

Population demographics have a significant impact on the number of deaths in a society. Among the many demographic factors that impact number of deaths is age. Other confounding factors (which will not be dealt with in this post) include general … Continue reading

Posted in Data Analytics, Epidemics, Pandas | Tagged , , , | Leave a comment

Corona Sweden : Infection Fatality Rate

It’s been a while ago since I ran my MCMC-hack to estimate the Swedish Infection Fatality Rate, main reason being that each run takes an awful lot of computing time, around 10h, to get the MCMC to converge… and during … Continue reading

Posted in Bayes, Data Analytics, Epidemics, MCMC, Pandas, Probability, PYMC, Python, Statistics | Tagged , , , , , , , , , | Leave a comment

Corona – What’s the true Mortality Rate, and how many infected are there, anyways…? [in all likelihood, some good news!]

[Note: this is a somewhat technical / mathematical article, so those of you who only want the daily Corona updates, “the current numbers”, might want to skip this one] As we all probably know by now, the official numbers on … Continue reading

Posted in Bayes, Data Analytics, Epidemics, Finance, Pandas, Probability, Pystan, Python, Research, Simulation, Society, Statistics | Tagged , , , , , , , | Leave a comment

Corona Update 2020-03-15

Data up until yesterday: Sweden still on track to 10000 infected by 20th March, and 100.000 a week after that. At global level, the virus is now growing fast again, after having slowed down considerably in mid-feb. Mean growth factor … Continue reading

Posted in Bayes, Data Analytics, Epidemics, Pandas, Politik, Probability, PYMC, Research, Society, Statistics, Sverige | Tagged , , , , , , , | Leave a comment

Corona Update 2020-03-13

Unfortunately, the good folks at JohnHopkins, from where I normally pull the Corona daily data, seem now to have some inconsistencies in their datasets; for instance, neither Italy, Spain nor Finland, according to those datasets, showed any new cases between … Continue reading

Posted in Big Government, Culture, Data Analytics, Epidemics, Leadership, Organization, Pandas, Politik, Research, Statistics, Sverige | Tagged , , , , , , , | 3 Comments

Corona update 2020-03-12

Update with data up until yesterday: Looking carefully at the black line, representing global nr of infected, it seems to start slowly rising again, after having  previously been slowing down.  Next chart might explain why: Below chart shows the Top-10 … Continue reading

Posted in Bayes, Data Analytics, Epidemics, Pandas, Politik, Probability, PYMC, Research, Society, Statistics, Sverige | Tagged , , , , , , , , , , | Leave a comment