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

8. Charts

Excel

8.6 Scatter Chart

1. Give each dot one observation and two numeric coordinates

A mock delivery team asks whether locations with longer checkout travel estimates also report higher cancellation rates. Each location supplies one travel estimate summary and one cancellation rate for the same reporting period. A scatter chart places each pair on its own two numeric axes. You can see where the values group together and which stores differ from the overall pattern. The chart does not establish why any cancellation happened.

Think of a fictional training exercise inspired by viewing delivery estimates in shopping apps such as Blinkit. The sites, policies and figures here are invented. Imagine that average checkout travel estimate is available for all eligible orders in the store's report, including canceled ones. That makes it a clearly defined source field. An average actual delivery duration from completed orders only would describe a different population. Before plotting a relationship, confirm who supplied each measurement and what one row represents.

Keep the pair together. A dot represents one selected row, with x and y measured for the same unit and period. The coordinates supply magnitudes. The row label identifies the observation.

Tell quantity axes apart from evenly spaced categories

  • X is numeric. The horizontal position represents how many minutes the estimate measures. On a linear axis, 12 to 15 is half the width of 24 to 30. The points are not placed at successive row positions.
  • Y is numeric. The vertical position represents a rate for the same store. A rate of 0.05 stored in Excel displays as 5 percent when correctly formatted, with 0.00 as the zero reference.
  • Markers are individual observations. Sites with the same estimate can appear directly above or below one another. They may even overlap when both x and y match. The source table tells you how many records contributed.
  • A line is optional. A fitted line can summarize linear association. Connecting sites in worksheet order suggests a path between independent stores. Use markers to avoid that suggestion.
  • A category label is separate from x. Store names can label selected points. Using them as horizontal categories gives equal slots and answers a different question, such as comparing rates by named store.

To test spacing quickly, place x values 1, 2 and 4 with y values 8, 12 and 20 on a scratch sheet. In a scatter chart the horizontal distance between 2 and 4 should be twice that between 1 and 2. The increase in y is four units per one x unit in both intervals. In a normal text-category line chart, the same labels take evenly spaced slots and can distort the visual slopes. The numeric x scale keeps the intervals meaningful.

2. Lab. Plot one rate per store and verify the paired ranges

Goal. Create a scatter chart for seven locations using a numeric estimate and a rate from the same record. Enter the first four columns below in A1:D8 of a new sheet called Site Pairs. Enter minutes and counts as numbers. Each row uses the same reporting window and eligibility rules. Compute the last column in E. For these invented counts all placements are eligible and the canceled count is a subset of that row's orders.

Work sample with numeric estimate, count and derived cancellation rate
StoreMean checkout estimate (min)Eligible ordersCanceled ordersRate
S011210022%
S021510033%
S031820063%
S042410055%
S0524200126%
S063010066%
S073610088%
Seven store observations trend upward on numeric minutes and cancellation rate axes. Two stores at 24 minutes have different rates of 5 and 6 percent.
Horizontal position represents minutes. Each dot is an independent store, including two dots at the same 24-minute coordinate.

Build a chart from verified numeric pairs

  1. Compute the rate on each row

    Use the helper below in E2 and fill down to row 8. Apply a percent format to the result. Check S05's 12 out of 200 gives 6 percent. Do not use the canceled order count as y if the intended variable is the rate.

  2. Choose numeric x and y values

    Make two adjacent helper columns for minutes and rate, with the original Store row order, or assign x and y directly in a supporting Select Data dialog. The series needs seven x values from B2:B8 and the seven y values from E2:E8 in the same order.

  3. Use an XY scatter with markers

    Select the two relevant columns and choose Insert, Scatter, then the marker-only option where available. Keep Store identifiers separate from the numeric selection. Label both numeric axes and check the percentage number format for y.

  4. Verify two points with the same x

    Read the vertical pair at 24 minutes. S04 is 5 percent and S05 is 6 percent. If both occupy adjacent x positions, check whether the chart is a text-category line chart or has the wrong x range.

  5. Label selectively and check the data

    Use Value From Cells for store identifiers where supported, with A2:A8 in corresponding order. For small charts label a few relevant dots or include the source table, so overlapping labels never imply missing observations.

