mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
comments
This commit is contained in:
parent
b5150146b6
commit
2642732334
1 changed files with 30 additions and 3 deletions
|
@ -496,6 +496,13 @@
|
||||||
"housingburden.shape"
|
"housingburden.shape"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"### As desired we see a uniform distribution for the percentile rank for burdened households"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 28,
|
"execution_count": 28,
|
||||||
|
@ -535,6 +542,13 @@
|
||||||
"sns.histplot(housingburden[\"hbrd_rank\"])"
|
"sns.histplot(housingburden[\"hbrd_rank\"])"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"### Now we compute for a baseline comparison "
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 20,
|
"execution_count": 20,
|
||||||
|
@ -750,13 +764,20 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 66,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"housingburden.to_csv(\"housing_burden.csv\", index=False)"
|
"housingburden.to_csv(\"housing_burden.csv\", index=False)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"### Now we construct the distribution of differences in the number of owned and rented burdened households\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 27,
|
"execution_count": 27,
|
||||||
|
@ -786,7 +807,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"### Now compare to relative \n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"plt.figure(figsize=(12, 8))\n",
|
"plt.figure(figsize=(12, 8))\n",
|
||||||
"plt.title('Distribution of differences between two methodologies')\n",
|
"plt.title('Distribution of differences between two methodologies')\n",
|
||||||
|
@ -802,7 +822,7 @@
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"### Below are KDE plots of the respective densities. Green is the current methodology; red represents the revision."
|
"### Plotting both distributions for accounting for different aggregations of owned and rented burdened households. Red is the revised version; green is the current methodology"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1040,6 +1060,13 @@
|
||||||
"p = np.sum(bs_replicates >= empirical_diff_means) / len(bs_replicates)\n",
|
"p = np.sum(bs_replicates >= empirical_diff_means) / len(bs_replicates)\n",
|
||||||
"print(\"P Value: {:.4f}\".format(round(p, 2)))"
|
"print(\"P Value: {:.4f}\".format(round(p, 2)))"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue