Ravindra BagaleCourses & study guides मराठी Track your progress

8. Charts

Excel

8.7 Histogram and Box & Whisker

1. Describe a distribution before drawing conclusions from an average

A fictional delivery training team reports an average wait time, then asks whether shoppers usually wait about that long. An average alone does not show whether times sit close together, whether there are two groups or whether a few long waits push the average up. A histogram counts observations within numeric ranges. A box and whisker chart summarizes the center, spread and unusual values with a compact shape. Both help you ask more precise questions about the source.

Think of a mock report inspired by seeing a delivery window in shopping apps such as Blinkit. The times and locations in this lesson are fictional. For the first lab each row is a verified wait time for one completed delivery. For the second lab we compare two small route samples using the same unit. Neither chart identifies why a long wait happened. Keep the original records and check definitions before making a process claim.

Check the rules behind the shape. A histogram depends on its bin boundaries. A box plot depends on its quartile and whisker convention. Write the rules and verify the measured values before interpreting either.

Choose the distribution view based on the information needed

  • Histogram. Each horizontal position represents a numeric interval, and the bar shows the frequency for that interval. Use it to see the spread, peaks, gaps or a tail.
  • Box plot. The middle line generally marks the median and the box is bounded by lower and upper quartiles. Whiskers and optional points show information beyond the box using a stated convention.
  • Category column chart. Each column can be a named group such as city. Its values might be counts or average waits. It does not show a distribution unless its categories and heights have been deliberately computed as numeric bins and clearly labeled.
  • Original point or table view. A small sample can be shown in full. Histograms group exact values, and boxes compress them further. Maintain access to the original points to verify unusual records and scope.

Histograms and categorical bars can look similar but their horizontal meanings differ. Reordering equally sized numeric intervals by frequency would disrupt the distribution reading. A gap in time values should stay where it is on the numeric scale. For the box plot, similarly, rearranging the original rows should not change the calculated median or quartiles. The grouped shape concerns the set of values, rather than the order in which they arrived.

2. Lab. Count exact boundary values into explicit five-minute bins

Goal. Reconcile 16 observations with seven displayed interval counts and a separate overflow check. Enter the first two columns below in A1:B17 of a sheet called Wait Times. Each wait time is a nonnegative number in minutes. Record rows separately even when their wait times are the same. A delivery at exactly 10 minutes should have one place in the result, not two.

Sixteen fictional wait times including boundary cases
RecordWait (min)
W013
W025
W035
W046
W059
W0610
W0710
W0811
W0914
W1015
W1115
W1216
W1320
W1421
W1530
W1631
Histogram of sixteen wait times in seven five-minute intervals. Counts from the first bin ending at 5 through the last ending at 35 are 3, 4, 4, 2, 1, 1, 1.
Read intervals in numeric order. Each interior bin includes its upper boundary and excludes its lower boundary.

Assign the boundary values once

  1. Check the population

    COUNT over B2:B17 should be 16. Check that all durations are nonnegative and measured in minutes. A blank or text value needs a review decision before it can count as a wait.

  2. Write upper limits

    Put 5, 10, 15, 20, 25, 30 and 35 in E2:E8. Each bin covers values greater than its lower edge and at or below its upper edge. The first row counts all values at or below 5. In our validated nonnegative fixture that is equivalent to the interval from zero through 5.

  3. Count with paired adjacent boundaries

    Use FREQUENCY as shown below. It returns an extra result beyond the last upper limit. In an empty modern worksheet range this can spill from F2 through F9. On a version without dynamic spill, use its documented array-entry method or the separate COUNTIF and COUNTIFS checks.

  4. Trace exact endpoints

    Two values 5 belong to the first bin, both 10 values go in the next bin, both 15 values go in the third, and the value at 30 enters the bin greater than 25 through 30. The value 31 belongs to the final displayed interval through 35. No value exceeds 35.

  5. Reconcile the output

    The seven displayed counts are 3, 4, 4, 2, 1, 1 and 1. The overflow result is zero. Together they account for all 16 values. Check how many are more than 20 minutes: three, namely 21, 30 and 31.

