Skip to content

leviszaboo/thesis

Repository files navigation

Effect of Municipal Train Station Presence and Volume of Train Traffic on House Prices in the Netherlands

Description

This project analyzes how the presence of train stations in municipalities and the volume of trains stopping at these stations affect house prices in the Netherlands. This study is part of a bachelor's thesis in Economics at the University of Amsterdam.

The study consists of two main phases:

  1. Analysis of the effect of the presence of a train station in a municipality on house prices per square meter, controlling for other factors.
  2. Analysis of the effect of the volume of train traffic (trains stopped at any station) in municipalities with a train station present on square meter house prices, controlling for other factors.

Click here to view the main dataset.

Data Sources

  • House Prices Data and Controls: Regional indicators on the municipality level, located in the unprocessed/cbs folder.
  • Municipalities GeoJSON: Cartographic data in GeoJSON format on the outline of Dutch municipalities for 2023.
  • Netherlands Train Stations: Data on locations and categories of train stations across the Netherlands.
  • Netherlands Train Traffic: Monthly data on train service across the Netherlands.

Project Stucture and File Descriptions

  • main.py: Main entrypoint of the application.
  • unprocessed/: Directory containing raw data files.
  • output/: Directory containing processed CSV files, chloropleth maps in HTML format and tables and figures resulting from the analysis.
  • src/dataset: Directory containing files related to processing the raw data.
  • src/dataset/main.py: Script that constructs the main dataset from the raw CBS data and the processed station and traffic data.
  • src/analysis: Directory containing files related to the analysis of the main dataset. Contains subfolders phase_1 and phase_2 and a file called maps.py which creates chloropleth maps of different variables by municipality.
  • src/analysis/main.py: Sequentially runs Phase 1 and Phase 2 of the analysis.

How to Run This Project

Prerequisites

  1. Python: Ensure that Python 3.x is installed. You can download it here.
  2. Virtual Environment: It is recommended to use a virtual environment to manage dependencies. You can use venv, virtualenv, or conda.
  3. Dependencies: The required Python libraries are listed in the requirements.txt file.

Installation Steps

  • Note: on Unix/macOS systems step 2-4 can be skipped by executing the scripts/run.sh file. Optionally, you can also clean the output folder by running scripts/clean.sh.
  1. Clone the Repository:

    git clone https://github.com/leviszaboo/thesis.git
    
  2. Create and Activate Virtual Environment:

    # Using venv
    python -m venv venv
    source venv/bin/activate  # For Unix/macOS
    venv\Scripts\activate.bat  # For Windows
    
    # Using conda (optional)
    conda create -n train-analysis python=3.x
    conda activate train-analysis
    
  3. Install Dependencies:

    pip install -r requirements.txt
    
  4. Run the Main Script:

    • Execute the main.py script located at the top level of the project directory. This script will sequentially execute all necessary steps to prepare the dataset and run the analysis.
    python main.py
    
    • You can also specify the --analysis_only, --phase_1, --phase_2, --dataset_only or --skip_station_data command line arguments to run only a specific part of the main function.
  5. Verify the Output:

    • Check the generated files in the data/output folder for the main and stations dataset, and the output folder for the analysis results.

License

"Effect of Municipal Train Station Presence and Volume of Train Traffic on House Prices in the Netherlands" © 2024 by Levente Szabo is licensed under Creative Commons Attribution 4.0 International License. This means you are free to:

  • Share: Copy and redistribute the material in any medium or format.
  • Adapt: Remix, transform, and build upon the material for any purpose, even commercially.
  • Conditions: Attribution must be provided with proper credit, a link to the license, and indication if changes were made.

CC BY 4.0

CC BY 4.0

About

Bachelor thesis project in Economics and Business Economics at the University of Amsterdam.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages