O'Reilly logo

Predictive Analytics Using Rattle and Qlik Sense by Ferran Garcia Pagans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Rattle to forecast the demand

In this section, we'll use Rattle for a quick correlation analysis and to create a model to forecast the bike demand.

Correlation Analysis with Rattle

Our dataset has three possible target variables: cnt, registered, and casual. Rattle doesn't handle multiple targets. We can create a model for registered and a second model for casual and add both values to have the total number of users, or we can build a model for cnt (the total amount). We will only create a model for cnt because we're interested in the level of activity and this variable will provide it.

Load the dataset into Rattle and set instant to Ident and dteday, registered and casual to Ignore, and set the rest of variables to Input.

To perform the correlation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required