F2 =FREQUENCY($B$2:$B$17,$E$2:$E$8)
First boundary check =COUNTIF($B$2:$B$17,"<="&E2)
Second boundary check =COUNTIFS($B$2:$B$17,">"&E2,$B$2:$B$17,"<="&E3)
More than last bound =COUNTIF($B$2:$B$17,">"&E8)

For the COUNTIFS check, move the boundary references down through the upper limits for each interior row. Use the COUNTIF rule separately for the first interval and the overflow. Enter the references into distinct audit cells rather than typing over spilled results. The checks assume the input contains the validated numeric durations. Keep a count of missing or rejected source rows separately. A method that silently ignores text can still produce a complete-looking chart of only the numeric subset.

Compare the native Histogram chart with explicit upper bounds

In a supported Excel build select the original numeric wait values and insert a Histogram from the statistical chart gallery. In the horizontal axis settings where available, choose a Bin width such as five minutes or inspect a Number of bins choice. Verify the actual interval labels and boundaries. A width of five describes the size of each regular bin. It does not by itself specify that the first upper bound in your chart is 5. The starting point and optional endpoint settings also shape the display.

For an explicit set of upper limits, use the worksheet count table or the Analysis ToolPak Histogram option where that add-in and workflow are available. With the ToolPak, select the numeric values as Input Range and E2:E8 as Bin Range, with labels handling set to match your selection. Choose a separate output location. Check the same counts and overflow row. This method takes actual bin upper edges. Do not treat the number of bins field on the native chart as a range of upper edge cells.

If your native chart uses different edges than the worked table, it can show different counts without any source error. Read its interval labels, compare a boundary value and use your selected method consistently. For a teaching plot of exact five-minute bins you can chart the explicit equal-width counts as adjacent columns, label the horizontal numeric boundaries or interval names and disclose how they were calculated. A chart reconstructed from a frequency table is useful when readers need reproducible bins.

3. Read the tail and test what a different histogram would show

Change boundaries on a copy, then recount the same records

Try ten-minute bins with upper bounds 10, 20 and 30 and an extra overflow result. The original sixteen observations give 7 at or below 10, 6 greater than 10 through 20, 2 greater than 20 through 30 and 1 more than 30. The source times and total stayed the same. The larger bins combined neighboring groups and changed the plotted heights. The bins identify what one bar covers, so a peak count of seven uses a different interval from a peak count of four. Keep units and bin boundaries visible.

Run the test in reverse. Reduce the width, or make a version with explicit upper bounds that highlight a 15-minute service target. Exactly four observations are in the range greater than 5 through 10, and exactly four are greater than 10 through 15. In the full sample 11 observations are at or below 15, so a target of no more than 15 minutes has an observed success rate of 11 out of 16, or 68.75 percent. You can calculate that exact rate independently of chart binning. A bin chart provides context about the shape around the threshold, while the service rate answers a specific operational question.

Check overflow and underflow without confusing them with ordinary bars

Add one verified 36-minute wait to a disposable copy. If your explicit bounds still end at 35, the seven ordinary bins stay unchanged and the overflow count goes from zero to one. The new total is 17. Extend the FREQUENCY input range to include the new cell and keep the overflow entry visible in the check table. A filter that removes every observation above 35 makes a different subset and conceals the long value. Do not silently remove an observation merely because the displayed range did not include it initially.

In the native histogram options, Microsoft describes underflow as values at or below a supplied threshold and overflow as values above a supplied threshold. Try a cutoff at 30 on a copy; 30 should remain in its regular range or applicable boundary bin, while 31 should be above the threshold. Inspect the exact labels and displayed counts. An open-ended range such as more than 30 does not have the same numeric width as an ordinary interval. If you display it beside equal-width bars, mark that it is a tail group. Do not infer a new density from an open bin.

For the equal-width lab histogram, bar heights can be counts because each displayed bin covers the same five-minute width. If you create inconsistent widths and want the bar area to represent frequency, you would use a frequency density with a defined unit of count per minute. That is a different design from presenting a table of unequal bucket counts. As a beginner, use consistent regular widths and disclose any underflow or overflow counts separately. A reader should not confuse size caused by width with the number of observations.

