PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Coding & Algorithms/Airwallex

Implement bootstrap mean and variance

Last updated: Apr 2, 2026

Quick Overview

This question evaluates a candidate's ability to implement bootstrap resampling and compute statistical estimates for the sampling distribution of the mean, testing skills in resampling methods, numerical computation, and statistical inference.

  • medium
  • Airwallex
  • Coding & Algorithms
  • Data Scientist

Implement bootstrap mean and variance

Company: Airwallex

Role: Data Scientist

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Given an array of N numeric values, implement a function that uses bootstrap resampling to estimate the sampling distribution of the mean. The function should: - take as input the array and the number of bootstrap resamples B, - for each resample, draw N observations with replacement from the original array, - compute the mean of each resampled array, and - return: 1. the bootstrap estimate of the mean of the sample mean, and 2. the bootstrap estimate of the variance of the sample mean. Assume the input array fits in memory and do not use built-in bootstrap utilities.

Quick Answer: This question evaluates a candidate's ability to implement bootstrap resampling and compute statistical estimates for the sampling distribution of the mean, testing skills in resampling methods, numerical computation, and statistical inference.

Related Interview Questions

  • Implement bootstrap mean and variance - Airwallex (medium)
Airwallex logo
Airwallex
Dec 8, 2025, 12:00 AM
Data Scientist
Onsite
Coding & Algorithms
3
0
Loading...

Given an array of N numeric values, implement a function that uses bootstrap resampling to estimate the sampling distribution of the mean.

The function should:

  • take as input the array and the number of bootstrap resamples B,
  • for each resample, draw N observations with replacement from the original array,
  • compute the mean of each resampled array, and
  • return:
    1. the bootstrap estimate of the mean of the sample mean, and
    2. the bootstrap estimate of the variance of the sample mean.

Assume the input array fits in memory and do not use built-in bootstrap utilities.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Coding & Algorithms•More Airwallex•More Data Scientist•Airwallex Data Scientist•Airwallex Coding & Algorithms•Data Scientist Coding & Algorithms
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.