E2 =IF(AND(ISNUMBER(C2),ISNUMBER(D2),C2>0,D2>=0,D2<=C2),D2/C2,"")

The rate formula expects verified counts as inputs. It handles a zero denominator without returning an apparent 0 percent, and rejects a numeric canceled count outside the eligible order range. Keep a status for any blank-looking helper so a missing denominator can be distinguished from a confirmed zero cancellations rate. If source fields can contain spreadsheet errors, inspect and isolate those rows before charting. Use only verified paired inputs for the scatter and the correlation calculation.

Check the selected series even when the marks look plausible

Sorting x independently from y can make a believable picture with entirely artificial pairs. Move complete rows, including the ID and both measures, when sorting or copying. Verify S01, S05 and S07 against the source. A correlation calculation with two equally long ranges remains wrong if one range is displaced by a row. Check the start, end and raw IDs, and confirm both arrays use the same approved population. For dynamic filtering, filter together before creating any numeric range. Do not separately discard empty x and empty y values.

3. Summarize the observed linear association and test its limits

Read the fitted line as a model of these points

For the first fixture, the points generally rise as the estimate increases. In a supporting Excel chart, select the numeric site series and add a Linear Trendline. Use the available options to display its equation and R-squared value if useful. Leave the intercept free for the practice comparison. The line uses the plotted pairs. It summarizes their observed shape in this sample and does not prove that changing travel estimates would cause cancellation rates to move as fitted.

Use worksheet functions to verify the displayed fit. SLOPE expects the y-values first and x-values second. CORREL compares the two paired ranges. RSQ gives the square of their Pearson correlation. For this ordinary simple fitted line with a freely chosen intercept, its R-squared can be compared to RSQ on the same complete pairs. A nonlinear model or a line forced to an intercept does not carry that same simple check. Chart equations can be rounded visually, so read the worksheet calculations where you need more precision.

=CORREL(B2:B8,E2:E8)
=RSQ(E2:E8,B2:B8)
=SLOPE(E2:E8,B2:B8)

Expected CORREL is about +0.9714, RSQ about 0.9437 and slope around 0.002455 rate units per minute. Since the worksheet stores rates as fractions, multiplying that slope by 100 gives about +0.2455 percentage points per minute along this fitted line. A 10-minute difference corresponds to about 2.46 percentage points on the fitted line. That does not answer what would happen if you changed a store's estimates by ten minutes. It describes a line drawn through the current data.

R-squared gives a view of how closely a straight-line model accounts for variation in these sampled y values. It is not the percentage of orders canceled because of the estimate, or a measure of how likely a future point is to follow the pattern. Squaring a correlation also removes its sign. A declining relationship can still have a high R-squared. Use the direction of the slope or the sign of the correlation to identify the direction. State the sample size and range when presenting the fit.

Try a sensitivity check without deleting the original values

Add one synthetic comparison row to a disposable copy: S08, 44 minutes, 100 eligible orders and 1 cancellation. Its rate is 1 percent. Extend the paired worksheet ranges through row 9 and inspect the new chart point. CORREL falls to about +0.2007 and RSQ to about 0.0403. The added point is far to the right and much lower than the original pattern. A single high-leverage observation can have a large influence on the fitted line in a small dataset.

Do not delete a point solely because the fitted statistic becomes smaller. Check the source and definitions. Was the estimate for another period, a mistyped field or an unusual but verified observation? If it is valid and belongs to the same scope, keep it visible. You can report fit sensitivity with and without it as two described analyses. If the observation belongs to a different population, document the exclusion and keep the original record. Restore the original seven-row fixture for the next comparisons.

Check the grain before interpreting an average store point

The original seven sites have 42 canceled orders among 900 eligible orders. The pooled cancellation rate is about 4.67 percent. The seven displayed rates have an unweighted mean of about 4.71 percent. Each scatter point represents a site. A simple unweighted fit treats each site as one observation, even when one site has twice the order count. The pooled rate weights individual orders. If the question is about individual orders rather than stores, use data and a model designed for that grain. A chart of store averages can describe store-level associations while concealing individual variations.

