PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/Google

Generate Samples from Truncated Normal Distribution

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of truncated normal distributions, including the probability density and cumulative distribution functions, and the competency to reason about and implement sampling from a distribution conditioned on an interval.

  • medium
  • Google
  • Statistics & Math
  • Data Scientist

Generate Samples from Truncated Normal Distribution

Company: Google

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

##### Scenario You only keep samples from a normal distribution that are greater than 1. ##### Question a) What is this resulting distribution called? b) Give its formal PDF/CDF definition. c) Describe at least two different ways to generate random samples directly from this truncated normal distribution. ##### Hints CDF inversion and rejection/Monte-Carlo sampling are both acceptable.

Quick Answer: This question evaluates understanding of truncated normal distributions, including the probability density and cumulative distribution functions, and the competency to reason about and implement sampling from a distribution conditioned on an interval.

Related Interview Questions

  • Measure Bird Species Segregation - Google (medium)
  • Estimate weather’s effect on mental health - Google (easy)
  • Explain Bootstrap and Statistical Inference - Google (hard)
  • Explain Bootstrap and Prove Uniformity - Google (hard)
  • Can bootstrap help reduce variance - Google (medium)
Google logo
Google
Jul 12, 2025, 6:59 PM
Data Scientist
Technical Screen
Statistics & Math
22
0

Scenario

You draw from a normal distribution but only keep observations that are greater than 1 (i.e., values below 1 are discarded).

Assume the original variable is X ~ N(μ, σ²) and we keep only X ≥ 1. The special case μ = 0, σ = 1 corresponds to a standard normal.

Questions

  1. What is the resulting distribution called?
  2. Provide its formal PDF and CDF.
  3. Describe at least two different ways to generate random samples directly from this truncated normal distribution. Inverse-CDF and rejection/Monte Carlo methods are acceptable.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

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

Master your tech interviews with 8,500+ 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.