Maine Political Data
Maine Political DataMethodology of partisan evaluation
Maine Political Data · Reference

Methodology of Partisan Evaluation

How the ratings on every place page are calculated, what each one can and cannot tell you, and how much to trust them.

The three ratings

Every place page opens with three tiles: the Partisan Electoral Alignment Index (Partisan EAI), Partisan Edge and Hidden Lean. These measures were developed by Matthew Gagnon, Chief Executive Officer of Maine Policy Institute, to describe the political culture of Maine's towns, counties and districts from the public record. Together they answer one question: what are this place's political loyalties, really: how would it vote in a neutral year, how are its voters enrolled, and how far does its vote depart from its enrollment?

All three are margins, written the way election results are written: D+12 means the Democratic side runs 12 points ahead of the Republican side. Positive numbers are Democratic, negative are Republican. Under each figure is one short line: the raw vote under the Partisan EAI, the date of the voter file under the Partisan Edge, and the margin the rolls predict under the Hidden Lean. Tapping or clicking a tile opens its plain-English definition, which begins with a label saying what kind of number it is (estimated: an expectation built from counted votes and one stated assumption; enrolled voters: counted from the voter rolls; derived: a comparison of the two), works the figure out for that place and gives its rank; this page gives the full method. Nothing on the tiles is the output of a statistical model of individual behavior; version 4 retired the modeled "Unenrolled Lean" and "Base Loyalty" tiles for the reasons given under Confidence and limits.

Partisan EAI (Partisan Electoral Alignment Index)

Columns: partisan_eai, relative_lean, maine_baseline, raw_vote_margin, statewide_environment

The two-party margin this place would be expected to produce in a neutral national year with average Maine candidates. It is built in three steps. First, the raw vote: the place's two-party margin in the top-of-ticket general-election races, 70 percent from 2024 and 30 percent from 2022. Second, the relative lean: the same races with Maine's own result in each race subtracted, which removes that year's political weather and the statewide candidates' pull and leaves how the place differs from the state. Third, Maine's baseline: how Maine itself votes in a neutral national year, estimated from the last three presidential elections (below), currently D+5. The Partisan EAI is the relative lean plus the baseline. The raw vote is shown under the tile, so the reader can see what actually happened as well as what the place is like.

Why not simply show the raw vote, as version 4 did? Because the raw vote carries the year with it: in 2022 and 2024 Maine ran D+14 and D+8, so every town's raw margin sits several points to the Democratic side of its normal. And why not stop at the relative lean, as the Cook Partisan Voting Index does for congressional districts? Because a relative lean sets the state at zero by convention, and Maine is not a zero-point state: a town that is "two points more Republican than Maine" is still, in a neutral year, a slightly Democratic town. The Partisan EAI puts the zero where the evidence says it belongs.

Partisan Edge

Columns: partisan_edge, partisan_edge_snapshot, unenrolled_share_pct, inactive_share_pct

How the enrolled partisans stack up: enrolled Democrats minus enrolled Republicans, as a share of the two, among active voters in the latest Secretary of State file (March 7, 2026, the same file as the registration section of every page). It does not include unenrolled voters, who are 30 percent of Maine's active rolls; the tile's definition gives the place's unenrolled share, and the registration section shows every group. The data tables also carry the share of the rolls listed as inactive. This tile is a count, not an estimate.

Hidden Lean

Columns: hidden_lean, hidden_lean_expected, registration_margin_2024

