## HMM example with depmixS4

September 21, 2014
By

On a scale of one to straight up voodoo, Hidden Markov Models (HMMs) are definitely up there for me.They have all sorts of applications, and as the name suggests, they can be very useful when you wish to use a Markovian approach to represent some stochastic process.In loose terms this just means we wish to represent our process as...

## Build Predictive Model on Big data: Using R and MySQL Part-3

September 21, 2014
By

Welcome to last part of the series post again! In previous part I discussed about the solutions to the questions mentioned in first part. In this part, we will implement whole scenario using R and MySQL together and see how we can process bigdata(computationally ) Let us recall those questions and summarize their answers to The post Build...

## new kids on the block

September 21, 2014
By

This summer, for the first time, I took three Dauphine undergraduate students into research projects thinking they had had enough R training (with me!) and several stats classes to undertake such projects. In all cases, the concept was pre-defined and “all they had to do” was running a massive flow of simulations in R (or

## Build Predictive Model on Big data: Using R and MySQL Part-2

September 21, 2014
By

Welcome to the second part of the series blog posts. In first part we tried to understand the challenges of fitting predictive model to the large dataset. In this post I will discuss about the solution approach to that challenges. Let’s start rolling. As machine learning technique requires accessing whole dataset for fitting model on The post Build...

## Build Predictive Model on Big data: Using R and MySQL Part-1

September 21, 2014
By

Wellcome to the series blog posts. Since long time, I am writing post on Machine learning with R. Today I am gonna discuss on big data problem while fitting machine learning on it and its solution using MySQL and R. Before we jump directly to solution, let us discuss about big data little bit. (You The post Build...

## Effective risk management with R

September 21, 2014
By

Conference The first EARL Conference (Effective Applications of the R Language) was held 2014 September 15-17 in London. Talk My talk was “Effective risk management with R” (annotated slides). Instability hypothesis When I was preparing for the talk, one of my ideas was to show the Google trend for searches for Minsky’s instability hypothesis.  I … Continue reading...

## Trying dplyr on triathon data

September 21, 2014
By

There was a triathlon in Almere last week, like every year since 1983. I pulled the data of all years to get some idea how things have changed in that sport. To get a visual I decided to plot the best 10% athletes. Then later I decided this was an idea...

September 20, 2014
By

My forecasting textbook with George Athanasopoulos is already available online (for free), and in print via Amazon (for under $40). Now we have made it available as a downloadable e-book via Google Books (for$15.55). The Google Books version is identical to the print version on Amazon (apart from a few typos that have been fixed). To use

## Generate Random Inverse Gaussian in R

September 20, 2014
By

Needed to generate draws from an inverse Gaussian today, so I wrote the following Rcpp code: It seems to be faster than existing implementations such as rig from mgcv and rinvgauss from statmod packages. rename rrinvgauss as desired. The post Generate Random Inverse Gaussian in R appeared first on Lindons Log.

## Brazilian Presidential Election

September 20, 2014
By

TweetFor those who follow this tale, the chart below shows the hitherto of vote intentions among the viable candidates as reported in various polls. Data collected over 2012 were simply disregarded and those from 2013 enter in the model as prior values (covariance) for the 2014 estimates. The big dots at the end of the … Read More...

## Charting/Mapping the Scottish Vote with R (an rvest/dplyr/tidyr/TopoJSON/ggplot tutorial)

September 20, 2014
By

The BBC did a pretty good job live tracking the Scotland secession vote, but I really didn’t like the color scheme they chose and decided to use the final tally site as the basis for another tutorial using the tools from the Hadleyverse and taking advantage of the fact that newer gdal libraries can read

## Nuts and Bolts of Quantstrat, Part III

September 20, 2014
By

This post will focus on signals in quantstrat. In comparison to indicators, signals in quantstrat are far more cut-and-dry, as … Continue reading →

## Using the Debug Option in readDICOMfile()

September 20, 2014
By

Some recent activity in stackoverflow was brought to my attention.  Specifically, several questions were raised with reading files into R using readDICOMFile() in the oro.dicom package. The questions did highlight some inadequacies in the code, an...

## momentify R package

September 19, 2014
By
$momentify R package$

I presented today an arxived paper of my postdoc at the big success Young Bayesian Conference in Vienna. The big picture of the talk is simple: there are situations in Bayesian nonparametrics where you don’t know how to sample from the posterior distribution, but you can only compute posterior expectations (so-called marginal methods). So e.g. you cannot provide

## Mini-tour

September 19, 2014
By

The last two days have been kind of a very interesting mini-tour for me $-$ yesterday the Symposium that we organised at UCL (the picture on the left is not a photo taken yesterday) and today the workshop on efficient methods for value of inf...

## Yep. He made it; country voted No.

September 19, 2014
By

Tweet Yesterday, more Scots than ever since universal suffrage was introduced cast a ballot on the matter of independence. The turnout was itself phenomenal and that implicating a series of questions for the government authorities and citizens, but for the time being the sole question was: would this benefit one side or the other? The … Read More...

## Webinar September 25: Data Science with R

September 19, 2014
By

A quick heads up that if you'd like to get a great introduction to doing data science with the R language, Joe Rickert will be giving a free webinar next Thursday, September 25: Data Science with R. Regular readers of the blog will be familiar with Joe's posts on this topic. A few recent examples include posts on comparing...

## What does CNN have in common with Carmen Reinhart, Kenneth Rogoff, and Richard Tol: They all made foolish, embarrassing errors that would never have happened had they been using R Markdown

September 19, 2014
By

Rachel Cunliffe shares this delight: Had the CNN team used an integrated statistical analysis and display system such as R Markdown, nobody would’ve needed to type in the numbers by hand, and the above embarrassment never would’ve occurred. And CNN should be embarrassed about this: it’s much worse than a simple typo, as it indicates The post

## The New Consumer Requires an Updated Market Segmentation

September 18, 2014
By

The new consumer is the old consumer with more options and fewer prohibitions. Douglas Holt calls it the postmodern market defined by differentiation: "consumer identities are being fragmented, proliferated, recombined, and turned into salabl...

## Pander tables inside of knitr

September 18, 2014
By

Hadley Wickham opened my eyes that calling pander to generate nifty markdown tables inside of knitr requires a special chunk option, which bothersome extra step might be saved by updating pander a bit. So it's done.In a nutshell, whenever you...

## “Do You Want to Steal a Snowman?” – A Look (with R) At TorrentFreak’s Top 10 PiRated Movies List #TLAPD

September 18, 2014
By

We leave the Jolly Roger behind this year and turn our piRate spyglass towards the digital seas and take a look at piRated movies as seen through the lens of TorrentFreak. The seasoned seadogs who pilot that ship have been doing a weekly “Top 10 Pirated Movies of the Week” post since early 2013, and...

## Interactive Visualizations from R using rCharts

September 18, 2014
By

At useR! 2014 Ramnath Vaidyanathan gave a tutorial and a presentation on one of his...

## Comparing machine learning models in R

September 18, 2014
By

by Joseph Rickert While preparing for the DataWeek R Bootcamp that I conducted this week I came across the following gem. This code, based directly on a Max Kuhn presentation of a couple years back, compares the efficacy of two machine learning models on a training data set. #----------------------------------------- # SET UP THE PARAMETER SPACE SEARCH GRID ctrl <-...

## Stay on track: Plotting GPS tracks with R

September 18, 2014
By

Many GPS devices and apps have the capability to track your current position via GPS. If you go walking, running, cycling, flying or driving, you can take a look at your exact route and your average speed.Some of these devices or apps also allow you to...

September 17, 2014
By

I burned through all of my extra lives in a matter of minutes, and my two least-favorite words appeared on the screen: GAME OVER (Ernest Cline, Ready Player One) Inspired by the book I read this summer and by this previous post, I decided to draw these aliens: Do not miss to check this indispensable document to choose

## Fun with .Rprofile and customizing R startup

Over the years, I've meticulously compiled–and version controlled–massive and extensive configuration files for virtually all of my most used utilities, most notably vim, tmux, and zsh. In fact, one of the only configurable utilities for which I had no special configuration schema was R. This is extremely surprising, given that I use R everyday. One »more

## Animated choropleths to visualize mortality rates of children under 5 and gender differences using rMaps

September 17, 2014
By

This post displays two animated choropleths. One for global mortality rates for children under 5 (per 1000 live births) and the second for the difference in global mortality rates for males and female children under 5 (per 1000). Please click here:&nbs...

## BCEA 2.1

September 17, 2014
By

We're about to release the new version of BCEA, which will contain some major changes.A couple of changes in the basic code that should improve the computational speed. In general, BCEA doesn't really run into troubles because most of the computations ...