Compare group histograms using shared boundaries

If two routes have different observation counts, their raw histogram heights partly reflect those sample sizes. Compare distributions with the same bin edges and time units. An optional relative frequency divides each bin count by the corresponding sample size. That lets you compare proportions, while a separate label preserves the number of measurements. A chart of 100 waits can be less uncertain about typical share than a chart of five, even when bars look similar. Report the sample sizes and data scope alongside the figures.

4. Lab. Compute the quartile boundaries before identifying an outlier

Goal. Calculate two route summaries by hand and in Excel, then compare the display under a documented convention. On a new sheet called Route Boxes put independently measured fictional waits into two columns as shown. The rows are just sorted positions within each route. The fifth row in one column does not imply the same delivery as the fifth row in the other.

Two independently sorted route samples, in minutes
Route A wait (min)Route B wait (min)
810
1012
1215
2018
4024
Route A box from 10 to 20 with median 12, observed whiskers at 8 and 20 and an outlier of 40. Route B box from 12 to 18 has median 15 and whiskers at 10 and 24.
These drawings use inclusive halves and observed whiskers within 1.5 IQR fences. A's upper fence is 35, while its observed upper whisker ends at 20.
  1. Find the median in each ordered list. Route A's middle observation is 12 and Route B's is 15. An odd sample of five has a single middle position. In the worksheet you can use MEDIAN on each full data range.
  2. Choose an inclusive-half convention for this five-point example. Include the middle observation in both halves. A's lower half is 8, 10, 12 and its upper half is 12, 20, 40. The halves have medians 10 and 20. For B, the two three-value halves produce 12 and 18.
  3. Compute IQR and define the fences. Interquartile range is the upper quartile minus the lower quartile. For A it is 20 minus 10, or 10. Under the illustrated 1.5 IQR fence convention, subtract 15 from Q1 and add 15 to Q3, producing -5 and 35. For B the IQR is 6, and its fences are 3 and 27.
  4. Place whiskers at actual in-range observations. A's extreme observations within the fences are 8 and 20. The high value 40 is above 35, so it is plotted separately. The upper whisker is not 35, since there is no observation there. In B the whiskers are 10 and 24, with no observation outside the fences.
  5. Compare with Excel's box chart. Select both columns with their headers as two independent series and insert Box and Whisker in a supporting Excel version. Verify group assignment and check the Quartile Calculation option. For this fixture, choose Inclusive median to compare with the manual inclusive-half calculation. Inspect which marks Excel actually draws before publishing a statement about the chart. Optional inner points and outlier points are different styles of marker.

Enter the two columns in A1:B6. A simple formula audit on these five-row sorted lists can use the following cells. The references for the halves specifically use this fixed sample size and sort order. Do not fill the same addresses for a changing collection without calculating which rows belong to each half.

A median =MEDIAN(A2:A6)
A Q1, inclusive halves =MEDIAN(A2:A4)
A Q3, inclusive halves =MEDIAN(A4:A6)
B median =MEDIAN(B2:B6)
B Q1, inclusive halves =MEDIAN(B2:B4)
B Q3, inclusive halves =MEDIAN(B4:B6)

The figure explicitly uses one common box-plot convention. In that convention, the numerical fences identify unusually far distances from the box. Actual whiskers extend to observed values within those fences. Some box-plot definitions use minimum and maximum for whiskers without separate outlier marking. State the definition and inspect the version and settings for an authoritative figure. The NIST box-plot reference explains the difference between extrema-based whiskers and fence-based marking.

Test the exclusive choice against the same sample

Exclude the middle 12 from both Route A halves. The lower half is now 8 and 10, so its median is 9. The upper half is 20 and 40, so its median is 30. The IQR is 21, and under the same fence rule the lower and upper fences are -22.5 and 61.5. Value 40 no longer sits above the upper fence and becomes the largest observed in-range value. Its existence and meaning did not change. The rule defining the box and fences changed. This small sample helps explain why different software options can display the same values differently.

