Skip to content
All work

Case study · Research

Solar yield forecast

Forecasting how much power solar panels will produce, from weather data.

Year
2022 – 2023
Role
Team capstone, MIT ReACT
Status
Capstone complete
Built with
Python, time-series weather data, forecasting models

This was my team’s capstone project for the MIT ReACT data science certificate: a tool that predicts how much electricity solar panels will produce from ordinary weather data, and uses those predictions to model the effect on the electrical grid in Mafraq City, Jordan.

Most of the work turned out to be in the data. Our readings came from different sources on different clocks, with gaps, and with sensors that disagreed with each other. Grid planners need numbers they can rely on, so we aligned everything to one clock, flagged suspect readings, and kept a record of every value we had to fill in, so we could always say how much of a result rested on estimates.

A simple physical estimate of solar output was the baseline every model had to beat. We tested the models on whole stretches of time they had never seen, rather than on shuffled rows, because shuffling lets a model see the future during training and makes its results look better than they are.

The better models beat the baseline most clearly on partly cloudy days, which is where the simple estimate struggles. The write-up records where each model fails as well as where it works, which made the grid analysis easier to defend.

I worked with fellow students from a global cohort, and took on much of the data preparation and the forecasting models; we presented the grid analysis together. The open question, whether the results would hold at a second site, later became a separate study of my own: two public plants in California and Colorado, with a working paper. It shares no code or data with the capstone. The essay below reads that study’s worst forecast days one at a time.

The essay

Where the forecast failed

I scored a day-ahead solar forecast at two plants, then read its worst days one at a time. Most of them were not about the weather.

Essay
23 October 2026
Built on
The failure analysis in a working paper
Licence
CC BY 4.0

The average

A solar plant’s output depends on the weather, so the people who run the grid need to know a day in advance how much power each plant will produce, hour by hour, to plan what else to have running. That prediction is a day-ahead forecast. It is usually judged by one number, its average error over many days, and an average hides the individual days. This piece is about those days.

I built day-ahead forecasts for two public solar plants. One is an 893 kW fixed array in Arbuckle, on the floor of California’s Sacramento Valley. The other is a 4,738 kW tracker in Kersey, on the plains of northern Colorado. Each forecast is made at the end of one day for every hour of the next, from weather forecasts exactly as they were issued a day ahead. The best of them beat a simple baseline, which assumes tomorrow will be about as cloudy as today, by about a quarter. That number is in the paper. What follows is the days behind it.

Error is not spread evenly. At Arbuckle the worst tenth of days carries 25% of all absolute error and 46% of squared error. At Kersey it is 24% and 37%. If you want to know what limits a forecast, those are the days to read.

Three skies

A bad day has three possible owners: the weather forecast, the model that turns weather into power, and the plant. To tell them apart, I gave every day three numbers on the same scale, each a fraction of what a clear sky would deliver.

The first is what the plant saw: its measured energy over clear-sky energy. The second is what the forecaster was told: the day-ahead forecast’s sunlight over clear sky. The third is a later, independent estimate of the sky that actually happened, from the ERA5 reanalysis. A reanalysis is not the truth, as it turned out. But it is not the forecast either.

The comparisons do most of the work. If the forecast said bright, the reanalysis said dull and the plant was dull, the weather forecast missed cloud. If both sources said bright and the plant was dull, then either the sky did something too small for either source to see, or the plant did something no sky explains. Those two cases look the same in these three numbers, which is why the plant’s own channels matter so much later.

Then I picked a threshold. A day counts as a failure if the forecast of its energy missed by more than one rated hour, the energy the plant makes in an hour at full output. Arbuckle had 181 such days out of 549. Kersey had 91 out of 298. Fixed rules sort them by how the three skies compare. The thresholds are round numbers, not tuned. I revised the rules twice after reading cases: once to split a group that turned out to hold two different things, and once to drop a rule that turned out to be wrong. More on that one below.

Bar charts of days with an energy error above one rated hour, by cause. Arbuckle: 181 days, the largest bins clear dry sky with low output (44) and under-forecast with no clear cause (41). Kersey: 91 days, the largest bin under-forecast with no clear cause (38).
Fig. 1 · Days the forecast missed by more than one rated hour, sorted by fixed rules.

Nothing at all

The largest single miss at Arbuckle was 18 October 2024. The forecast said clear. The reanalysis said clear. The plant produced nothing, all day. On 6 November it happened again.

The data cannot say whether the plant was switched off or only its meter. For the forecast it makes no difference. No weather model could have known, and a score that includes those two days is partly a score of somebody’s maintenance calendar.

One inverter of two

Kersey runs on two large inverters, the machines that turn the panels’ direct current into the alternating current the grid uses. For several days in mid-September 2024, one of them reported zero while the other ran capped flat. On the nine days sorted into this group, the plant made 0.33 of a clear day’s energy on average, under a sky both weather sources put close to clear. Five of Kersey’s fifteen worst days come from that one stretch in September.

Those days are easy to find if the data includes each inverter’s output, and Kersey’s does. Its plant-level meter, by contrast, reported impossible values from August to December 2024, so the study adds up the two inverters instead. Without inverter-level data, this whole week would have looked like weather.

Four panels of hourly power. Arbuckle, October 2024: a clear day with zero output. Kersey, September 2024: output cut to about a quarter while the forecast expects full sun. Arbuckle, December 2025: still days at a fraction of forecast. Kersey, August 2024: heavy cloud, then cloud no source saw.
Fig. 2 · Four failures: measured power, the forecast with its 80% band, and a physical model run on the reanalysis sky.

A setting, not a cause

