Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Mean and Variance of Data

EasyStatistics & Probability00:00
Practice interviewer
In session
5 left
00:00

Your question is Mean and Variance of Data. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Scenario

You are given a small numeric dataset and want to summarize its center and spread before using it in downstream analysis. A simple example is the values 4, 8, 6, 5, 3, 7, 9.

Question

Write a function to calculate the mean and variance of a dataset.