### Predicting Irish electricity consumption with neural networks

In this example, neural networks are used to forecast energy consumption of the Dublin City Council Civic Offices using data between April 2011 – February 2013. The original dataset is available from data.gov.ie, and daily data was created by summing …

### Seasonal Lags

“Ever wonder why the coldest days come some weeks after the winter solstice (shortest night of the year)? Seasonal lag. Here's an example of Irish weather data with ccf #rstats #rlang”

### Cumulative Binomial Probability with R and Shiny

Here is how we can generate a cumulative binomial probability distribution in R, and then create a Shiny Web App to visualise probability curves.

### Decision Trees with Python

A decision tree is a model used to solve classification and regression tasks. In this particular example, we will analyse the effect of various explanatory variables (age, gender, web pages viewed…

### Sentiment Analysis with twitteR and tidytext

Here is how we can use social media data from Twitter to conduct a sentiment analysis using twitteR and tidytext. In this example, we will see how to conduct a sentiment analysis on the search term "gold prices".

### Robust Regressions: Dealing with Outliers

It is often the case that a dataset contains significant outliers – or observations that are significantly out of range from the majority of other observations in our dataset. Let us see how we can use robust regressions to deal …

### Kalman Filter: Modelling Time Series Shocks with KFAS in R

A Kalman Filter allows for modelling of time series while taking into account shocks, or sudden changes in a time series trend.

### Huber vs. Ridge Regressions: Accounting for Outliers

Huber regressions work by adjusting weights to give less importance to extreme values within a sample. Here is how to construct this regression with Python.

### Keras with R: Predicting car sales

Keras is an API used for running high-level neural networks. The model runs on top of TensorFlow, and was developed by Google. In this particular example, a neural network will be built in Keras to…

### Visualizing New York City WiFi Access with K-Means Clustering

Here is how a K-Means Clustering algorithm can be used to visualize WiFi zones by density across New York City.

### Multilevel Modelling in R: Analysing Vendor Data

One of the main limitations of regression analysis is when one needs to examine changes in data across several categories. This problem can be resolved by using a multilevel model, i.e. one that varies at more than one level and allows for variation between different groups or categories. This dataset from data.ok.gov contains information on […]

### Cross Correlation Analysis: Analysing Currency Pairs in Python

Cross correlation allows us to determine the strength of a correlation between two time series. Here is how we can determine cross correlation in Python.

### K-Nearest Neighbors (KNN): Solving Classification Problems

Here is how we can use the K-Nearest Neighbors (KNN) algorithm in Python to determine the internet usage of consumers based on various attributes.

### Keras: Regression-based neural networks

Keras is an API used for running high-level neural networks. The model runs on top of TensorFlow, and was developed by Google. The main competitor to Keras at this point in time is PyTorch, developed by Facebook. While PyTorch has a somewhat higher level of community support, it is a particularly verbose language and I […]

### Image Recognition with Keras: Convolutional Neural Networks

Here is how we can build our own image classifier using Keras. In this example, we will use the VGG16 neural network to identify vehicles.