From March 2025, one of Kersey’s inverters ran at a median power factor of 0.86 while producing, against 1.00 before. Power factor measures how much of the current an inverter sends out does useful work, and operators sometimes lower it on purpose to help hold the grid’s voltage steady. Seen from outside, that is what such a setting looks like. It looked like a culprit, and my first rules treated it as one: a sunny day, low output and a low power factor counted as a reactive-power limit. Two of Kersey’s large misses landed there, one of them 1 April 2025, its fourth-worst forecast.

A second, independent read of the draft took that apart. The power factor at Kersey also falls on cloudy days, when output is low for ordinary reasons, so a low power factor on a low day explains nothing. And 1 April was not clear: the reanalysis had it heavily clouded while the day-ahead forecast had it clear, which makes it a missed-cloud day. The decisive check was the clear days. After the change, on the 34 days the reanalysis called clear, the plant reached a median of 0.93 of a clear-sky day. Before it, on 159 such days, 0.96. A gap that small could be the season alone.

So the rule went, and the setting stays in the story only as something I checked. It is the kind of mistake this method invites. A plant variable that changes on a known date is a satisfying explanation, and a satisfying explanation is exactly the one to test against the days it does not cover.

A dim summer

The biggest group at Arbuckle is the strangest. On 44 days, both weather sources agreed the sky was clear and dry, and the plant made far less than a clear day should. On average the reanalysis put those days at 1.06 of a clear-sky day and the plant at 0.64. Forty-two of the 44 fall between May and September 2025, and Arbuckle’s monthly error climbs with them.

Soiling, equipment trouble and wildfire smoke would all look like this from where I sit. Telling them apart needs a measurement on site. The plant has an irradiance sensor, but I did not use it for any result: its 2025 file is labelled with one clock and keeps another.

Monthly error for smart persistence, the calibrated physical model and the boosted trees. Arbuckle’s summers are low for all three; Arbuckle’s error rises again from mid-2025.
Fig. 3 · Monthly error for the baseline, the calibrated physical model and the boosted trees, all on GFS forecasts.

Fog, probably

Late in 2025 came a different kind of miss. On 12 days in November and December, the wind was light and the reanalysis called the sky essentially clear, at 1.03 of a clear day on average. The day-ahead forecast said partly cloudy, at 0.69. The plant saw 0.21.

Winter fog on the floor of California’s Central Valley is well documented, and a coarse weather model can miss it. I cannot prove these days were fog. What the numbers do show is odd enough: on these days the forecast issued a day ahead was closer to what the panels saw than the reanalysis was. The model with the benefit of hindsight was the one that missed.

That is less strange than it sounds. A reanalysis is still a weather model. It is fed observations after the fact, which makes it better than a forecast on average, but it sees the sky in the same coarse boxes, and a shallow layer of fog on a valley floor is easy to lose inside one.

The weather, after all

Some failures were what you would expect: the forecast was wrong and the reanalysis later knew better. That happened on 18 days of missed cloud and 3 of missed sun at Arbuckle, and on 5 and 4 at Kersey. A minority of the large misses.

More common were days when both weather sources agreed and the plant saw something else: cloud that neither source had, on 29 days at Arbuckle and 21 at Kersey. A weather model sees the sky in boxes kilometres wide. A solar plant is one point inside one box.

And some failures were mine. On 8 August 2024 at Kersey, both weather sources called for heavy cloud, and the trees still forecast several times the energy the plant made. The weather forecast was right. The model did not believe it. The next day was different again: the forecast itself was too bright, and the trees were brighter still. Two neighbouring bad days, two different owners.

What I could not explain

The largest group at Kersey, 38 days, and the second largest at Arbuckle, 41, are under-forecasts with no clear cause. They are clear days by every measure: the plant, the forecast and the reanalysis all put them close to a clear-sky day. The trees still predicted too little.

My guess is that a model trained on a record full of outages learns to hedge on clear days, because clear days are when outages cost the most. I did not test that guess, so it stays a guess.

What the score measures

I wrote a separate rule that flags days when the plant, not the sky, most likely limited output, using no forecast at all: near-zero output under a sunny reanalysis sky, output far below a clear and dry one, or one inverter far below the other. It flags 59 days at Arbuckle and 21 at Kersey. Leaving them out raises the trees’ skill from +0.25 to +0.29 at Arbuckle and from +0.22 to +0.25 at Kersey. The Arbuckle figure includes the dim summer, which may not be the plant at all, so read it as an upper bound on what the plant costs there.

The plants also explain a quieter failure. The forecast’s 80% intervals held only 59% of hours at Arbuckle and 65% at Kersey. A likely reason: the models learned the spread of errors in their training months, and many of the largest errors in the test months came from faults no training month resembled.

Three habits came out of this, and I would keep all three. Read the worst days before trusting the average. Keep inverter channels and power factor with the data, because they turn mysteries into explanations. Report scores with and without plant-anomaly days, and publish the rule that chose them.

The weather forecast, the part a forecaster is supposed to be judged on, was the clear cause of fewer large misses than I expected. The plants, the model and the sky’s small local surprises account for most of the rest. That is not a complaint about any of them. It is a note on what a forecast score is a score of.

Sources

Show sources (1)

Plant data: NREL PVDAQ public datasets on the Open Energy Data Initiative, CC BY 4.0. Weather: Open-Meteo, which serves NOAA GFS, ECMWF IFS open data and Copernicus ERA5, CC BY 4.0. On winter fog in the Central Valley: Baldocchi and Waller, “Winter fog is decreasing in the fruit growing region of the Central Valley of California”, Geophysical Research Letters 41 (2014), doi:10.1002/2014GL060018.

Have a project in mind?

Get in touch