You will build the same forecasting system Uber uses to set prices and move drivers. Then you will stress-test it, watch it drive automated decisions, feel it break from the inside as a driver, and decide what that means for the people whose livelihoods depend on it.
Built collaboratively with Claude. Every chart, simulator, and game in this lab was built by your instructor working with Claude — describing what was needed, evaluating the output, and iterating until it was right. That is the same workflow you will use in the Colab steps. Pay attention to what it produced. That capability is available to you too.
It's Thursday, October 16, 2025. You're a data analyst on Uber's Bellingham operations team and your manager just asked you to forecast Friday night demand near WWU campus — there's a Death Cab for Cutie, Sleater-Kinney, and ODESZA homecoming concert tomorrow night, Friday October 17, and operations needs to know how many drivers to deploy at 10pm when the show lets out. Tomorrow is the prediction. Today's job is data.
Here's the catch: you can't pull data on tomorrow's concert because tomorrow hasn't happened. What you can do is pull every Friday night near campus for the last two years and look hard at the closest things to a concert night in that history — homecoming weekends, welcome week in September, graduation Friday, the basketball playoffs in March. Those past high-demand Fridays are the only evidence you have for what tomorrow might look like. If your data doesn't contain anything that resembles a concert, your model has no business predicting one.
From that historical data you need three things:
1. Trend. Has Friday night demand been growing over time? Over the past two years, Friday night trips near campus have risen steadily from around 280 trips to around 380 per Friday night. That's Uber's market expanding — more drivers, more riders, more trips every month. Your model needs to know this so it doesn't predict tomorrow based on what Friday looked like two years ago.
2. Seasonality. How does Friday night demand vary by time of year? When WWU students are on campus (late September through mid-June), Friday nights are noticeably busier — more people going out, more rides needed. Summer Fridays are quieter with students gone. Late December drops sharply during finals and break. And New Year's Eve produces a massive spike every year. These cycles repeat on a schedule, which means a model trained on enough history can learn to anticipate them.
3. Past event nights. Hidden inside the two years of history are the high-demand Fridays — homecoming weekends, welcome week, graduation, basketball games. These are the only data points in your dataset that resemble what tomorrow might be. A model trained on the average Friday will underpredict an event Friday. Knowing where those event nights are in your data is how you spot whether the model has anything useful to say about October 17.
The chart below shows what that historical Friday night data looks like. Take a minute to read it before running the prompt — you will be generating this same chart in Colab.
For this step, you will ask Claude to simulate that historical Friday night dataset. Since you don't have direct access to the production trip database for this exercise, simulating a realistic stand-in is how you get something to look at. Here is exactly what you are pulling and why each piece matters for the October 17 forecast:
Once you have the data in Colab, you will plot it so you can see these patterns yourself before handing it to a model. That is what a real analyst does — the chart is not decoration, it is how you catch problems in the data before they become problems in the forecast.
You have the data. Before you use it to predict tomorrow's concert night, you need to answer a sharper question than "does this model work?" The real question is: does this model work on the kind of Friday I'm about to predict?
A model can have a great average MAE and still fall apart on event nights — because event nights are rare in the training data and a linear regression spreads its error budget across the common cases. So in this step you're going to do two backtests at once. First the standard one: train on weeks 1–78, predict weeks 79–104, compute MAE across the whole test window. Then a sharper one: pull out just the high-demand Fridays in your test window and check the MAE on those. The gap between the two numbers tells you whether your model is ready for October 17 — or only ready for an ordinary Friday.
This is called backtesting. You take your two years of historical Friday night data and split it in two. You give the model the first 18 months — weeks 1 through 78 — and let it learn the trend, the seasonal patterns, and the school-year effect. Then you hide the last 6 months — weeks 79 through 104 — and ask the model to predict them, as if those weeks hadn't happened yet. You already know what actually happened in those 26 weeks, so you can compare the model's predictions directly against reality.
Your boss is still waiting for an answer about tomorrow night. You're not ready to give it yet — but this step is how you get there.
In the prompt below, you ask Claude to take the same dataset you built in Step 1 and split it. Weeks 1–78 is your training window — about 18 months ending around April 2025. The model learns from that. Weeks 79–104 is your test window — about 6 months ending Friday, October 10, 2025 (the Friday before the concert). The model never sees this period during training. Once it has learned from weeks 1–78, you ask it to predict weeks 79–104 as if they haven't happened yet. But first — before any MAE or backtest chart — the prompt asks Claude to print the model's actual equation and walk through a worked example. You need to see how the forecast works before you can judge whether to trust it. Then you compute two MAE numbers: one for the whole test window, and one for just the high-demand Fridays in that window. Those two numbers, side by side, are how you decide whether to trust this model with October 17.
In Step 2, you tested the model and learned two things: it's solid on normal Fridays (off by about 21 trips), and it completely misses event nights (off by about 313 trips on the graduation Friday). Tomorrow's concert is the same kind of night. Now you're going to use the model for real — knowing where it breaks.
Your boss emails you:
You reply: "Model's backtested and validated — running the October 17 forecast now, will have a number for you within the hour."
Notice what your boss is asking for: drivers, not trips. But to figure out how many drivers to deploy, you first need to know how many trips to expect — that's what the model predicts. Then you convert trips into drivers (if you expect 910 trips and each driver handles about 3 trips per hour, you need roughly 304 drivers). The trip forecast is the input. The driver recommendation is the output your boss acts on.
Here's what you're about to do. You'll run the model's recipe on October 17 and it will produce a number. But you already know that number will be too low — the graduation Friday in Step 2 proved the model can't handle events. So after seeing the raw prediction, you'll adjust it based on what your data says about past event nights. The model gives you the math. You add the judgment.
Here's what the model's recipe looks like when you plug in October 17:
You have a concert-night forecast. You have a driver number. You are not ready to send it yet.
Tomorrow's recommendation rests on assumptions that are all concert-specific: the 2.0× event multiplier from Step 3, the ~250 drivers Uber expects to attract for the concert, the 3 trips per driver per hour you assumed for the post-show rush, and the ±15% prediction interval you carried over from the backtest. Each could be wrong in ways that matter because it's a concert. The 2.0× came from your data on past WWU events, rounded up for a bigger show — a different analyst might use 1.8× or 2.5×. The 250-driver target depends on how many drivers respond to Uber's incentive push — if only 200 show up, the math changes fast. Trips per hour drops if traffic around campus seizes up after the show. None of this would worry you on an ordinary October Friday. Tomorrow night — October 17 — it should.
This is called stress-testing. At Uber, analysts run scenario models before every major event — not because they expect the worst case, but because they need to know what the worst case looks like so operations can plan for it. The question is never "will our forecast be exactly right?" It's "how wrong could we be tomorrow night, and can we still handle it?"
Instead of writing code for this step, use the simulator below. It starts with the same baseline from your Step 3 adjusted forecast: ~910 predicted trips on October 17, roughly 250 drivers expected online near campus at 10pm (Uber would push notifications to attract drivers for a known event), and 3 trips per driver per hour. At those defaults, the recommendation is fragile — small changes flip the surge call. Change them one at a time and watch what happens.
In Step 3, you produced a forecast — ~910 trips — and sent it to your boss. But at Uber, the forecast doesn't stop at the boss's inbox. The moment your predicted trip count enters the system, the algorithm takes over. It compares predicted demand to available driver supply, calculates a surge multiplier, and pushes a price to every rider's screen — all in milliseconds. No human reviews it. No one approves it. The algorithm just does it.
That's fine when the forecast is right. But what happens when it's wrong? What if the model predicts a normal Friday and it's actually an earthquake? What if surge pricing fires at 4.8× while people are trying to evacuate? There's no human in the loop to say "wait — this doesn't feel right." The algorithm can't feel. It just multiplies.
The simulator below lets you be that human. For each scenario, the algorithm sets a surge price automatically. Then you make the call — do you trust it, override it, or pause it? Click one of the three decision buttons and see what happens. The outcomes are not equal.
October 17 went well. The Death Cab for Cutie, Sleater-Kinney, and ODESZA show let out at 10pm and the forecast held up. Drivers were in the right place. Riders got cars in under 8 minutes. Surge fired at 3.2×, cleared the market, and came back down by 11:30pm. Your operations manager sent you a two-word Slack message: "nice work."
It's now late November 2025 — about six weeks after the concert. Life went on. Things changed — then they changed again.
Since then, WWU announced a 12% drop in fall enrollment — fewer students on campus means quieter Friday nights. A new apartment complex opened on the north side of Bellingham, shifting where riders are actually coming from. And last week it came out that Lyft quietly launched in Whatcom County, pulling about 15% of your regular drivers onto their platform.
Your model doesn't know any of this. It is still predicting Friday nights based on the two years of history you trained it on. It passed the backtest. It worked on concert night. But the world it learned from is not the world it is predicting in anymore.
This is called distribution shift — and it is one of the most common reasons AI systems quietly fail after a successful launch. The model is not broken. It is just wrong, in ways that are invisible unless someone is watching. Every prediction it makes is based on a world that no longer exists. And every automated decision downstream — surge pricing, driver incentives, server provisioning — is based on those wrong predictions.
The simulator below lets you feel this happen. Pick a scenario, drag the slider to choose when the world changes, and watch the gap open between what the model predicts and what actually happens. That gap is not just an error number — it is the cost, in real decisions, of a model that nobody told the world had changed.
The simulator shows three numbers as you drag the slider. Here is what they mean before you start:
MAE (Mean Absolute Error) is the average size of the model's mistakes, measured in trips. If your model predicts 320 trips on a Friday night but 355 actually show up, that's an error of 35 trips. Do that across 26 weeks and average the gaps — that's your MAE. A MAE of 20 on a normal Bellingham Friday is fine. A MAE of 20 on concert night, when you need precision to staff drivers correctly, is a problem.
The simulator tracks three numbers as the world shifts. Here is what each one means:
In Step 6 you watched distribution shift happen in a simulator — a chart, some numbers, an error multiplier climbing. Now you are going to feel it from the inside.
You have spent this lab as the analyst: pulling data, building the model, backtesting it, stress-testing it, sending the memo. Every decision you made was at a desk, looking at charts. Step 7 puts you on the other side. You are now a driver in Bellingham on a Friday night. The algorithm tells you where demand is high. Your job is to decide whether to follow it — and to notice when something feels off.
Every surge multiplier you see in this game was calculated by a forecasting system running the same logic as the model you built in Steps 1–3 — it reads historical Friday night trip patterns, predicts where demand will be, and sets a price automatically. No human approved each number. That is what happens when the forecast triggers the decision instantly, at scale.
You will play 6 rounds. Each round you see a situation — a time of night, conditions in the city, what the algorithm is predicting — and you choose where to drive. Then you see what you earned, and what your rider experienced.
Rounds 1–3 are stable. The forecast is accurate. Learn the rhythm. Rounds 4–6 — something changes in the world, and the forecast does not know. You will not be told when it happens. Pay attention.
This is the final step — and it is the one that makes everything real. You are going to publish a webpage that shows a recruiter what you actually built. Not a summary of the lab. Not Claude's words. Your work, your outputs, your analysis.
Think about what that means. A recruiter who clicks your GitHub link has 60 seconds. They want to see: can this person take a real business problem, build something with AI tools, and explain what they found? Your page needs to answer that with evidence — your actual chart, your actual forecast numbers, your actual concert night memo, your own written analysis connecting all of it.
Before you send the prompt below, fill it in. Copy the entire prompt, paste your actual content from Colab where indicated, then send the whole thing to Claude in a fresh conversation. It will come back as a finished page.
Here is what to collect before you start:
Submit two things: your GitHub Pages URL and a Word or PDF document with your answers to every reflection question below.
https://[username].github.io/uber-ai-lab