Repository Public Research preview
1# =============================================================================2# SP BOUCHER | ACADEMIC RESEARCH3# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4# =============================================================================5#6# PROJECT METADATA7# -----------------------------------------------------------------------------8# Project : Hedonic Pricing of Short-Term Rental Properties9# File : Makefile10# Repository : https://git.spboucher.ai/wp4_uqo11# Created : 2026-10-1712# Last Modified : 2026-10-1713#14# =============================================================================15# SOFTWARE MAINTAINER & AFFILIATION16# =============================================================================17#18# Maintainer : Simon-Pierre Boucher19# Position : Professor of Finance20# Institution : Université du Québec en Outaouais (UQO)21# Department : Département des sciences administratives22# Website : https://spboucher.ai23# Git : https://git.spboucher.ai24#25# Research Contact : research@spboucher.ai26# Direct Contact : simon@spboucher.ai27# Security/Admin : admin@spboucher.ai28#29# The affiliation is descriptive. It is not an institutional endorsement,30# a license grant or a determination of ownership.31#32# =============================================================================33# COPYRIGHT, AUTHORSHIP & DATA34# =============================================================================35#36# Copyright (c) the author(s) of this work.37# Ownership is not asserted by this notice; see the repository records.38#39# This header identifies the maintainer of the software. Scientific40# authorship of any associated paper is stated in the paper itself and41# is not changed by this notice. Datasets and third-party materials42# remain the property of their respective owners and licensors.43#44# This file is governed by the applicable project license, copyright45# notices, institutional agreements and relevant law.46#47# =============================================================================48# LICENSE & MAINTENANCE49# =============================================================================50#51# License : None specified (no license file in this repository)52# Classification : Public53#54# =============================================================================55# END OF SP BOUCHER SOURCE HEADER56# =============================================================================5758# Makefile — Airbnb Hedonic Pricing Analysis59# Ultra-advanced hedonic model for Airbnb listing prices6061PYTHON = python362STREAMLIT = streamlit63DATA_FILE = data/raw/cleaned_dataset_sample.csv64OUTPUT_DIR = results65PAPER_DIR = paper6667.PHONY: all clean download features models figures tables paper dashboard help revision6869help:70 @echo "Airbnb Hedonic Pricing Analysis"71 @echo "================================"72 @echo ""73 @echo " make install Install Python dependencies"74 @echo " make download Download/prepare raw data"75 @echo " make clean Clean intermediate files"76 @echo " make features Build hedonic feature set"77 @echo " make models Estimate all models"78 @echo " make figures Generate publication figures"79 @echo " make tables Generate publication tables"80 @echo " make paper Compile LaTeX paper"81 @echo " make dashboard Launch Streamlit dashboard"82 @echo " make all Run full pipeline"83 @echo " make test Run basic tests"84 @echo ""8586all: install features models figures tables paper8788install:89 pip install -r requirements.txt9091download:92 @echo "Using existing data file: $(DATA_FILE)"93 @echo "Place the Inside Airbnb extract in data/raw/ (see data/raw/README.md)"94 @test -f $(DATA_FILE) || (echo "ERROR: $(DATA_FILE) not found" && exit 1)95 @echo "Data file found: $$(wc -l < $(DATA_FILE)) lines"9697clean:98 rm -rf data/interim/*99 rm -rf data/processed/*100 rm -rf data/duckdb/*101 rm -rf $(OUTPUT_DIR)/tables/*102 rm -rf $(OUTPUT_DIR)/figures/*103 rm -rf $(OUTPUT_DIR)/models/*104 @echo "Cleaned all intermediate and output files"105106features:107 $(PYTHON) scripts/run_analysis.py --data-file $(DATA_FILE) --models-only 2>&1 | head -50108 @echo "Feature engineering complete"109110models:111 $(PYTHON) scripts/run_analysis.py --data-file $(DATA_FILE)112 @echo "All models estimated"113114figures:115 $(PYTHON) scripts/run_analysis.py --data-file $(DATA_FILE) --figures-only116 @echo "Figures saved to $(OUTPUT_DIR)/figures/"117118tables:119 @echo "Tables generated during model estimation"120 @ls -la $(OUTPUT_DIR)/tables/ 2>/dev/null || echo "Run 'make models' first"121122revision:123 $(PYTHON) scripts/10_revision_reanalysis.py124 $(PYTHON) scripts/11_vif_table.py125 @echo "v1.1 tables and figures regenerated (results/tables/rev_*, paper/figures/rev_*)"126127paper:128 cd $(PAPER_DIR) && make129 @echo "Paper compiled: $(PAPER_DIR)/main.pdf"130131dashboard:132 $(STREAMLIT) run scripts/app.py133134test:135 $(PYTHON) -c "from src import config; print('config OK')"136 $(PYTHON) -c "from src import data_loader; print('data_loader OK')"137 $(PYTHON) -c "from src import cleaning; print('cleaning OK')"138 $(PYTHON) -c "from src import feature_engineering; print('feature_engineering OK')"139 $(PYTHON) -c "from src import hedonic_models; print('hedonic_models OK')"140 $(PYTHON) -c "from src import ml_models; print('ml_models OK')"141 @echo "All module imports successful"142