December 2015

Seasonal mortality trend decomposition

December 10, 2015 | Adventures in Data

I recently wrote a blog on trends and seasonal variation in fruit and veg wholesale prices provided by DEFRA. It was using a beatiful technique called ‘STL’ or seasonal-trend decomposition via loess[^1]. Just now I spotted a dataset from the Office... [Read more...]

Seasonal mortality trend decomposition

December 10, 2015 | Adventures in Data

I recently wrote a blog on trends and seasonal variation in fruit and veg wholesale prices provided by DEFRA. It was using a beatiful technique called ‘STL’ or seasonal-trend decomposition via loess[^1]. Just now I spotted a dataset from the Office for National Statistics on winter mortality. ONS highlight that: ... [Read more...]

Le Monde puzzle [#939]

December 10, 2015 | xi'an

A Le Monde mathematical puzzle about special integers: Find all integers with less than 11 digits that are perfect squares and can be written as a(a+6), a being an integer. Eleven digits being too much for a brute force exploration of the form `for (t in 1:1e11)`…, some preliminary  analysis ...
[Read more...]

Tutorials for learning R

December 10, 2015 | Tal Galili

There are tons of resources to help you learn the different aspects of R, and as a beginner this can be overwhelming. It’s also a dynamic language and rapidly changing, so [Read more...]

Cause of Death: Melanin | Evaluating Death-by-Police Data

December 10, 2015 | Francis Smart

Widespread attention towards the death of black men by police has sparked protests and public outrage in many a city. Recently, the Federal Government has launched an investigation into the conduct of the entire Chicago police department. However, by protests and videos popping up all over the country, the apparent ... [Read more...]

Attitudes Modeled as Networks

December 10, 2015 | Joel Cadwell

In case you missed it, Jonas Dalege and his colleagues at the PsychoSystems research group have recently published an article in Psychological Review detailing how attitudes can be represented as network graphs. It is all done using R and a dataset that can be downloaded by registering at the ANES ... [Read more...]

Attitudes Modeled as Networks

December 10, 2015 | Joel Cadwell

In case you missed it, Jonas Dalege and his colleagues at the PsychoSystems research group have recently published an article in Psychological Review detailing how attitudes can be represented as network graphs. It is all done using R and a dataset tha... [Read more...]

Wald’s sequential analysis technique

December 10, 2015 | John Mount

Microsoft Revolution Analytics has just posted our latest article on A/B testing: Wald’s graphical sequential inspection procedure. It is a fun appreciation of a really cool procedure and I hope you check it out. Figure 14, Section 6.4.2, page 111, Abraham Wald, Sequential Analysis, Dover 2004 (reprinting a 1947 edition).
[Read more...]

Wald’s graphical sequential inspection procedure

December 10, 2015 | Joseph Rickert

by John Mount Ph.D. Data Scientist at Win-Vector LLC Our most recent article was a dynamic programming solution to the A/B test problem. Explicitly solving such dynamic programs is a long and tedious process, so you are well served by finding and introducing clever invariants to track (something ...
[Read more...]

The Pirate Plot – An R Pirate’s favorite plot

December 10, 2015 | ndphillips

One of the most common types of datasets people want to plot is one where there is a continuous dependent variable – like age, company profit, or beard length – as a function of a categorical independent variable – like gender, a specific company, or one’s pirate ship. Unfortunately, despite the vast ... [Read more...]

Cohort analysis: Retention Rate Visualization with R

December 10, 2015 | Sergey

When conducting Cohort Analysis, one of the most important measures is Customer Retention Rate. I will share a few ideas for visualizing this parameter When conducting Cohort Analysis, one of the most important measures is Customer Retention Rate. I will share a few ideas for visualizing this parameter in this ...
[Read more...]

Data Science Radar – Modeller Profile

December 10, 2015 | Mango Blogger

by Henrik B Nyberg, Mango Solutions   Tell us a bit about your background in Data Science. During the final year of my master in chemical engineering I steered away from lab work and the large scale industrial applications. Computers … Continue reading → [Read more...]

Fitting Generalized Regression Neural Network with Python

December 9, 2015 | statcompute

[This article was first published on Yet Another Blog in Statistical Computing » S+/R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. In [1]: # LOAD PACKAGES In [2]: import pandas as pd In [3]: import numpy as np In [4]: from sklearn import preprocessing as pp In [5]: from sklearn import cross_validation as cv In [6]: from neupy.algorithms import GRNN as grnn In [7]: from neupy.functions import mse In [8]: # DATA PROCESSING In [9]: df = pd.read_table("csdata.txt") In [10]: y = df.ix[:, 0] In [11]: y.describe() Out[11]: count 4421.000000 mean 0.090832 std 0.193872 min 0.000000 25% 0.000000 50% 0.000000 75% 0.011689 max 0.998372 Name: LEV_LT3, dtype: float64 In [12]: x = df.ix[:, 1:df.shape[1]] In [13]: st_x = pp.scale(x) In [14]: st_x.mean(axis = 0) Out[14]: array([ 1.88343648e-17, 5.76080438e-17, -1.76540780e-16, -7.71455583e-17, -3.80705294e-17, 3.79409490e-15, 4.99487355e-17, -2.97100804e-15, 3.93261537e-15, -8.70310886e-16, -1.30728071e-15]) In [15]: st_x.std(axis = 0) Out[15]: array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) In [16]: x_train, x_test, y_train, y_test = cv.train_test_split(st_x, y, train_size = 0.7, random_state = 2015) In [17]: [...] [Read more...]

What do we ask in stack overflow

December 9, 2015 | Joshua Kunst

How many times you have an error in your code, query, etc and you don't have the solution? How many times in these cases you open your favorite browser and search in your favorite search engine and type (I mean copy/paste) that error and you click the first result ... [Read more...]
1 8 9 10 11 12 15

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)