Excel's Box and Whisker documentation describes inclusive and exclusive median calculation for odd counts. Set the choice on the chart and compare against expected values for the small sample. Do not assume that every worksheet quartile function, graph format and interpolation convention gives the same result for every sample size. When you compare groups, label the rule or keep a calculated summary with the plotted result. Stick to the same convention across all groups in the report.

5. Interpret the center, box, tail and point labels carefully

Compare typical results and unusual waits separately

In the sample, Route A has a lower median, 12, compared with Route B's 15. Route A also has a wider inclusive box, 10 minutes of IQR versus 6. Its high value of 40 is outside the displayed inclusive fence. Route B's highest observation is 24 and it stays within that route's fences. The judgment about which route is better depends on whether typical wait, reliability around the center or a threshold is the priority. A box chart makes several of those differences visible at once.

Compare the arithmetic means. Route A's five values sum to 90, giving a mean of 18. Route B's sum is 79, giving 15.8. A's mean exceeds B's even though A's median is lower. The 40-minute observation matters for the mean. On a disposable copy, leave it out to ask how sensitive the center is to that single value. The remaining four A waits average 12.5 and have a median of 11. Do not report that shorter calculation as the original route average. Use it to understand sensitivity, and restore the original five records unless independent evidence justifies exclusion.

For an example service rule of no more than 20 minutes, four of each route's five observed waits meet it. Route A misses the target with 40 and Route B misses with 24. Both have an observed 80 percent success rate in these samples. That rate alone does not distinguish their median, variation or worst wait. Include the metric the decision needs. With five observations per group, a single value moves the observed success rate by twenty percentage points. Do not insert a broad performance claim merely because one compact chart seems decisive.

Distinguish every mark in your chart's actual legend

Excel's box chart can show individual inner observations, outlier points, mean markers and optional lines connecting means in supporting builds. A dot by itself is not proof of an outlier. Check whether it is between the actual whiskers or outside them and what settings created it. A mean marker represents the average and is not the same mark as the median line. In the A box, the median is 12 and the mean is 18. Both could appear inside the box. Without a clear legend and numeric values, they can be easy to confuse.

When reporting several groups, keep the same unit, scale and definitions. Counts and durations should not share a numerical box plot just because both are integers. A route sampled at peak time and one sampled all day may not be comparable without a clear report limitation. Preserve the underlying sample period and inventory of records. A distribution shows the values it contains; it cannot discover by itself that one group came from a very different window.

Investigate a candidate outlier through the source

Locate the 40-minute record via its source ID. Check whether the field measures the stated unit and whether a source retry or open order made its duration invalid. If the observation genuinely took 40 minutes, preserve it. A method that labels it outside a fence is not permission to delete it. Identifying influential or unusual values helps decide which records to inspect. It does not identify a typo, fraud or operational cause. Report the version of the data and rule when the point's classification matters.

Suppose the record is corrected to a verified 30 minutes rather than 40. In this particular inclusive A example, the middle value and quartiles still read 12, 10 and 20. The IQR and upper fence stay 10 and 35. Now the observed upper whisker reaches 30 and there is no observation above the fence. That is a direct test of why a whisker represents an observed endpoint rather than the cutoff. Confirm the corrected mean is 16 if the other four figures are unchanged, and keep the original record and correction note on the work copy.

6. Verify the distributions before a handoff

Choose an exact check you can reproduce

  1. Count valid inputs first. A numeric 0 is a value, while an empty or unverified entry has a different role. Keep source rows and record review counts separately.
  2. Write all interval edges as a test. Check an exact edge, a value just above it and the last overflow value. Reconcile counts and document whether the lower or upper bound is included.
  3. Label the sample and measure. A bar can be frequency, relative frequency or density. An axis in minutes tells the reader where the ranges sit. Show the number of records.
  4. Inspect quartile definitions. In the fixed five-value example compare each group's two halves, medians, fences and actual whisker endpoints. Record the chart settings and keep exact source points available.
  5. Explain mean versus median and rate. The shapes show different summaries. Carry one independently computed threshold rate or source comparison along with the diagram if it changes the interpretation.
  6. Keep accessibility in the figure. Use readable text, a common scale and labeled boxes or marker styles. Add descriptive alt text and a companion table with exact values.

