Cost of Living Projections with Monte Carlo Simulations

github repo

This repository contains Monte Carlo simulation models that project costs related to living expenses in major US cities and the annual economic cost of shipping carbon dioxide from Europe to US ports. It includes Jupyter notebooks, markdown reports, and supporting data files for reproducible analysis.


Features

  • Monte Carlo simulations for cost of living projections in Houston and New York City.
  • Monte Carlo modeling of the annual cost of shipping supercritical CO2 across the Atlantic.
  • Transparent, reproducible computational notebooks combining data analysis and domain-specific modeling.
  • Markdown reports documenting methodology, findings, and revisions.

Tech Stack

  • Python 3 (Jupyter Notebooks)
  • NumPy (for statistical sampling and distributions)
  • Markdown for documentation

Getting Started

Prerequisites

Ensure Python 3 and Jupyter Notebook are installed. Recommended to use a virtual environment.

Installation

# Clone the repository
$ git clone https://github.com/justin-napolitano/cost-of-living-projections.git
$ cd cost-of-living-projections

# (Optional) Create and activate a virtual environment
$ python3 -m venv venv
$ source venv/bin/activate  # On Windows use `venv\Scripts\activate`

# Install dependencies
$ pip install numpy jupyter

Running the Notebooks

Launch Jupyter Notebook:

$ jupyter notebook

Open and run the following notebooks:

  • cost_of_living_monte_carlo.ipynb β€” Monte Carlo models for Houston and NYC cost of living.
  • shipping_projections.ipynb β€” Monte Carlo simulation of CO2 shipping costs.
  • carbon-storage-projects.ipynb β€” Related analysis on carbon storage projects.
  • europe_ports.ipynb β€” Data and analysis related to European ports.

Project Structure

β”œβ”€β”€ carbon-storage-projects.ipynb       # Analysis of carbon storage projects
β”œβ”€β”€ cost_of_living_monte_carlo.ipynb     # Monte Carlo models for cost of living
β”œβ”€β”€ cost_of_living_monte_carlo.md         # Markdown report on cost of living projections
β”œβ”€β”€ cost_of_living_monte_carlo_files/     # Supporting files for cost of living notebooks
β”œβ”€β”€ europe_ports.ipynb                     # Data and analysis related to European ports
β”œβ”€β”€ histogram.png                         # Visualization image
β”œβ”€β”€ nyc-housing.csv                       # NYC housing data
β”œβ”€β”€ README.md                            # This file
β”œβ”€β”€ shipping_carbon_feasibility.md       # Feasibility analysis of shipping carbon
β”œβ”€β”€ shipping_carbon_feasibility_files/   # Supporting files for feasibility report
β”œβ”€β”€ shipping_projections.ipynb           # Monte Carlo simulation of shipping costs
β”œβ”€β”€ shipping_projections.md               # Markdown report on shipping projections
β”œβ”€β”€ shipping_projections_files/           # Supporting files for shipping projections

Future Work / Roadmap

  • Update cost of living data, particularly for Houston, with more recent and granular data sources.
  • Refine Monte Carlo models with improved input distributions based on newly scraped or acquired data.
  • Extend shipping cost models to incorporate more detailed infrastructure and operational variables.
  • Automate data scraping and preprocessing to maintain up-to-date projections.
  • Enhance documentation and add more comprehensive tests for reproducibility.
hjkl / arrows Β· / search Β· :family Β· :tag Β· :datefrom Β· :dateto Β· ~/entries/slug Β· Ctrl+N/Ctrl+P for suggestions Β· Ctrl+C/Ctrl+G to cancel
entries 201/201 Β· entry -/-
:readyentries 201/201 Β· entry -/-