differenes in differences model
@@ -25,23 +25,23 @@
|
||||
| max | 2232 |
|
||||
|
||||
## Historical Spills Response Time Summary:
|
||||
| Period | count | mean | std | min | 25% | 50% | 75% | max |
|
||||
|:---------------|--------:|--------:|---------:|------:|------:|------:|------:|------:|
|
||||
| 2021 and After | 2451 | 10.1816 | 96.0115 | 0 | 0 | 0 | 1 | 2501 |
|
||||
| Before 2021 | 2861 | 31.1779 | 265.348 | 0 | 0 | 1 | 2 | 9261 |
|
||||
| Period | count | mean | std | min | 25% | 50% | 75% | max |
|
||||
|:---------------|--------:|--------:|--------:|------:|------:|------:|------:|------:|
|
||||
| 2020 and After | 2705 | 13.5331 | 200.352 | 0 | 0 | 0 | 1 | 9261 |
|
||||
| Before 2020 | 2607 | 29.7461 | 210.659 | 0 | 0 | 1 | 2 | 5681 |
|
||||
|
||||
## Recent Spills Response Time Summary:
|
||||
| Period | count | mean | std | min | 25% | 50% | 75% | max |
|
||||
|:---------------|--------:|--------:|--------:|------:|------:|------:|------:|------:|
|
||||
| 2021 and After | 3552 | 2.92877 | 28.8645 | 0 | 0 | 1 | 1 | 1329 |
|
||||
| Before 2021 | 7126 | 4.48077 | 53.7949 | 0 | 0 | 1 | 2 | 2232 |
|
||||
| 2020 and After | 4472 | 2.92688 | 27.3021 | 0 | 0 | 1 | 1 | 1329 |
|
||||
| Before 2020 | 6206 | 4.71221 | 57.1161 | 0 | 1 | 1 | 2 | 2232 |
|
||||
|
||||
## T-Test Results for Historical Spills
|
||||
T-Statistic: 3.9419
|
||||
P-Value: 0.0001
|
||||
T-Statistic: 2.8723
|
||||
P-Value: 0.0041
|
||||
The difference in response time for historical spills is statistically significant.
|
||||
|
||||
## T-Test Results for Recent Spills
|
||||
T-Statistic: 1.9390
|
||||
P-Value: 0.0525
|
||||
The difference in response time for recent spills is not statistically significant.
|
||||
T-Statistic: 2.1457
|
||||
P-Value: 0.0319
|
||||
The difference in response time for recent spills is statistically significant.
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
56
analysis/analysis/output/model_summaries.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Model Summaries
|
||||
|
||||
## Historical Spills Model Summary:
|
||||
OLS Regression Results
|
||||
====================================================================================
|
||||
Dep. Variable: Q("Report Delay (Days)") R-squared: 0.002
|
||||
Model: OLS Adj. R-squared: 0.001
|
||||
Method: Least Squares F-statistic: 8.265
|
||||
Date: Mon, 31 Mar 2025 Prob (F-statistic): 0.00406
|
||||
Time: 13:58:43 Log-Likelihood: -35825.
|
||||
No. Observations: 5312 AIC: 7.165e+04
|
||||
Df Residuals: 5310 BIC: 7.167e+04
|
||||
Df Model: 1
|
||||
Covariance Type: nonrobust
|
||||
==============================================================================
|
||||
coef std err t P>|t| [0.025 0.975]
|
||||
------------------------------------------------------------------------------
|
||||
Intercept 29.7461 4.024 7.392 0.000 21.857 37.635
|
||||
Post2020 -16.2130 5.639 -2.875 0.004 -27.269 -5.157
|
||||
==============================================================================
|
||||
Omnibus: 12943.048 Durbin-Watson: 1.944
|
||||
Prob(Omnibus): 0.000 Jarque-Bera (JB): 189644913.057
|
||||
Skew: 25.310 Prob(JB): 0.00
|
||||
Kurtosis: 927.266 Cond. No. 2.64
|
||||
==============================================================================
|
||||
|
||||
Notes:
|
||||
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
|
||||
|
||||
## Recent Spills Model Summary:
|
||||
OLS Regression Results
|
||||
====================================================================================
|
||||
Dep. Variable: Q("Report Delay (Days)") R-squared: 0.000
|
||||
Model: OLS Adj. R-squared: 0.000
|
||||
Method: Least Squares F-statistic: 3.752
|
||||
Date: Mon, 31 Mar 2025 Prob (F-statistic): 0.0528
|
||||
Time: 13:58:43 Log-Likelihood: -56260.
|
||||
No. Observations: 10678 AIC: 1.125e+05
|
||||
Df Residuals: 10676 BIC: 1.125e+05
|
||||
Df Model: 1
|
||||
Covariance Type: nonrobust
|
||||
==============================================================================
|
||||
coef std err t P>|t| [0.025 0.975]
|
||||
------------------------------------------------------------------------------
|
||||
Intercept 4.7122 0.597 7.900 0.000 3.543 5.881
|
||||
Post2020 -1.7853 0.922 -1.937 0.053 -3.592 0.021
|
||||
==============================================================================
|
||||
Omnibus: 28541.449 Durbin-Watson: 1.643
|
||||
Prob(Omnibus): 0.000 Jarque-Bera (JB): 676851501.928
|
||||
Skew: 32.390 Prob(JB): 0.00
|
||||
Kurtosis: 1234.707 Cond. No. 2.47
|
||||
==============================================================================
|
||||
|
||||
Notes:
|
||||
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@@ -1,6 +1,6 @@
|
||||
# Response Time Summary
|
||||
|
||||
| Period | count | mean | std | min | 25% | 50% | 75% | max |
|
||||
|:---------------|--------:|---------:|---------:|------:|------:|------:|------:|------:|
|
||||
| 2021 and After | 6003 | 5.89005 | 65.3336 | 0 | 0 | 1 | 1 | 2501 |
|
||||
| Before 2021 | 9987 | 12.1288 | 149.586 | 0 | 0 | 1 | 2 | 9261 |
|
||||
| Period | count | mean | std | min | 25% | 50% | 75% | max |
|
||||
|:---------------|--------:|---------:|--------:|------:|------:|------:|------:|------:|
|
||||
| 2020 and After | 7177 | 6.92434 | 124.966 | 0 | 0 | 1 | 1 | 9261 |
|
||||
| Before 2020 | 8813 | 12.1176 | 124.706 | 0 | 0 | 1 | 2 | 5681 |
|
||||
|
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
@@ -1,9 +1,9 @@
|
||||
## T-Test Results for Historical Spills
|
||||
T-Statistic: 3.9419
|
||||
P-Value: 0.0001
|
||||
T-Statistic: 2.8723
|
||||
P-Value: 0.0041
|
||||
The difference in response time for historical spills is statistically significant.
|
||||
|
||||
## T-Test Results for Recent Spills
|
||||
T-Statistic: 1.9390
|
||||
P-Value: 0.0525
|
||||
The difference in response time for recent spills is not statistically significant.
|
||||
T-Statistic: 2.1457
|
||||
P-Value: 0.0319
|
||||
The difference in response time for recent spills is statistically significant.
|
||||
|
||||
BIN
analysis/report_delay_barplot.png
Normal file
|
After Width: | Height: | Size: 25 KiB |