<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Data Science on ckp</title>
		<link>/categories/data-science/</link>
		<description>Recent content in Data Science on ckp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 10 Oct 2017 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="/categories/data-science/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>What&#39;s the most popular car in the UK?</title>
				<link>/2017/10/10/what-s-the-most-popular-car-in-the-uk/</link>
				<pubDate>Tue, 10 Oct 2017 00:00:00 +0000</pubDate>
				<guid>/2017/10/10/what-s-the-most-popular-car-in-the-uk/</guid>
				<description>&lt;p&gt;The Office of National Statistics is a brilliant source of interesting data sets. &lt;a href=&#34;https://www.gov.uk/government/statistics&#34;&gt;This page&lt;/a&gt; lists recently released datasets. Check regularly and you’ll soon notice these data sets feed into news articles by the Economist, BBC news and more.&lt;/p&gt;</description>
			</item>
			<item>
				<title>What is Spark?</title>
				<link>/2017/08/19/what-is-apache-spark/</link>
				<pubDate>Sat, 19 Aug 2017 00:00:00 +0000</pubDate>
				<guid>/2017/08/19/what-is-apache-spark/</guid>
				<description>&lt;div id=&#34;what-is-spark&#34; class=&#34;section level1&#34;&gt;&#xA;&lt;h1&gt;What is Spark?&lt;/h1&gt;&#xA;&lt;p&gt;Yesterday I completed the Data Camp Introduction to Sparklyr course. This covered an introduction to Spark, as well as sparklyr, a package to interface with spark through R. Before I forget it all, I wanted to write down an explanation of it, some key points and functions.&lt;/p&gt;&#xA;&lt;p&gt;Spark is an open source cluster-computer framework, maintained by the Apache Software Foundation. If like me, that doesn’t help much, then this is a more simplified explanation/motivation for it.&lt;/p&gt;&#xA;&lt;p&gt;Suppose you want to analyse a dataset of your personal taxi (or uber) journeys. Unless you work as a taxi driver (or for uber), you probably won’t have many. You’ve got a bit of expierence with R, so you load it into R Studio and carry on. Simple!&lt;/p&gt;&#xA;&lt;p&gt;But now, let’s say you need to analyse the Uber Journeys for everyone in London. This is a lot more data. R is limited by the size of RAM on your computer. If the size of the data you wish to process is bigger than the size of your RAM, then your out of luck. If it’s even approaching the limit, it will probably be quite slow.&lt;/p&gt;&#xA;&lt;p&gt;What do you do? Well there are many options. An obvious one is to get a faster computer, with more RAM. Spark is an alternative solution. Instead of one powerful computer, it provides a framework to let you create and utilise a “cluster” of many computers to do your data analysis bidding. This is a simplification of all the benefits provided, but it helps to provide a simple motivation.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately for R users out there, Spark is written in Scala. Until recently to work with it, you’ve needed to use Scala, Java or Python. &lt;code&gt;sparklyr&lt;/code&gt; is the R interface to Spark. With it, you can work with Spark with familiar &lt;code&gt;dplyr&lt;/code&gt; methods.&lt;/p&gt;&#xA;&lt;p&gt;There are a few differences to understand when using splarklyr to manipulate data in the spark cluster rather than dplyr on your local machine&lt;/p&gt;&#xA;&lt;/div&gt;</description>
			</item>
			<item>
				<title>How to predict an election</title>
				<link>/2017/06/11/how-to-predict-an-election/</link>
				<pubDate>Sun, 11 Jun 2017 00:00:00 +0000</pubDate>
				<guid>/2017/06/11/how-to-predict-an-election/</guid>
				<description>&lt;p&gt;Whilst the UK is digesting the results of the General Election this weekend, I went down a series of rabbit holes that led to this great article on how the exit polls are used to predict the election results.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
