Datasets:
State string | City string | Zipcode string | Price int64 | Area float64 | PPSq float64 | Bedroom int64 | Bathroom float64 | bed_bath_ratio float64 | ConvertedLot float64 | property_type string | is_good_flip int64 | Latitude float64 | Longitude float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AL | Saraland | 36571 | 239,900 | 1,614 | 148.636927 | 4 | 2 | 2 | 0.3805 | Small Family Home | 0 | 30.819534 | -88.09596 |
AL | Robertsdale | 36567 | 259,900 | 1,800 | 144.388889 | 3 | 2 | 1.5 | 3.2 | Small Family Home | 1 | 30.590004 | -87.580376 |
AL | Gulf Shores | 36542 | 342,500 | 1,250 | 274 | 2 | 2 | 1 | null | Townhouse | 0 | 30.284956 | -87.74792 |
AL | Chelsea | 35043 | 335,000 | 2,224 | 150.629496 | 3 | 3 | 1 | 0.26 | Small Family Home | 0 | 33.357986 | -86.6087 |
AL | Huntsville | 35811 | 250,000 | 1,225 | 204.081633 | 3 | 2 | 1.5 | null | Townhouse | 0 | 34.775517 | -86.4407 |
AL | Montgomery | 36117 | 151,000 | 1,564 | 96.547315 | 3 | 2 | 1.5 | 0.2 | Small Family Home | 1 | 32.372746 | -86.165115 |
AL | Boaz | 35957 | 239,000 | 1,717 | 139.196273 | 3 | 2 | 1.5 | 0.38 | Small Family Home | 0 | 34.210014 | -86.13669 |
AL | Albertville | 35950 | 249,900 | 1,674 | 149.283154 | 3 | 2 | 1.5 | 0.344353 | Small Family Home | 0 | 34.2754 | -86.21792 |
AL | Mobile | 36619 | 295,000 | 2,190 | 134.703196 | 3 | 3 | 1 | 0.3443 | Small Family Home | 0 | 30.595074 | -88.20307 |
AL | Madison | 35756 | 524,900 | 3,030 | 173.234323 | 4 | 3 | 1.333333 | 0.34 | Large Family Home | 0 | 34.755985 | -86.86592 |
AL | Huntsville | 35802 | 199,000 | 2,099 | 94.807051 | 2 | 3 | 0.666667 | null | Small Family Home | 1 | 34.691204 | -86.565834 |
AL | Mobile | 36607 | 150,000 | 1,194 | 125.628141 | 3 | 2 | 1.5 | 0.1971 | Townhouse | 0 | 30.693125 | -88.087814 |
AL | Fort Mitchell | 36856 | 285,000 | 2,094 | 136.103152 | 4 | 2 | 2 | 0.34 | Small Family Home | 0 | 32.27287 | -84.980064 |
AL | Myrtlewood | 36763 | 145,000 | 800 | 181.25 | 3 | 1 | 3 | 0.53 | Condo/Small Property | 0 | 32.513927 | -87.83505 |
AL | Brewton | 36426 | 50,439 | 2,451 | 20.578947 | 3 | 3 | 1 | 0.2583 | Small Family Home | 1 | 31.12658 | -87.05359 |
AL | Montgomery | 36109 | 169,000 | 2,196 | 76.958106 | 3 | 2 | 1.5 | 0.61 | Small Family Home | 0 | 32.39595 | -86.269714 |
AL | Semmes | 36575 | 160,000 | 1,100 | 145.454545 | 3 | 1 | 3 | 1 | Townhouse | 1 | 30.774414 | -88.257675 |
AL | Irvington | 36544 | 139,900 | 2,285 | 61.225383 | 5 | 3 | 1.666667 | 1.1772 | Small Family Home | 1 | 30.455751 | -88.242485 |
AL | Mulga | 35118 | 79,900 | 1,410 | 56.666667 | 3 | 2 | 1.5 | 0.34 | Townhouse | 1 | 33.524075 | -87.00953 |
AL | Red Level | 36474 | 175,000 | 1,783 | 98.149187 | 3 | 2 | 1.5 | 1 | Small Family Home | 0 | 31.39427 | -86.60098 |
AL | Grand Bay | 36541 | 148,000 | 2,252 | 65.719361 | 3 | 2 | 1.5 | 0.4501 | Small Family Home | 1 | 30.481138 | -88.352 |
AL | Mobile | 36617 | 164,000 | 3,036 | 54.018445 | 6 | 4 | 1.5 | 0.141 | Large Family Home | 1 | 30.702614 | -88.08904 |
AL | Birmingham | 35211 | 199,000 | 2,760 | 72.101449 | 3 | 3 | 1 | 0.35 | Large Family Home | 1 | 33.448425 | -86.87966 |
AL | Henagar | 35978 | 194,500 | 1,420 | 136.971831 | 4 | 2 | 2 | 0.8 | Townhouse | 0 | 34.649124 | -85.71751 |
AL | Birmingham | 35218 | 69,000 | 1,044 | 66.091954 | 3 | 2 | 1.5 | 0.18 | Townhouse | 1 | 33.506554 | -86.89646 |
AL | Mobile | 36695 | 240,000 | 1,823 | 131.651125 | 3 | 2 | 1.5 | 0.2 | Small Family Home | 0 | 30.6471 | -88.2378 |
AL | Russellville | 35654 | 215,000 | 4,690 | 45.842217 | 6 | 4 | 1.5 | 1 | Large Family Home | 1 | 34.50726 | -87.7332 |
AL | Scottsboro | 35768 | 149,900 | 1,558 | 96.213094 | 4 | 2 | 2 | 0.49 | Small Family Home | 1 | 34.65146 | -86.03795 |
AL | Huntsville | 35810 | 219,000 | 1,532 | 142.950392 | 3 | 2 | 1.5 | 0.264187 | Small Family Home | 0 | 34.750492 | -86.62149 |
AL | Fairhope | 36532 | 409,800 | 2,410 | 170.041494 | 4 | 3 | 1.333333 | 0.27 | Small Family Home | 0 | 30.504227 | -87.874535 |
AL | Phenix City | 36867 | 150,000 | 1,188 | 126.262626 | 3 | 2 | 1.5 | 0.17 | Townhouse | 1 | 32.472347 | -85.009224 |
AL | Meridianville | 35759 | 285,000 | 1,679 | 169.743895 | 3 | 2 | 1.5 | 0.15 | Small Family Home | 0 | 34.87313 | -86.58187 |
AL | Decatur | 35601 | 214,900 | 1,308 | 164.296636 | 3 | 1 | 3 | 0.27 | Townhouse | 0 | 34.57727 | -86.95213 |
AL | Remlap | 35133 | 180,000 | 1,600 | 112.5 | 2 | 2 | 1 | 4.87 | Small Family Home | 0 | 33.78361 | -86.630005 |
AL | Mobile | 36618 | 175,000 | 1,296 | 135.030864 | 3 | 2 | 1.5 | 0.1016 | Townhouse | 0 | 30.717815 | -88.147285 |
AL | Fort Mitchell | 36856 | 312,000 | 3,051 | 102.261554 | 5 | 4 | 1.25 | 0.35 | Large Family Home | 1 | 32.27377 | -84.99826 |
AL | Mobile | 36608 | 150,000 | 1,598 | 93.867334 | 4 | 5 | 0.8 | 0.426 | Small Family Home | 1 | 30.70528 | -88.17934 |
AL | Huntsville | 35803 | 275,000 | 1,471 | 186.947655 | 3 | 2 | 1.5 | 0.28 | Townhouse | 0 | 34.621323 | -86.57433 |
AL | Birmingham | 35222 | 335,000 | 1,175 | 285.106383 | 3 | 2 | 1.5 | 0.25 | Townhouse | 0 | 33.51739 | -86.76976 |
AL | Haleyville | 35565 | 179,900 | 1,450 | 124.068966 | 3 | 2 | 1.5 | 0.385675 | Townhouse | 0 | 34.23136 | -87.618965 |
AL | Opelika | 36804 | 284,900 | 1,825 | 156.109589 | 4 | 3 | 1.333333 | 0.25 | Small Family Home | 0 | 32.603745 | -85.333275 |
AL | Dothan | 36301 | 143,000 | 1,458 | 98.079561 | 3 | 1 | 3 | 0.353765 | Townhouse | 1 | 31.201424 | -85.413605 |
AL | Tuscaloosa | 35405 | 159,900 | 1,444 | 110.734072 | 3 | 2 | 1.5 | null | Townhouse | 1 | 33.15471 | -87.50979 |
AL | Dothan | 36305 | 199,900 | 1,375 | 145.381818 | 3 | 2 | 1.5 | 0.25 | Townhouse | 0 | 31.2081 | -85.44741 |
AL | Jasper | 35504 | 99,700 | 2,666 | 37.396849 | 3 | 2 | 1.5 | 4.8 | Large Family Home | 1 | 33.981796 | -87.188896 |
AL | Montgomery | 36117 | 150,000 | 2,361 | 63.532402 | 3 | 4 | 0.75 | 0.68 | Small Family Home | 1 | 32.35633 | -86.179306 |
AL | Opelika | 36801 | 456,789 | 2,307 | 198.0013 | 4 | 3 | 1.333333 | 1.86 | Small Family Home | 0 | 32.657303 | -85.42706 |
AL | Huntsville | 35803 | 305,000 | 1,999 | 152.576288 | 4 | 2 | 2 | 0.29 | Small Family Home | 0 | 34.63312 | -86.536224 |
AL | Alabaster | 35007 | 279,900 | 1,880 | 148.882979 | 3 | 3 | 1 | 0.27 | Small Family Home | 0 | 33.22804 | -86.83084 |
AL | Chelsea | 35043 | 279,000 | 1,425 | 195.789474 | 3 | 2 | 1.5 | 1.82 | Townhouse | 0 | 33.354427 | -86.59509 |
AL | Madison | 35756 | 365,000 | 2,354 | 155.055225 | 4 | 3 | 1.333333 | 0.21 | Small Family Home | 0 | 34.69121 | -86.78906 |
AL | Mobile | 36618 | 135,000 | 2,077 | 64.997593 | 4 | 2 | 2 | 0.0477 | Small Family Home | 1 | 30.721144 | -88.2097 |
AL | Mobile | 36604 | 235,000 | 1,490 | 157.718121 | 3 | 1 | 3 | 0.1576 | Townhouse | 0 | 30.681978 | -88.07807 |
AL | Selma | 36701 | 54,900 | 2,263 | 24.259832 | 3 | 1 | 3 | 0.154 | Small Family Home | 1 | 32.40969 | -87.03237 |
AL | Fultondale | 35068 | 215,000 | 2,535 | 84.812623 | 3 | 3 | 1 | 0.37 | Large Family Home | 1 | 33.622974 | -86.81058 |
AL | Odenville | 35120 | 221,900 | 1,273 | 174.312647 | 3 | 2 | 1.5 | 0.2 | Townhouse | 0 | 33.642292 | -86.48792 |
AL | Mobile | 36606 | 79,000 | 1,000 | 79 | 3 | 1 | 3 | 0.0767 | Townhouse | 1 | 30.66862 | -88.09325 |
AL | Huntsville | 35802 | 399,900 | 2,875 | 139.095652 | 4 | 3 | 1.333333 | 0.46 | Large Family Home | 0 | 34.660194 | -86.5568 |
AL | Alabaster | 35007 | 240,000 | 1,808 | 132.743363 | 3 | 2 | 1.5 | 0.47 | Small Family Home | 0 | 33.257935 | -86.80834 |
AL | Gordo | 35466 | 225,000 | 1,592 | 141.331658 | 3 | 2 | 1.5 | 0.18 | Small Family Home | 0 | 33.317497 | -87.891014 |
AL | Haleyville | 35565 | 149,900 | 1,688 | 88.803318 | 3 | 2 | 1.5 | 0.42 | Small Family Home | 0 | 34.243496 | -87.60556 |
AL | Hazel Green | 35750 | 135,000 | 1,976 | 68.319838 | 3 | 2 | 1.5 | 0.56 | Small Family Home | 1 | 34.97667 | -86.65006 |
AL | Madison | 35756 | 575,000 | 3,263 | 176.218204 | 4 | 4 | 1 | 0.33 | Large Family Home | 0 | 34.700115 | -86.793274 |
AL | Huntsville | 35810 | 225,000 | 1,798 | 125.139043 | 3 | 2 | 1.5 | 0.19123 | Small Family Home | 0 | 34.76469 | -86.64163 |
AL | Mobile | 36604 | 489,000 | 2,455 | 199.185336 | 3 | 2 | 1.5 | 0.1739 | Small Family Home | 0 | 30.685225 | -88.0755 |
AL | Bay Minette | 36507 | 209,900 | 1,859 | 112.910167 | 3 | 2 | 1.5 | 3 | Small Family Home | 1 | 30.810877 | -87.80625 |
AL | Gadsden | 35904 | 349,900 | 2,542 | 137.647522 | 3 | 3 | 1 | 1.43 | Large Family Home | 0 | 34.057 | -86.01735 |
AL | Duncanville | 35456 | 179,900 | 3,556 | 50.590551 | 4 | 3 | 1.333333 | 2 | Large Family Home | 1 | 33.118427 | -87.47632 |
AL | Opelika | 36804 | 373,000 | 2,499 | 149.259704 | 4 | 3 | 1.333333 | 0.42 | Small Family Home | 0 | 32.601738 | -85.4107 |
AL | Huntsville | 35816 | 179,000 | 1,320 | 135.606061 | 3 | 2 | 1.5 | 1 | Townhouse | 0 | 34.7451 | -86.612724 |
AL | Birmingham | 35208 | 178,000 | 1,444 | 123.268698 | 3 | 2 | 1.5 | 0.16 | Townhouse | 0 | 33.490116 | -86.890594 |
AL | Mobile | 36695 | 249,900 | 2,954 | 84.597156 | 4 | 3 | 1.333333 | 0.4635 | Large Family Home | 1 | 30.64961 | -88.21921 |
AL | Mobile | 36605 | 129,900 | 1,505 | 86.312292 | 5 | 4 | 1.25 | 0.1836 | Small Family Home | 1 | 30.6478 | -88.08221 |
AL | Foley | 36535 | 229,900 | 2,494 | 92.181235 | 4 | 2 | 2 | 0.92 | Small Family Home | 1 | 30.336601 | -87.695 |
AL | Mobile | 36608 | 122,000 | 1,034 | 117.988395 | 4 | 2 | 2 | 0.1825 | Townhouse | 0 | 30.71276 | -88.191345 |
AL | Northport | 35475 | 329,900 | 2,349 | 140.442742 | 4 | 2 | 2 | null | Small Family Home | 0 | 33.303703 | -87.594124 |
AL | York | 36925 | 139,900 | 2,295 | 60.958606 | 4 | 2 | 2 | 0.86 | Small Family Home | 0 | 32.484257 | -88.31267 |
AL | Dothan | 36303 | 269,000 | 2,472 | 108.81877 | 5 | 3 | 1.666667 | 0.457989 | Small Family Home | 0 | 31.257858 | -85.4552 |
AL | Perdido Beach | 36530 | 189,000 | 1,860 | 101.612903 | 3 | 2 | 1.5 | 0.455 | Small Family Home | 1 | 30.347391 | -87.501076 |
AL | Helena | 35080 | 274,800 | 2,190 | 125.479452 | 3 | 2 | 1.5 | 0.4 | Small Family Home | 0 | 33.27857 | -86.830025 |
AL | Opelika | 36804 | 355,000 | 2,508 | 141.547049 | 4 | 3 | 1.333333 | 0.2 | Large Family Home | 0 | 32.615627 | -85.38071 |
AL | Gulf Shores | 36542 | 422,000 | 1,265 | 333.596838 | 3 | 3 | 1 | 0.1435 | Townhouse | 0 | 30.232487 | -87.977135 |
AL | Mobile | 36695 | 249,900 | 1,888 | 132.362288 | 3 | 3 | 1 | 0.4007 | Small Family Home | 0 | 30.635536 | -88.270996 |
AL | Chelsea | 35043 | 329,500 | 1,914 | 172.15256 | 3 | 2 | 1.5 | 0.21 | Small Family Home | 0 | 33.360428 | -86.623604 |
AL | Mobile | 36619 | 249,900 | 1,807 | 138.295517 | 4 | 2 | 2 | 0.3432 | Small Family Home | 0 | 30.582676 | -88.18447 |
AL | Bay Minette | 36507 | 159,900 | 1,439 | 111.118833 | 3 | 2 | 1.5 | 0.33 | Townhouse | 1 | 30.86652 | -87.78434 |
AL | Madison | 35758 | 674,900 | 3,923 | 172.036707 | 5 | 5 | 1 | 0.4 | Large Family Home | 0 | 34.700047 | -86.76704 |
AL | Foley | 36535 | 240,000 | 1,361 | 176.340926 | 3 | 2 | 1.5 | 0.233 | Townhouse | 0 | 30.404423 | -87.67775 |
AL | Prattville | 36066 | 170,000 | 1,450 | 117.241379 | 3 | 2 | 1.5 | 0.42 | Townhouse | 0 | 32.461464 | -86.43951 |
AL | Montgomery | 36107 | 159,900 | 2,238 | 71.447721 | 4 | 3 | 1.333333 | 0.172176 | Small Family Home | 1 | 32.38716 | -86.27291 |
AL | Montgomery | 36108 | 85,000 | 1,176 | 72.278912 | 3 | 2 | 1.5 | 0.17 | Townhouse | 1 | 32.3066 | -86.33512 |
AL | Athens | 35613 | 268,000 | 1,927 | 139.076284 | 2 | 2 | 1 | null | Small Family Home | 0 | 34.797318 | -86.92516 |
AL | Mobile | 36693 | 164,900 | 1,319 | 125.018954 | 3 | 2 | 1.5 | 0.2308 | Townhouse | 0 | 30.637695 | -88.179756 |
AL | Pinson | 35126 | 240,000 | 2,430 | 98.765432 | 4 | 3 | 1.333333 | 0.02 | Small Family Home | 1 | 33.768818 | -86.62087 |
AL | Monroeville | 36460 | 165,000 | 1,840 | 89.673913 | 3 | 2 | 1.5 | null | Small Family Home | 0 | 31.507168 | -87.31117 |
AL | Boaz | 35957 | 249,900 | 1,300 | 192.230769 | 2 | 2 | 1 | null | Townhouse | 0 | 34.201015 | -86.16064 |
AL | Enterprise | 36330 | 104,900 | 1,025 | 102.341463 | 3 | 1 | 3 | 1.4 | Townhouse | 0 | 31.317612 | -85.91449 |
AL | Huntsville | 35811 | 600,000 | 3,510 | 170.940171 | 4 | 4 | 1 | 0.48 | Large Family Home | 0 | 34.79965 | -86.48301 |
AL | Birmingham | 35206 | 175,000 | 1,438 | 121.696801 | 3 | 1 | 3 | 0.16 | Townhouse | 0 | 33.553673 | -86.715324 |
AL | Evergreen | 36401 | 93,000 | 3,078 | 30.214425 | 5 | 2 | 2.5 | 0.71 | Large Family Home | 1 | 31.430414 | -86.95541 |
π₯ Project Walkthrough Video
π FlipFinder USA
Identifying Undervalued Real Estate Investment Opportunities Across the United States
Author: Dan | HuggingFace: @dant555
π Project Overview
This project transforms a general-purpose Zillow real estate dataset into a focused investment screening tool. Using Exploratory Data Analysis (EDA), I engineered a binary target variable (is_good_flip) to identify properties that are genuinely underpriced relative to their immediate local market - potential candidates for a buy-renovate-sell (flip) investment strategy.
β The Question I Want to Answer
Should I buy this property or not (is it a good real estate flip opportunity)?
π¦ Dataset
- Source: United States House Listings: Zillow Extract 2023 - Kaggle
- Raw size: 24,000+ rows Γ 16 features
- Cleaned size: ~19,877 rows Γ 14 features (11 from Original + 3 New)
- Type: Numeric tabular data
Key Features
| Feature | Type | Description |
|---|---|---|
| State | Categorical | 2-letter US state abbreviation (e.g. CA, NY, TX) |
| City | Categorical | City in which the property is located |
| Zipcode | Categorical | 5-digit US ZIP code, stored as string to preserve leading zeros |
| Price | Numerical | Listed asking price of the property in USD |
| Area | Numerical | Interior living area measured in square feet |
| PPSq | Numerical | Price per square foot, calculated as Price / Area |
| Bedroom | Numerical | Number of bedrooms in the property |
| Bathroom | Numerical | Number of bathrooms, including half baths (e.g. 1.5, 2.5) |
| bed_bath_ratio | Numerical | Ratio of bedrooms to bathrooms, proxy for layout density |
| ConvertedLot | Numerical | Lot size in acres, missing for many urban/condo properties |
| property_type | Categorical | Size-based category: Condo/Small Property, Townhouse, Small Family Home, Large Family Home |
| is_good_flip | Categorical | Binary target variable: 1 = Good Flip Opportunity, 0 = Not a Good Flip |
| Latitude | Numerical | Geographic latitude coordinate for spatial mapping |
| Longitude | Numerical | Geographic longitude coordinate for spatial mapping |
π― Target Variable - is_good_flip
Since the dataset has no built-in classification target, I engineered my own binary label. My first instinct was to use Zillow's zestimate column as the benchmark - but 8,594 values were missing, making it unreliable.
Instead, is_good_flip is defined as follows:
- Calculate each property's Price Per Square Foot (PPSq)
- Group by 5-digit ZIP + Bedroom count to find the local market median (minimum 5 properties)
- Fall back to 5-digit ZIP only if the primary group is too small
- Fall back to 3-digit ZIP prefix if still too small
- Label 1 (Good Flip) if PPSq is β₯ 15% below the local median
- Label 0 (Not a Good Flip) otherwise
27.3% of properties were labeled as good flip opportunities.
π§Ή Section 2: Data Wrangling
- Dropped columns with excessive missing values (
MarketEstimate,RentEstimate) and redundant columns (LotArea,LotUnit,Street) - Dropped rows with missing values in 8 critical columns:
Price,Area,PPSq,Bedroom,Bathroom,Zipcode,Latitude,Longitude - Restored East Coast ZIP codes with leading zeros (e.g.
02886) lost during float conversion - Validated all coordinates within US geographic boundaries (including Alaska)
- Applied 7 domain-specific filters to focus on realistic flip candidates:
- Price: $50,000 - $2,000,000
- Area: 400 - 5,000 sqft
- PPSq: $10 - $2,000
- Bedrooms: 1 - 8
- Bathrooms: 1 - 5
- Bed/Bath ratio: β€ 4:1
- Lot size: 0.01 - 5 acres
Before cleaning - outliers clearly visible across all features:

After cleaning - distributions are tighter and more meaningful:

π Section 3: Data Transformation
Both Price and PPSq were identified as strongly right-skewed distributions. To normalize them, I applied a log transformation using np.log1p, storing the results as log_Price and log_PPSq for potential future modeling use. All EDA and business analyses continue to use the original dollar values for interpretability.
βοΈ Section 4: Feature Engineering
To enrich the dataset for analysis, I engineered two new columns. The binary target variable is_good_flip is fully described in the Target Variable section above. Additionally, I created property_type: a categorical column classifying each property into one of four size-based categories based on living area: Condo/Small Property (under 800 sqft), Townhouse (800-1,500 sqft), Small Family Home (1,500-2,500 sqft), and Large Family Home (above 2,500 sqft).
π Section 5: Descriptive Statistics
To understand relationships between features, I generated a correlation heatmap across all numeric variables including the target variable is_good_flip. This revealed that no single feature has a strong linear correlation with the target - suggesting the flip signal is driven by a combination of variables rather than any one feature alone.
The weak individual correlations with
is_good_flipare not a problem - they reflect that flip opportunity is a threshold-based, hyper-local signal that linear correlation cannot capture.
π Section 6: Exploratory Visualization
Price Distribution: The listing price distribution is strongly right-skewed, with most properties clustered between $100K and $600K. The median price of $335,000 sits well below the mean of $390,550, confirming the right skew caused by a tail of higher-priced properties.
The peak of the distribution falls around $250K-$300K - the sweet spot for realistic flip investment candidates.
Properties by State: The waffle chart displays all 49 represented US states, with each square colored by its good flip rate. The dataset is well balanced across states, with between 280 and 480 properties per state.
Flip rates range from 17.5% to 37.6% across states - a 20 percentage point spread confirming that geography is a meaningful variable worth investigating further.
π Section 7: Bivariate Exploration
PPSq Distribution by Flip Status: I compared the price per square foot distribution between good flip and non-flip properties to verify the target variable is working correctly and that the two groups are meaningfully separated.
Good flip properties have a median PPSq of $119/sqft vs $206/sqft for non-flips - a clear and significant separation confirming the target variable is well-engineered.
Feature Distributions by Flip Status: I examined how Price, Area, Bedroom, and Bathroom distributions differ between good flip and non-flip properties using violin plots to show the full distribution shape of each group.
Good flips have a significantly lower median price ($239,900 vs $365,000) and slightly larger area (2,040 vs 1,750 sqft). Bedroom and bathroom counts are identical across both groups - confirming layout alone does not drive the flip signal.
Bed/Bath Ratio & Flip Rate: I examined whether the bedroom-to-bathroom ratio - a proxy for layout density and renovation age - is associated with higher flip rates across five ratio categories.
Dense layouts with a ratio above 3.0 show a 53.7% flip rate - nearly double the dataset average of 27.3% - confirming that older, under-renovated homes are systematically underpriced in their local markets.
Threshold Validation: To verify that the 15% threshold used to define is_good_flip is well-calibrated and not arbitrary, I visualized the actual PPSq deviation from local median for both groups.
The typical good flip sits at -29.8% below its local median - nearly double the 15% minimum - confirming the threshold is conservative and creates a clean, meaningful separation between the two classes.
β Section 8: Multivariate Exploration & Research Questions
Q1 - Which ZIP codes have the highest concentration of good flip opportunities?
I calculated the flip rate for every ZIP code with at least 10 properties to ensure statistical reliability, then ranked the top 15 performers.
ZIP code 58554 (ND) leads at 47.1%, followed by 19975 (DE) and 02886 (RI) both at 46.2%. Every ZIP code in the top 15 exceeds the dataset average by at least 13 percentage points - confirming that micro-market selection is critical for investors.
Q2 - Which states offer the most good flip opportunities?
I mapped the good flip rate for all 49 states on an interactive choropleth map to reveal geographic clustering patterns that a table or bar chart cannot convey.
Maine (37.6%), Oregon (33.8%), and Vermont (33.6%) lead all states. Nevada (17.5%) is the weakest market. A clear Northeast and Pacific Northwest vs Sun Belt divide emerges - Sun Belt states that experienced rapid price appreciation show the lowest flip rates.
Q3 - What does a typical good flip opportunity look like?
I used a 2D KDE contour plot to map the concentration of good flip opportunities in the Price vs Area space, revealing where flip candidates cluster most densely.
Good flip opportunities cluster tightly around $237,000 and ~2,000 sqft. Properties above $500K become increasingly rare as flip candidates regardless of size or layout - confirming that good flips are concentrated in the affordable, mid-size segment of the market.
Q4 - Which layout is most associated with good flip opportunities?
I calculated the good flip rate for each property type category to understand whether property size influences the likelihood of a listing being underpriced relative to its local market.
Large Family Homes above 2,500 sqft show the highest flip rate at 37.2% - nearly three times higher than Condo/Small Properties at 13.0%. Larger, older homes with dense bedroom layouts are the prime flip targets, likely because they require more renovation capital which suppresses buyer competition.
πΊοΈ Geographic Distribution of Good Flip Opportunities
I plotted every good flip property on an interactive US map, encoding PPSq as color and listing price as bubble size, to provide a direct investment screening tool.
Good flip opportunities exist nationwide. Dark green dots (low PPSq) dominate the Midwest and South, representing the most affordable entry points. The single large red dot on the West Coast captures a rare high-PPSq flip in an expensive urban market.
π Section 9: Communication of Insights
Finding 1 - Geography is the strongest driver The most powerful predictor of flip opportunity is geographic location. Maine leads all states at 37.6% while Nevada sits at the bottom at just 17.5% - a 20 percentage point gap. The Northeast and Pacific Northwest consistently outperform the Sun Belt, where recent price appreciation has reduced the availability of underpriced listings. At the micro-market level, ZIP code 58554 (ND) leads all areas at 47.1%, followed by 19975 (DE) and 02886 (RI) both at 46.2%. Every ZIP code in the top 15 exceeds the dataset average by at least 13 percentage points, confirming that micro-market selection is as important as state-level selection.
Finding 2 - Property size and type drive flip rate There is a clear and consistent relationship between property size and flip opportunity rate. Large Family Homes above 2,500 sqft have a flip rate of 37.2% - nearly three times higher than Condo/Small Properties at 13.0%, with Townhouses at 19.6% and Small Family Homes at 28.3% falling in between. Larger properties are more likely to be underpriced relative to their local market because they require more renovation capital, suppressing buyer competition and listing price below the local median.
Finding 3 - Layout efficiency is an independent flip signal Beyond size, the bedroom-to-bathroom ratio adds a separate and even stronger signal. Dense layouts with a ratio above 3.0 reach a 53.7% flip rate - nearly double the dataset average - independently of property size. This ratio captures the renovation age and efficiency of a property in a way that size alone cannot. Properties with many bedrooms relative to bathrooms are hallmarks of older, under-renovated homes that have not kept pace with modern buyer expectations, creating systematic pricing gaps relative to their local market.
Finding 4 - The flip signal is threshold-based, not linear
The weak individual correlations observed in the heatmap are explained by the fact that is_good_flip is driven by the combination of price, area, and local market context - not by any single feature alone. Good flips cluster tightly below $237,000 and around 1,996 sqft, with a median PPSq of $119/sqft compared to $206/sqft for non-flips. The concentration is tight and well-defined, confirming that flip opportunities occupy a specific and narrow price-size window in the market.
Finding 5 - Price is the strongest individual separator Among all individual features, listing price shows the clearest separation between good flip and non-flip properties. Good flip properties have a median price of $239,900 compared to $365,000 for non-flips - a difference of over $125,000. This tells investors that the typical good flip opportunity is concentrated in the affordable segment of the market, and properties priced above $500,000 become increasingly rare as flip candidates regardless of their size or layout.
Finding 6 - Lot size is not a predictor of flip opportunity Unlike price, size, and layout - lot size shows virtually no difference between good flip and non-flip properties. Both groups share an identical median lot size of 0.25 acres and their distributions are nearly indistinguishable. This is a valuable null finding - it tells investors that filtering by lot size is not a useful screening criterion when searching for flip opportunities, and that their focus should remain on price per square foot relative to the local market median.
β οΈ Limitations
- Dataset captures listing prices, not final sale prices
- Hawaii is not represented in this extract
- Missing lot sizes for many urban/condo properties
- Zestimate had too many missing values to use as benchmark
- Dataset is a static 2023 snapshot - market conditions may have changed
- Local medians are based on dataset sample, not complete Zillow database
π Repository Contents
| File | Description |
|---|---|
| flipfinder_usa_cleaned.csv | Cleaned dataset ready for analysis |
| Dan's_Assignment_1_EDA_&_Dataset.ipynb | Full EDA notebook with all code and explanations |
| Plots/ | Visualization images used in this README |
π How to Run
- Open the
.ipynbfile in Google Colab or Jupyter Notebook - Upload your
kaggle.jsoncredentials file when prompted - Run all cells from top to bottom
- All visualizations and findings will be generated automatically
Project by Dan | FlipFinder USA | 2025
- Downloads last month
- 338