Rate estimates from small denominators may vary visibly even when the underlying process is similar. For example, one canceled order out of ten gives 10 percent, while one out of a hundred gives 1 percent. Verify the counts and approved cohort. Give the reader a way to inspect denominator sizes with labels or a source table. Bubble size is an optional way to encode a third numeric measure, but needs its own clearly stated scale. A large marker does not assign a statistical weight automatically.

4. Lab. Separate groups and see a different pattern

Goal. Use two marker series on common axes to show that a pooled relationship can differ from within-group relationships. Enter the first four columns below on a sheet named Store Groups. The six observations all have 100 eligible orders each. The two area categories are synthetic labels for this lesson. A real analysis would need a verified reason to group data this way.

Two fictional store groups with different estimate and rate levels
GroupStoreMean estimate (min)Canceled orders of 100Rate
CentralC011044%
CentralC021233%
CentralC031422%
OuterO012099%
OuterO022288%
OuterO032477%
Two groups on shared axes. Central circles go from 10 minutes 4 percent to 14 minutes 2 percent. Outer squares go from 20 minutes 9 percent to 24 minutes 7 percent. Each group slopes down, while pooled points have a positive correlation.
Group level differences make the pooled association positive. Look at the pattern within each labeled group before explaining it.
  1. Compute comparable values. Enter Rate in E1 and use =D2/100 for E2, then fill through row 7. Every denominator is 100 by definition in this small example. Verify percent format on all six results.
  2. Build the Central series. In a scatter chart add a series with x from C2:C4 and rate y from E2:E4, named Central. Use circular markers to identify the group.
  3. Add the Outer series on the same axes. Set x from C5:C7 and y from E5:E7 and name the series Outer. Use square markers, distinct from Central, plus a clear legend and common minutes and percent axes.
  4. Compare the group patterns. In Central the rate falls from 4 to 2 percent as the estimate grows from 10 to 14 minutes. In Outer it falls from 9 to 7 percent as estimates rise from 20 to 24 minutes. Both slopes are -0.5 percentage points per minute within these constructed groups.
  5. Compute and interpret the pooled statistic. CORREL of all six estimate values and rates is approximately +0.8072, despite -1 within each of the three-point groups. The Outer group sits higher and farther right than Central. A combined plot without group markers can obscure that structure.
All =CORREL(C2:C7,E2:E7)
Central =CORREL(C2:C4,E2:E4)
Outer =CORREL(C5:C7,E5:E7)

The grouped exercise is constructed to make the distinction visible. It does not establish a causal explanation for the differences. Area group can stand in for many features of the operating environment, including store mix, product assortment, staffing and the types of orders that are served. If real data show the same structure, inspect the group definitions and which variables were collected. Report both scope and sample size. An analyst cannot conclude that increasing an estimate would reduce cancellations within a real area merely because the example slopes downward.

Try equal x values and non-linear patterns as separate controls

Imagine all sites in one experiment show the exact same x value. Points can still vary vertically, but there is no variation in x from which to estimate a Pearson correlation or linear slope. A divide-by-zero type result is a reason to report that the correlation is undefined for those inputs. It does not signify a demonstrated absence of a relationship in a wider population. Verify that a field was not accidentally converted to a single repeated input.

Now try scratch pairs x values -2, -1, 0, 1, 2 and y values 4, 1, 0, 1, 4. The scatter chart has a clear U. Its Pearson correlation is zero because the linear deviations cancel in the symmetric pattern. A zero or near-zero linear statistic can coexist with a clear curved relationship. Inspect the plotted shape, not just one score. A more flexible fit should be justified by the measurement question and validated against more data. A high fit value after adding flexibility is not by itself a reason to claim a useful model.

5. Read shape, direction and spread separately

