<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'opendata'</title><link>http://www2.sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=opendata&amp;orTags=0</link><description>Search results matching tag 'opendata'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Exploring earnings data for the UK [Open Data]</title><link>http://www2.sqlblog.com/blogs/jamie_thomson/archive/2013/02/11/exploring-earnings-data-for-the-uk-open-data.aspx</link><pubDate>Mon, 11 Feb 2013 13:34:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:47637</guid><dc:creator>jamiet</dc:creator><description>&lt;p&gt;I have a burgeoning interest in the world of Open Data which wikipedia describes as:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;&lt;b&gt;Open data&lt;/b&gt; is the idea that certain &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Data"&gt;&lt;em&gt;data&lt;/em&gt;&lt;/a&gt;&lt;em&gt; should be freely available to everyone to use and republish as they wish, without restrictions from &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Copyright"&gt;&lt;em&gt;copyright&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Patent"&gt;&lt;em&gt;patents&lt;/em&gt;&lt;/a&gt;&lt;em&gt; or other mechanisms of control. The goals of the open data movement are similar to those of other &amp;quot;Open&amp;quot; movements such as &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Open_source"&gt;&lt;em&gt;open source&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Open_hardware"&gt;&lt;em&gt;open hardware&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Open_content"&gt;&lt;em&gt;open content&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, and &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Open_access_(publishing)"&gt;&lt;em&gt;open access&lt;/em&gt;&lt;/a&gt;&lt;em&gt;. The philosophy behind open data has been long established&lt;/em&gt;&lt;em&gt;, but the term &amp;quot;open data&amp;quot; itself is recent, gaining popularity with the rise of the &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Internet"&gt;&lt;em&gt;Internet&lt;/em&gt;&lt;/a&gt;&lt;em&gt; and &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/World_Wide_Web"&gt;&lt;em&gt;World Wide Web&lt;/em&gt;&lt;/a&gt;&lt;em&gt; and, especially, with the launch of open-data government initiatives such as &lt;/em&gt;&lt;a href="http://en.wikipedia.org/wiki/Data.gov"&gt;&lt;em&gt;Data.gov&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.        &lt;br /&gt;&lt;/em&gt;&lt;a title="http://en.wikipedia.org/wiki/Open_data" href="http://en.wikipedia.org/wiki/Open_data"&gt;&lt;em&gt;http://en.wikipedia.org/wiki/Open_data&lt;/em&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To that end I follow &lt;a href="https://twitter.com/londondatastore" target="_blank"&gt;@LondonDatastore&lt;/a&gt; on Twitter as they are actively publishing Open Data pertaining to the city in which I live, London. Four days ago they &lt;a href="https://twitter.com/londondatastore/status/299543409553711104" target="_blank"&gt;announced&lt;/a&gt; that a new dataset had been released that provided earnings information, not just for London but for the whole country and going back many years too. The provided link, &lt;a title="http://data.london.gov.uk/datastore/package/earnings-workplace-borough" href="http://data.london.gov.uk/datastore/package/earnings-workplace-borough"&gt;http://data.london.gov.uk/datastore/package/earnings-workplace-borough&lt;/a&gt;, brings up a page from where one can download an Excel workbook containing some data. Unfortunately the data in that workbook is not, in my opinion, provided in such a manner that makes it easily explorable (&lt;a href="http://sqlblog.com/blogs/jamie_thomson/archive/2012/08/13/using-pivot-tables-in-the-office-excel-web-app.aspx" target="_blank"&gt;which I have complained about before on this blog&lt;/a&gt;); the data is spread over multiple worksheets:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_3BDA8261.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_5B1D2934.png" width="383" height="37" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Worse, the data is already aggregated and pivoted:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_330A7A15.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_66663D71.png" width="577" height="138" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In other words the workbook does not contain the raw row-level data from which this pivoted data is produced. Thankfully a link (&lt;a title="https://www.nomisweb.co.uk/query/construct/summary.asp?mode=construct&amp;amp;version=0&amp;amp;dataset=99" href="https://www.nomisweb.co.uk/query/construct/summary.asp?mode=construct&amp;amp;version=0&amp;amp;dataset=99"&gt;https://www.nomisweb.co.uk/query/construct/summary.asp?mode=construct&amp;amp;version=0&amp;amp;dataset=99&lt;/a&gt;) is provided from where the raw data can be downloaded. I found the interface there to be slightly clunky but that’s a minor quibble – that raw data is available should be considered a major boon. I downloaded earnings data for:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Local Authority &lt;/li&gt;    &lt;li&gt;Gender &lt;/li&gt;    &lt;li&gt;Full Time or Part Time &lt;/li&gt;    &lt;li&gt;Year (1999-2012) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;and have made that raw data available in a publicly accessible Excel workbook. You can view that workbook online (only a browser required) at &lt;a href="http://sdrv.ms/VPvjcD" target="_blank"&gt;AnnualPay_by_YearGenderLocalAuthorityPartorfulltime.xlsx&lt;/a&gt; (from there you can also download for your own analysis).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_6521A492.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_6E9A6308.png" width="634" height="372" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;The workbook also provides summaries over the raw data by way of pivot tables and charts. Arguably its clear to see, for example, that a gender imbalance exists although perhaps the gap may be lessening somewhat&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_088E232B.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_112E7BB7.png" width="904" height="470" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Its interesting to note that the average salary for Males dropped off in 2009/2010. Perhaps the economic events of 2008 are the cause for that, checking out data for only City of London (the traditional financial hub of the UK) suggests that may well be the case:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_5666D2E0.png"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_662667E4.png" width="901" height="441" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;There will be many more nuggets of information available in this data, all we need to do is set the data free so that people can find it for themselves. That is the aim of this blog post so hit the link: &lt;a title="http://sdrv.ms/VPvjcD" href="http://sdrv.ms/VPvjcD" target="_blank"&gt;AnnualPay_by_YearGenderLocalAuthorityPartorfulltime.xlsx&lt;/a&gt; and see what other nuggets you can find! If &lt;a href="https://twitter.com/search?q=dataviz" target="_blank"&gt;dataviz&lt;/a&gt; is an area that interests you then this is a cracking dataset to explore!&lt;/p&gt;  &lt;hr /&gt;  &lt;p&gt;One other point I want to make is that the raw data is provided as a mean average which means that each aggregated figure is a mean average of some mean averages. This isn’t good as it distorts the data as I demonstrate with this simple example:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://sqlblog.com/blogs/jamie_thomson/image_0C1E8DDA.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://sqlblog.com/blogs/jamie_thomson/image_thumb_0B4627F0.png" width="384" height="82" /&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;We have an average salary for both male and female (5000 &amp;amp; 9000 respectively) and the average of those two averages is 7000. However if we take the total “total salary” / total “tally of people asked” (127000 / 23) then the average is quite different – 5521.73.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That’s a large discrepancy even for only two rows of data and it highlights the problem of providing averages rather than the figures that created those averages. To me this is a data quality issue – the raw source data does not provide the requisite level of detail to enable accurate analysis. Quality of data is paramount.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://twitter.com/jamiet" target="_blank"&gt;@Jamiet&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>