Try a final checkpoint on the histogram. When asked how many waits are at least 20 minutes, include the observation exactly equal to 20 and the three greater than it. The result is four. More than 20 gives three. A histogram's boundaries can help you see the difference when aligned with the target, but the exact threshold calculation follows the wording. Check whether the given inequality matches the business rule before sending a number.

A workshop slide can include both a histogram and a box summary when they answer complementary questions. Put the number of observations and consistent units in both. A box plot can look compact while a histogram reveals two concentrations hidden inside it. A narrow bin can add apparent irregularity, so verify how sensitive the shape is to a second sensible choice. Give an exact explanation linked to the same validated data.

Use the Excel Task Hub for further practice. Pick one distribution and write a boundary, center value and checking rule before choosing a chart. The next topic Waterfall and Funnel works through relationships where the order of stages or contributions does carry meaning.

Try two lists with the same box and different point patterns

On a scratch sheet, enter a first sample of nine values: 1, 2, 3, 4, 5, 6, 7, 8 and 9. Next to it enter another nine values: 1, 3, 3, 5, 5, 5, 7, 7 and 9. Both are already sorted. For each sample, the inclusive lower half is the first five values and the inclusive upper half is the last five. Find the two half medians, then the whole median. Both samples have quartiles 3 and 7 with median 5. Their endpoints are 1 and 9, and neither extends beyond the 1.5 IQR fences. Their mean is also 5.

Under the current box rule, the two boxes and whiskers can match, with optional individual point markings turned off. The second sample has three observations at 5, while the first has one. If you make an explicit count table with upper bounds 1, 3, 5, 7 and 9, you get 1, 2, 2, 2, 2 for the first and 1, 2, 3, 2, 1 for the second. Plot individual points or compare the histograms to see how values gather within the same overall summary. A box provides a compressed view. Equality of its summary does not show equality of all original data.

Choose which detail to preserve in a report. If the business only wants the middle and a rough interval, the boxes may answer the question. If repeated waits suggest a rounding rule or a service threshold, frequency at particular values matters. In either case use the full input list when checking the chart. Some points can overlap even with Show inner points enabled. A count table or exact source is still useful when several observations share one position.

Separate recorded precision from bin precision

Suppose the first waiting time file comes from an app that rounds to the nearest whole minute, and a second file gives times to two decimals. A cell displaying 10 may contain the exact value 10 or a rounded display of 10.04. Under the greater-than-lower and at-or-below-upper rule, 10.04 belongs just beyond the 10 boundary, while exact 10 belongs inside it. Inspect the stored number or increase its displayed precision on a copy when an edge looks surprising. Do not rewrite the input solely to match the display. Agree whether operational reporting needs recorded decimal durations or an approved rounded measure before counting bins.

You can add a quick edge test with 9.99, 10 and 10.01 on a scratch sheet. The first two count at or below 10 and the last belongs in the next interval. Add these three to a copy of the original input, then verify which two bins gained observations. After extending the input range, the greater-than-5 through 10 bin rises from four to six and the next rises from four to five. The total rises from 16 to 19. Restore the original data after the test. This isolates a boundary behavior from general chart formatting.

Do not rely on Excel to choose the same automatic binning after a new value arrives. A change in the minimum, maximum or sample can shift the edge labels and change comparisons with a saved chart. Keep an explicit interval table when those edges need to remain fixed. If you use an automatically selected range for exploration, save the exact boundaries alongside that report. The next analyst can reproduce which values counted toward a bar and can check whether the new version used a different threshold.

Read a whisker cutoff even when it lies outside possible values

Route A has a calculated lower fence of -5 in the inclusive calculation. Negative waits are outside the meaning of this verified source field. The fence is still just a cutoff of the illustrative formula. It does not say the route ever reported -5 minutes or permit a negative wait in the input. The actual lower whisker remains at the smallest qualifying observed wait of 8. A field validation rejection and a box plot outlier flag are separate rules and should be recorded independently.