Ask three questions with the picture and table together

  • Direction. Do larger x values tend to come with larger y values or smaller ones? As an overall descriptive trend, the original seven stores slope upward. The grouped practice shows the direction can change when the groups are examined on their own.
  • Shape. Is the pattern approximately linear, curved or divided into clusters? A straight fitted line can obscure a U-shaped pattern or combine two groups with very different baselines. Draw the points first and check context for any clusters.
  • Spread. How broad is the cloud vertically at similar x values? At 24 minutes in the first example, stores report different rates. Similar estimates do not guarantee identical outcomes. A fitted line summarizes variation but does not replace it.
  • Coverage. Do the observations span the range relevant to the decision? We have observations from 12 through 36 minutes in the first dataset. The line outside that range is an extrapolation. A short observed range also makes it difficult to understand how the pattern could change elsewhere.

As an illustration of extrapolation, the fitted first-sample intercept is about -0.862 percentage points at zero minutes. A negative cancellation percentage is not a valid expected probability. The shape summarizes data in the observed range and can produce implausible values outside it. Do not present an extrapolated value as a measured result. This is particularly important when x is bounded by the processes under study or y is a ratio between zero and one.

Describe observed association without making an intervention claim

A higher rate at longer estimates could be linked to busier hours, travel distance, staffing, stock availability or the mix of customer orders. Store averages cannot identify which mechanism accounts for an individual cancellation. A defensible description for the first fixture is that among seven invented stores, larger mean estimates were associated with higher observed cancellation rates. If a team needs to decide whether changing the displayed estimate affects behavior, they need a suitable study, comparable groups and more evidence. A scatter plot can guide that question but cannot answer it on its own.

Keep the rate denominator comparable. If one source excludes customers who cancel before payment and another includes them, its cancellation rates do not measure the same event. You might see two clusters simply because the reporting definitions differ. A group label drawn from source metadata helps you detect possible inconsistencies. Verify definitions before fitting the merged dataset. When a group cannot be aligned, mark it separately rather than hiding its difference with a trendline across all points.

Distinguish outliers, rare labels and repeated points

A point may sit apart because its x is far from the rest, its y is unusual given x, or both. The synthetic 44-minute observation lies to the right and below the original pattern. If the x value is a valid travel estimate but its cancellation rate was typed with the percent sign missing, its y is an input error. Do not infer the cause from the plot. Find the marked site's row and inspect the original order count and rate components.

Exact overlap is a different problem. Try adding another verified store at 24 minutes and 6 percent on a test sheet. There are now two observations at the same location, though one glyph may cover the other. A companion table, repeated-point count, lower marker opacity or summarized frequency can reveal the overlap. If you shift points slightly for display in a dense chart, disclose that visual adjustment and keep exact coordinates available. Don't modify spreadsheet measurements to spread the points out.

6. Verify the paired inputs, axes and labels before reporting

Use a deliberate check sequence

  1. Match the same records on both axes. Use a stable store ID and time window when aligning source measurements. Count approved pairs, not separate numbers with unknown alignment.
  2. Check numeric types and ranges. X is mean travel estimate in minutes. Y is a proportion stored from zero to one for this rate. Compare the smallest and largest values and flag impossible entries, including negatives where they cannot occur.
  3. Inspect the chart definition. A scatter series needs its compatible numeric x and y ranges. Ensure headers and IDs are labels rather than values. Do not concatenate the x and y values into text and expect an actual pair.
  4. Check one extreme and one repeated x. Find S07 at 36 minutes and 8 percent, then both distinct points at 24 minutes. Confirm the x scale shows appropriate relative differences.
  5. Check the inference scope. Identify the sample of stores and date range. Decide whether a fitted line adds clarity. Keep the meaning of correlation separate from causation or a model for individual outcomes.
  6. Make the chart accessible. Use unit labels, sufficient contrast and marker shapes for groups. Provide an alt description and a table. In a dense dataset a few meaningful point labels or a separate lookup table may be more readable than printing all names.

Keep calculations consistent with the actual visible sample

Make a test in which one site lacks the estimate field. A scatter point should require a complete pair. Neither a missing x nor a missing rate should be replaced by zero simply to make a point appear. You can copy the validated complete rows to an approved helper range before charting or calculate from a filtered range where supported. Keep rejected rows and reasons visible. Then compare the ranges used by the chart and the calculation. A filtered picture and a correlation from the unfiltered worksheet can describe different populations.

