Peter Inglesby Profile Banner
Peter Inglesby Profile
Peter Inglesby

@inglesp

Followers
2,880
Following
524
Media
93
Statuses
2,472

Writing software for epidemiologists at @BennettOxford by day, doing amateur psephology by night

UK
Joined January 2009
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@inglesp
Peter Inglesby
2 months
Morning all -- and hello new followers! There are now twelve (and counting?) different models making seat-by-seat predictions for next Thursday's election, and while they all indicate a Labour landslide, there's a lot of disagreement in the details.
Tweet media one
26
91
615
@inglesp
Peter Inglesby
2 months
An anonymous "student with a love of politics" has just shared this splendid spreadsheet packed with analysis -- bookmarked for Thursday night:
19
60
434
@inglesp
Peter Inglesby
2 months
Hello everyone, less than 48 hours until the polls open... This morning I've added a "coefficient of correlation" to the aggregator, to indicate how much the models agree or disagree in each seat:
Tweet media one
12
29
178
@inglesp
Peter Inglesby
3 months
Fellow nerds: I built a thing to compare general election predictions from different constituency models (Britain Predicts, Electoral Calculus, Economist, FT)
25
40
143
@inglesp
Peter Inglesby
2 months
Late lunchtime update: I've updated the tracker with all the latest predictions, including a new entry from @JLPartnersPolls
Tweet media one
14
26
90
@inglesp
Peter Inglesby
2 months
This is what happens when your little project gets mentioned in the Guardian on election night (The y-axis is visits per minute)
Tweet media one
5
8
86
@inglesp
Peter Inglesby
2 months
So, while there are only 11 constituencies where all models agree the Conservatives will win, there are 57 where at least nine models predict they will.  (cc @zoenora6 )
Tweet media one
5
16
86
@inglesp
Peter Inglesby
2 months
To my bafflement, and my family's amusement, I've been invited to talk about election predictions (and to share my own?!) with @rosiewright99 on Times Radio at 5.45 tomorrow morning...
8
6
80
@inglesp
Peter Inglesby
2 months
And while there are 24 constituencies with at least one prediction of Reform winning, there are only 4 where three models agree.
Tweet media one
3
16
80
@inglesp
Peter Inglesby
2 months
Lunchtime update: a couple of new little features to play with this evening... Firstly, a new page that breaks seats down by predicted margin -- look how many Conservative seats are predicted to be held by less than 5%
Tweet media one
7
22
63
@inglesp
Peter Inglesby
2 months
Just a quick update this morning: to reflect the thin margins of many of the predictions, I've made a tweak to the colours on the site. For instance, here are all the seats where there's a prediction of the Greens winning tomorrow:
Tweet media one
7
12
55
@inglesp
Peter Inglesby
2 months
I've just pushed an update to my aggregator of election predictions that lets you find all the constituencies where at least N models agree.
Tweet media one
3
7
46
@inglesp
Peter Inglesby
2 months
@colinrtalbot Right! I've got plans to evaluate the predictions, based not just on who got the most seats right, but on who was best able to model trends across the country. Watch this space!
2
1
47
@inglesp
Peter Inglesby
7 years
Users of open source: why not drop a line to a library maintainer to tell them that you're using the library and what you're using it for?
2
29
44
@inglesp
Peter Inglesby
2 months
Now on the site: More in Common have always been the MRP that's given the Tories the biggest vote share, and even they are now only predicting 126 seats
@LukeTryl
Luke Tryl
2 months
🏁 Our final @moreincommon_ @TheNewsAgents MRP projects a Labour majority of 210 & worst defeat in Tory Party history 🔴LAB 430 (+228) 🔵CON 126 (-239) 🟠LD 52 (+41) 🟡SNP 16 (-32) 🟣REF UK 2 (+2) 🟢GRN 1 (-) 🟢 PLAID 2 (-2) ⚪️ OTH 2 (+2) N 13,556 | 24/6 to 1/7
Tweet media one
83
181
653
2
6
44
@inglesp
Peter Inglesby
2 months
Data now on the aggregator: I'm still amused that the FT quote me as the source for their own data...
Tweet media one
@martinstabe
Martin Stabe
2 months
Applied to the @ftdata #GE2024 projection model, this gives a result of: 🌹Labour  - 447 🌳 Conservative - 98 🔶 Lib Dem  - 63 ➡️ Reform - 1 🟢 Green  - 1
Tweet media one
1
5
11
4
7
33
@inglesp
Peter Inglesby
7 years
In which I look back on #pyconuk and say "thank you" to everyone who made it happen: .
0
11
29
@inglesp
Peter Inglesby
2 months
Have a play, and let me know if you find anything interesting!
13
2
29
@inglesp
Peter Inglesby
1 month
From the department of better-late-than-never, I've added to my site some "league tables" evaluating the performance of the seat-by-seat predictions for the 2024 general election:
4
10
26
@inglesp
Peter Inglesby
7 years
Delighted and honoured to have been elected a Fellow of the Python Software Foundation!
@ThePSF
Python Software Foundation
7 years
Python Software Foundation Fellow Members for Q3 2017
0
23
47
10
0
22
@inglesp
Peter Inglesby
2 months
Hello everyone, less than three days until the polls open... This morning I've added a new feature to my site that aggregates seat-by-seat predictions: you can now rank constituencies by the vote share or majority for each party
2
6
21
@inglesp
Peter Inglesby
2 months
Time for a second beer!
@RogerWTurner
Roger W Turner
2 months
@inglesp You're now reporting faster than the Grauniad.
0
0
2
4
1
21
@inglesp
Peter Inglesby
7 years
I won't pretend that organising #PyConUK is stress-free...
3
0
20
@inglesp
Peter Inglesby
2 months
It's getting rather crowded
Tweet media one
@OwenWntr
Owen Winter
2 months
🦕 Here is our @TheEconomist / @wethinkpolling MRP! And @JamesFransham has updated our Britain prediction model methodology. This is how we're thinking about the election (with maps + charts!) 🧵
11
28
123
5
4
18
@inglesp
Peter Inglesby
2 months
Right, back from the pub, and everyone's in a better mood than last time:
@inglesp
Peter Inglesby
2 months
Was in a pub last election night with lots of Labour activists who'd spent the day only knocking on doors of probable voters, and there was genuine shock when the exit poll was announced at 10pm
0
0
9
1
0
18
@inglesp
Peter Inglesby
4 years
The headline is not the best part of this article:
2
17
19
@inglesp
Peter Inglesby
2 months
system working -- need a few more results to come in before I can open that second beer though
@ramshackle78
ag 🥥🌴
2 months
@inglesp so the system working!!
0
0
0
3
0
19
@inglesp
Peter Inglesby
2 months
Also: I'm expecting several more final predictions to be released today, and will do my best to get them onto the site as quickly as I can, around family and work commitments.
2
0
19
@inglesp
Peter Inglesby
7 years
Goodbye Cardiff, goodbye #PyConUK . Thanks everybody for a wonderful few days! Proper thanks to follow; I'm going offline for 24 hours.
0
0
18
@inglesp
Peter Inglesby
2 months
I don't really know what's going on in Exmouth and Exeter East, but it's the only seat where four different parties are predicted to win -- anyone got any local knowledge to share?
Tweet media one
14
10
18
@inglesp
Peter Inglesby
2 months
Sitting in the back row at my parents' choral society summer concert and am not the only one who's not been paying full attention
0
2
17
@inglesp
Peter Inglesby
2 months
Walking around Stroud's canals today we saw more posters for the UK Hamster Party than for the Tories!
Tweet media one
3
2
16
@inglesp
Peter Inglesby
6 years
I'm beginning to get really excited about #PyConUK . This year's organisers are doing a cracking job.
0
2
16
@inglesp
Peter Inglesby
3 months
I've added a page of tactical voting recommendations to the aggregator:
4
10
16
@inglesp
Peter Inglesby
2 months
Actually as much as this is a pain in the arse after coming in from the pub: hats off to Survation for acknowledging the limits of their model like this
Tweet media one
2
1
15
@inglesp
Peter Inglesby
9 years
If you're a UK-based #Python user who's never been to @PyConUK , I'd love to hear what would encourage you to come to this year's conference.
9
38
13
@inglesp
Peter Inglesby
2 months
The seats with the greatest disagreement are all ones with local factors that are hard to model:
Tweet media one
1
3
15
@inglesp
Peter Inglesby
2 months
I've just pulled in the latest data from several sources, including tonight's Survation MRP and the latest Electoral Calculus data, which seems to have calmed down a bit -- they're no longer claiming North Cotswolds for Reform...
3
4
15
@inglesp
Peter Inglesby
2 months
No, and Exmouth and Exeter East is the only one with four
@MishaPemberthy
Misha Pemberthy
2 months
@inglesp @JLPartnersPolls Any constituencies with more than 4 different predicted winners?
Tweet media one
0
0
2
3
4
14
@inglesp
Peter Inglesby
2 months
I haven't added this to the site yet, because they've not given a prediction for North Shropshire, and that breaks some assumptions in my code
Tweet media one
@Survation
Survation.
2 months
NEW MRP: Labour 99% Certain To Win More Seats Than in 1997 Labour on Course to Win 484 seats. The Conservatives and Liberal Democrats are in a close race to form the official opposition. Probabilistic seat count: LAB 484 CON 64 LD 61 SNP 10 RFM 7 PC 3 GRN 3 34,558 interviews
566
1K
4K
3
0
13
@inglesp
Peter Inglesby
2 months
Is it just my screen (or my eyes?) or is Cleverly's rosette a Dairy Milk purple?
Tweet media one
1
0
14
@inglesp
Peter Inglesby
6 years
Excited to be running a coding competition at #PyConUK this September. It should be accessible and fun for new programmers, and a bit of a challenge for those with more experience.
1
0
13
@inglesp
Peter Inglesby
2 months
OK, first result up:
Tweet media one
6
3
13
@inglesp
Peter Inglesby
7 years
Scrolling through the #pyconuk tweets, grinning like a loon.
0
0
13
@inglesp
Peter Inglesby
2 months
At the other end of the spectrum, the models are all in agreement that Labour are going to do well in the North West...
Tweet media one
1
2
12
@inglesp
Peter Inglesby
7 years
Come and work with me!
@bengoldacre
Ben Goldacre
7 years
WE ARE HIRING We need a DJANGO developer for @EBMDataLab We are fun, our outputs are awesome and change the world. We make and many more similar in pipeline. TELL YOUR FRIENDS. E: hello @ebmdatalab .net
2
50
18
2
8
11
@inglesp
Peter Inglesby
7 years
...but spending the weekend before the conference getting stuff done with people you like and respect is really enjoyable.
1
0
12
@inglesp
Peter Inglesby
2 months
Lib Dems already have more seats than last time around
Tweet media one
1
5
12
@inglesp
Peter Inglesby
4 years
Proud to have played a small part in this:
@TheEconomist
The Economist
4 years
In normal circumstances, obtaining permission to look at sensitive health data would take months or years. A new team has gone from idea to publication in just 42 days
0
37
55
2
2
11
@inglesp
Peter Inglesby
2 months
Am not a commentator, but I would honestly be shocked to see Reform win next door in North Cotswolds
Tweet media one
1
2
10
@inglesp
Peter Inglesby
2 months
There's still one seat outstanding, and it's a fitting one -- I wrote much of the code that supports interrogating the data in a tent on Skye only three weeks ago
Tweet media one
4
0
11
@inglesp
Peter Inglesby
10 years
Python programmers: stop what you're doing and watch @brandon_rhodes show you how you ought to be doing it:
0
5
10
@inglesp
Peter Inglesby
4 years
The Datalab is hiring engineers: Our work is important and interesting, and has a real impact.  We get stuff done. Please spread the word, and let me know if you have any questions.
2
13
11
@inglesp
Peter Inglesby
2 months
Also now up:
@JamesKanag
James Kanagasooriam
2 months
🚨Final MRP estimates from @focaldataHQ is for a 238 seat Labour majority with Labour on 444 seats, Conservatives on 108 seats, Liberal Democrats on 57 seats, SNP on 15, Reform on 2 seats
Tweet media one
7
48
129
0
3
10
@inglesp
Peter Inglesby
2 months
As it happens I hope to add a "coefficient of agreement" to the table this evening, all being well
@OwenWntr
Owen Winter
2 months
Poking around the data from @inglesp 's excellent election prediction aggregation. The seats where prediction models disagree most: 1. Ashfield 2. Islington North 3. Waveney Valley 4. North Shropshire 5. Cambridge
11
16
79
1
2
9
@inglesp
Peter Inglesby
2 months
Oh no, I missed one. Now on the site:
@dan_grey
Dan Grey
2 months
@JohnRentoul @inglesp I still think @ElectionMapsUK 's nowcast should be in there @inglesp !
0
0
0
1
2
10
@inglesp
Peter Inglesby
6 years
I'm also going to be co-ordinating the John Pinner Award, where we'll recognise contributions to the UK Python Community in memory of John, who founded PyCon UK. More details on this very soon.
0
3
10
@inglesp
Peter Inglesby
2 months
You can see the still-undeclared seats here:
@jamesrbuk
James Ball
2 months
We've past the halfway point on results ��� 351 down, 299 to go.
1
1
15
3
3
10
@inglesp
Peter Inglesby
4 years
My first company made firewalls for telecom systems. I was a load tester. I kicked off a long-running load test and went off to get married. Returned from honeymoon to discover that I'd routed all traffic through company's own corporate firewall. Oops.
1
2
10
@inglesp
Peter Inglesby
2 months
@JonnElledge Down to 13 (JLP had NE Hampshire as a tie which I was showing incorrectly), and by one measure, Brentwood and Ongar is the most comfortable -- it's got the highest smallest predicted Tory majority of 3.7%, if that makes any sense
Tweet media one
1
2
9
@inglesp
Peter Inglesby
5 years
I made this!
@openprescribing
OpenPrescribing
5 years
Using a combination of @SlackHQ , an RSS feed from @PSNCNews and our very own ebmbot (built by @EBMDataLab ) we can get personalised price concession alerts to you within 7 minutes - if we ask ebmbot nicely. Sign up for yours at
Tweet media one
Tweet media two
0
7
10
1
2
9
@inglesp
Peter Inglesby
2 months
North Shropshire had the massive swing to the LDs in the 2021 by-election; North Herefordshire and Waveney Valley are both Green target seats; Ashfield had a strong independent candidate in 2019 and has Lee Anderson's defection to Reform; and Islington North has Corbyn
2
1
9
@inglesp
Peter Inglesby
2 months
Excellent and clear and well two minutes
@robertcuffe
Robert Cuffe
2 months
Beware people brandishing data they say "proves" only we can win here.
1
16
32
0
1
9
@inglesp
Peter Inglesby
2 months
send chocolate
5
0
9
@inglesp
Peter Inglesby
2 months
Tweet media one
1
1
9
@inglesp
Peter Inglesby
2 months
But for now...
Tweet media one
2
0
9
@inglesp
Peter Inglesby
2 months
Was in a pub last election night with lots of Labour activists who'd spent the day only knocking on doors of probable voters, and there was genuine shock when the exit poll was announced at 10pm
@robfordmancs
Rob Ford
2 months
If you watch back the 1997 election night broadcast you will see much discussion that looks exactly like this - “feeling on the doorstep much more positive than the polls.” Then the results come.
25
55
346
0
0
9
@inglesp
Peter Inglesby
2 months
@thetyronwilson Second safest, after... Richmond!
Tweet media one
2
1
9
@inglesp
Peter Inglesby
8 years
It's not a coincidence that I'm retweeting this after midnight...
@CodeWisdom
Programming Wisdom
8 years
"Give someone a program, you frustrate them for a day; teach them how to program, you frustrate them for a lifetime." - David Leinweber
10
1K
1K
0
1
9
@inglesp
Peter Inglesby
4 years
It's been a lot of fun watching this all come together
@bengoldacre
Ben Goldacre
4 years
OUR NEW PAPER. Factors associated with COVID-19-related hospital death in the linked electronic health records of 17 MILLION adult NHS patients. Largest study of its kind ever, anywhere. The power of UK / NHS data, realised.
186
2K
4K
0
3
8
@inglesp
Peter Inglesby
6 years
I'm back from a short post- #PyConUK holiday, and here are some highlights (in no particular order)...
1
0
8
@inglesp
Peter Inglesby
2 months
Plausible explanation for high disagreement about Exmouth and Exeter East
@SpaJw
JWExTheSpa
2 months
@inglesp @fascinatorfun They cannot agree a model for the Claire Wright supporters from the East Devon part of the constituency. She polled very highly in 2019. Her supporters are almost certainly going to be LD/Labour leaning.
4
0
19
0
2
8
@inglesp
Peter Inglesby
2 months
An important point in a good thread from somebody who knows a thing or two about MRPs
@ChrisHopkins92
Chris Hopkins
2 months
However, the increase in no. of MRPs makes me a bit uncomfortable, because they’re so open to misinterpretation (as is basically any form of modelling). Differences in vote share by fractions of % point could make a big diff to seat outcomes, as many pollsters have already said.
2
4
32
0
0
8
@inglesp
Peter Inglesby
2 months
Evening all! I've been away from my desk for the day and so I've only just fixed a couple of bugs with how I was showing the results: two seats were incorrectly marked as being won by "oth" candidates, and three close races were marked as ties. Thanks to all who let me know!
1
0
7
@inglesp
Peter Inglesby
6 years
And the socks! These were @ntoll 's genius idea.
@hjwp
Harry Percival @[email protected]
6 years
@PyConUK someone just bought a pair of pycon uk swag socks at the pyladies auction for $400. that is all.
0
2
0
1
0
7
@inglesp
Peter Inglesby
2 months
As always, please do let me know if you've got any questions or suggestions!
9
1
7
@inglesp
Peter Inglesby
2 months
@JonnElledge Hah, yes. Quite a bit of disagreement between different models though. See this from a couple of days ago:
@inglesp
Peter Inglesby
2 months
So, while there are only 11 constituencies where all models agree the Conservatives will win, there are 57 where at least nine models predict they will.  (cc @zoenora6 )
Tweet media one
5
16
86
0
2
7
@inglesp
Peter Inglesby
2 months
Tweet media one
2
1
7
@inglesp
Peter Inglesby
2 months
I've not got around to presenting trends on my site but @sib313 has been pulling in my data and has some some pretty charts where you can see changes in predictions over time
@sib313
𒊓𒅂𒁓𒐗𒐕𒐗 Steve the skeptic
2 months
Looks like the latest prediction from the Economist has decided to join the pack on its prediction of conservative seats: ...
Tweet media one
1
2
6
1
3
7
@inglesp
Peter Inglesby
2 years
Drumbeat of mortality: the first release of Python (20th February, 1991) was as close to the date that the first COBOL spec was approved (8th January 1960) as the present day...
0
0
6
@inglesp
Peter Inglesby
3 months
@Samfr Have added to the aggregator:
3
0
7
@inglesp
Peter Inglesby
6 years
Come work with me...
@bengoldacre
Ben Goldacre
6 years
WE ARE HIRING AGAIN. We're building openpathology and more features on openprescribing, so we need another RESEARCHER, and another SOFTWARE ENGINEER. We produce fabulous tools, services, papers, and policy shouts. Fun team, epic mission. JOIN US.
5
67
55
0
0
7
@inglesp
Peter Inglesby
6 years
I'm looking forward to speaking at @djugl on 25/10. I'll be talking about mental models and leaky abstractions, and about how if we are to get the most out of the Djano ORM, we need to understand what's going on under the surface. Londoners: see you there?
@djugl
DJUGL
6 years
***SPEAKER ANNOUNCEMENT*** I am delighted to announce that Peter Inglesby (aka @inglesp ) will be one of four speakers at #DJUGL10 with his talk on Leaky Abstractions and the Django ORM. Tickets are still available here:
0
1
1
1
3
7
@inglesp
Peter Inglesby
6 years
Hugs to whoever's trying to keep @MailChimp up and running tonight #gdpr
0
3
7
@inglesp
Peter Inglesby
7 years
I've just received an email from a user of a little HTTP crawling library I wrote, and it's given me the warm fuzzies.
0
0
7
@inglesp
Peter Inglesby
2 months
This is now on the aggregator:
@ElectCalculus
Electoral Calculus
2 months
🚨New MRP poll with @FindoutnowUK for @DailyMirror and @GBNEWS shows #Conservatives behind the #LibDems in seats: CON: 60 LAB: 450 LIB: 71 REF: 18 GRN: 4 SNP: 24 PC: 4 OTH: 1 NI: 18 Details at:
43
143
505
3
1
7
@inglesp
Peter Inglesby
7 years
For the morning crowd, looking back on #pyconuk :
1
2
6
@inglesp
Peter Inglesby
2 months
For comparison in 2019 (with notional figures) no candidate won with less than 31%
Tweet media one
0
1
6
@inglesp
Peter Inglesby
7 years
@glitch humility.png
Tweet media one
0
1
6
@inglesp
Peter Inglesby
2 months
And a couple of houses on our road who had Green signs in their garden for the locals in May now have Labour signs up
0
1
5
@inglesp
Peter Inglesby
5 years
pyenv uninstall -f 2.7.13
0
0
6
@inglesp
Peter Inglesby
2 months
And the data's now up, with added question marks
Tweet media one
2
0
6
@inglesp
Peter Inglesby
3 months
Hello world, I've been away from the internet for a week, climbing and dodging the rain on Skye. Many thanks to @themadwort for keeping the election prediction aggregator updated.
1
1
6
@inglesp
Peter Inglesby
2 months
Also, you can now show the vote share and majority of the predicted winner (rather than the vote share and majority of a given party) -- click on the column heading to sort
Tweet media one
1
1
6
@inglesp
Peter Inglesby
2 months
Of the 123 seats (outside NI) left to declare, only 4 have any models predicting Reform winning (and I'm still baffled by North Cotswolds on this list)
Tweet media one
0
2
6
@inglesp
Peter Inglesby
2 months
Explore the data here: Or take a look at @sib313 's visualisations here:
0
2
5
@inglesp
Peter Inglesby
2 months
I'll follow this up with a write-up evaluating how the models performed, and whether there's anything we can learn from the proliferation of predictions
2
1
5
@inglesp
Peter Inglesby
8 years
Throwing toy eels is harder than you might think... Had a great day at the #elyeelfestival .
@visitely
Visit Ely
8 years
The last throw of the championship of 2016. An amazing #elyeelfestival and it continues tomorrow!
Tweet media one
1
2
4
0
1
5
@inglesp
Peter Inglesby
2 months
@p_surridge Here's something I've been fiddling with for my aggregator of predictions: the majority predicted by each model. In this case, the red shows predicted winner (Labour), and the large negative number shows how far behind the selected party (the LDs) are
Tweet media one
3
1
5
@inglesp
Peter Inglesby
8 years
Have worked with Helen on this year's #PyConUK . You should hire her, she's brill.
0
8
5