The part of a place's politics that the voter rolls do not show. Across Maine's 504 rated towns, the raw vote is closely tied to the enrollment mix (a town's active Democratic share and Republican share explain 94 percent of the variation). Hidden Lean is the raw vote minus the vote expected from that statewide relationship, using the rolls in force at the time of the vote (November 2024). A reading of R+12 means the place votes twelve points more Republican than towns with its enrollment mix usually do. It is where unenrolled voters, crossover voters and differential turnout all show up together; the data cannot say which of the three is responsible, and the tile does not pretend to.

Who actually voted in November 2024, by registered party, is counted by town from the state voter file (town totals only) and shown in a line under the registration table and in the 2024 turnout card (below). Under the tiles, a colored label gives the competitive outlook: it says what kind of contest a neutral year would make of the place, with a "Reading the numbers" panel of the figures behind it (below). Ranks ("97th most Democratic of 504 towns") appear in the tile definitions; they are counted from whichever end is nearer.

A worked example

Lewiston, 2022–2024:

Partisan EAI
D+8
Partisan Edge
D+19
Hidden Lean
R+12
Raw vote D+15 · Mar. 2026 file · Rolls predict D+27. Of 504 towns: 97th most Democratic on the Partisan EAI, 68th on Partisan Edge, 67th most Republican on Hidden Lean.

Lewiston voted D+15 over the window. Maine ran about D+12 in the same races, so Lewiston was three points more Democratic than the state; add Maine's baseline of D+5 and the city's expected margin in a neutral year is D+8. On the rolls it is a D+19 city today (D+26 in November 2024, before the 2025 list maintenance moved many of its Democrats to inactive status), and towns with Lewiston's November 2024 enrollment mix usually vote about D+27, so Lewiston runs twelve points behind its paper strength. Something in Lewiston pulls the vote toward the Republicans relative to its enrollment. The public record can show that this is so and how big it is; it cannot say whether the cause is enrolled Democrats who vote Republican (a legacy of the city's Franco-American Democratic tradition outliving its politics), unenrolled voters who lean right, or Democrats who stay home. Under a stated assumption about partisan loyalty the data imply that Lewiston's unenrolled voters split about evenly in 2024 (implied unenrolled lean, data only), but that is an inference from an assumption, not a measurement.

The race-by-race figures in the "Reading the numbers" panel tell more than the tiles: President 2024 D+8, Governor 2022 D+17, U.S. House D+21 and D+26. Lewiston is a far better town for a Democratic member of Congress or governor than for a Democratic presidential candidate, a spread of eighteen points across offices. In 2024 about 2,000 more registered Democrats than Republicans stayed home.

Compare Hampden, where the story runs the other way: a Republican Partisan Edge (R+13) that produced a D+3 raw vote in two Democratic years, nine points more Democratic than its enrollment predicts, and a Partisan EAI of R+4: in a neutral year Hampden is a slightly Republican town that Democrats can win when the year favors them. That is the situation people mean when they say a town is in play. Madawaska has one of the largest Hidden Leans among Maine's larger towns, R+28 (among towns with 1,000 or more votes only Fort Kent's, R+30, is larger): a D+24 enrollment edge, mostly older Franco-American Democrats, with a vote that has moved to even and a relative lean that fell from D+13 in the 2018 cycle to R+11 in 2024.

Data and races

Which elections count