In an Excel chart with multiple series, adding Central and Outer as separate data sets lets you style and calculate them individually. Both must use the same axis units and bounds. Assigning one group to a secondary axis could make their dot positions impossible to compare. If two groups need different measures, consider a separate figure. For groups on a common axis, test a duplicated observation using the marker summary as well as the counts. This distinguishes a rendering overlap from a data loss.

Use the Excel Task Hub for a further exercise. Start by writing one x and one y for the same item. Check whether labels or a numeric axis better fit the question. Continue to Histogram and Box & Whisker for ways to describe the distribution of one numeric measure. A distribution answers how values spread. A scatter figure answers how pairs of measurements occupy two dimensions.

Observe how changing units affects slope but not the same linear association

On a practice copy add a Seconds field by multiplying each minute value by 60. The 24-minute pair now appears at 1440 seconds on a correctly labeled horizontal axis. The cancellation rate has not changed. When you fit the same numeric pairs in seconds, the slope in rate units per second is the slope in rate units per minute divided by 60. A small numeric slope is not automatically a weak relationship. Check the units before comparing it. The Pearson correlation is unchanged under this positive unit conversion, because its comparison accounts for each variable's scale.

Try changing the vertical helper as well. Percentages may be stored as fractions from 0 to 1 and shown with percent formatting. If you intentionally multiply those values by 100 for a model expressed in percentage points, label the new variable accordingly. Do not apply the standard percent cell format again to an already scaled value. The fit with y measured as percentage points per minute has slope about 0.2455, while the fractional version has slope about 0.002455. Both describe the same relative variation and use the same data. A reader needs the declared measure to interpret either number correctly.

Also resize the chart. A narrow tall plot or a wider short one can make the same linear fit look steeper or flatter. The numeric slope is defined by the data equations, not by the apparent angle on the display. This is why an exact scale and units belong beside any claim of faster change. If comparing groups across panels, give them compatible axes or clearly state the differences. Shape can help find patterns, but its display dimensions should not stand in for quantitative comparisons.

Read what a fitted line leaves unexplained for two stores

At 24 minutes the first fitted line suggests a rate of about 5.03 percent. One measured site shows 5 percent and another 6 percent. A residual is the measured y value minus the modeled y value at that x. Using the rounded prediction, S04's residual is about -0.03 percentage points and S05's about +0.97. This comparison shows the line predicts the same value for both sites at the same x, even though observed outcomes differ. The fit summarizes x and y together but does not model everything that differs between two stores.

If you calculate the residual in Excel, use the unrounded fitted slope and intercept, and subtract the resulting y from the original fraction. A corresponding graphical check is the vertical distance from a dot to the line at that point's x coordinate. Use percentage-point units when explaining the result. Do not compare a fractional residual to a chart label multiplied by 100 without converting them consistently. A useful source table can list the actual and fitted values side by side without drawing a second line at all.

Verify the chart behaves as points when a sort is applied

On a copy, sort the complete Site Pairs rows by Store from descending to ascending, or by mean estimate. Keep both variables with each store ID. The plot of markers should contain the same coordinates. If you used a connected scatter instead, changing sort order can change which point is joined to which. A changing path in a data source without a meaningful sequence is a visual artifact. Choose marker-only styling for the store example. If a scatter chart shows positions along a physical route or numeric time sequence, connecting points may be justified, but verify the path order and whether interpolation between them is meaningful.

A chart filter can also remove points. If the figure shows only selected stores, check the statistic separately on exactly that approved subset. One way is to copy the validated paired rows to a temporary helper with no hidden records and compute the fit there. Do not infer what the chart is fitting from the number of visible labels. A label can be hidden because of overlap, and a filtered record can be absent even when its values still exist in the worksheet. Reconcile what the model and chart actually include before presenting a joint conclusion.

If you group records, establish the group from a verified source field before interpreting the plot. Dividing points after looking at which slope seems appealing can create an explanation that the practice data do not support.

