MS Business Analytics · University of Houston
Machine learning and hypothesis testing
Three team projects from my master's degree: a regression model that prices houses, a neural network that finds customers likely to buy a second insurance product, and a randomized experiment analyzed with t-tests and F-tests. Each one shows the data, the method and the results we reported.
- Python
- pandas
- scikit-learn
- TensorFlow · Keras
- Excel · StatTools
BZAN 6355 · Team project
Predicting house sale prices
Given what we know about a house, what will it sell for? We built and compared two models, then priced 100 homes the models had never seen.
Data
Four source tables (house features, two property surveys and a quality assessment) joined one to one on parcel ID into 2,370 homes with 26 predictors and no missing values. The average sale price was $173,731.
Method
- Log-transformed seven right-skewed area measures, then standardized everything inside scikit-learn pipelines, with imputers so new data with gaps could still be scored.
- Ran recursive feature elimination from 1 to 26 features, scored by 10-fold cross-validated mean absolute error.
- Compared linear regression with distance-weighted k-nearest neighbors, tuning k from 2 to 24.
Outcome
Linear regression with all 26 features had the lower cross-validated error, so we used it to price the 100 unsold homes. Twenty missing values in that new set were filled by the pipeline rather than dropped.
BZAN 6357 · Team project
Finding likely buyers for a second policy
An insurer wanted to know which existing customers would buy an additional product, so its reps could call the right people first.
Data
20,460 customers with 12 fields, including age, region, vehicle age, accident history, premium quote and tenure. Only 18.4% had bought, so the classes were imbalanced.
Method
- One-hot encoded the categorical fields, simplified 53 region codes, log-transformed and scaled age and premium.
- Split 60/40 into train and test, then checked the split with a two-proportion z-test: z = 0.77, p = 0.44, so the buy rate was the same in both sets.
- Trained a Keras network (50, 17 and 7 ReLU units, sigmoid output) with binary cross-entropy, balanced class weights and early stopping.
- Swept the decision threshold to pick the best F1 score.
Outcome
The model separated buyers from non-buyers well enough to rank a call list. Scoring 2,000 new customers flagged 924 as likely buyers.
BZAN 6353 · Team project · April 2022
A 2×2 experiment on willingness to pay
Do two experimental factors, each at two levels, change how much people are willing to pay? We tested the differences between groups formally instead of eyeballing the averages.
Design and data
400 participants were randomly assigned to four groups of 89, 107, 109 and 95. Each person's willingness to pay was measured before and after, and the outcome was the change.
Method
- F-tests for equal variances between the groups being compared. Equal variance was rejected (p = 0.001 and p = 0.003), so we reported unequal-variance results alongside the pooled ones.
- Two-sample t-tests for each pair of groups, with 95% confidence intervals on the difference in means.
Outcome
Every confidence interval sits far from zero, with t statistics between about 10 and 24 in size. All four pairwise differences we tested were statistically significant.
Capstone research
Predicting central-line infections in pediatric ICUs
Question
Which modeling approach can flag children at risk of a central-line bloodstream infection (CLABSI) early enough to act?
What I covered
A literature review comparing a conditional logistic regression study of risk factors with work that used logistic regression, gradient-boosted trees and deep learning on the MIMIC-III intensive care database.
Statistics
The report also deals with statistical power and sample size, including why cluster-randomized trials need many units (on the order of 60 clusters) to detect a real effect.
Models explained
A companion write-up explains logistic regression (cross-entropy loss and gradient descent), k-nearest neighbors, decision trees and random forests for a yes/no infection target, with the trade-offs of each.