What Would Take Days Now Takes Hours: Analyzing US Cities and States for Real Estate ROI using Prompts
By Gencay
Published: 2025-12-04
URL: https://www.learnwithmeai.com/p/data-project-15-i-analyzed-25-years

Do you know which US city or state offers the best Return on investment for buying a house in 2025? Until yesterday, I didn’t have a clear answer either.
What would have taken days of manual research a few years ago now takes hours. But the shift isn’t just about speed; now it is available for everyone with the correct data and prompts.
All you have to do is upload your data to your AI and use the prompts that I give you to find a scientific answer to the following questions:
- Which cities showed the highest price increase in the last 20 years?
- Which states showed the highest price increase in the last 5 years?
- Best & Worst Cities for Home Buying (Momentum Analysis)
- Best & Worst States for Home Buying (Risk-Adjusted Analysis)
- Seasonality Analysis - Best Time to Buy a Home
- Missed Opportunities - What We Could Have Made (2015-2025)
Zillow
Zillow is a real estate marketing platform that's No. 1 right now, so we’ll use their data.
Let’s see the data specifics.

As you can see, the data spans from 2000 to 2025, covering 11,236 towns and cities across 51 states, along with the top five states by city count.
But how can I produce the image above? Let’s see the prompt I used to create this graph:
Create a hand-drawn style (XKCD) data overview chart with 3 panels using the attached Zillow housing dataset:
1. Key statistics (city count, state count)
2. Price comparison (2000 vs 2025)
3. Top 5 states by city count
I was using Claude, by the way. Let’s start with question 1.
Which cities showed the highest price increase in the last 20 years?
In this question, we examined four angles to get the full picture.
First, we found the top 10 cities with the highest percentage increase. Westhampton Beach, NY, crushed it with a 1,340% jump, turning a modest beach town into millionaire territory.

Next, we checked which cities gained the most in actual dollar terms. Montecito, CA leads with $2.6M increase, that’s California luxury for you.

But what about the losers? Five cities actually lost value over 25 years. Warrensville Heights, OH, dropped nearly 30%. Ouch.

Finally, here’s how all 4,547 cities are distributed. Median increase is 204%, meaning a typical home tripled in value since 2000.

Here is the prompt to regenerate these findings.
Analyze 25-year home price changes (2000-2025) with 4 panels:
1. Top 10 cities - highest % increase
2. Top 10 cities - highest $ increase
3. Bottom 10 - worst performers
4. Distribution histogram with median/mean lines
Use attached data.
Now let’s see the output.

Let’s continue with the remaining seven questions. You don’t need to be a data scientist; use the prompts and the data, and that’s it.
Question 2: Which states showed the highest price increase in the last 5 years?
This time, we zoomed out from cities to states, because sometimes the bigger picture tells a different story.
First, we ranked all 51 states by median price growth over 5 years. Tennessee leads at nearly 80%, followed by South Carolina and Montana. The Southeast dominated.

Then we compared the top 10 vs the bottom 10 states. The gap is massive, Tennessee at 79% vs DC at just 2.3%. Florida, Hawaii, and California are all in the bottom 10.

Good, let’s see the prompt to regenerate.
Prompt
Analyze 5-year state-level price changes (2020-2025):
1. Rank states by median % increase
2. Show distribution of top-performing cities by state
Use attached data.
Now, let’s see key findings.

QUESTION 3: Best & Worst Cities for Home Buying (Momentum Analysis)
Past performance is nice, but what about right now? This question looks at momentum — cities that are heating up versus cooling down.
First, we built a momentum matrix comparing 5-year vs 1-year performance. This instantly shows which cities are rising stars vs declining.

Then we listed the top 15 rising stars, cities with strong growth that’s still accelerating. Belzoni, M.S. leads with 36.6% yearly growth.

On the flip side, here are the top 15 declining markets. Cherokee, OK, dropped nearly 40% in one year. Oklahoma dominates this list due to the oil bust impact.

Finally, how does the overall market break down? Nearly half (48.7%) of cities are stable, but 11% are actively declining.

Prompt
Analyze city momentum by comparing 1-year vs 5-year price changes:
1. Scatter plot matrix (declining, cooling, stable, rising star)
2. Top 15 rising stars (best to buy)
3. Top 15 declining markets (worst to buy)
4. Pie chart of market distribution by category
Use attached data.
Let’s see the Key Insights.

Question 4: Best & Worst States for Home Buying (Risk-Adjusted Analysis)
Not all growth is equal; some states give you returns with wild swings, while others are steady climbers. This question adds risk to the equation.
First, we plotted all states on a risk-versus-return matrix. The top-left corner is the sweet spot: high returns, low volatility.

North Dakota wins with a 1.92 risk-adjusted score — solid 6.2% growth with minimal volatility. The Midwest quietly dominates this list.

Now the worst. Florida scores -1.49, meaning you’re taking high risk for negative returns. The Sunbelt boom is officially over.

Finally, here’s every state ranked by 1-year performance. 34 states are positive, 17 are negative. The divide is clear.

Prompt:
Analyze state-level risk-adjusted performance:
1. Scatter plot: volatility vs median 1-year change (color by risk-adjusted score)
2. Top 10 best states (high return + low risk)
3. Top 10 worst states (low/negative return or high risk)
4. All states ranked by 1-year performance
Use attached data.

Question 5: Seasonality Analysis - Best Time to Buy a Home
Timing matters. We analyzed month-by-month price changes to find the best time to buy and sell.
First, we looked at average monthly price changes across all cities. December and April-May show the strongest growth, while October-November are the slowest.

When we group by season, the pattern is clear: Spring wins at 0.267%, Fall is the weakest at 0.122%.

But not every region follows the same pattern. Midwest stays consistently positive, while Sunbelt dips into negative territory, another sign of the cooling market.

The takeaway? Buy in October-November when prices grow slowest and sellers are motivated. Sell in April-May when demand peaks.

QUESTION 6: Missed Opportunities - What We Could Have Made (2015-2025)
Hindsight is 20/20. Let’s see what $100K invested in 2015 would be worth today.
First, we ranked cities by their 10-year multiplier. Brownsville, FL, and Opa-locka, FL, both hit 5.6x, turning $100K into $560K.

Here’s the surprising part: cheaper homes outperformed expensive ones. Under $50K homes returned 2.33x, while $1M+ homes only returned 1.50x. Affordable markets beat luxury.

At the state level, Idaho leads with 2.91x median return, followed by Tennessee and Georgia. The Mountain West and Southeast dominated.

A typical $100K investment became $209K. But if you picked Brownsville? You’d be sitting on $561K.

That’s it, six questions, six prompts, and a complete picture of the US housing market. Now you have the data and the prompts. The only question left is: where will you invest?
Note: This is not financial advice. Always do your own research.