Portfolio

First, open projects you can read and rerun. Then government and academic work. The government work is internal, so it's listed without detail.

Open work

Personal projects built from publicly available data. They are not associated with my work for any current or past employer and do not represent their views.

  • BC's electricity balance: the drought, imports and demand

    Open data analysis in Python, with interactive charts and a monthly dashboard, 2026

    The 2023 drought was a once-in-100-years low on the Fraser. Low inflows explain most of the 11 TWh fall in BC's hydro output. Clustering, a regime model and machine learning show how trade with the US moved hour by hour. Six months out, demand forecasts miss by 3.8% on average, and their ranges hold as often as stated.

  • Household gas demand in Canada since 1981: price, efficiency and forecasts

    Open data analysis in Python, with interactive charts and a monthly dashboard, 2026

    A 10% higher gas price cuts BC households' use by about 1.2% in the first year, and two common traps overstate that. Partial pooling across six provinces, heating-curve models and machine learning show where the long fall in use came from, and a year's demand is forecast with an average error of 5-7%, with ranges from past errors.

  • How much of BC's fine-particle pollution is wildfire smoke?

    Open data analysis in Python, with interactive charts and a seasonal dashboard, 2026

    About a third in 2018 and 2023, by a rule checked against BC's own list and satellite smoke maps. Without smoke, PM2.5 has slowly fallen since 2005; with it, there is no trend.

  • What minimum wage rises did to pay and jobs in Canada since 2006

    Open data analysis in Python, with interactive charts and a monthly dashboard, 2026

    After 22 large rises in nine provinces, low-paid jobs moved up the pay scale and total employment held. A 10% rise moved teen employment by −0.3% (−2.4% to +4.0%).

  • Productivity and pay by sector in Canada

    Open data analysis in Python, 2026

    Whether pay in Canada follows productivity, across 13 business sectors and 10 provinces from 1997 to 2024. Over the whole period, compensation and productivity grew by about the same amount, but a sector's own productivity gains show up mostly in lower relative prices, with little in its workers' pay. Education and minimum wages account for more of the rise in pay since 2006 than sector productivity does.

  • The Indigenous income gap in Canada, 2006 to 2021

    Open data analysis in Python, 2026

    An earlier run of Pendakur and Pendakur's method on the 2006 Census, carried forward to 2021 with Statistics Canada's public microdata. Comparing people with the same age, education and other measured characteristics, Indigenous men's wages went from about 25% lower to about 14% lower, and Indigenous women's from about 10% lower to about 4% lower. The results describe a gap and don't identify causes. The people counted as Indigenous also changed between censuses, so this is not one group followed over time, and the write-up measures how much that could matter.

  • How the Bank of Canada's language changed, and when bond markets respond

    Text analysis and event study in Python, with an interactive chart and a statement explorer, 2026

    207 rate statements since 2001. On holds, the 2-year yield moves most, and a change in wording doesn't clearly line up with the reaction.

  • How three filters read Canada's business cycles, and what they make of 2020

    Open data analysis in Python, with an interactive chart, 2026

    How Canadian output, consumption, investment, government purchases and net exports rise and fall around their long-run growth, from 1961 to 2026, on Statistics Canada data. Investment accounts for most of the swings in output, and net exports lean weakly against them. The 2020 fall looks different under each of three common filters, and one of them shows a boom two years later that comes from the method.

  • Testing the CAPM and the Fama-French factor models through 2026

    Open data analysis in Python, 2026

    Tests of the capital asset pricing model and the Fama-French three- and five-factor models on US stock returns from 1926 to September 2026, starting from a reproduction of my 2021 result. All three models are rejected on the usual size and value portfolios, although the factors explain far more of the differences in average returns than market beta does. On industry portfolios the extra factors make the errors larger.

  • Does narrowly winning a federal riding help a party win it again?

    Regression discontinuity replication and extension in Python, 2026

    A party that narrowly wins a federal riding is about 12 points more likely to win it next time, across elections from 1872 to 2025. I reproduced an earlier replication of Kendall and Rekkas exactly, then added data-driven bandwidths, validity checks and five new elections, linking ridings across two redistributions by the voters they share. Since 2011 the data can't separate the estimate from earlier periods, and it depends on how the redistributions are handled.

  • Checking my Bitcoin forecasts

    Forecast evaluation in Python, 2026

    An unpublished 2022 study of mine reported a regression score of 0.9994 for Bitcoin's closing price. The rebuild shows that score came from using the same day's high and low, and tests the models again using only earlier information. Across 3,582 days to November 2026, none of them beats a forecast of no change.

  • The welfare cost of Proof of Work: Bitcoin and Ethereum

    Model calibration in Python, 2026

    Chiu and Koeppl measured the welfare cost of Bitcoin's Proof of Work with a model of how blockchains settle payments. I applied the same model to Ethereum and compared the two coins on the same year, using transfer sizes measured from public chain data. In 2020 Proof of Work cost about 0.74% of consumption for Bitcoin and 0.57% for Ethereum, mostly in mining, and the gap rests on Bitcoin's largest transfers and on one of the model's parameters.

  • Five mini research projects

    Open data analysis in Python, 2026

    Five small studies, each answering one question, four of them checked against published numbers or closed forms. Did Arizona's charter schools draw white students out of public schools? The published estimate reproduces, but the decline began before charters opened. The others cover the US equity premium since 1871 and what a consumption model needs to explain it, long-horizon portfolio choice when the dividend yield predicts returns, how much of Canada's business cycle a basic real business cycle model reproduces, and the break-even electricity price for a small engine on natural gas or biogas.

  • Rent and mortgage burden in BC cities

    Open data analysis in R, 2026

    Rent's share of family income rose in 23 of 25 BC urban areas between 2008 and 2023.

  • Population change in BC municipalities

    Open data maps in R, 2024, updated 2026

    Percent change in population for every municipality, from 2003 to 2023 and projected to 2046. Of 191 areas, 147 grew and 66 are projected to shrink.

  • EconLaunch

    Website and data pipeline, 2026

    A free job board for economics, policy and data roles in Canada. It checks employer and government career sites every day and screens new postings for relevance.

