free range statisticsI write about applications of data and analytical techniques like statistical modelling and simulation to real-world situations. I show how to access and use data, and provide examples of analytical products and the code that produced them.
http://freerangestats.info
Number of births in the twentieth centuryIt turns out that about 10 billion people were born in total in the twentieth century.Sat, 01 Dec 2018 00:00:00 +1100
http://freerangestats.info/blog/2018/12/01/number-births
http://freerangestats.info/blog/2018/12/01/number-birthsCounting digitsI have a play with counting how often particular digits turn up in numbers, starting with page numbers of a book based on a training exercise, and moving on to the so-called Benford's law or first-digit law.Sat, 24 Nov 2018 00:00:00 +1100
http://freerangestats.info/blog/2018/11/24/counting-digits
http://freerangestats.info/blog/2018/11/24/counting-digitsA more systematic look at suppressed dataA more systematic comparison of different ways of dealing with cells in a cross tab that have been supressed for confidentiality. For the particular model tested here, the best thing to do is the simple method of replacing all suppressed cells with 5; this works even better than using the original unsuppressed data which is very unstable when many cell counts are near zero.Sun, 18 Nov 2018 00:00:00 +1100
http://freerangestats.info/blog/2018/11/18/suppressed-data-2
http://freerangestats.info/blog/2018/11/18/suppressed-data-2Suppressed data (left-censored counts)I experiment with some different ways of handling counts in tables that have been suppressed for confidentiality, and come up in favour of multiple imputation. The mice R package helpfully lets you define your own imputation algorithm.Tue, 06 Nov 2018 00:00:00 +1100
http://freerangestats.info/blog/2018/11/06/suppressed-data
http://freerangestats.info/blog/2018/11/06/suppressed-dataSimulating simple dice gamesI play around with simulating some dice games.Sat, 27 Oct 2018 00:00:00 +1100
http://freerangestats.info/blog/2018/10/27/dice-games
http://freerangestats.info/blog/2018/10/27/dice-gamesUnderstanding the limitations of group-level inequality dataCross-sectional country-level data will show a relationship between income inequality and life expectancy even if inequality itself has no direct impact on life exectancy; so long as there is changing marginal impact of individual income on individual life space (as of course there is).Sun, 07 Oct 2018 00:00:00 +1000
http://freerangestats.info/blog/2018/10/07/inequality-groups
http://freerangestats.info/blog/2018/10/07/inequality-groupsSri Lanka visitor arrivalsSri Lanka has a rapidly growing tourism industry, two international tourism seasons, and seasonality patterns in arrivals that vary according to country of origin.Wed, 26 Sep 2018 00:00:00 +1000
http://freerangestats.info/blog/2018/09/26/sri-lanka-arrivals
http://freerangestats.info/blog/2018/09/26/sri-lanka-arrivalsRents in MelbourneRents in Melbourne have on average grown fastest in suburbs that were the cheapest in 2000; at least for two and three bedroom flats and for two bedroom houses. Also, scatterplots are awesome.Fri, 31 Aug 2018 00:00:00 +1000
http://freerangestats.info/blog/2018/08/31/melbourne-rents
http://freerangestats.info/blog/2018/08/31/melbourne-rentsEstimating relative risk in a simulated complex surveySimulating complex survey data in order to fit slightly mis-specified relative risk models, we find that confidence intervals' coverage is pretty much as advertised if we use appropriate methods that adjust for the complex survey data, but under-perform if the data is treated naively as coming from a simple random sample.Fri, 24 Aug 2018 00:00:00 +1000
http://freerangestats.info/blog/2018/08/24/simulating-survey
http://freerangestats.info/blog/2018/08/24/simulating-surveyRelative risk ratios and odds ratiosExplanation and demonstration with simulated data of the difference between relative risk ratios and odds ratios, and how to extract them from a generalized linear model.Fri, 17 Aug 2018 00:00:00 +1000
http://freerangestats.info/blog/2018/08/17/risk-ratios
http://freerangestats.info/blog/2018/08/17/risk-ratios