A neural network is a computational system frequently employed in machine learning to create predictions based on existing data. In this example, we will use the neuralnet, sklearn, and keras libraries to train and test a neural network models in […]
Continue reading »Tag: rstats
Probability Analysis: Continuous vs. Discrete Probability Distributions with Python, R and Shiny
The purpose of this post is to introduce the concept of probabilities, and some of the probability models that can be generated with Python, R and Shiny. Here, you will be shown: The importance of a normal distribution How to […]
Continue reading »plyr and dplyr: Data Manipulation in R
The purpose of the plyr and dplyr libraries in R is to manipulate data with ease. As we’ve seen in a previous post, there are various methods of wrangling and summarising data in R. However, wouldn’t it be great if […]
Continue reading »Creating maps in R using ggplot2 and maps libraries
Here is how we can use the maps, mapdata and ggplot2 libraries to create maps in R. In this particular example, we’re going to create a world map showing the points of Beijing and Shanghai, both cities in China. For […]
Continue reading »K-Means Clustering and Unsupervised Learning: Python and R
A K-Means Clustering algorithm allows us to group observations in close proximity to the mean. This allows us to create greater efficiency in categorising the data into specific segments. Supervised vs. Unsupervised Learning An important distinction in data science is […]
Continue reading »Decision Trees and Random Forests in R
Decision trees are a highly useful visual aid in analysing a series of predicted outcomes for a particular model. As such, it is often used as a supplement (or even alternative to) regression analysis in determining how a series of […]
Continue reading »Decomposition of Additive Time Series
A time series is made up of several elements, namely the observed, trend, seasonal and random elements. Decomposition is the method by which we extract each element from an observed time series. What do we mean by each of these? […]
Continue reading »