The raw vote and relative lean use the general elections for President, Governor, U.S. Senate and U.S. House: the races at the top of the ballot that nearly every voter marks and that are decided on party lines rather than on a local personality. A race counts only when both major parties fielded a candidate and candidates from outside the two parties took no more than 15 percent of the vote; a race dominated by an independent (Maine's 2018 and 2024 U.S. Senate races, won by Angus King) says little about the two-party balance of a town and is left out. Declared write-ins never count as a party's nominee. Where a race was decided by ranked-choice voting, the first-choice votes are used, because they are the only count reported for every town. The window therefore holds four races: Governor and U.S. House in 2022, President and U.S. House in 2024. The 15 percent rule has not decided a close case in this window; since 1990 it has excluded only the 1996 presidential race (Perot, 14 percent, with other candidates taking the total past the line).

Places

Ratings are computed for the 504 cities, towns, plantations and reservations that report their own registration and had a qualifying race in the window. Where the Secretary of State reports several small places on one results line, the line's votes are divided among them in proportion to their registration and the pages say so ("shared results line"). Unorganized territory is counted in county, district and state totals but has no page of its own. Registration units are matched to results lines with the same rules as the election-results dataset.

Registration files

Two Secretary of State files appear on each page, each for a reason. The Partisan Edge and the registration section use the latest file (March 7, 2026): that is how the place is enrolled now. The Hidden Lean uses the November 5, 2024 file, the one in force for the 2024 election, because it compares the 2022–2024 vote with the rolls as they stood when that vote was cast. Both figures count active voters only. Inactive voters are people the state has flagged for a returned mailing or long non-voting; statewide they are 13 percent of the rolls today, a quarter of the rolls in a college town such as Orono, and they skew Democratic in the cities. The state's list maintenance of 2022 and again of 2025 moved voters to inactive status unevenly by town, which is why the margins are taken on active voters (the active-only and all-voters margins rank towns almost identically, correlation 0.987 to 0.998 by size class) and why the two files differ: Maine's active enrollment margin was D+7 in November 2024 and is D+5 today. The history uses the November file of each election year; from 2008 it counts active and inactive voters together (the only rule that treats every year alike, since the inactive list did not exist before 2007), and before 2007 it uses the single "registered voters" count the reports gave.

Partisan EAI

For each qualifying race and each place, the margin is

margin = 100 × (Democratic votes − Republican votes) ÷ (Democratic votes + Republican votes)

Races are combined within a cycle first. The U.S. House race counts one third of its cycle and the statewide races share the other two thirds equally (so in 2022 Governor two thirds and House one third; in 2024 President two thirds, House one third; a cycle with no qualifying House race uses the statewide races alone). The cycle values are then combined 70 percent 2024, 30 percent 2022:

cycle = ⅔ × mean(statewide races) + ⅓ × U.S. House race
raw vote = 0.7 × cycle2024 + 0.3 × cycle2022
relative lean = the same, with each race's margin replaced by (margin − Maine's margin in that race)
Partisan EAI = relative lean + Maine's baseline
statewide environment = raw vote − relative lean

The U.S. House race in the relative lean. A House race is measured against its own district's result, not Maine's, so that a popular incumbent's district-wide pull (Jared Golden's crossover appeal in the Second District added a median four points to every town there) cancels and only the town's departure from the district remains. That alone would give the two districts different zero points, so the district's own lean against Maine in the same cycle's statewide races is added back: in 2024 the First District ran 15 points more Democratic than Maine in the presidential race and the Second 16 points more Republican. Version 4 lacked this step, and Windham, which voted D+5, read "leans Republican" because it was measured against Chellie Pingree's district; it now reads D+1. A cycle with only a House race (1992, 1998, 2010) borrows the mean of the adjacent cycles' district lean.

Why two cycles, weighted toward the newest. Earlier versions averaged four cycles equally, which treated a 2018 result as informative as a 2024 one. We tested 492 weighting schemes (one to four cycles, weights in 5-point steps, the House race at full, one-third or zero weight) by using each scheme to predict the next election's town results, for five held-out elections from 2016 to 2024. The two-cycle 70/30 and 75/25 schemes predicted best (mean error 4.1 points per town); 60/30/10 over three cycles came next (4.4); the old equal four-cycle average was worst of the serious candidates (6.5). The third and fourth cycles back never earned more than 5 percent of the weight. Maine's statewide margin swings by ten to twenty points between cycles (D+14 in 2022, D+8 in 2024, R+9 in 2014), so an index that remembers four cycles is mostly remembering old weather.

Why the House race counts one third. The U.S. House race is the one race in every cycle, so an equal-weights rule gave it half the 2024 cycle and, over the old four-cycle window, 46 percent of the whole index. Maine's House races carry large candidate effects; at one third of a cycle the House race still informs the index without dominating it.

What the relative lean is for. Because it removes the statewide result from every race, the relative lean is the figure that stays put when the political weather changes. On non-overlapping periods (2010–2016 against 2018–2024, equal weights, the 199 towns with 1,000 or more two-party votes) it correlates 0.92 with itself; 13 of those 199 towns moved more than 50 places in the ranking over eight years, which is real political change (Madawaska, Rumford, the Franco-American mill towns moving right; Yarmouth, Cape Elizabeth and the Portland suburbs moving left), not noise. It also drives the pre-registered forecast, which adds the actual polling environment to it. The relative lean is published in the data as relative_lean; the Partisan EAI differs from it by one constant, so the two rank places identically.

