project · Jan 2026 – Mar 2026

Florida Policy Advisor

Project developer

Florida indicators, cited forecasts, and data-quality checks in a local application.

Skills & tools

  • Python
  • NumPy
  • FastAPI
  • pandas
  • React

Overview

Florida Policy Advisor is a local Windows application for exploring Florida’s labor-market, housing, and fiscal indicators and comparing policy options. Its React interface sends structured JSON requests to a Python backend built with FastAPI. Users select an issue area, geography, time horizon, and policy objectives, then adjust their policy lens and budget sensitivity.

The backend processes BLS, Census ACS, and FRED data with pandas and uses NumPy for baseline forecasting. It combines source-linked evidence with weighted policy rankings, returning results to the interface for inspection and export as a cited Markdown memo.

My contribution

I built the React frontend and FastAPI backend, using Vite to build the interface and Pydantic models to validate API requests and structure responses. I connected the input controls to the analysis endpoints, then developed the results views and Markdown memo download so users could inspect and retain their comparisons.

I implemented the source-data loaders and pandas validation workflow, connected NumPy-based forecast evaluation to the policy-ranking service, and carried citation metadata through the API and memo export. I also used pytest to test the backend’s supported analysis paths, citation checks, and forecast-withholding rules.

Application workflow, summarized from the repository architecture. Analysis and policy scores are separate outputs.

My contribution — full-size image

FPA workflow: React and Vite send JSON to FastAPI and Pydantic; pandas and NumPy prepare data and forecasts, a Python engine ranks policies, and citation validation precedes results and memo export.

Application workflow, summarized from the repository architecture. Analysis and policy scores are separate outputs.

Technical work

FastAPI coordinates data refresh, analysis, and memo generation through JSON endpoints, with Pydantic models defining the request and response schemas. Source loaders convert BLS, Census ACS, and FRED data into processed CSV datasets. pandas-based checks record missing fields, null rates, duplicate keys, invalid values, and temporal coverage alongside source provenance.

The forecasting service uses pandas to prepare ordered time series and NumPy to fit linear trends and calculate prediction errors. Chronological holdouts compare linear-trend and last-observed-value baselines using MAE and RMSE; the lower-MAE method is selected. Minimum-history and maximum-horizon rules control forecast availability.

A separate Python policy engine scores options and candidate bundles using configured weights for objectives, policy preferences, cost, feasibility, and risk. These heuristic scores accompany source-linked evidence, while citation validation runs before API responses and Markdown memo exports are returned.

Evaluated baseline forecasts from the successful live recording, compared with the latest observations. These are baseline projections, not causal policy-impact estimates.

Technical work — full-size image

Florida Policy Advisor evaluated baseline outlook showing forecasts and latest observations for home value, unemployment, rent, and housing vacancy.

Evaluated baseline forecasts from the successful live recording, compared with the latest observations. These are baseline projections, not causal policy-impact estimates.

Challenges

A major challenge was handling datasets with different schemas, reporting frequencies, and geographic coverage. County-level Census ACS indicators and statewide BLS/FRED series needed separate processing paths. I used pandas-based loaders and geography-aware selection to prepare each dataset, with population-weighted aggregation and county-coverage checks for statewide ACS estimates.

The forecasting workflow also needed to handle uneven historical coverage. I connected pandas time-series preparation to NumPy baseline evaluation, applying frequency-specific minimum-history and forecast-horizon rules. The FastAPI responses carry availability reasons and source metadata into the React results views. Live, fixture, and mixed-data notices remain visible, and exported memos retain the same provenance so users can distinguish generated analysis from offline sample output.

Results and current state

The result is a local Windows application that brings policy inputs, cited indicators, baseline forecasts, ranked options, and memo export into one workflow. Vite compiles the React frontend, FastAPI serves it alongside the analysis endpoints, and pywebview provides the desktop window. The PyInstaller packaging workflow bundles the interface, Python backend, and supporting assets.

The current version supports labor-market, housing, and fiscal analysis, with live-source refresh and explicitly labeled offline fixtures. Validation includes fixture-backed pytest tests for API behavior, citation integrity, forecasting rules, and geographic coverage. The repository also retains reproducible JSON reports for data quality and forecast availability, connecting the application’s outputs to inspectable validation evidence.

Ranked policy bundles from the successful live recording, showing scores, target indicators, and tradeoffs. Scores are heuristic comparisons, not causal effect estimates.

Results and current state — full-size image

Florida Policy Advisor recommends three policy bundles with scores of 0.549, 0.475, and 0.455, alongside target indicators and tradeoffs.

Ranked policy bundles from the successful live recording, showing scores, target indicators, and tradeoffs. Scores are heuristic comparisons, not causal effect estimates.

Links & resources

SiteNaviAI

Chat is currently unavailable. You can still explore the portfolio.