PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Roblox

Normalize features and rank logistic coefficients

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of feature preprocessing (z‑score normalization), linear logistic regression fitting and coefficient-based feature ranking, along with practical considerations such as handling zero-variance features, intercept treatment, and regularization; it is commonly asked to test applied skills in producing comparable feature scales and interpretable model weights. Category/domain: Machine Learning; abstraction level: applied, implementation-focused data science task appropriate for Data Scientist interviews.

  • hard
  • Roblox
  • Machine Learning
  • Data Scientist

Normalize features and rank logistic coefficients

Company: Roblox

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Take-home Project

You are given a binary classification training dataset: - `X`: a 2D array of shape (n_samples, n_features) containing numeric features. - `feature_names`: a list of length n_features with the feature names. - `y`: a 1D binary array (0/1) of length n_samples. Task: 1) **Normalize** each feature column of `X` using z-score standardization based on the training set: \[ X'_{:,j} = \frac{X_{:,j} - \mu_j}{\sigma_j} \] (where \(\mu_j\) and \(\sigma_j\) are the mean and standard deviation of feature \(j\) over the training data.) 2) Fit a (linear) **logistic regression** model on the normalized features. 3) Extract the fitted coefficients and **rank features by coefficient value** (largest to smallest). Return the **top 3 feature names**. Clarify any modeling choices needed to make this well-defined (e.g., intercept, regularization, handling zero-variance features).

Quick Answer: This question evaluates understanding of feature preprocessing (z‑score normalization), linear logistic regression fitting and coefficient-based feature ranking, along with practical considerations such as handling zero-variance features, intercept treatment, and regularization; it is commonly asked to test applied skills in producing comparable feature scales and interpretable model weights. Category/domain: Machine Learning; abstraction level: applied, implementation-focused data science task appropriate for Data Scientist interviews.

Related Interview Questions

  • Fit logistic regression and return top features - Roblox (hard)
  • Explain an ML project end-to-end with tradeoffs - Roblox (Medium)
  • Design leakage-free predictive maintenance pipeline - Roblox (hard)
  • Design real-time payments fraud model under constraints - Roblox (hard)
  • Rank features using logistic regression coefficients - Roblox (easy)
Roblox logo
Roblox
Nov 24, 2025, 12:00 AM
Data Scientist
Take-home Project
Machine Learning
6
0

You are given a binary classification training dataset:

  • X : a 2D array of shape (n_samples, n_features) containing numeric features.
  • feature_names : a list of length n_features with the feature names.
  • y : a 1D binary array (0/1) of length n_samples.

Task:

  1. Normalize each feature column of X using z-score standardization based on the training set:

X:,j′=X:,j−μjσjX'_{:,j} = \frac{X_{:,j} - \mu_j}{\sigma_j}X:,j′​=σj​X:,j​−μj​​

(where μj\mu_jμj​ and σj\sigma_jσj​ are the mean and standard deviation of feature jjj over the training data.)

  1. Fit a (linear) logistic regression model on the normalized features.
  2. Extract the fitted coefficients and rank features by coefficient value (largest to smallest). Return the top 3 feature names .

Clarify any modeling choices needed to make this well-defined (e.g., intercept, regularization, handling zero-variance features).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Roblox•More Data Scientist•Roblox Data Scientist•Roblox Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.