new analysis and figures and tables

This commit is contained in:
2025-08-14 17:18:26 -07:00
parent 28630e05d1
commit dc275681a9
14 changed files with 1860 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -79,6 +79,14 @@
"spills['geometry'] = gpd.points_from_xy(spills['Longitude'], spills['Latitude'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b8da71fc",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 32,

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,7 @@
spill_type,rurality,median_days,ci_lower_days,ci_upper_days,median_hours
Historical,Rural,0.27497054916409897,0.14521079279143942,0.402150850941176,6.599293179938375
Historical,Suburban,0.35862785862785695,0.14230969134815072,0.5790820406205027,8.607068607068566
Historical,Urban,0.46022418017894584,0.4043955927758729,0.5168359271165858,11.045380324294701
Recent,Rural,0.22033304102748014,0.1595946164017345,0.27709844118835425,5.287992984659523
Recent,Suburban,0.23838516812023614,0.09530264384838895,0.38765632713509646,5.721244034885667
Recent,Urban,0.29898723668702976,0.2219819347255294,0.37490452624458753,7.175693680488714
1 spill_type rurality median_days ci_lower_days ci_upper_days median_hours
2 Historical Rural 0.27497054916409897 0.14521079279143942 0.402150850941176 6.599293179938375
3 Historical Suburban 0.35862785862785695 0.14230969134815072 0.5790820406205027 8.607068607068566
4 Historical Urban 0.46022418017894584 0.4043955927758729 0.5168359271165858 11.045380324294701
5 Recent Rural 0.22033304102748014 0.1595946164017345 0.27709844118835425 5.287992984659523
6 Recent Suburban 0.23838516812023614 0.09530264384838895 0.38765632713509646 5.721244034885667
7 Recent Urban 0.29898723668702976 0.2219819347255294 0.37490452624458753 7.175693680488714

View File

@@ -0,0 +1,7 @@
Period,rurality,median_abs_days,ci_lower_days,ci_upper_days,median_hours,median_pct
2020 and After,Rural,0.07551270918427522,0.0019442568352317586,0.1495096699149845,1.8123050204226052,12.423566035505765
2020 and After,Suburban,0.1443185237187848,0.014505398990406747,0.2621640256744544,3.4636445692508353,34.6698709840626
2020 and After,Urban,0.2910867314901773,0.24390264079546417,0.3413553243429466,6.986081555764255,84.40551641150363
Before 2020,Rural,0.019445736196048558,-0.09807034245553696,0.13342012441761195,0.4666976687051654,2.20523886072146
Before 2020,Suburban,0.020467069010756067,-0.2216216216216229,0.24354828129099937,0.4912096562581456,2.635228848820833
Before 2020,Urban,0.12910256593388225,0.04986927894511647,0.21108430823584592,3.098461582413174,16.054023961309728
1 Period rurality median_abs_days ci_lower_days ci_upper_days median_hours median_pct
2 2020 and After Rural 0.07551270918427522 0.0019442568352317586 0.1495096699149845 1.8123050204226052 12.423566035505765
3 2020 and After Suburban 0.1443185237187848 0.014505398990406747 0.2621640256744544 3.4636445692508353 34.6698709840626
4 2020 and After Urban 0.2910867314901773 0.24390264079546417 0.3413553243429466 6.986081555764255 84.40551641150363
5 Before 2020 Rural 0.019445736196048558 -0.09807034245553696 0.13342012441761195 0.4666976687051654 2.20523886072146
6 Before 2020 Suburban 0.020467069010756067 -0.2216216216216229 0.24354828129099937 0.4912096562581456 2.635228848820833
7 Before 2020 Urban 0.12910256593388225 0.04986927894511647 0.21108430823584592 3.098461582413174 16.054023961309728

View File

