PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/LinkedIn

Derive mean and variance of x̄

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of expectation, variance, covariance structure, and how dependence between observations affects the precision of the sample mean.

  • medium
  • LinkedIn
  • Statistics & Math
  • Data Scientist

Derive mean and variance of x̄

Company: LinkedIn

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

Let \(X_1, X_2, \dots, X_n\) be random variables, and define the sample mean as \(\bar X = \frac{1}{n}\sum_{i=1}^n X_i\). 1. Assume the variables are i.i.d. with \(\mathbb E[X_i] = \mu\) and \(\mathrm{Var}(X_i) = \sigma^2\). Derive \(\mathbb E[\bar X]\) and \(\mathrm{Var}(\bar X)\). 2. Now remove the independence assumption. Derive \(\mathrm{Var}(\bar X)\) in terms of the covariance matrix of \((X_1,\dots,X_n)\). 3. As a special case, assume each variable has variance \(\sigma^2\) and every pair \((X_i, X_j)\) for \(i \ne j\) has the same correlation \(\rho\). Simplify the variance formula and explain how positive or negative correlation affects the precision of the sample mean.

Quick Answer: This question evaluates understanding of expectation, variance, covariance structure, and how dependence between observations affects the precision of the sample mean.

Related Interview Questions

  • Sketch distributions and compare mean/median/mode - LinkedIn (easy)
  • Choose better bank queue and describe distributions - LinkedIn (easy)
  • Derive expectation for two consecutive heads - LinkedIn (medium)
  • Compare queues and interpret distributions - LinkedIn (medium)
  • Measure Causal Impact of Self-Selected App Redesign - LinkedIn (hard)
LinkedIn logo
LinkedIn
Feb 19, 2026, 12:00 AM
Data Scientist
Technical Screen
Statistics & Math
2
0
Loading...

Let X1,X2,…,XnX_1, X_2, \dots, X_nX1​,X2​,…,Xn​ be random variables, and define the sample mean as Xˉ=1n∑i=1nXi\bar X = \frac{1}{n}\sum_{i=1}^n X_iXˉ=n1​∑i=1n​Xi​.

  1. Assume the variables are i.i.d. with E[Xi]=μ\mathbb E[X_i] = \muE[Xi​]=μ and Var(Xi)=σ2\mathrm{Var}(X_i) = \sigma^2Var(Xi​)=σ2 . Derive E[Xˉ]\mathbb E[\bar X]E[Xˉ] and Var(Xˉ)\mathrm{Var}(\bar X)Var(Xˉ) .
  2. Now remove the independence assumption. Derive Var(Xˉ)\mathrm{Var}(\bar X)Var(Xˉ) in terms of the covariance matrix of (X1,…,Xn)(X_1,\dots,X_n)(X1​,…,Xn​) .
  3. As a special case, assume each variable has variance σ2\sigma^2σ2 and every pair (Xi,Xj)(X_i, X_j)(Xi​,Xj​) for i≠ji \ne ji=j has the same correlation ρ\rhoρ . Simplify the variance formula and explain how positive or negative correlation affects the precision of the sample mean.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More LinkedIn•More Data Scientist•LinkedIn Data Scientist•LinkedIn 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
  • 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.