Tag Archives: LinearRegression

Impact of demographics on mortality

Does age structure of population impact mortality….? Below chart shows linear regression over proportion of population 80 years or older vs overall mortality for the Swedish population for years 2002 – 2020. Spot the outliers.

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

Bayesian Multiple Regression to identify likely causal associations

I’m using the Johns Hopkins Corona Virus dataset here to demonstrate how Multiple Regression can help to unmask associations between variables, and assist in figuring out which associations really impact the dependent variable, and which ones are only spurious relationships/correlations. … Continue reading

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

Bayesian Linear Regression with PYMC, part II

In the previous post we looked at a simple linear regression between (simulated) human heights and weights.  In that example, the regression was truly ‘linear’, in that the predictor variable only occured in its first power, to provide a linear regression … Continue reading

Posted in Bayes, Data Analytics, Probability, PYMC, Simulation, Statistics | Tagged , , , , , , | Leave a comment

Bayesian Linear Regression with PYMC

Is there a relationship between human height and weight…? Probably. But what does that relationship look like ? Those kinds of questions can be answered by Linear Regression. Below an example, using simulated data for weights,heights etc: import numpy as … Continue reading

Posted in Bayes, Data Analytics, Numpy, Probability, PYMC, Python, Simulation, Statistics | Tagged , , , , , , , , , , | Leave a comment

Python,Pandas, Statsmodels – Multipredictor Linear Regression (code included)

The Swedish Meteorological & Hydrological Institute, SMHI, provides (some of) its data to the public, as “Open Data“, accessable either by various API’s or by download from their website. I downloaded several of their CSV-files, containing historical weather-data for a … Continue reading

Posted in Big Data, Data Analytics, Data Driven Management, Numpy, Probability, Python, Statistics | Tagged , , , , , , , , , , | Leave a comment