@@ -0,0 +1,13 @@
contrast_type,spill_type,Period,rurality,comparison,median,ci_lower,ci_upper,p_value
Period,Historical,,Rural,Before - After,0.27497054916409897,0.14521079279143942,0.402150850941176,0.0
Period,Historical,,Suburban,Before - After,0.35862785862785695,0.14230969134815072,0.5790820406205027,0.001
Period,Historical,,Urban,Before - After,0.46022418017894584,0.4043955927758729,0.5168359271165858,0.0
Period,Recent,,Rural,Before - After,0.22033304102748014,0.1595946164017345,0.27709844118835425,0.0
Period,Recent,,Suburban,Before - After,0.23838516812023614,0.09530264384838895,0.38765632713509646,0.0
Period,Recent,,Urban,Before - After,0.29898723668702976,0.2219819347255294,0.37490452624458753,0.0
SpillType,,2020 and After,Rural,Recent - Historical,0.07551270918427522,0.0019442568352317586,0.1495096699149845,0.045
SpillType,,2020 and After,Suburban,Recent - Historical,0.1443185237187848,0.014505398990406747,0.2621640256744544,0.029
SpillType,,2020 and After,Urban,Recent - Historical,0.2910867314901773,0.24390264079546417,0.3413553243429466,0.0
SpillType,,Before 2020,Rural,Recent - Historical,0.019445736196048558,-0.09807034245553696,0.13342012441761195,0.753
SpillType,,Before 2020,Suburban,Recent - Historical,0.020467069010756067,-0.2216216216216229,0.24354828129099937,0.85
SpillType,,Before 2020,Urban,Recent - Historical,0.12910256593388225,0.04986927894511647,0.21108430823584592,0.002
1 contrast_type spill_type Period rurality comparison median ci_lower ci_upper p_value
2 Period Historical Rural Before - After 0.27497054916409897 0.14521079279143942 0.402150850941176 0.0
3 Period Historical Suburban Before - After 0.35862785862785695 0.14230969134815072 0.5790820406205027 0.001
4 Period Historical Urban Before - After 0.46022418017894584 0.4043955927758729 0.5168359271165858 0.0
5 Period Recent Rural Before - After 0.22033304102748014 0.1595946164017345 0.27709844118835425 0.0
6 Period Recent Suburban Before - After 0.23838516812023614 0.09530264384838895 0.38765632713509646 0.0
7 Period Recent Urban Before - After 0.29898723668702976 0.2219819347255294 0.37490452624458753 0.0
8 SpillType 2020 and After Rural Recent - Historical 0.07551270918427522 0.0019442568352317586 0.1495096699149845 0.045
9 SpillType 2020 and After Suburban Recent - Historical 0.1443185237187848 0.014505398990406747 0.2621640256744544 0.029
10 SpillType 2020 and After Urban Recent - Historical 0.2910867314901773 0.24390264079546417 0.3413553243429466 0.0
11 SpillType Before 2020 Rural Recent - Historical 0.019445736196048558 -0.09807034245553696 0.13342012441761195 0.753
12 SpillType Before 2020 Suburban Recent - Historical 0.020467069010756067 -0.2216216216216229 0.24354828129099937 0.85
13 SpillType Before 2020 Urban Recent - Historical 0.12910256593388225 0.04986927894511647 0.21108430823584592 0.002

View File

