Environmental regression briefing: sampling station and predictor rows feed a baseline model, with separate evaluation samples and paired predicted and observed values.
ACADEMIC PROJECT / D682 - Computer Science Course

Random Forest Air Quality Risk Model

I compared regression approaches for supplied synthetic urban-air-quality health-risk data and justified a Random Forest model. I later reran the recovered baseline and kept the separate optimization claims outside that run’s verification.

Pythonmachine learningregressionreproducibilitydata quality

Start with a baseline I could inspect

My environmental regression archive contains a baseline modeling program and a separate later narrative about additional work. Returning to those materials gave me a concrete starting point: inspect and reproduce the baseline before deciding what the larger project demonstrated.

That first step mattered because repeatability answers a specific question. It can show that a documented process produces an observed result under its conditions. It cannot, on its own, establish that the dataset represents an intended population or that a target’s name justifies a real-world health interpretation.

Read the input contract before the estimator

I began the review with the connection between the workbook and the model. Selecting columns by position is convenient for a fixed layout, but it assumes the layout and the meaning will remain aligned. An explicit schema would make that assumption easier to inspect.

For the next revision, I would make that contract include expected types, units, missing-value rules, allowed categories and the meaning of the target. A column name alone does not settle those questions, especially when it suggests a broader real-world interpretation.

This also made provenance part of the modeling problem. An environmental association is not automatically a causal effect on health, and a supplied-data exercise does not establish clinical usefulness. I needed to keep those interpretations outside the baseline’s result unless separate evidence supported them.

Ask what the split actually tests

Next, I examined what a holdout is meant to tell me. Excluding records from fitting creates a useful comparison, but the selection process determines the kind of generalization being tested. A random partition does not answer every possible future-use question.

If records share places, periods or collection processes, their similarity may make the test easier than a genuinely new use case. Temporal or grouped evaluation would investigate different uncertainties. I treat those as follow-up designs to choose from the intended use and data structure, not as checks already completed here.

I also want error interpretation to go beyond a single average. Residuals and representative failure cases can expose concentrated errors or larger mistakes at the extremes. Those questions help define the next evaluation rather than allowing a summary score to stand in for the whole model.

THE CHALLENGE

Keep a baseline rerun from becoming a tuning claim

PROJECT STEPS

Attach each modeling claim to its own evidence

Environmental regression briefing: sampling station and predictor rows feed a baseline model, with separate evaluation samples and paired predicted and observed values.
STEP 01 OF 05
Identify the inputs

I start the air-quality model review by asking where the workbook came from and what its input columns and predicted outcome represent. Selecting columns by position assumes the layout and meaning still match, so I would document data types, units, treatment of missing values, and the outcome’s meaning before extending the baseline model. This keeps a suggestive column name from being treated as evidence of a health-related meaning.

Select a step to follow the project.
Read all step descriptions
  1. Identify the inputs

    I start the air-quality model review by asking where the workbook came from and what its input columns and predicted outcome represent. Selecting columns by position assumes the layout and meaning still match, so I would document data types, units, treatment of missing values, and the outcome’s meaning before extending the baseline model. This keeps a suggestive column name from being treated as evidence of a health-related meaning.

  2. Define the question

    I ask what new situations the air-quality model’s held-out data, which is kept separate for evaluation, is meant to represent before interpreting its score. Records from shared places, periods, or collection processes can resemble one another even after random separation. I would consider separating whole groups or time periods to examine different uncertainties, but those are future evaluation designs rather than results from the restored baseline.

  3. Reproduce the baseline

    During October restoration, I connected the preserved baseline model program to the conditions and outputs of its own repeated run. This supports repeatability for that particular stage under those conditions. I would preserve the input, software environment, settings, and exact source version together so later comparisons can be traced to the procedure that produced each result.

  4. Separate later stages

    I keep the later account of model improvements separate from the baseline source and repeated run, because they provide different evidence. Repeating the baseline cannot verify later claims about data preparation, settings, or evaluation. Before comparing stages, I would recover the later stage’s matching source, settings, and outputs; independently reproducing that stage remains unfinished.

  5. Bound the conclusion

    I describe the air-quality regression result within the limits of the supplied synthetic data and reproduced baseline, rather than treating a measured relationship as proof of a cause or a clinical conclusion. Repeating an experiment does not establish that its data represents a wider population. I would inspect prediction errors, failure cases, and stronger evaluations to guide further questions, while keeping the separate optimization stage outside this verification.

Experiment review: keep each input contract, evaluation method, and result attached to its source revision.

The challenge in this restoration was that the recovered baseline source and later optimization narrative were different kinds of evidence. Reproducing the baseline could not independently verify every later claim about settings, preparation or evaluation. I responded by keeping those stages separate and attaching the review result to the stage actually rerun.

That leaves a concrete standard for future comparisons: preserve the input, environment, configuration, source revision and outputs together. A narrative, a saved result and an executed revision can support one another, but they do not substitute for one another. The optimized stage remains outside the baseline restoration’s verification.

What the restoration established

In October 2026, I examined and reran the June 2026 baseline while preserving its model source and outputs. I kept the separate July optimization narrative outside that verification because its matching implementation was not independently reproduced.

The result for me was a clearer experimental record and a more useful next step. Before extending the comparison, I would want the later stage’s matching source, configuration and outputs. I learned that a modest, precisely supported statement about a model is more useful than allowing one successful rerun to speak for the entire project.

I reviewed the workbook-to-model assumptions, the evaluation split, and the evidence attached to each modeling stage. I identified the optimized stage’s matching source, configuration, and outputs as the next records needed for a meaningful comparison.

CONCEPTUAL STUDY

Recovered baseline modeling source and separate later narrative; baseline restoration reviewed; optimized-stage source and reported claims not independently established by that run.

Validation & limitations

  • Recovered baseline modeling source and separate later narrative; baseline restoration reviewed; optimized-stage source and reported claims not independently established by that run.

Project records

  • Project artifacts and historical records, June 23–July 16, 2026 baseline and narrative artifacts
  • Restoration and public documentation, October 1, 2026
Course descriptions and assignment context
END OF PROJECT FILE RETURN TO ARCHIVE