import%20marimo%0A%0A__generated_with%20%3D%20%220.23.9%22%0Aapp%20%3D%20marimo.App(width%3D%22medium%22)%0A%0A%0A%40app.cell%0Adef%20_()%3A%0A%20%20%20%20import%20marimo%20as%20mo%0A%0A%20%20%20%20return%20(mo%2C)%0A%0A%0A%40app.cell%0Adef%20_(mo)%3A%0A%20%20%20%20mo.md(r%22%22%22%0A%20%20%20%20%23%20St.%20Petersburg%20flood%20%26%20housing%20analysis%20%E2%80%94%20overview%0A%0A%20%20%20%20A%20parcel-level%20read%20on%20**where%20to%20buy%20in%20St.%20Pete**%20under%20Florida's%20flood%20and%20wind%0A%20%20%20%20risk%20%E2%80%94%20and%2C%20downstream%20of%20that%20question%2C%20a%20full%20**flood%20catastrophe%20loss%20model**%20for%0A%20%20%20%20the%20city.%20This%20is%20the%20index%3A%20the%20notebooks%20are%20numbered%20in%20reading%20order%2C%20and%20each%0A%20%20%20%20section%20below%20says%20what%20it%20asks%2C%20what%20it%20found%2C%20and%20why%20it%20comes%20where%20it%20does.%0A%0A%20%20%20%20%3E%20Open%20the%20**exported%20HTML%20bundle**%20(%60scripts%2Fexport_notebooks.py%60)%20for%20clickable%20links.%0A%0A%20%20%20%20%23%23%20The%20decision%20frame%0A%0A%20%20%20%20Hard%20disqualifiers%20(project%20domain%20rules)%3A%20FEMA%20flood%20zone%20other%20than%20X%3B%20hurricane%20evac%0A%20%20%20%20zones%20A%E2%80%93D%3B%20roof%20%3E%2020%20yr%3B%20Federal%20Pacific%20%2F%20Zinsco%20panels%3B%20frame%20construction%20carries%0A%20%20%20%20materially%20higher%20insurance%20than%20block.%20**Insurance%20is%20the%20dominant%20financial%20variable**%2C%0A%20%20%20%20and%20flooding%20is%20what%20drives%20it%20%E2%80%94%20so%20most%20of%20this%20deck%20is%20about%20pricing%20flood%20risk.%0A%0A%20%20%20%20%23%23%20The%20arc%20(why%20the%20notebooks%20are%20ordered%20the%20way%20they%20are)%0A%0A%20%20%20%20The%20deck%20walks%20from%20*screening*%20to%20*market%20behavior*%20to%20*physical%20loss*%2C%20each%20step%0A%20%20%20%20answering%20a%20doubt%20the%20previous%20one%20raised%3A%0A%0A%20%20%20%201.%20**How%20many%20houses%20even%20clear%20the%20bar%2C%20and%20where%3F**%20%E2%86%92%20%6001_criteria_funnel%60%0A%20%20%20%202.%20**What%20does%20the%20risk%20landscape%20look%20like%20across%20the%20city%3F**%20%E2%86%92%20%6002_flood_wind_risk%60%2C%0A%20%20%20%20%20%20%20%6003_social_vulnerability%60%0A%20%20%20%203.%20**Did%20the%20market%20actually%20price%20flood%20risk%20after%202024%3F**%20%E2%86%92%20%6004_parcel_flood_penalty%60%2C%0A%20%20%20%20%20%20%20%6005_blockgroup_mechanism%60%2C%20%6006_ridge_decoupling%60%0A%20%20%20%204.%20**Were%20the%202024%20losses%20really%20an%20elevation%20story%3F**%20%E2%86%92%20%6007_elevation_claims%60%0A%20%20%20%205.%20**Can%20we%20model%20the%20loss%20from%20first%20principles%3F**%20%E2%86%92%20%6008_catmodel_validation%60%20(the%0A%20%20%20%20%20%20%20centerpiece%3A%20a%20four-module%20flood%20cat-model%20that%20*predicts*%20the%20same%20losses%20the%0A%20%20%20%20%20%20%20earlier%20notebooks%20measured)%0A%0A%20%20%20%20The%20through-line%3A%20a%20personal%20%22where%20do%20I%20buy%22%20question%20kept%20pointing%20at%20one%20variable%20%E2%80%94%0A%20%20%20%20**elevation%20%2F%20flood%20exposure**%20%E2%80%94%20until%20it%20was%20worth%20building%20a%20real%20catastrophe%20model%0A%20%20%20%20around%20it.%20Notebooks%2004%E2%80%9307%20establish%20the%20signal%20empirically%3B%20notebook%2008%20reproduces%20it%0A%20%20%20%20from%20physics.%0A%0A%20%20%20%20%23%23%20Headline%20findings%0A%0A%20%20%20%20-%20**Criteria%20funnel**%20%E2%80%94%20~27%25%20of%20St-Pete%20houses%20clear%20block%20%2B%20Zone%20X%20%2B%20slab%20%2B%20%E2%89%A520%20ft%3B%0A%20%20%20%20%20%2058%25%20on%20the%2033713%20ridge%20vs%20~43%25%20on%20the%20lower%20west%20side.%0A%20%20%20%20-%20**Flood%20penalty%20(F21)**%20%E2%80%94%20a%20~9%E2%80%9310%25%20within-neighborhood%20price%20hit%20for%20flood-zone%20houses%0A%20%20%20%20%20%20after%20Helene%2FMilton%20(2024)%2C%20confound-controlled%20with%20parcel%20repeat-sales.%0A%20%20%20%20-%20**Designation%20vs%20realized%20water%20(F22)**%20%E2%80%94%20realized%20NFIP%20claims%20slightly%20edge%20out%20FEMA%0A%20%20%20%20%20%20designation%20in%20pricing%20the%20hit%3B%20the%20two%20are%20highly%20collinear.%0A%20%20%20%20-%20**Ridge%20resilience%20(F11%2FF14%2FF16)**%20%E2%80%94%20the%20ridge%20is%20%22dry-resilient%2C%22%20not%20uniquely%20special.%0A%20%20%20%20-%20**Elevation%20gradient%20(new)**%20%E2%80%94%20in%20realized%202024%20claims%2C%20a%20block%20group's%20low-lying%0A%20%20%20%20%20%20elevation%20predicts%20losses%20(%CF%81%20%E2%89%88%20%E2%88%920.77)%20and%20the%20signal%20survives%20take-up%20normalization%20%E2%80%94%0A%20%20%20%20%20%20a%20model-free%20twin%20of%20the%20cat-model's%20result.%0A%20%20%20%20-%20**Cat-model%20(Phase%201)**%20%E2%80%94%20~18.7k%20of%2082.7k%20parcels%20flood%2C%20~%5C%242.6B%20modeled%20NFIP%20loss%2C%0A%20%20%20%20%20%20the%20dry%20ridge%20contributes%20%E2%89%88%20%5C%240%3B%20modeled-vs-realized%20reconciles%20cleanly%20to%20NFIP%20take-up.%0A%0A%20%20%20%20%23%23%20Notebooks%0A%0A%20%20%20%201.%20**%5BCriteria%20funnel%5D(01_criteria_funnel.html)**%20%E2%80%94%20how%20many%20houses%20clear%20the%20bar%2C%20and%0A%20%20%20%20%20%20%20the%20citywide%20elevation%20landscape.%0A%20%20%20%202.%20**%5BFlood%20%26%20wind%20risk%20landscape%5D(02_flood_wind_risk.html)**%20%E2%80%94%20risk%20distributions%2C%20the%0A%20%20%20%20%20%20%202-D%20risk%20grid%2C%20and%20the%20buildable-share%20map.%0A%20%20%20%203.%20**%5BSocial%20vulnerability%5D(03_social_vulnerability.html)**%20%E2%80%94%20FEMA%20NRI%20SOVI%20mapped%20at%0A%20%20%20%20%20%20%20tract%20grain%20(a%20community%20measure%2C%20distinct%20from%20the%20physical-risk%20layers).%0A%20%20%20%204.%20**%5BParcel%20flood%20penalty%20(F21)%5D(04_parcel_flood_penalty.html)**%20%E2%80%94%20within-neighborhood%0A%20%20%20%20%20%20%20repeat-sales%20fixed-effects%20regression.%0A%20%20%20%205.%20**%5BBlock-group%20flood%20mechanism%20(F22)%5D(05_blockgroup_mechanism.html)**%20%E2%80%94%20designation%0A%20%20%20%20%20%20%20vs%20realized%20NFIP%20claims%2C%20head%20to%20head.%0A%20%20%20%206.%20**%5BRidge%20decoupling%5D(06_ridge_decoupling.html)**%20%E2%80%94%20the%20full%20decision-log%20%2B%20findings%0A%20%20%20%20%20%20%20record%20(F1%E2%80%93F22)%20behind%20the%20%22dry%2C%20not%20special%22%20verdict.%0A%20%20%20%207.%20**%5BElevation%20vs%20realized%20claims%5D(07_elevation_claims.html)**%20%E2%80%94%20the%20model-free%202024%0A%20%20%20%20%20%20%20elevation%E2%86%92claims%20gradient%3B%20complement%20to%20the%20cat-model.%0A%20%20%20%208.%20**%5BFlood%20cat-model%20validation%5D(08_catmodel_validation.html)**%20%E2%80%94%20the%20centerpiece%3A%20the%0A%20%20%20%20%20%20%20four-module%20loss%20model%20run%20on%202024%2C%20with%20its%20validation%20ladder%20and%20sensitivity%20sweeps.%0A%0A%20%20%20%20_Scratch%20%2F%20utility%20(not%20part%20of%20the%20narrative%20bundle)%3A%20%60explore.py%60%2C%20%60repl.py%60._%0A%20%20%20%20%22%22%22)%0A%20%20%20%20return%0A%0A%0Aif%20__name__%20%3D%3D%20%22__main__%22%3A%0A%20%20%20%20app.run()%0A
384f0ca1cc59451297f14dc3fd08c242