Tag Archives: Statsmodels

Python,Pandas, Statsmodels: Linear Regression – dealing with categorical data

Sometimes your explanatory variables are not numeric, but categorical. Typical example: “Gender” – which used to be binary, and since I’m an old man, I will continue regarding it as binary… 😉 To handle categorical data in Linear Regression, we … Continue reading

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

Linear Regression – comparing Bayesian with Frequentist approach

[This post was inspired by Richard McElreath] One of the nice characteristics of Bayesian methods is that you are always dealing with full distributions. On the other hand, in a Frequentist (tratitional) approach, you will mostly deal with point estimators, … Continue reading

Posted in Bayes, Big Data, Data Analytics, Data Driven Management, Numpy, Probability, PYMC, 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