Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Bar Chart vs Histogram Selection

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

Your question is Bar Chart vs Histogram Selection. 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

Business Context

StreamCart's analytics team is preparing a dashboard for executives. They need to visualize both customer segment counts and the distribution of order values, and they want to avoid using the wrong chart type.

Problem Statement

Explain the difference between a bar chart and a histogram, then use the data below to determine which chart is appropriate for each dataset. Also quantify the order-value distribution so your recommendation is grounded in the data rather than only definitions.

Given Data

Dataset A: Customer counts by acquisition channel

ChannelCustomers
Paid Search420
Organic Search610
Email275
Referral190
Social305

Dataset B: 40 order values in dollars

Order Values
12, 15, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31, 33, 35, 36, 38, 40, 42, 45, 47, 49, 52, 55, 58, 60, 62, 65, 68, 72, 75, 78, 82, 85, 90, 95, 102, 110, 118, 130, 145

Use the following histogram bins for Dataset B: [0,25),[25,50),[50,75),[75,100),[100,125),[125,150)[0,25), [25,50), [50,75), [75,100), [100,125), [125,150)[0,25),[25,50),[50,75),[75,100),[100,125),[125,150).

Requirements

  1. State the conceptual difference between a bar chart and a histogram.
  2. Identify whether Dataset A should use a bar chart or histogram.
  3. Compute the frequency in each histogram bin for Dataset B.
  4. Calculate the sample mean and sample standard deviation of Dataset B.
  5. Explain whether Dataset B appears discrete/categorical or continuous/distributional, and which chart should be used.
  6. Briefly note one common mistake analysts make when confusing these charts.

Assumptions

  • Acquisition channels are categorical labels with no numeric continuity.
  • Order value is a quantitative variable measured on a continuous monetary scale.
  • For the histogram, values on the left edge are included and right edge excluded, except the last bin which includes 150.