Portfolio
07 / Case StudyData Science / Regression

NYC Aquatics Enrollment Prediction

A regression project that predicts NYC aquatics enrollment from borough, pool, and class type data.

Scroll through the build
01

Quick read

The project in a few seconds.

Dataset

6,217 rows

Cleaned records used for modeling.

Model

Linear regression

Enrollment prediction.

R²

0.5967

Model evaluation score.

MAE

5.56

About six registrations off on average.

02

How it works

The project from input to outcome.

01

NYC Data

Raw program records

02

Clean

Prepare usable rows

03

Encode

Categorical features

04

Regression

Train model

05

Evaluate

Metrics + visuals

03

My contribution

The pieces I directly worked on.

01

Cleaned a real NYC Open Data dataset for aquatics programming.

02

Used borough, swimming pool, and class type as predictors for total registration.

03

Applied one-hot encoding to convert categorical variables into model-ready features.

04

Trained a multiple linear regression model to predict enrollment.

05

Evaluated the model using R², MAE, and RMSE.

06

Created visualizations comparing actual vs. predicted enrollment.

04

Engineering proof

A few decisions that show what was happening under the surface.

Decision 01

Used regression because the target variable, Total Registration, is numerical.

Decision 02

Kept the first version focused on interpretable features instead of adding unnecessary complexity.

Decision 03

Used one-hot encoding because the main predictors were categorical variables.

05

Results

The proof that the build came together.

What shipped
01

Cleaned the dataset down to 6,217 usable rows.

02

Built a multiple linear regression model with an R² score of 0.5967.

03

Achieved a Mean Absolute Error of 5.56, meaning predictions were off by about 6 registrations on average.

04

Achieved a Root Mean Squared Error of 7.21, showing the typical size of larger prediction errors.

06

Product

See the work instead of only reading about it.

Project views
NYC Aquatics enrollment prediction project overview slide
01

Project overview showing the goal of predicting enrollment using pool type, borough, and class type.

NYC Aquatics dataset slide showing rows and selected columns
02

Dataset summary showing cleaned rows, selected categorical features, and the numerical target variable.

NYC Aquatics regression results showing R squared, MAE, and RMSE
03

Regression results showing R², Mean Absolute Error, and Root Mean Squared Error.

Actual versus predicted enrollment scatterplot
04

Visualization comparing actual enrollment against predicted enrollment.

Feature impact chart for NYC Aquatics enrollment prediction
05

Feature impact analysis showing which class types, pools, and boroughs influenced predicted enrollment.

07

Deep dive

Optional technical detail if you want to go deeper.

End of case study

You just finished

NYC Aquatics Enrollment Prediction

Back to portfolio
Next project01

OpsDesk

Full-Stack / Support Operations