Maine’s baseline

Column: maine_baseline · check file: checks/maine_baseline.txt

A relative lean has to be anchored somewhere. The Cook Partisan Voting Index anchors on the national result, which makes a district "R+2" even when the country as a whole leaned Democratic and the district therefore voted Democratic too; version 4 of these ratings anchored on Maine's result, with the same defect at the state level. The honest anchor is the one quantity that is not a convention: how Maine itself votes when the nation is tied. It cannot be observed directly, but it can be estimated from the one race in which every state faces the same two candidates:

Maine's lean in year t = Maine's two-party presidential margin − the nation's two-party presidential margin
Maine's baseline = mean of that over the last three presidential elections (2016, 2020, 2024) = D+4.8

Subtracting the national margin removes the national environment and the candidates' overall appeal; what remains is how Maine differs from the country, and its mean over several elections is an estimate of how Maine would vote with the country tied. The series since 2000 (Maine minus nation): 2000 D+5.0, 2004 D+11.7, 2008 D+10.3, 2012 D+11.8, 2016 D+1.0, 2020 D+4.8, 2024 D+8.6. Maine's totals are the official statewide counts (every town line plus the overseas-ballot lines); the national totals are the Federal Election Commission's official results.

Why three elections. The baseline is an estimate with two sources of error: the noise of individual elections (about four points, election to election, in this series) and the drift of Maine's lean over time (it fell six or seven points between the Obama elections and the Trump elections as the realignment by education reached Maine's rural counties). A longer window reduces the first and increases the second: a three-election mean has a standard error of about 2.4 points and lags the present by one election's drift; a four-election mean has a standard error of about 2.0 and lags by one and a half. At the drift rates Maine has shown, the two are about equally accurate, and three has the long-run property we want from a rule applied mechanically for decades: it normally spans two nominees of each party and a mix of incumbents and open seats while staying inside twelve years. For the record, the alternatives: the last two elections D+6.7, four D+6.5, five D+7.3, all seven since 2000 D+7.6. The present three elections all had the same Republican nominee; the mean is what Maine did facing him three times, which is the recent record, not a flaw in the record. The baseline is re-estimated after each presidential election, and this section will say what it did.

What the baseline means for a place. Hampden's relative lean is R+8; with Maine's baseline of D+5 its Partisan EAI is R+4. Maine's own Partisan EAI is the baseline, D+5. Had the baseline been set at zero, as version 4 in effect did, 106 towns would be rated as favoring Democrats in a neutral year; at D+5 it is 118 (145 voted Democratic in 2022–2024), and the "battleground" band is centered on genuinely competitive towns instead of on towns a few points more Republican than a Democratic state (below).

Partisan Edge

Partisan Edge = 100 × (enrolled Democrats − enrolled Republicans) ÷ (enrolled Democrats + enrolled Republicans), active voters, Secretary of State file of March 7, 2026
unenrolled share = unenrolled ÷ all active voters · inactive share = inactive ÷ (active + inactive)

Enrollment is a choice voters make once and rarely revisit, so registration lags the vote: the mill towns of the Androscoggin and St. John valleys still carry Democratic enrollment edges their votes no longer match, and the coastal suburbs vote more Democratic than their rolls. That lag is exactly what Hidden Lean measures. The Partisan Edge is a two-party figure, like the Partisan EAI, so the two can be read against each other; the registration section lower on the page shows every group, unenrolled voters included, as shares of all active voters, and the two presentations give different-looking numbers for the same rolls (Hampden: R+13 among enrolled partisans, Republicans 38 percent to Democrats 29 percent of all active voters). Two cautions. Maine's automatic voter registration (2022) enrolls new voters as unenrolled unless they choose a party, so the unenrolled share is drifting upward for administrative as well as political reasons; and list maintenance moves voters to inactive status unevenly by town, which is why the figure counts active voters only.

Hidden Lean

Called hidden_lean in the data files; version 4 (live for part of October 18, 2026) called the same number the Performance Gap and, for a few hours, Vote Shift.