Government and research work

  • Carbon market endogenisation in CIMS

    In progress

    SESIT Group, University of Victoria, 2026 to present. Adding carbon price formation and market clearing to CIMS, the open-source energy-economy model from SFU.

  • EV adoption and off-road electrification modelling

    Federal, confidential

    Environment and Climate Change Canada, 2025 to present. Leading a team of two economists who model passenger EV adoption and off-road electrification across Canada.

  • Carbon policy coverage tool

    Federal, confidential

    Environment and Climate Change Canada, 2024. Measures which economic activities fall under carbon pricing in each province, using SQL and R.

  • Energy-economic model modernisation

    Federal, confidential

    Environment and Climate Change Canada, 2023-2025. Moved legacy Access, SQL and Excel models into reproducible R and Julia code, with Azure and Git.

  • BC poverty index

    Gov BC, confidential

    Government of British Columbia, 2023. A multidimensional poverty index built with factor analysis from administrative, survey and census data, used across poverty reduction programs.

  • BC housing affordability index

    Gov BC, confidential

    Government of British Columbia, 2023. A regional affordability index from Statistics Canada, CRA and Bank of Canada data, presented to government stakeholders.

Academic work

  • Welfare analysis of proof-of-work: Ethereum and Bitcoin

    Graduate research

    Allameh Tabataba'i University, 2021. Compared which protocol costs its users less, with blockchain data collected in Python and simulations in MATLAB.

  • Market analysis of Iranian internet exchange points

    National project

    Allameh Tabataba'i University, 2020-2021. A market study on developing new internet exchange points, delivered to a national project with multinational research teams.

  • Thermoeconomic analysis of a combined heat and power engine in Iran

    Undergraduate thesis

    Payame Noor University, 2018. Compared one engine on two fuels, compressed natural gas (CNG) and biogas, and the business case for each.