<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>state-space-models | Dhafer Malouche</title><link>https://dhafermalouche.net/tag/state-space-models/</link><atom:link href="https://dhafermalouche.net/tag/state-space-models/index.xml" rel="self" type="application/rss+xml"/><description>state-space-models</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>Dhafer Malouche © 2026</copyright><lastBuildDate>Mon, 16 Nov 2026 00:00:00 +0000</lastBuildDate><image><url>https://dhafermalouche.net/media/icon_hu294da7f24af66942b94b8e240e33fe59_2153342_512x512_fill_lanczos_center_3.png</url><title>state-space-models</title><link>https://dhafermalouche.net/tag/state-space-models/</link></image><item><title>Electoral Climate 2027: Polls, Attention and Social Tension</title><link>https://dhafermalouche.net/apps/fr2027electoral/</link><pubDate>Mon, 16 Nov 2026 00:00:00 +0000</pubDate><guid>https://dhafermalouche.net/apps/fr2027electoral/</guid><description>&lt;p>&lt;strong>Electoral Climate 2027&lt;/strong> follows the 2027 French presidential election through public data. It combines published opinion polls, online attention and episodes of social tension in one dashboard that is rebuilt automatically as new polls and records appear. It is an academic project, and the dashboard states that it is research, not a forecast to bet on and not financial advice.&lt;/p>
&lt;h2 id="what-it-shows">What it shows&lt;/h2>
&lt;p>The poll average is the output of a Bayesian state-space model fitted to every published first-round poll. The model weights each poll by its sample size, corrects for each institute&amp;rsquo;s usual lean and for the fact that institutes do not all offer the same list of candidates, and follows each candidate day by day. Carrying the estimate to election day many thousands of times gives each candidate a chance of reaching the run-off, with the uncertainty left visible instead of rounded away. Further sections show who is rising fastest, how online attention (Wikipedia page views) and social tension (protest and violence event counts) move around the polls, and what the model implies under a few scenarios. The dashboard is available in English and French, and it withholds poll results during the restricted period before each round, as French law requires.&lt;/p>
&lt;h2 id="why-it-is-on-this-page">Why it is on this page&lt;/h2>
&lt;p>The dashboard is a worked example of statistics applied to public data: how scattered and imperfect polls become one estimate with an interval, why polls that offer different lists of candidates cannot be compared directly, and what a model can and cannot say about a future event. It accompanies a research project and is also meant for teaching.&lt;/p>
&lt;h2 id="data-and-licence">Data and licence&lt;/h2>
&lt;p>Everything is built from public sources accessed by code. Poll results come from the Wikipedia lists of polls (CC BY-SA 4.0), daily page views from the Wikimedia API (CC0 1.0), and protest and violence events from GDELT and from ACLED, which appears only as weekly national aggregates under ACLED&amp;rsquo;s terms. The register of the Commission des sondages is used to match poll notices. Raw prediction-market prices are not republished. The dashboard&amp;rsquo;s &lt;em>Method and data&lt;/em> page lists every source with its licence and attribution; the hand-curated event calendar is released under CC BY 4.0, and the cropped candidate photographs keep their Wikimedia Commons licences, credited on the same page.&lt;/p></description></item></channel></rss>