@@ -0,0 +1,13 @@
spill_type,Period,rurality,pred_mean,ci_lower,ci_upper,n,pred_median_boot,ci_lower_boot,ci_upper_boot,pred_median_npboot,ci_lower_npboot,ci_upper_npboot
Historical,2020 and After,Rural,0.6093189964157697,0.5478743705834819,0.6776546948120998,558,0.6075268817204316,0.5448028673835136,0.6774193548387089,0.6075165926329025,0.5526279441698162,0.6636686256781194
Historical,2020 and After,Suburban,0.42011834319526453,0.3329283283724966,0.5301423977705431,169,0.4201183431952644,0.32529585798816385,0.5207100591715994,0.41614617682429955,0.3313609467455611,0.5102654352880386
Historical,2020 and After,Urban,0.3444994290064705,0.3227699462514921,0.36769178160507127,2627,0.34526075371145737,0.32279215835553743,0.3681004948610584,0.34424658365839533,0.32394868445108016,0.36391238591979386
Historical,Before 2020,Rural,0.8881118881118876,0.7853397269730921,1.0043331550865073,286,0.8846153846153819,0.779720279720278,0.9965034965034927,0.8875968992248069,0.8113663607417112,0.9601403594732165
Historical,Before 2020,Suburban,0.7837837837837845,0.6059349205795946,1.0138333323565736,74,0.7837837837837822,0.5945945945945937,0.9864864864864882,0.7867759562841541,0.5972170398009939,1.0002941176470606
Historical,Before 2020,Urban,0.8045417680454156,0.7560010921988318,0.8561991023677035,1233,0.8049472830494726,0.7534468775344682,0.8564476885644735,0.8034984820307399,0.7665794550369249,0.842415697211154
Recent,2020 and After,Rural,0.6839481555333987,0.6486978802574822,0.7211139325318346,2006,0.683948155533399,0.6500498504486558,0.7208374875373882,0.6829934642365323,0.6533815453602346,0.7123480478360265
Recent,2020 and After,Suburban,0.5621468926553657,0.489224984417794,0.6459382472016476,354,0.5621468926553669,0.4858757062146898,0.6384180790960449,0.560344827586207,0.49106618332711593,0.6334355283035621
Recent,2020 and After,Urban,0.636728147554129,0.5939439753667028,0.6825942356556498,1247,0.6355252606255006,0.5942261427425811,0.6784482758620706,0.6360308612737718,0.5983955375909462,0.6742169727961493
Recent,Before 2020,Rural,0.9033877038895861,0.8579117829215046,0.9512741983327778,1594,0.9040150564617306,0.8588299874529501,0.9498117942283538,0.9049383902302881,0.8640685429903382,0.9398919791087684
Recent,Before 2020,Suburban,0.800970873786409,0.687621671804964,0.9330048294873011,206,0.8009708737864045,0.6794902912621323,0.9271844660194164,0.8032885081913201,0.7055557852948506,0.8968659324716435
Recent,Before 2020,Urban,0.9354207436399179,0.8779639126262511,0.9966377376655905,1022,0.9344422700587136,0.8757093933463747,0.9970890410958914,0.9360885621808561,0.8894442568574094,0.9794730421614359
1 spill_type Period rurality pred_mean ci_lower ci_upper n pred_median_boot ci_lower_boot ci_upper_boot pred_median_npboot ci_lower_npboot ci_upper_npboot
2 Historical 2020 and After Rural 0.6093189964157697 0.5478743705834819 0.6776546948120998 558 0.6075268817204316 0.5448028673835136 0.6774193548387089 0.6075165926329025 0.5526279441698162 0.6636686256781194
3 Historical 2020 and After Suburban 0.42011834319526453 0.3329283283724966 0.5301423977705431 169 0.4201183431952644 0.32529585798816385 0.5207100591715994 0.41614617682429955 0.3313609467455611 0.5102654352880386
4 Historical 2020 and After Urban 0.3444994290064705 0.3227699462514921 0.36769178160507127 2627 0.34526075371145737 0.32279215835553743 0.3681004948610584 0.34424658365839533 0.32394868445108016 0.36391238591979386
5 Historical Before 2020 Rural 0.8881118881118876 0.7853397269730921 1.0043331550865073 286 0.8846153846153819 0.779720279720278 0.9965034965034927 0.8875968992248069 0.8113663607417112 0.9601403594732165
6 Historical Before 2020 Suburban 0.7837837837837845 0.6059349205795946 1.0138333323565736 74 0.7837837837837822 0.5945945945945937 0.9864864864864882 0.7867759562841541 0.5972170398009939 1.0002941176470606
7 Historical Before 2020 Urban 0.8045417680454156 0.7560010921988318 0.8561991023677035 1233 0.8049472830494726 0.7534468775344682 0.8564476885644735 0.8034984820307399 0.7665794550369249 0.842415697211154
8 Recent 2020 and After Rural 0.6839481555333987 0.6486978802574822 0.7211139325318346 2006 0.683948155533399 0.6500498504486558 0.7208374875373882 0.6829934642365323 0.6533815453602346 0.7123480478360265
9 Recent 2020 and After Suburban 0.5621468926553657 0.489224984417794 0.6459382472016476 354 0.5621468926553669 0.4858757062146898 0.6384180790960449 0.560344827586207 0.49106618332711593 0.6334355283035621
10 Recent 2020 and After Urban 0.636728147554129 0.5939439753667028 0.6825942356556498 1247 0.6355252606255006 0.5942261427425811 0.6784482758620706 0.6360308612737718 0.5983955375909462 0.6742169727961493
11 Recent Before 2020 Rural 0.9033877038895861 0.8579117829215046 0.9512741983327778 1594 0.9040150564617306 0.8588299874529501 0.9498117942283538 0.9049383902302881 0.8640685429903382 0.9398919791087684
12 Recent Before 2020 Suburban 0.800970873786409 0.687621671804964 0.9330048294873011 206 0.8009708737864045 0.6794902912621323 0.9271844660194164 0.8032885081913201 0.7055557852948506 0.8968659324716435
13 Recent Before 2020 Urban 0.9354207436399179 0.8779639126262511 0.9966377376655905 1022 0.9344422700587136 0.8757093933463747 0.9970890410958914 0.9360885621808561 0.8894442568574094 0.9794730421614359

View File