Give a cautious answer even when the sample looks unusually clean

The two groups in our second fixture each contain only three observations and follow exact straight paths by construction. A perfect within-group correlation tells you those three invented values sit on a line. It provides no independent information about future sites. In a real report, include how stores were chosen, whether observations cover the operational range and whether other data are unavailable. A pattern can be internally consistent and still represent only the selected stores. Separate a claim about these recorded points from a claim about all stores or all orders.

For a more defensible next analysis, collect the same measures from another period under the same definitions. Compare the shape and the number of valid pairs, and check whether the same groups appear at different levels. If one measurement definition changes, keep that new series separate until you can align it. You can make a small panel for each window on the same x and y scales, then examine whether an apparent difference came from the data or from axis configuration. That is more useful than testing only whether one displayed R-squared rose.

Finally include enough exact text to reconstruct the chart's strongest visible feature without its color palette. In the grouped figure the two series use circles and squares, and the table gives a complete fallback. A value pair and scope are more helpful in alt text than the generic phrase scatter chart. Someone verifying the plot can then say what each group did, what the combined statistic did and which inference is still open.

7. Interview questions with worked answers

When would you use scatter rather than a line chart?

Use a scatter chart to place paired numeric values on two quantitative axes, especially when x intervals vary. Stores at 24 minutes should occupy the same horizontal position even with different rates. A text-category line chart places category labels in slots and can imply an order or spacing that is not measured.

What does an R-squared of about 0.94 mean here?

For a simple linear fit with freely estimated intercept, the fitted line accounts for around 94 percent of the sample variation in the observed cancellation rates. The statistic does not establish that travel estimates caused cancellations or show what will happen in a different sample. Check slope, data points and study design.

How can a combined plot trend upward while both groups trend downward?

The groups can sit at different baseline levels and different x ranges. In the fixture, Outer sites have higher estimates and rates overall even though each group's values fall with x. Plot and report both groups before interpreting the combined association.

What steps would you take after finding one unusual dot?

Verify its source ID, time window and raw input fields. A valid but unusual observation should stay visible. Report how it affects the fitted result and why. A decision to repair or exclude a source record needs independent evidence, beyond an improvement in the visual fit.

What if the x and y ranges have the same length but came from different row orders?

Then the lengths do not prove pairing. Align and verify by original record, retain the ID and move complete rows during a sort. Recalculate the plot and statistic from the same approved pairs. Test one known record and one repeated x value.

8. Predict position or interpretation

Where do the S04 and S05 marks appear horizontally?

They share the 24-minute coordinate. Their rates are 5 and 6 percent, so the dots sit at different vertical positions. Same x does not make them the same observation.

Can the U-shape fixture have a zero Pearson correlation?

Yes. Its y rises as x moves away from zero in either direction. Linear deviations cancel in the symmetric pattern. The statistic summarizes linear tendency and does not report all possible relationships.

Is 42 divided by 900 the same statistic as the mean of seven site rates?

The pooled rate is about 4.67 percent and the unweighted site average is about 4.71 percent. The former counts each order equally, while the latter counts each store equally.

How does S08 affect the original seven-site line?

It is a far-right low value, at 44 minutes and 1 percent. The sample correlation falls from about +0.97 to +0.20. Inspect and explain the sensitivity instead of automatically deleting the point.

Can a high positive correlation prove that changing the estimate will reduce cancellations?

The observed pattern alone does not establish an effect of changing an input. Check sample definition and alternative explanations. An intervention question requires evidence designed to distinguish them.

9. Six reminders

  • Match each numeric pair.

    Keep x, y and the row identity together.

  • Use two value axes.

    Numeric x represents real differences in horizontal spacing.

  • Read the whole shape.

    Inspect direction, clusters, spread and unusual observations before fitting.

  • Ask about the grain.

    Store-level observations and individual orders answer different questions.

  • Describe association carefully.

    A fit can summarize the observed data but does not establish cause.

  • Label a checkable sample.

    Show the measure units, ranges, selected records and accessible exact values.

Microsoft references