2022 Election Forecast Methodology

What is this and why? An election forecast that tries to: Project a more accurate picture of what might happen on election day using aggregations of public polls (in the hope that there is wisdom in crowds). Quantify all we know about the election and how it might unfold onto a probability space. It was inspired by popular forecasts that appear on fivethirtyeight.com, The Upshot or The Economist. [Read More]

Using Urbanisation Score as a Socio-political Predictor

Measures of an area’s urban-rural score play an important part in political science, and sites like fivethirtyeight and the Economist often use it as part of their election forecast models. This factor particularly makes sense in first past the post systems like the UK and US, where regional leans can influence national politics. While they should make less of an impact on a national level in proportional systems like ours, understanding individual districts might be beneficial for many other purposes. [Read More]

Elections and Quarantines

Postal Voting The Electoral Commission’s recent plans for accommodating those in quarantine make sense from a democratic point of view, after all, every eligible voter should be given a chance to cast their vote. The drive-through solution verges a tad on the absurd, but it’s worth bearing in mind Malta still never got around to implementing a postal voting system, a rarity in western democracies. Normally, this just means that the state has to subsidise flights for citizens living abroad who have to vote, but this time round it also means we can’t use the mail to vote in a pandemic like the US did. [Read More]

Deepdiving into Survey Methodology and that new ToM Poll

New Esprimi Poll Times of Malta/Esprimi came out with a new poll last weekend with some newer methodology than we’re used to. Though I have a feeling it largely made the rounds and captured the imagination of many because it bumped up the “40,000 lead” net figure to “50,000”. Percentage wise however, we’re bang on to other recent polls, in the 41% range for PN and 58% range for PL. [Read More]

Measuring Urban Heat Islands using Sentinel 3

How Pronounced are Heat Islands? I was inspired by this visualization to create something similar to see the extent of the urban heat island phenomena over the Maltese islands. Unfortunately, there isn’t a city of Washington D.C. equivalent ready to provide us with a calculated raster. I could either use Landsat 8 and try to calculate the Land Surface Temperature using one of the many algorithms devised or work with Sentinel 3 data from the EU’s Copernicus Programme. [Read More]

Tracking Frontex's Newest UAV

This is a high level article on the UAV operations. If you want more background on how I load and store the data, head here. Reports in a number of portals including Times of Malta show that an unmanned aerial vehicle has been deployed from Luqa airport. The timing, right ahead of the typically busy summer migration time, seems to be an indication of what the main mission probably is. [Read More]

Building a Pipeline to Store Flight Info Using RSQLite, httr and jsonlite

This is the “how the sausage is made” post of this subject, detailing how I created a process to save ADS-B data from OpenSky Network into an SQLite database. If you just want to read the article about UAV operations, head here. Step 1: Sketch up the plan Going into this project, I knew I wanted to use OpenSky Network’s API to query the activity of the UAV in question, but it became clear I needed some way to run an automatic process and store data locally because the two services I’d be using had some limitations. [Read More]

Who would have been elected if we had the gender reform bill in the past?

With Parliament’s Gender Quota bill passing it’s third reading, it’s only a President’s signature away from becoming law. Whether the mechanism has the desired effect or not can only be assessed in the future following a few Parliamentary cycles. What we can do is play around with data and entertain what some previous Parliaments might have of looked like had these rules already been in place. This sort of backtesting is quite common in some domains, so adopting it to policy decisions shouldn’t be that much of a leap. [Read More]

Where Facebook Thinks you Live

Researchers at Facebook and Columbia University have been trying to create much more detailed population density maps for close to a decade. They delve into their weakly supervised approach here, but in a sentence my understanding of the approach is that they enhance national level demographic data with Facebook/Instagram data and remap that “population” onto satellite imagery. These population estimates have been released under their “Data for Good” umbrella here, (and this data can do a great deal of good, from helping NGO’s target their key demographics to informing the most mundane social policy decisions like where to install a bus stop). [Read More]

Text Mining Historical Mass Meeting Speeches

Intro The Department of Maltese at the University of Malta launched a splendid website available here, and it also spotlights some of the dissertations by its students. Two of them immediately piqued my attention, Il-kelma Maltija ta’ Eddie Fenech Adami by James Aaron Ellul and L-arti tal-kelma fid-diskorsi politiċi ta’ Duminku Mintoff (1962) by Christabelle Borg. Both dissertations included sizable appendices with political speeches that are relatively hard to come by on the web, so I got curious to see what some old school text mining can reveal. [Read More]