@@ -0,0 +1,13 @@
spill_type,Period,rurality,pred_mean,ci_lower,ci_upper,n,pred_median_boot,ci_lower_boot,ci_upper_boot
Historical,2020 and After,Rural,0.6093189964157697,0.5478743705834819,0.6776546948120998,558,0.6075268817204316,0.5448028673835136,0.6774193548387089
Historical,2020 and After,Suburban,0.42011834319526453,0.3329283283724966,0.5301423977705431,169,0.4201183431952644,0.32529585798816385,0.5207100591715994
Historical,2020 and After,Urban,0.3444994290064705,0.3227699462514921,0.36769178160507127,2627,0.34526075371145737,0.32279215835553743,0.3681004948610584
Historical,Before 2020,Rural,0.8881118881118876,0.7853397269730921,1.0043331550865073,286,0.8846153846153819,0.779720279720278,0.9965034965034927
Historical,Before 2020,Suburban,0.7837837837837845,0.6059349205795946,1.0138333323565736,74,0.7837837837837822,0.5945945945945937,0.9864864864864882
Historical,Before 2020,Urban,0.8045417680454156,0.7560010921988318,0.8561991023677035,1233,0.8049472830494726,0.7534468775344682,0.8564476885644735
Recent,2020 and After,Rural,0.6839481555333987,0.6486978802574822,0.7211139325318346,2006,0.683948155533399,0.6500498504486558,0.7208374875373882
Recent,2020 and After,Suburban,0.5621468926553657,0.489224984417794,0.6459382472016476,354,0.5621468926553669,0.4858757062146898,0.6384180790960449
Recent,2020 and After,Urban,0.636728147554129,0.5939439753667028,0.6825942356556498,1247,0.6355252606255006,0.5942261427425811,0.6784482758620706
Recent,Before 2020,Rural,0.9033877038895861,0.8579117829215046,0.9512741983327778,1594,0.9040150564617306,0.8588299874529501,0.9498117942283538
Recent,Before 2020,Suburban,0.800970873786409,0.687621671804964,0.9330048294873011,206,0.8009708737864045,0.6794902912621323,0.9271844660194164
Recent,Before 2020,Urban,0.9354207436399179,0.8779639126262511,0.9966377376655905,1022,0.9344422700587136,0.8757093933463747,0.9970890410958914
1 spill_type Period rurality pred_mean ci_lower ci_upper n pred_median_boot ci_lower_boot ci_upper_boot
2 Historical 2020 and After Rural 0.6093189964157697 0.5478743705834819 0.6776546948120998 558 0.6075268817204316 0.5448028673835136 0.6774193548387089
3 Historical 2020 and After Suburban 0.42011834319526453 0.3329283283724966 0.5301423977705431 169 0.4201183431952644 0.32529585798816385 0.5207100591715994
4 Historical 2020 and After Urban 0.3444994290064705 0.3227699462514921 0.36769178160507127 2627 0.34526075371145737 0.32279215835553743 0.3681004948610584
5 Historical Before 2020 Rural 0.8881118881118876 0.7853397269730921 1.0043331550865073 286 0.8846153846153819 0.779720279720278 0.9965034965034927
6 Historical Before 2020 Suburban 0.7837837837837845 0.6059349205795946 1.0138333323565736 74 0.7837837837837822 0.5945945945945937 0.9864864864864882
7 Historical Before 2020 Urban 0.8045417680454156 0.7560010921988318 0.8561991023677035 1233 0.8049472830494726 0.7534468775344682 0.8564476885644735
8 Recent 2020 and After Rural 0.6839481555333987 0.6486978802574822 0.7211139325318346 2006 0.683948155533399 0.6500498504486558 0.7208374875373882
9 Recent 2020 and After Suburban 0.5621468926553657 0.489224984417794 0.6459382472016476 354 0.5621468926553669 0.4858757062146898 0.6384180790960449
10 Recent 2020 and After Urban 0.636728147554129 0.5939439753667028 0.6825942356556498 1247 0.6355252606255006 0.5942261427425811 0.6784482758620706
11 Recent Before 2020 Rural 0.9033877038895861 0.8579117829215046 0.9512741983327778 1594 0.9040150564617306 0.8588299874529501 0.9498117942283538
12 Recent Before 2020 Suburban 0.800970873786409 0.687621671804964 0.9330048294873011 206 0.8009708737864045 0.6794902912621323 0.9271844660194164
13 Recent Before 2020 Urban 0.9354207436399179 0.8779639126262511 0.9966377376655905 1022 0.9344422700587136 0.8757093933463747 0.9970890410958914

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.