The expected raw vote is a weighted least-squares line fitted across the 504 towns (weights: each town's two-party presidential vote in 2024), with the enrollment shares taken from the file in force at the vote, November 5, 2024:

expected raw vote = −6.4 + 151.0 × (active Democratic share) − 116.5 × (active Republican share)
Hidden Lean = raw vote − expected raw vote

The shares are fractions of all active voters, so the unenrolled share enters implicitly as what is left over. The fit explains 94 percent of the weighted variance; the residuals, which are the Hidden Leans, have a standard deviation of about 7 points vote-weighted and 11 points across towns. The same line is applied to counties, districts, regions and the state from their own registration shares, so a district's figure is comparable with a town's. For Maine as a whole it is R+1: close to zero by construction, since the line is fitted to Maine's towns. Because the line's intercept absorbs the year, the same number results whether it is computed from the raw vote or from the Partisan EAI.

Why a fitted line rather than the raw difference between the vote and the enrollment margin? Because the two are on different footings: the enrollment margin ignores unenrolled voters, who are 30 percent of the rolls and vote, while the vote counts everyone. A town that is 40 percent unenrolled with an even enrollment margin and a town that is 15 percent unenrolled with the same margin should not be expected to vote alike. The calibrated figure and the raw difference correlate 0.93, but 46 of the 199 largest towns change sign between them; the calibrated version is the one that means "more Republican than towns like it."

What Hidden Lean does not do: it does not say who produces it. Unenrolled voters leaning one way, enrolled partisans crossing over, and the two parties' registrants turning out at different rates all land in the same number. Version 3 tried to divide it between the first two with an ecological-inference model; an artificial-data test showed the model produced a full-size "unenrolled lean" even in a world where unenrolled voters were identical everywhere, so the division was coming from the model's assumptions rather than from the data. Hidden Lean keeps what the data support (the size and direction of the departure) and drops what they do not.

Who voted, and turnout headroom

Columns: voted_2024_D/R/U/O, voters_2024_*_pct, turnout_2024_pct, turnout_headroom_2024_pts, headroom_votes_2024 (and 2022)

Maine's voter file records each registered voter's party and whether they voted in each election. Counted by town and party, with no individual record kept or used for anything else, it gives the one thing the enrollment reports cannot: who actually turned out. On each page the line "Voted, Nov. 2024" under the registration table shows that electorate by registered party (in Lewiston: Democrats 38 percent, unenrolled 29, Republicans 27, other parties 6). Statewide the 818,000 voters in the file were 35 percent enrolled Democrats, 31 percent Republicans, 31 percent unenrolled and 4 percent members of other parties (the file covers 98 percent of the official 2024 ballots, 96 percent of 2022's). The 2024 turnout card on each page is the same count as a share of the place's active registrants in the November 2024 file: 79 percent statewide, 82 percent in Hampden, 69 percent in Lewiston, 60 percent in Orono.

Turnout headroom is the number of registered Democrats who did not vote minus the number of registered Republicans who did not vote, also expressed in points of the two-party vote. It is the ceiling on what a pure turnout operation could change: in Portland about 7,000 more Democrats than Republicans stayed home in 2024 (19 points of the two-party vote, in a city the Democrats carried by 68), in Lewiston about 2,000 (13 points). The registrant counts come from the current file (its party labels are as of 2026) and the turnout gap between the parties is only moderately stable from one election to the next (correlation about 0.5), so headroom is a scale, not a forecast.

The competitive outlook

Columns: campaign_class, campaign_reading; the panel's figures in margin_*, office_spread, best/worst_dem_margin_adj, headroom_*, drift, size_class

The one-line outlook applies fixed rules to the Partisan EAI and the window's results. It is deliberately simple so that it can be checked, and each place carries its designation as a colored label under its tiles. The label links to the Political Alignment page, which ranks every town and district from most Democratic to most Republican by any of the three ratings, with the place highlighted.

  • Safe Democratic Safe Republican: Partisan EAI of 15 points or more, and no race in the window in which the other side came within 5 points once that race's margin is adjusted the same way (relative to Maine, plus the baseline).
  • Leans Democratic Leans Republican: Partisan EAI of 7 to 15 points, or 15 or more where the other side has come within 5 adjusted points (the reading then says so).
  • Battleground: Partisan EAI under 7 points, either way. Until October 19, 2026 the battlegrounds were split into a turnout contest (in both 2022 and 2024 the trailing side had more non-voting registered partisans than its deficit) and a persuasion contest; the two-election rule was met by no town and two State House districts, so the split was dropped. The turnout headroom figures remain in the "Reading the numbers" panel.

Checked against the 227 contested Democrat-versus-Republican State House races of 2022 and 2024 on the current district lines: the favored side won 100 percent of the races in districts rated safe, 96 percent (Democratic) and 88 percent (Republican) of those rated leaning, and Democrats won 46 percent of the battleground races in two Democratic-leaning years, which is what a band centered on genuinely competitive districts should produce (version 4's band, centered on Maine's result, gave Democrats 67 percent). By band of Partisan EAI the favored side won 79 percent of races in districts within 3 points, 60 percent at 3–5, 80 percent at 5–7, 84 percent at 7–10 and 100 percent from 10 points up. The State House margin correlates 0.95 with the district's Partisan EAI; the typical difference between a State House result and the district's Partisan EAI is 6.5 points (8.0 against the raw vote), which is the size of the candidate and campaign effects the ratings leave room for.

The "Reading the numbers" panel gives the figures a careful reader would ask for next: the office profile (the place's margin in each race of the window, as cast, and the spread between them, the sign of crossover voting), its range (the best result each side has had in the window, adjusted to a neutral year), the turnout headroom, its drift (relative lean in the 2024 cycle against the 2018 cycle), the vote and registration counts, and for towns a size note saying how much the vote of a town that size typically moves between cycles. The thresholds are fixed until the November 2026 results are in (the one change since version 5 went live is the merging of the two battleground labels on October 19, 2026), when the forecast described under Validation will be scored and the rules revisited once.

Counties, districts, precincts

Counties, regions and the state are built from the same town records: votes are summed, registration is summed, and the formulas above are applied to the sums (so a county's raw vote is its own two-party margin, not an average of its towns' margins). Congressional, State Senate, State House and county commissioner districts use the current district maps. A town that lies in more than one district is divided by its precincts' registration: votes and the November 2024 registration by the November 2024 precinct file (the Democratic vote by each precinct's share of the town's Democrats plus half its unenrolled and minor-party voters, the Republican vote likewise, each registration group by its own precinct share), the current registration by the March 2026 precinct file. This is an allocation, not a count, and the pages flag how many split towns a district contains. The relative lean of an area spanning both congressional districts measures its House vote against the two district results weighted by its votes in each, with each district's lean added back.

On the pages of towns with more than one precinct, the precinct table shows each precinct's own Partisan Edge from the latest Secretary of State file. Precinct results are reported only for the town as a whole, so no vote-based rating exists below the town level.

History and drift

Tables: scores_history_towns.csv, scores_history_counties.csv, scores_history_cd_state.csv

The history tables give every cycle from 1990 to 2024: the cycle's raw vote and relative lean (same rules, one cycle at a time), Maine's baseline as it stood that year (the three presidential elections up to it), the Partisan EAI the two make, the registration margin from that year's November file, the cycle's Hidden Lean (a line fitted to that year's towns), and the rolling 70/30 values, which for 2024 are the published tile. Single-cycle values are noisier than the tile, and in years with only a U.S. House race (1992, 1998, 2010) they are one race. The relative lean is the series to read for change in a place: the drift figure on the pages is the 2024 cycle's relative lean minus the 2018 cycle's. Across the 504 towns the median drift is 4 points toward the Republicans, with a standard deviation of 12; the Franco-American towns of the north and the mill towns of the river valleys account for most of the large Republican drifts, the Portland suburbs and the midcoast for most of the Democratic ones.

Confidence and limits

The baseline. Everything above the relative lean rests on one estimated number with a standard error of about two and a half points. That uncertainty shifts the whole scale at once: it does not move any place's rank, but it can move the side a place "favors" in a neutral year for the towns within a few points of even, and it moves the boundaries of the safe, lean and battleground bands by the same amount. A reader who believes Maine's neutral-year lean is D+7 rather than D+5 should add two points to every Partisan EAI; the relative lean in the data lets anyone do so.

What "neutral" means here. A tied national two-party presidential vote, with the same two candidates on every ballot. Whether Maine's lean in a midterm with no national ticket is the same as its lean in a presidential year cannot be tested in Maine, because every Maine midterm race carries a large candidate effect (Collins, King, Mills); the presidential anchor is used and said so. "Average Maine candidates" means that statewide and district-wide candidate effects have been removed; a candidate's appeal that varies town by town (a hometown, a local issue) has not, and no aggregate measure can remove it.

Size. The ratings are counts, so they have no sampling error, but small towns are volatile: among towns with fewer than 100 two-party votes the raw vote moves about 20 points from one cycle to the next; 100–300 votes, about 10 points; 300–1,000, about 5; 1,000 or more, about 4. The pages print the size class and that figure, and ranks among small towns should be read in that light. A rank is exact arithmetic on the published figure; it is the figure, not the rank, that carries the uncertainty.

Places, not people. Every rating describes an electorate. "Lewiston's unenrolled voters" are a different set of people in every election, and nothing here says how any individual votes.

What the data cannot decide. Election returns and enrollment counts cannot separate the three things that make a town vote differently from its enrollment: how its unenrolled voters split, how loyal its enrolled partisans are, and who turns out. Hidden Lean reports their combined effect. For readers who want a figure for the unenrolled vote anyway, the data tables (not the pages) carry an implied unenrolled lean for the 2024 presidential race: if the enrolled Democrats and Republicans who voted (counted from the voter file) supported their own party at a stated statewide rate, the rest of the two-party vote belongs to the unenrolled, and their margin follows by subtraction. At a 93 percent loyalty rate Maine's unenrolled voters come out at D+11; Lewiston's at R+3, Hampden's at D+28, Madawaska's at R+78. The last figure shows the limit of the method: in a town whose enrolled Democrats have been voting Republican for a decade, assuming they are 93 percent loyal pushes the whole departure onto the unenrolled and produces an impossible number. The implied lean is an arithmetic consequence of its assumption, published so that the assumption can be argued with, and it is not on the pages.

Other limits. The ratings know nothing about candidates: a district rated D+9 elected a Republican state representative if the Republican was the better candidate, and the State House check above says that happens in about one race in six at that lean. The U.S. House race's one-third weight and its district comparison reduce, but do not remove, the imprint of Maine's strong House incumbents. Ranked-choice races enter as first choices only. Overseas and some absentee ballots are reported statewide and cannot be placed in a town. Split-town districts rest on a registration-based allocation. And the window is two elections: a place that changed in 2024 is already most of the way into its rating, which is the point of the design, but it also means a single strange local year leaves a mark.

Validation

Four tests stand behind the design, each reproducible from the published code:

  • Weighting grid search. 492 schemes scored on five held-out elections (2016 President and House, 2018 Governor, 2020 President, 2022 Governor, 2024 President and House): two recent cycles weighted 70/30 or 75/25 predict a town's next result with a mean error of 4.1 points; the old equal four-cycle average, 6.5.
  • Stability on non-overlapping periods. Relative lean 2010–2016 against 2018–2024, towns with 1,000 or more votes: correlation 0.92 (rank correlation 0.91), mean absolute change 9 points, 13 of 199 towns moved more than 50 ranks.
  • State House check. District Partisan EAI against 227 contested State House races of 2022 and 2024: correlation 0.95, mean absolute difference 6.5 points against 8.0 for the raw vote; threshold calibration above.
  • Active versus all voters. The enrollment margin on active voters and on all voters, November 2024: the active margin is 1 to 2 points less Democratic on average and the two rank towns almost identically (correlation 0.987 to 0.998 by size class).

A forecast to be scored. Before the November 3, 2026 election a town-by-town forecast of the Governor's race (each town's relative lean plus the statewide polling average on the day the file is frozen) is published in the data folder: a first freeze on October 17 and a final freeze by October 30. After certification it will be scored two ways: against the actual town results given the actual statewide margin (does the relative lean place towns correctly?) and as it stood on the freeze date (does it predict?). A targeting rule built on the ratings (the fifty most competitive towns by Partisan EAI) will be compared with a rule built on the last presidential margin alone. The ratings' rules, the baseline window and the thresholds will be revisited once, after that scoring, and not before.

Sources, code and versions

Every rating is calculated from official records:

  • Election results. The Secretary of State's official tabulations of general-election results by municipality for President, Governor, U.S. Senate and U.S. House (Maine Political Data election results v3.18), including the statewide presidential totals since 1980 used for Maine's baseline.
  • National presidential totals. The Federal Election Commission's official results, 1980–2024, Democratic and Republican votes (the other half of Maine's baseline).
  • Voter registration. The Secretary of State's Registered & Enrolled Voters reports, active and inactive, by municipality and precinct (Maine Political Data registration v7.2): the files of November 5, 2024 and March 7, 2026.
  • Voter participation. The state voter file (each registered voter's party and voting history), counted by town and party only, for 2022 and 2024. No individual's record is published or used for anything else.

Counties, regions, legislative, congressional and county commissioner districts and the state are built up from the same town-level records, using the current district maps. No survey or outside estimate enters any figure.

Code and data. The complete calculation is three short Python scripts and runs in about a minute: v5_prep.py (selects the races and Maine's presidential totals), v5_scores.py (every figure on this page, with the national totals typed in) and v5_checks.py (the validation tests), with scoring.py (the race table and the matching of registration units to results lines, carried from earlier versions) and v5_forecast.py (the forecast). The full tables at every level, the 1990–2024 history, the check outputs (including the baseline table and the district add-back) and a README with every column's definition are on Download the Data (one zip). The inputs are the election-results and registration datasets described on the Data Sources page; the voter-file counts the scripts use appear in the tables as the voted_* columns (town totals by party; the file itself is not published).

Scores version 5, October 18, 2026. Window: general elections of 2022 and 2024 (70/30). Maine's baseline: presidential elections of 2016, 2020 and 2024, Maine minus the nation, D+4.8. Partisan Edge: active voters, Secretary of State file of March 7, 2026. Hidden Lean: the raw vote against the November 5, 2024 file. Turnout by party: state voter file, 2022 and 2024. No estimation model.

Version 5 (October 18, 2026, evening) redefined the Partisan EAI as the neutral-year expectation (relative lean plus Maine's baseline), repaired the House reference so every unit has the same zero, moved the enrollment tile to the latest file under the name Partisan Edge, and renamed the Performance Gap Hidden Lean; the raw vote of version 4 remains in the data and under the tile. Version 4 (October 18, morning) followed an independent methodological audit of versions 3 and 3.1 (October 17) and three outside reviews commissioned by the Maine Policy Institute: it replaced the equal four-cycle average with the tested 70/30 two-cycle weighting, added the relative lean (then "Natural Lean"), showed registration plainly, replaced the modeled Unenrolled Lean and Base Loyalty tiles with the gap now called Hidden Lean, added the voter-file electorate and the competitive outlook, and published the code. Version 3.1 (October 17) gave the version 3 model the actual ballots cast by party from the voter file; version 3 (October 16) was a Bayesian ecological-inference model with survey-informed priors; version 2.3 (October 14) corrected two unit-mapping errors; versions 2.1 and 2.2 (October 5) applied the active-plus-inactive rule to every year from 2008; version 2 (September 30) introduced the Partisan EAI as a four-cycle raw vote, Base Advantage, the relative Unenrolled Lean and Base Loyalty; version 1 (the same day) showed a Partisan Score and an absolute Unenrolled Lean. The version 4 raw vote and the version 5 Partisan EAI rank towns at a correlation of 0.99; the modeled Unenrolled Lean and Base Loyalty are not carried forward, because the audit found that the data could not identify them.

See all sources →

See an error, or have a suggestion? Tell us and we will check it against the source.