Similarly, a time of 40 can be a valid operational delay even if the plot flags it. A supervisor may ask whether it was reported on a weekend or under a service interruption. Only the source or another verified field can answer. This histogram does not include a weather column, so the chart cannot distinguish rainy evenings from other times. If you later compare groups, define them with evidence first and use the same bins or box convention. Check how many verified observations belong to each group.

Keep sample selection and counting verifiable after refresh

In a daily workbook, a new input might add deliveries, replace an earlier row or change an observation's status. Use a stable record ID, publish the approved measurement count and keep a source snapshot. Treat repeat measured wait values as separate observations when their record IDs differ. Removing duplicate wait durations because the values are equal would distort both kinds of chart. A chart of one workday should not silently begin mixing two periods after a refresh.

Check a reset case. If a data filter leaves no verified rows, a histogram with zero counts across every bin is not evidence of a smooth or zero-duration process. It means there were no eligible observations in the selection. An empty box has no median, and the relative frequencies cannot be calculated. Put that state in the caption and keep the fixed definitions for when approved data return. A readable empty result protects interpretation as much as a clear full chart.

If you compare preprocessed data in another application, reproduce the count table and quartile rule there too. Some programs use a different interval inclusion or interpolate quartiles differently. A confirmed difference in settings can explain a visual mismatch with identical records. Keep the raw sample and expected checks available so a small sample can resolve which rule each figure is using.

7. Interview questions with worked answers

How is a histogram different from a bar chart of cities?

A histogram counts observations in numeric intervals and preserves their order. A city bar chart compares named category measures and may be ranked by size. Keep bin boundaries and units visible so readers know what is being counted.

What changes when you select a different bin width?

The original data stay the same, but boundary positions and resulting counts can change. In this exercise five-minute counts 3 and 4 combine into a first ten-minute count of 7. Compare consistent bins across groups and retain exact values for threshold queries.

Is the upper fence the same as the upper whisker?

Under the illustrated convention the fence is a cutoff, while a whisker is placed at the highest observed value within that cutoff. For Route A the inclusive upper fence is 35 but the highest qualifying value is 20. A value of 40 becomes an outlier marker under that rule.

May you drop an observation because Excel plots it outside a whisker?

Inspect its source and measurement context. A rule can flag a valid unusual wait. Keep it unless reliable evidence supports correction or a scope exclusion. Report the convention and compare sensitivity if that changes the decision.

Why can a route with a lower median have a higher mean?

A high observation can pull the mean upward. Here Route A has median 12 and mean 18, while Route B has median 15 and mean 15.8. Read both summaries with the spread and outlier information.

8. Predict a count, boundary or whisker

Which bin receives a value exactly equal to 10?

The bin greater than 5 through 10 in this explicit upper-bound rule. It is included once. The next interval excludes its lower edge of 10.

What is the expected overflow when you append 36 to the exact bounds ending at 35?

One. The original regular seven bin counts remain unchanged and their sum is still sixteen. The total including overflow is now seventeen.

What is the inclusive IQR of Route B?

6 minutes, from 18 minus 12. The fences are 3 and 27 using a 1.5 IQR rule, and both observed endpoints 10 and 24 fit between them.

What happens to Route A's 40 under the exclusive-half example?

Q1 becomes 9 and Q3 becomes 30, so the upper fence rises to 61.5. Forty now lies inside. The source observation is unchanged, but the displayed convention can classify it differently.

Do both routes have identical performance because they show the same 80 percent under a target?

That equality applies to the chosen threshold and these five observations per route. They differ in median, IQR and maximum. Use the measure that matches the operational question and report the small sample size.

9. Six reminders

  • Keep bins ordered.

    Numeric width and interval boundaries explain histogram counts.

  • Verify exact edges.

    Count boundary values once and check any overflow separately.

  • Keep the box rule visible.

    Quartiles and whiskers depend on the stated convention.

  • Whiskers use observations.

    For a fence-based box, the highest allowed point can be below the fence.

  • Review an outlier's source.

    A valid unusual value remains part of the evidence.

  • Pair the shape with exact checks.

    Report sample size, units and any threshold with known meaning.

Microsoft references