PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/Statistics & Math/Upstart

Compute decay, OLS, and classic probability results

Last updated: Mar 29, 2026

Quick Overview

This question evaluates probability and statistical modeling skills—probabilistic reasoning for exponential decay and the coupon-collector expectation, derivation of population OLS coefficients for simple linear models, simulation implementation, and conditional probability reasoning exemplified by the Monty Hall scenario.

  • easy
  • Upstart
  • Statistics & Math
  • Data Scientist

Compute decay, OLS, and classic probability results

Company: Upstart

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Onsite

You are asked several probability/statistics questions. ## 1) Radioactive decay (half-life) A radioactive atom has a half-life of **1 day**. Assume each atom decays independently and decay follows an exponential distribution. 1. If you start with **n = 100** atoms, what is the probability distribution of the number of atoms still alive after **m = 10** days? 2. Compute: - the **expected** number of atoms still alive after 10 days - the probability that **at least one** atom is still alive after 10 days 3. Write a simulation: input **m** (days) and **n** (number of atoms) and output the **final state** of each atom (e.g., 1 = alive, 0 = decayed) after m days. ## 2) Population OLS coefficients Let - \(y = x + \varepsilon\) - \(x \sim \mathcal{N}(0,1)\), \(\varepsilon \sim \mathcal{N}(0,1)\) - \(x\) and \(\varepsilon\) are independent. Compute the population OLS slope (and intercept) for: 1. Regression A: \(y\) on \(x\) (i.e., \(y \sim x\)) 2. Regression B: \(x\) on \(y\) (i.e., \(x \sim y\)) ## 3) Monty Hall In the classic Monty Hall problem with 3 doors (1 prize, 2 goats), after you pick a door the host opens a different door showing a goat and offers you the chance to switch. What is the probability of winning if you **switch** vs if you **stay**? Briefly justify. ## 4) n-sided die: time to see all faces You roll a fair die with **n** faces repeatedly. What is the **expected** number of rolls required to observe **all n faces at least once**?

Quick Answer: This question evaluates probability and statistical modeling skills—probabilistic reasoning for exponential decay and the coupon-collector expectation, derivation of population OLS coefficients for simple linear models, simulation implementation, and conditional probability reasoning exemplified by the Monty Hall scenario.

Related Interview Questions

  • Correct length-biased sampling from family-size survey - Upstart (easy)
  • Solve core probability/statistics mini-problems - Upstart (medium)
  • Combine noisy thermometers; compute random-walk correlations - Upstart (easy)
  • Analyze HT vs HH stopping-time probabilities - Upstart (medium)
  • Solve drunk-passenger probability and simulate outcome - Upstart (medium)
Upstart logo
Upstart
Dec 9, 2025, 12:00 AM
Data Scientist
Onsite
Statistics & Math
8
0

You are asked several probability/statistics questions.

1) Radioactive decay (half-life)

A radioactive atom has a half-life of 1 day. Assume each atom decays independently and decay follows an exponential distribution.

  1. If you start with n = 100 atoms, what is the probability distribution of the number of atoms still alive after m = 10 days?
  2. Compute:
    • the expected number of atoms still alive after 10 days
    • the probability that at least one atom is still alive after 10 days
  3. Write a simulation: input m (days) and n (number of atoms) and output the final state of each atom (e.g., 1 = alive, 0 = decayed) after m days.

2) Population OLS coefficients

Let

  • y=x+εy = x + \varepsilony=x+ε
  • x∼N(0,1)x \sim \mathcal{N}(0,1)x∼N(0,1) , ε∼N(0,1)\varepsilon \sim \mathcal{N}(0,1)ε∼N(0,1)
  • xxx and ε\varepsilonε are independent.

Compute the population OLS slope (and intercept) for:

  1. Regression A: yyy on xxx (i.e., y∼xy \sim xy∼x )
  2. Regression B: xxx on yyy (i.e., x∼yx \sim yx∼y )

3) Monty Hall

In the classic Monty Hall problem with 3 doors (1 prize, 2 goats), after you pick a door the host opens a different door showing a goat and offers you the chance to switch.

What is the probability of winning if you switch vs if you stay? Briefly justify.

4) n-sided die: time to see all faces

You roll a fair die with n faces repeatedly.

What is the expected number of rolls required to observe all n faces at least once?

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Upstart•More Data Scientist•Upstart Data Scientist•Upstart Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • Careers
  • 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.