- Learn
- Computer Science & IT
- Digital Skills
- Data Analysis with Spreadsheets
- Descriptive Statistics and Forecasting
Descriptive Statistics and Forecasting in Spreadsheets
AdvancedLesson 6 of 7 in Data Analysis with Spreadsheets Course
What you will learn
- Use spreadsheet functions and the Analysis ToolPak to describe the center, spread and position of a data set, compare groups, and keep the results correct when the data change.
- Calculate center and spread with functionsLay out data so functions can read it, calculate the mean, median, mode, range, variance and standard deviation, and know how blanks, text and zeros affect the results.
- Describe position and summarize groupsUse percentiles, quartiles, z-scores and ranks to locate values, flag possible outliers, and calculate statistics for groups and for filtered rows.
- Run the Descriptive Statistics toolLoad the Analysis ToolPak, produce a summary table with the Descriptive Statistics tool, read every line of its output, and decide when functions serve better.
- Calculate center and spread with functions
- Count values in bins, build histograms with charts and the Analysis ToolPak, and describe the shape, center, spread and unusual values of a distribution.
- Build frequency tables with binsChoose bins, count values with FREQUENCY or COUNTIFS, add relative and cumulative frequencies, and handle values that fall exactly on a bin boundary.
- Create histograms in Excel and Google SheetsTurn numeric data into a histogram with the built-in chart, the ToolPak Histogram tool or a column chart of a frequency table, and set the bins so the chart reads honestly.
- Read and compare distributionsDescribe a distribution by its shape, center, spread and unusual values, read a box and whisker chart, and compare groups on equal terms.
- Build frequency tables with bins
- Show the relationship between two numeric variables in a scatter chart, measure its strength with the correlation coefficient, compare several variables in a correlation matrix, and avoid the common misreadings of correlation.
- Calculate and interpret a correlation coefficientPlot paired data in a scatter chart, calculate Pearson's correlation coefficient with CORREL, describe its direction and strength, and recognize when the coefficient misleads.
- Compare several variables and read correlation carefullyBuild a correlation matrix with the ToolPak or with CORREL, spot overlapping variables, and explain why correlation alone does not show cause and effect.
- Calculate and interpret a correlation coefficient
- Fit straight lines and curves to paired data with chart trendlines, worksheet functions and the ToolPak Regression tool, read the resulting equations and statistics, and use them to make sensible predictions.
- Add and read chart trendlinesAdd a trendline to a scatter or line chart, choose a trendline type that matches the data, and read its equation, R² value and forecast extension.
- Calculate a regression line with functionsFind the least-squares slope and intercept with functions, interpret them in context, make predictions with FORECAST.LINEAR and TREND, and check residuals.
- Run and read the Regression toolUse the ToolPak Regression tool for one or more explanatory variables, and read its regression statistics, ANOVA table, coefficients and residual output.
- Add and read chart trendlines
- Smooth a time series with moving averages, forecast future values with the FORECAST.ETS functions and Excel's Forecast Sheet, and judge how far a forecast can be trusted.
- Smooth a series with moving averagesCalculate trailing moving averages with formulas and the ToolPak, choose a period, add a moving average trendline, and recognize the lag a moving average creates.
- Forecast with FORECAST.ETS and related functionsWrite FORECAST.ETS formulas with the right timeline, seasonality and missing-data settings, add confidence intervals and statistics with the related functions, and compare ETS with a linear forecast.
- Build and evaluate a forecast sheetCreate a forecast with Excel's Forecast Sheet, set its options, read the forecast table and chart, and test a forecast's accuracy against held-back data.
- Smooth a series with moving averages
Descriptive Statistics and Forecasting study guide
1Describe the values in your worksheet
A statistical result is only useful when you know which rows it describes. Start with a clean numeric column, choose measures that match the group you want to describe, and check how missing values affect the result. You will use functions for calculations that refresh, position measures to find unusual observations, and the Analysis ToolPak for a quick summary. Group and filter settings let you answer more specific questions about the same data.
1.1 Center, spread, and reliable input
A column of measurements can answer two different questions: what is typical, and how much do the values vary? Keep one variable per column and one observation per row. Use one header row, with notes and subtotals outside the data. In Excel, Insert > Table turns the range into a table; =AVERAGE(Orders[Minutes]) then includes new table rows automatically.
Find a typical value
Enter these delivery times in B2:B11: 32, 28, 45, 30, 28, 35, 41, 28, 38, and 55 minutes. =AVERAGE(B2:B11) returns 36: the sum, 360, divided by 10. =MEDIAN(B2:B11) returns 33.5. The sorted middle values are 32 and 35, so the median is their mean. =MODE.SNGL(B2:B11) returns 28, the most frequent time.
The high value of 55 pulls the mean above the median. For a long-tailed distribution, the median often gives a more useful typical value. Reporting both makes that difference visible. MODE.SNGL gives #N/A if nothing repeats. Use MODE.MULT when several values may tie for the highest frequency.
Measure variation
MIN and MAX give the endpoints. Calculate the range with =MAX(B2:B11)-MIN(B2:B11), which gives 27 minutes. Excel has no RANGE function. Variance summarizes squared distances from the mean; standard deviation takes its square root and returns to the original unit.
| Data describe | Standard deviation | Variance |
|---|---|---|
| A sample of a larger group | STDEV.S | VAR.S |
| The whole group of interest | STDEV.P | VAR.P |
The sample versions divide the squared-distance total by one less than the count. The population versions divide by the count. For the ten times, the sample results are about 8.92 minutes and 79.56 squared minutes; the population results are about 8.46 minutes and 71.6 squared minutes. Choose from the purpose of the analysis: ten deliveries sampled from a month call for the sample versions. The older STDEV and STDEVP match STDEV.S and STDEV.P.
Check what the functions actually count
COUNT counts numeric cells, COUNTA counts nonempty cells, and COUNTBLANK counts empty cells. A larger COUNTA than COUNT in a numeric column calls for inspection. A text entry such as "n/a" or a number stored as text can be skipped by statistical functions. A number stored as text often aligns left and may show a green warning triangle; convert it before analyzing the column.
AVERAGE, MEDIAN, and STDEV.S skip text and blank cells in a referenced range but include zeros. The first five delivery times average 32.6 minutes. Adding a zero for a missing sixth observation lowers the mean to about 27.2 minutes. Keep a missing measurement empty and record its status separately; a genuine measured zero stays numeric.
Formatting a result to one decimal changes its display. =ROUND(STDEV.S(B2:B11),1) changes the calculated result to 8.9. Keep full precision for later calculations and round the final report. Formulas here use English function names and commas. Other spreadsheet languages may translate names, such as MITTELWERT or GEMIDDELDE for AVERAGE, and decimal-comma settings use semicolons between arguments. Google Sheets can also display English function names through its language settings.
Key Takeaways
- Use one row per observation and inspect the numeric count before calculating.
- Choose sample or population spread functions from the group of interest.
- A blank is skipped; a numeric zero is included.
- The median is less sensitive to an extreme value than the mean.
- Keep calculation precision; format or round the final result.
1.2 Positions, groups, and visible rows
Averages describe a whole column. Position measures locate a particular value, and group functions describe selected cases. Before comparing results, make sure each formula uses the intended rows and the same convention.
Locate values within the distribution
=PERCENTILE.INC(B2:B11,0.9) finds the 90th percentile of the delivery times: 46 minutes. Supply a proportion, 0.9, not 90. Quartiles divide the distribution into quarters. QUARTILE.INC takes a quartile number from 0 to 4: minimum, Q1, median, Q3, maximum. Q1 is 28.5 and Q3 is 40.25, giving an interquartile range of 11.75 minutes.
The .INC and .EXC methods interpolate differently. QUARTILE.EXC gives Q1 = 28 and Q3 = 42 for these data. Keep one convention throughout a report and name it. The older QUARTILE and PERCENTILE match .INC; PERCENTILE.EXC can return #NUM! near the endpoints when the data set is too small.
Possible outliers lie below Q1 minus 1.5 times the IQR or above Q3 plus 1.5 times the IQR. With the inclusive quartiles, the fences are 10.875 and 57.875 minutes. The largest time, 55, is inside them. Store the fences in F1 and F2 and fill =IF(OR(B2<$F$1,B2>$F$2),"check","") down the data. A flag calls for checking the observation, not automatic deletion.
A z-score expresses distance from the mean in standard deviations:
=STANDARDIZE(55,AVERAGE(B2:B11),STDEV.S(B2:B11)) gives about 2.13. The time is a little over two sample standard deviations above the mean. Negative scores lie below the mean. LARGE(range,2) returns the second largest value, 45; SMALL(range,1) returns 28. RANK.EQ ranks largest first unless its third argument is 1. Ties share a rank.
Summarize a named group
Suppose C2:C11 holds regions. North has times 32, 45, 35, 41, 55; South has 28, 30, 28, 28, 38. =AVERAGEIFS(B2:B11,C2:C11,"North") gives 41.6 minutes, compared with 30.4 for South. =COUNTIFS(C2:C11,"North",B2:B11,">40") counts three North deliveries over 40 minutes. Use MAXIFS and MINIFS for group endpoints: North's maximum is 55 and South's minimum is 28.
AVERAGEIFS, SUMIFS, MAXIFS, and MINIFS put the calculation range first, followed by criteria pairs. COUNTIFS takes only criteria pairs. The older AVERAGEIF puts its average range last. Write comparisons as text, such as ">40", or join the operator to a cell: ">"&F1.
There is no MEDIANIFS. In modern Excel and Google Sheets, =MEDIAN(FILTER(B2:B11,C2:C11="North")) returns 41; South's median is 28. A PivotTable offers group counts, means, endpoints, and standard deviations but no built-in median value setting.
Respect filters and errors
Filtering the list does not change the rows used by ordinary AVERAGE. =SUBTOTAL(101,B2:B11) averages visible numeric rows and also excludes manually hidden rows; Excel table Total Rows use this family of formulas. =AGGREGATE(1,6,B2:B11) averages while ignoring errors. These are different choices: ignoring errors is not the same as selecting a group or filtering the sheet.
Key Takeaways
- Percentiles take proportions; quartile functions take quartile numbers.
- Keep quartile conventions consistent and use IQR fences to flag values for review.
- Use criteria pairs to calculate group statistics.
- Filtering a list leaves ordinary
AVERAGEunchanged. - Lock reference cells that must stay fixed when a formula is filled down.
- Use
MEDIAN(FILTER(...))for a group median.
1.3 A quick statistical report with the ToolPak
The Analysis ToolPak collects many descriptive measures in one report. It is useful for a first inspection of a numeric column, especially when you want to compare several measures together. Its output is a snapshot of the input at the time you run it.
Load the add-in and select the data
In desktop Excel for Windows, open File > Options > Add-ins. Choose Excel Add-ins in the Manage box, select Go, and check Analysis ToolPak. On a Mac, use Tools > Excel Add-ins. Data Analysis then appears on the Data tab. Excel for the web cannot load the ToolPak; Google Sheets also uses functions for these calculations.
Choose Data > Data Analysis > Descriptive Statistics. For the delivery times, include B1:B11 if B1 is the header. Choose Grouped By Columns, check Labels in first row, select a clear output location, and check Summary statistics. You can send output to a range, a new sheet, or a new workbook. Selecting adjacent numeric columns produces a separate result block for each column.
The optional Kth Largest and Kth Smallest boxes request positions in the ordered data. The confidence-level option adds a margin for the mean. Keep output away from the input so the report cannot overwrite the measurements.
Read the delivery-time output
| Output line | Value, rounded where needed |
|---|---|
| Mean; Median; Mode | 36; 33.5; 28 |
| Standard Error | 2.82 |
| Standard Deviation; Sample Variance | 8.92; 79.56 |
| Kurtosis; Skewness | 0.88; 1.16 |
| Range; Minimum; Maximum | 27; 28; 55 |
| Sum; Count | 360; 10 |
The Standard Deviation line is the sample version, matching STDEV.S. Its 8.92 minutes describes variation among individual delivery times. Standard Error is the sample standard deviation divided by the square root of the count: about 8.92 divided by the square root of 10, or 2.82 minutes. It describes variation of sample means across repeated samples of this size.
The optional 95% Confidence Level line is about 6.38 minutes. It is a margin, not an endpoint. Subtract and add it to the mean of 36 to obtain about 29.62 to 42.38 minutes.
Positive skewness indicates a longer high-value tail; negative skewness indicates a longer low-value tail. The delivery result, 1.16, matches its long upper tail. A value near zero suggests roughly symmetric data. Excel reports excess kurtosis: zero is the bell-shaped reference, positive values indicate heavier tails, and negative values lighter tails. SKEW and KURT reproduce these results with functions.
Know when the report needs attention
The Mode line shows one mode, even if several values tie. Check MODE.MULT when all modes matter. If no number repeats, #N/A on that line can be a valid result.
A header included without Labels in first row is treated as data and can trigger a non-numeric input error. Notes, mixed text, and numbers stored as text also need cleaning. Check the selected range and the count before interpreting the report. The tool processes one worksheet at a time.
Editing the original data leaves this report unchanged. Rerun Descriptive Statistics after an edit. For a report refreshed every week, use worksheet functions so the results recalculate with the data.
Key Takeaways
- Check Labels in first row when the input includes headers.
- ToolPak standard deviation is the sample standard deviation.
- Standard error describes sample means; standard deviation describes observations.
- Add and subtract the confidence margin from the mean.
- Rerun the ToolPak after input changes.
2See the distribution behind the statistics
Two data sets can have similar averages and very different shapes. Frequency tables and histograms show where observations cluster, while box and whisker charts make group differences easier to compare. You will choose intervals, count their values, and check what happens at the boundaries. The chart settings matter: bin width, group size, axis scale, and quartile method can all change the picture a reader sees.
2.1 Bins and frequency tables
A frequency table turns a long numeric column into counts for adjacent intervals, called bins. Each observation must enter exactly one bin. State which endpoint is included before writing the formulas; a value exactly on a boundary can otherwise be counted twice or missed.
Choose a width and cover the data
Consider these 20 waiting times in minutes: 4, 7, 9, 10, 12, 13, 15, 15, 18, 20, 21, 22, 24, 26, 27, 29, 31, 35, 38, 47. They run from 4 to 47. A width of 10 gives five useful bins across this range. Roughly 5–15 bins is a practical starting point for small and medium data sets; choose a round width, inspect the result, and adjust if the shape is hidden.
FREQUENCY and the ToolPak Histogram tool use upper limits. Enter 10, 20, 30, 40, 50 in D2:D6. Each bin includes its upper limit and excludes the preceding limit. The first includes every value at or below 10. This convention assigns 10 to the first bin and 20 to the second.
With the times in A2:A21, enter =FREQUENCY(A2:A21,D2:D6). It returns six counts: 4, 6, 6, 3, 1, 0. The extra last count is essential: it counts values above 50. In modern Excel and Google Sheets, the results spill into cells below the formula, so those cells must be empty. In older Excel, select all six output cells and confirm the formula with Ctrl+Shift+Enter.
Choose another boundary rule with COUNTIFS
For lower-inclusive bins, use =COUNTIFS($A$2:$A$21,">="&D2,$A$2:$A$21,"<"&E2), with a lower limit in D2 and an upper limit in E2. Fill down a table of boundaries 0–10, 10–20, and so on. Label the first interval "0 to under 10". Its count is three because 10 moves into the next interval. The five counts become 3, 6, 7, 3, 1.
These totals differ from the upper-limit counts for a clear reason: 10 and 20 change bins. Neither convention should be mixed with the other within one table. Make the final upper endpoint inclusive if a value can equal it, or extend the bins so every observation is covered.
Add proportions and running totals
Relative frequency divides a count by the total number of observations. For the upper-limit counts, the proportions are 0.20, 0.30, 0.30, 0.15, 0.05. If counts are in E2:E6 and their total in E8, =E2/$E$8 keeps the denominator fixed when copied down. Display the results as percentages if that is easier to read.
Cumulative frequency adds counts from the lowest bin upward. =SUM($E$2:E2) expands its ending row as it is filled down. The cumulative proportions are 20%, 50%, 80%, 95%, and 100%. Thus 80% of these customers waited 30 minutes or less; that answer depends on the stated upper-limit convention.
For categories such as service type, each category is already a class. In modern Excel or Google Sheets, UNIQUE can list the categories and COUNTIF can count each one. A PivotTable can also supply category counts.
Always compare the sum of all numeric-bin counts, including overflow, with COUNT of the source data. Overlapping intervals double-count boundary values; gaps lose them. A correct grand total is a useful check, followed by checking the boundary rules themselves.
Key Takeaways
- Use adjacent, non-overlapping bins that cover every observation.
FREQUENCYincludes each upper limit and returns an extra overflow count.COUNTIFSlets you specify both boundary tests.- Relative frequency is a share; cumulative frequency is a running total.
- Keep the total cell fixed when filling relative-frequency formulas.
- Check counts against the numeric source count, including overflow.
2.2 Histograms that keep the bins clear
A histogram shows the distribution of one numeric variable. Each bar covers an interval, and its height shows the count or relative frequency in that interval. Adjacent bars touch. A chart of text categories normally has gaps because the categories do not form a continuous numeric scale.
Build a chart from raw observations
In Excel, select the numeric column and choose Insert > Insert Statistic Chart > Histogram. The chart creates its own bins from the raw values. Right-click the horizontal axis and choose Format Axis to change the settings.
| Setting | What it controls |
|---|---|
| Automatic | Width chosen using Scott's normal reference rule |
| Bin width | Size of the numeric intervals |
| Number of bins | How many intervals are shown |
| Underflow bin | All observations at or below a chosen cutoff |
| Overflow bin | All observations above a chosen cutoff |
Read the chart's interval labels carefully. The label "(10, 20]" means over 10 and up to 20, including 20. A square endpoint includes its value; a round endpoint excludes it. An underflow cutoff of 10 collects all waiting times of 10 minutes or less. Check the displayed boundaries and compare the bar counts with your frequency table before using them in a report.
Choose a table-based route
Data > Data Analysis > Histogram takes an Input Range and an optional Bin Range of upper limits. Check Labels if the selected ranges include headers. Supply your own limits when you need specific boundaries; if you omit them, Excel creates evenly spaced bins between the input endpoints.
The output contains Bin and Frequency columns plus a final "More" row for values above the last limit. Chart Output adds a column chart, and Cumulative Percentage adds a running proportion. Set the chart's Gap Width to 0% so adjacent numeric intervals touch. The output counts are fixed values, so rerun the tool after the source data change.
A frequency table made with FREQUENCY or COUNTIFS offers a refreshing alternative. Select the bin labels and their counts, insert a column chart, and set Gap Width to 0%. Its formulas recalculate when source values change. Keep the labels in numeric-bin order, and include a clear statement of which endpoints belong to each interval.
Inspect the shape at several widths
For the 20 waiting times, upper limits 10, 20, 30, 40, 50 produce counts 4, 6, 6, 3, 1. Most waits lie in the middle bins, with a thin high-value tail. Width 25 reduces the same data to counts 13 and 7. Two broad bars hide much of that detail. At the opposite extreme, very narrow bins can make small random differences look like separate peaks.
Try two or three sensible widths and describe features that remain visible. Keep equal-width bins when comparing bar heights. A Pareto chart sorts bars from most to least frequent; that is useful for complaint categories but destroys the numeric order needed for a histogram.
In Google Sheets, select the observations, choose Insert > Chart, and select Histogram. Customize > Histogram contains Bucket size and Outlier percentile. Bucket size controls width; Outlier percentile limits the effect of extremes on the buckets. Inspect the extreme observations as well as the main cluster. Charting one bar for each raw observation gives a different display and does not count intervals.
Key Takeaways
- A histogram plots numeric intervals with touching bars.
- Set and check bin boundaries before describing the shape.
- ToolPak histogram counts are snapshots; formula-based counts recalculate.
- Try several widths because broad bins hide detail and narrow bins amplify bumps.
- Keep numeric bins in order; use Pareto sorting for categories.
2.3 Shape, center, spread, and group differences
Describe a distribution with its shape, center, spread, and unusual values. These pieces work together: a typical value gives the location, while the shape and spread show how well it represents the observations. A chart also lets you see groups that a single average would conceal.
Put the pattern into words
A symmetric distribution has similar tails on both sides. A right-skewed distribution has a longer high-value tail and usually a mean above its median. A left-skewed distribution has the longer low-value tail. One peak is unimodal; two peaks are bimodal.
The waiting-time counts 4, 6, 6, 3, 1 show the main cluster from 10 to 30 minutes and a right tail. The mean is 21.15 minutes and the median 20.5 minutes. A useful description is: "Half of the customers waited 20.5 minutes or less, most waited between 10 and 30 minutes, and one waited 47 minutes." This ties the chart to its unit and actual observations.
Two peaks can come from mixing different groups, such as two warehouses or shifts. Split the cases by their group column with a filter, FILTER, or a PivotTable and inspect the separate distributions before choosing one overall description.
Read a box and whisker chart
In desktop Excel, place each comparison group's numeric values in its own column with a group header. Select the columns and choose Insert > Insert Statistic Chart > Box and Whisker. Each box extends from Q1 to Q3, with a line at the median. A mean marker can also be displayed. Whiskers extend to the outermost observations within the outlier limits; values beyond them appear as separate points when outlier points are shown.
Excel's Quartile Calculation setting offers Inclusive median and Exclusive median. They include or exclude the median when calculating the halves for an odd-sized data set. This is a chart setting: its quartiles can differ from QUARTILE.INC, so name the method and keep it the same across groups.
For North times 32, 35, 41, 45, 55 and South times 28, 28, 28, 30, 38, Inclusive median gives North a median of 41 and a box from 35 to 45. South's median is 28 and its box runs from 28 to 30. North is slower and its middle half is much more spread out. With Exclusive median, the boxes run from 33.5 to 50 and from 28 to 34, creating slight overlap. The overall comparison still holds, but the box endpoints change.
Make comparisons fair
Use matching bin widths and horizontal-axis ranges for group histograms. If group sizes differ, compare relative frequencies. Thirty of 200 cases is 15%; twenty of 80 is 25%, so the smaller count represents the larger share. Raw bar heights alone would suggest the opposite.
Start the histogram's count axis at zero. Label the variable and unit, such as "Waiting time (minutes)", and show the number of observations, such as "n = 20". A histogram summarizes a distribution and loses time order. Use a line chart with time on the horizontal axis to show whether a process changed over time.
Key Takeaways
- Describe shape, center, spread, and unusual observations together.
- Separate groups when two peaks suggest a mixed population.
- Box height shows the IQR; the line inside shows the median.
- Use the same quartile setting for every group.
- Compare proportions when group sizes differ.
- Keep histogram axes and bins consistent across comparisons.
- Use a time chart to study change over time.
3Measure how numeric variables move together
Paired measurements can reveal relationships that separate summaries miss. Keep each case together, draw a scatter chart, and use correlation to describe the direction and strength of a straight-line pattern. A matrix extends that view to several variables. You will also examine points that strongly affect the result and the reasons a convincing association can still leave the cause unresolved.
3.1 Paired data and linear correlation
Correlation starts with paired observations: two measurements from the same case. A day's temperature must stay beside that day's sales. Sorting one column alone changes the pairs and answers a question the data never measured.
Look at the points first
Create a scatter chart with the explanatory variable on the horizontal axis and the response on the vertical axis. Check direction, form, strength, and unusual points. An upward pattern is positive; a downward pattern is negative. Points may follow a line, a curve, or no clear pattern.
Pearson's correlation coefficient, r, measures linear direction and strength. It lies from −1 to 1. The sign gives direction; its size gives strength. A value near −1 is as strong as one near +1, with the opposite direction. The coefficient has no unit. Swapping the two variables or converting a measurement to another unit with a positive scale leaves it unchanged.
Calculate and report r
Eight daily temperature–sales pairs are (14, 210), (16, 245), (18, 300), (20, 290), (22, 365), (25, 395), (28, 470), (31, 500), with temperature in degrees Celsius and sales in cones. Put temperature in A2:A9 and sales in B2:B9. =CORREL(A2:A9,B2:B9) gives about 0.99. PEARSON gives the same coefficient. Keep ranges equal in size and rows aligned.
Report "r = 0.99, a strong positive linear relationship" alongside the scatter chart. Rough descriptions often call magnitudes at least about 0.8 strong, 0.5–0.8 moderate, 0.3–0.5 weak, and below 0.3 very weak. These bands vary by field, so retain the number and the chart instead of relying on the label alone.
For an ordinary simple regression line with an intercept, squaring r gives the proportion of response variation accounted for by the line:
=RSQ(B2:B9,A2:A9) gives about 0.979. The line accounts for about 98% of the observed sales variation. If r were 0.6, the corresponding proportion would be 0.36, or 36%, not 60%. R² removes the sign, so it cannot tell you whether the relationship slopes up or down.
Check what one coefficient can hide
For inputs −3, −2, −1, 0, 1, 2, 3 and outputs equal to their squares, the relationship is exact but U-shaped. CORREL returns zero because the two sides cancel in a linear measure. A near-zero result means little linear association; inspect the form before concluding that nothing useful relates the variables.
An unusual observation can also change the result sharply. Adding a festival day with 15 °C and 520 cones to the kiosk data lowers r from about 0.99 to about 0.60. A high sales total on a cool day is far from the original pattern. Investigate its cause: correct an entry error, but keep a genuine event visible in the analysis. Compare the coefficient with and without that observation and explain the difference. Deleting it merely to make r larger would hide relevant evidence.
Key Takeaways
- Keep both measurements from each case in the same row.
- Inspect the scatter chart before interpreting
CORREL. - The sign of r gives direction; its magnitude gives linear strength.
- For a simple line with an intercept, R² equals r squared.
- Curves and unusual points can make r misleading.
3.2 Correlation matrices and competing explanations
When several numeric columns may be related, a correlation matrix lets you compare all their pairs in one place. It also shows whether candidate explanatory variables carry much of the same information. Interpret the matrix together with the cases, their ranges, and their context.
Create and read a matrix
In desktop Excel, choose Data > Data Analysis > Correlation. Select an adjacent block of numeric columns, choose Grouped By Columns, and check Labels in first row when headers are included. Each variable appears down the rows and across the columns. The diagonal is 1 for a variable correlated with itself, provided it varies. The ToolPak fills the lower triangle because the upper triangle would repeat the same pairs.
Add rainfall of 8, 6, 5, 6, 2, 1, 0, 0 millimeters to the eight temperature–sales rows. The matrix gives temperature–sales about 0.99, temperature–rainfall about −0.94, and sales–rainfall about −0.97. Higher sales accompany warmer and drier days in this sample.
First look at correlations with the response. Then check correlations among explanatory variables. Here, temperature and rainfall are themselves strongly related. Their overlap makes it difficult to assign a separate role to each from these eight days alone. This matters when you later fit a model containing both columns.
ToolPak values stay fixed after the input changes. For a live matrix, place names across the top and down the side, then enter CORREL formulas for the matching column pairs. Google Sheets uses this formula route as well. Keep the same case definition and check how missing values affect which pairs contribute to each result.
Separate association from cause
Sunshine can increase both ice-cream sales and sunburn cases. The positive sales–sunburn association has a third explanation: a lurking variable affects both. A correlation coefficient measures the association in the recorded data; establishing cause requires evidence about how the situation works.
Time can create another shared pattern. Monthly staff numbers and revenue may both rise over a firm's growth period. Their strong correlation alone leaves open whether staffing changed revenue, revenue funded staffing, or another factor drove both. Plot against time as well as against each other.
The observed range and level of grouping also matter. Restricting temperatures to 20–22 °C often weakens the visible correlation by removing much of their variation. Correlations of monthly means often look stronger than correlations of daily cases because averaging smooths variation within months. State whether a row is a day, a person, a location, or an average, and report the range the cases cover.
Compare correlation with covariance
COVARIANCE.S and the ToolPak Covariance tool also describe joint movement. Covariance retains the units of both variables, so changing the measurement scale changes its size. Correlation removes that scale by dividing sample covariance by the product of the sample standard deviations:
For the kiosk data, covariance is about 609.8. Dividing it by about 5.92 °C times 104.06 cones gives approximately 0.99. Use correlation to compare strength across differently scaled variable pairs, while keeping the scatter charts available to show form and unusual cases.
Key Takeaways
- Read a matrix by locating the row and column for a pair.
- Check relationships among explanatory variables as well as with the response.
- A shared third variable or time trend can explain an association.
- State the case level and observed range when reporting correlation.
- Covariance retains scale; correlation removes it.
- Use formulas for a matrix that must update with its data.
4Fit a model and check its predictions
A fitted line turns a visible association into an equation you can calculate with. Chart trendlines make the fit easy to inspect; worksheet functions provide precise coefficients and predictions; the Regression tool collects a fuller report. The useful question is how well the model describes these cases and supports the prediction you need. Residuals, the observed input range, and overlapping explanatory variables help you judge that fit.
4.1 Trendline types and chart equations
A trendline adds a fitted line, fitted curve, or smoothed line to a chart series. Start with the shape and meaning of the data, then choose a type. A large fit statistic alone is a poor reason to choose a complicated curve.
Choose a suitable type
In Excel, select a series and use Chart Elements (+) > Trendline or right-click > Add Trendline. The Format Trendline pane holds the type and display options. In Google Sheets, open Customize > Series in the chart editor and enable Trendline.
| Type | Use and restrictions |
|---|---|
| Linear | A steady amount of change; equation |
| Exponential | Growth or decay by a steady proportion; positive y values |
| Logarithmic | Change that slows as x rises; positive x values |
| Polynomial | A bending pattern; Excel offers orders 2–6 |
| Power | A power relationship; positive x and y values |
| Moving Average | Smooth successive windows; no equation or R² |
Exponential has the form , logarithmic , and power . The regression families fit by least squares, with transformations for some types; the moving average averages windows. Google Sheets offers the same families and calls power "Power series".
Read the linear fit
For the temperature–sales scatter chart, enable Display Equation on chart and Display R-squared value on chart. The fitted equation is approximately:
Each additional degree Celsius is associated with about 17.4 more cones, and the straight line accounts for about 98% of observed sales variation. Google Sheets uses Label > Use Equation and Show R² for these displays.
Use a scatter chart for numeric x values whose spacing matters. On a line or column chart with text month categories, a trendline uses positions 1, 2, 3, and so on. Twelve monthly sales values 120, 135, 128, 150, 162, 158, 171, 180, 176, 190, 205, 198 produce about on that period-number scale. Substituting month 13 gives about 212.6 units. A date-based numeric scale can instead use date serial numbers, making the intercept refer to a much earlier date. Check the axis before substituting an input.
The equation label rounds its coefficients. Increase its decimal places in Format Trendline Label > Number, or use SLOPE and INTERCEPT for calculation cells that retain full precision.
Extend carefully and avoid overfitting
Forecast Forward and Forecast Backward extend the fitted line beyond the observed data. They keep following the same equation; they cannot account for a changed process. A high-order polynomial may fit every small bend yet swing sharply just outside the data range. Prefer a model whose shape makes sense, then check its errors.
Set Intercept fixes the vertical intercept at the number you enter. A value of zero can make sense when the response must be zero at zero input, such as distance traveled after zero hours. Leaving the option unchecked lets the data estimate the intercept. A forced-origin fit has a differently calculated R², so do not compare that value directly with R² from an ordinary estimated-intercept fit.
Key Takeaways
- Choose the trendline family from the pattern and the situation.
- Check positive-value restrictions before fitting logarithmic, exponential, or power curves.
- A text-category trendline equation uses category positions.
- Use full-precision coefficients for predictions.
- High R² can reward a curve that predicts poorly outside the data.
- Fix an intercept only when the situation justifies its value.
4.2 Regression functions and residual checks
A least-squares line predicts the response from one explanatory variable. It minimizes the sum of squared residuals. Worksheet functions calculate the line without relying on the rounded equation printed on a chart.
Fit the slope and intercept
Write the fitted line as:
The intercept a is the predicted response at zero input. The slope b is the predicted response change for one input unit. With temperatures in A2:A9 and cones in B2:B9, =SLOPE(B2:B9,A2:A9) gives about 17.388 and =INTERCEPT(B2:B9,A2:A9) about −31.314. Both functions put known y first, followed by known x. Reversing the arguments fits temperature from cones, a different prediction problem.
The slope is about 17.4 cones per degree Celsius. The negative intercept positions the line but has no useful sales meaning at 0 °C: the observed days range only from 14 to 31 °C.
Calculate predictions
=FORECAST.LINEAR(24,B2:B9,A2:A9) predicts about 386 cones at 24 °C. The older FORECAST returns the same linear prediction. For several new inputs, use =TREND(B2:B9,A2:A9,D2:D6), with new temperatures in D2:D6. In modern Excel and Google Sheets the predictions spill into neighboring cells.
A prediction inside the observed range is interpolation. At 40 °C the line predicts about 664 cones, but 40 is beyond the largest recorded temperature. That is extrapolation: it assumes the fitted pattern continues. Supply limits, customer behavior, or other changes can make the extension unreliable.
Find the misses and their pattern
A residual is observed minus predicted. For the 22 °C day, actual sales were 365 and the prediction is about 351, so the residual is about +14 cones. A positive residual places the observation above the fitted line. Calculate every row with =B2-FORECAST.LINEAR(A2,$B$2:$B$9,$A$2:$A$9) and fill down. The current observation references move; the history ranges stay fixed.
=STEYX(B2:B9,A2:A9) gives about 16.2 cones, the standard error of the estimate. It summarizes the typical residual size in response units. RSQ gives about 0.979, a proportion rather than an error measured in cones.
Plot residuals against x. Random scatter around zero supports a straight-line description. Positive residuals at both ends and negative ones in the middle reveal a curve. A fan that widens as x increases shows larger prediction errors at higher inputs. The kiosk residuals range from about −26 to +18 cones with no clear pattern.
Request the LINEST block
For one explanatory variable, =LINEST(B2:B9,A2:A9,TRUE,TRUE) returns five rows and two columns. Row 1 contains slope and intercept; row 2 their standard errors; row 3 R² and the standard error of the estimate; row 4 the F statistic and residual degrees of freedom; row 5 regression and residual sums of squares. Leave space for the complete block. =INDEX(LINEST(B2:B9,A2:A9),1,1) extracts just the slope when a single coefficient is needed.
Key Takeaways
SLOPEandINTERCEPTtake y before x.- Interpret slope in response units per input unit.
- Calculate residuals as observed minus predicted.
- Use fixed history ranges when filling prediction or residual formulas.
- Inspect residual shape as well as R².
- Treat predictions beyond the observed input range as extrapolation.
4.3 Reading the Regression report
The ToolPak Regression tool fits a response from one or more explanatory columns and collects the fit statistics, coefficients, and errors in one report. The labels and units of those columns determine what the fitted equation means.
Select complete paired rows
Choose Data > Data Analysis > Regression. Input Y Range is one response column. Input X Range is one or more adjacent explanatory columns, up to 16. Include matching rows and check Labels when the ranges include headers. Leave Constant is Zero unchecked for an ordinary regression with an estimated intercept. Choose an output location with room for the report.
The input must be numeric and complete, with equal row counts. Resolve missing entries or remove the whole incomplete case before fitting, so the remaining pairs stay aligned. ToolPak output is fixed values; rerun it when data change.
Residuals adds predicted values and residuals in input order. Standardized Residuals expresses them in standard-deviation units. Residual Plots graphs residuals against each input, and Line Fit Plots compares observed and predicted values.
Read the fit and variation blocks
For the eight kiosk days, Regression Statistics reports Multiple R about 0.990, R Square 0.979, Adjusted R Square 0.976, Standard Error 16.19, and Observations 8. With one input and an intercept, Multiple R is the magnitude of correlation, so it loses direction. R Square matches RSQ; Standard Error matches STEYX and is measured in cones.
Adjusted R Square accounts for the number of explanatory variables:
Here n is the observation count and k is the number of explanatory variables. R² never decreases when another input is added to the same ordinary regression data. Adjusted R² can decrease, making it useful when comparing different input counts.
The ANOVA block partitions response variation. Regression SS is about 74,225, Residual SS about 1,572, and Total SS about 75,797. Regression SS divided by Total SS gives about 0.979, the reported R². The table also gives degrees of freedom, mean squares calculated as SS divided by df, F, and Significance F.
Turn coefficients into an equation
The Coefficients column gives an intercept of about −31.31 and a Temperature coefficient of 17.39. Thus predicted cones equal −31.31 plus 17.39 times temperature. Standard Error and the Lower 95% and Upper 95% columns describe uncertainty in each estimated coefficient. The t Stat and P-value columns report tests of whether a coefficient differs from zero.
The residual list identifies cases that fit poorly. Day 4, 20 °C and 290 cones, has the largest residual by magnitude, about −26 cones. Use its original row to investigate the miss.
With temperature and rainfall together, the equation becomes approximately:
T is temperature in degrees Celsius and R is rainfall in millimeters. Each coefficient describes a change while the other variable stays fixed. Adjusted R² rises to about 0.985 from 0.976. Temperature's coefficient falls from 17.39 to 12.25 because temperature and rainfall overlap strongly. Eight observations provide little information for extra inputs; prefer a simple model that fits the cases well.
Key Takeaways
- Y is the response; X columns are the explanatory variables.
- Keep cases complete and aligned, then rerun after edits.
- Read R² as explained variation and Standard Error in response units.
- Compare different input counts with Adjusted R².
- Use coefficients with their column names to form the equation.
- A multiple-regression coefficient holds the other inputs fixed.
- Use residual output to locate poorly predicted cases.
5Smooth past variation and forecast ahead
A time series needs its dates as well as its values. Start by looking for trend, repeating seasonal patterns, and gaps in the timeline. Moving averages reveal the underlying movement; ETS uses level, trend, and seasonality to project ahead. You will set up the history carefully, create a forecast with bounds, and test predictions against observations held back from fitting. That check helps you judge a forecast before using it for planning.
5.1 Moving windows and the lag they create
A time series records a quantity at regular intervals, such as daily visitors or monthly sales. A line chart shows its time order. Look for a long-run rise or fall, a seasonal pattern that repeats, and irregular variation around them.
Calculate a trailing moving average
A simple moving average with period k is the mean of the latest k observations. As the window moves forward, one new value enters and the oldest leaves. For monthly sales in B2:B13, put =AVERAGE(B2:B4) in C4 to calculate March's three-month average. Fill down so April uses B3:B5, and each later row advances the window one month.
For sales 120, 135, 128, 150, 162, 158, 171, 180, 176, 190, 205, 198, the first average is the sum of 120, 135, 128 divided by 3, or 127.67 units. The next is 137.67. The full March–December sequence is 127.67, 137.67, 146.67, 156.67, 163.67, 169.67, 175.67, 182.00, 190.33, 197.67. The small dips disappear and the rise of roughly 7 units per month becomes clearer.
The first two rows have no complete three-month window. Leave them without averages; averaging one month, then two, then three would change the smoothing rule along the line.
Choose smoothness and timing
A longer window smooths more variation but responds more slowly to change. A full seasonal-cycle window, such as 12 monthly observations for a yearly pattern or 7 daily observations for a weekly pattern, averages across the repeating cycle.
A trailing average lags because it still contains older values. November sales were 205 units while the three-month average was 190.33. In a rising series, older lower observations pull the average below the newest value. A turning point therefore usually appears later in the smoothed line.
A centered average places a window at its middle date. The February–April mean belongs in March for a centered three-month series. This helps describe the past without the trailing shift, but March's centered value needs April's observation. It cannot supply a centered average for the latest month before future data arrive.
Use the window as a forecast or chart aid
The latest trailing mean can serve as next period's forecast. Here it gives 197.67 units for month 13. This suits a stable level; it tends to underpredict a steady rise. A linear trend through the same history gives about 212.6 units for month 13.
In the ToolPak, choose Data > Data Analysis > Moving Average, set the Input Range and Interval explicitly, and choose an Output Range. An empty Interval uses 3. Chart Output can add the smoothed series, and the tool can add standard errors. Its first Interval minus one positions show #N/A because the windows are incomplete. A chart Moving Average trendline draws similar smoothing with a chosen Period and has no equation or R². Google Sheets also offers this trendline type.
Keep the window references relative when filling a formula down. Locking both ends to the original three months makes every result identical. Resolve missing or irregular periods before treating each row as the next equal time step.
Key Takeaways
- A moving average uses a sliding window of the latest observations.
- A longer window is smoother and slower to react.
- A trailing average lags; a centered one needs later observations.
- Leave the first incomplete windows without calculated averages.
- Keep window references relative when filling down.
- A latest-average forecast suits a stable level better than a rising trend.
5.2 ETS formulas, seasonal cycles, and forecast bounds
Exponential smoothing gives more weight to recent observations. Excel's FORECAST.ETS uses additive level, trend, and seasonality: the current baseline, its movement, and the repeating pattern. Each component updates as the history develops.
Prepare the timeline and formula
The syntax is =FORECAST.ETS(target_date,values,timeline,[seasonality],[data_completion],[aggregation]). Use matched value and time ranges with a constant period step, such as monthly dates on the first day of each month or period numbers 1, 2, 3. Forecast a date after the history ends. A target before the end produces #NUM!; unequal range sizes produce #N/A, and a timeline with no identifiable step produces #NUM!.
The timeline need not be sorted for the function, but chronological order makes checking easier. Summarize raw transactions to one row per period before forecasting. Choose the period statistic from the question: monthly total units and monthly average units describe different quantities.
Set seasonality and gaps
| Seasonality argument | Meaning |
|---|---|
| Omitted or 1 | Detect the cycle automatically |
| 0 | No seasonal component |
| 12 | Twelve-period cycle, such as yearly repetition in monthly data |
| 4 or 7 | A quarterly yearly cycle or a daily weekly cycle |
The maximum supported season length is 8,760. =FORECAST.ETS.SEASONALITY(values,timeline) reports Excel's detected cycle length so you can compare it with the actual pattern.
The model supports up to 30% missing time points. Data completion 1, the default, fills a missing point from neighboring values; 0 treats it as zero. A missing measurement and a real zero have different meanings. The aggregation option selects how duplicate dates are combined, using an average by default, with alternatives such as sum or median. Preparing one value per period makes that choice explicit.
With 36 monthly values in B2:B37, dates in A2:A37, and the next date in A38, =FORECAST.ETS(A38,$B$2:$B$37,$A$2:$A$37,12) uses a yearly cycle. List further future dates below A38 and fill down. Only the target date should move; the history stays fixed.
Add an interval and inspect the fit
FORECAST.ETS.CONFINT takes target date, values, timeline, then optional confidence level, seasonality, data completion, and aggregation. A confidence level must be strictly between 0 and 1; the default is 0.95. Keep its model settings identical to those of the point forecast.
CONFINT returns a half-width. If the point forecast is 1,284 units and the half-width is 96, the bounds are 1,188 and 1,380 units. The model-based 95% interval describes the expected range of future outcomes when the historical pattern continues. Bounds generally widen further ahead.
FORECAST.ETS.STAT(values,timeline,statistic_type,...) returns alpha, beta, gamma for types 1–3: weights for level, trend, and seasonality. Higher weights give recent information more influence. Types 4–7 return MASE, SMAPE, MAE, RMSE; type 8 returns the detected time step.
FORECAST.LINEAR fits one line with equal weight for each historical point and no seasonal component. ETS can follow changing level and trend and repeat seasonal peaks. ETS functions are available in desktop Excel for Windows and Mac, not Excel for the web or Google Sheets. Sheets offers FORECAST, FORECAST.LINEAR, and TREND for linear predictions.
Key Takeaways
- Use matching history ranges and a regular timeline.
- A season length counts observations in one cycle.
- Distinguish missing periods from genuine zeros.
- Fix the history ranges when filling future forecasts.
- CONFINT returns a half-width, which you subtract and add to the forecast.
- Use identical model settings for point forecasts and intervals.
- Linear forecasting omits seasonal peaks; ETS can model them.
5.3 Forecast sheets and a fair accuracy test
Excel's Forecast Sheet builds a table and chart from a timeline and its values. Testing the forecast against later observations is as important as creating it. A model can describe its fitting history closely and still miss the periods that come next.
Create the sheet in Windows Excel
Select the timeline and value columns with their headers. Choose Data > Forecast Sheet in desktop Excel for Windows, choose a line or column display, set Forecast End, and select Create. Excel inserts a new worksheet with history, point forecasts, lower bounds, upper bounds, and a chart. The original data remain on their sheet.
Open Options to set Forecast Start, Confidence Interval, Seasonality, Include forecast statistics, Timeline Range, Values Range, Fill Missing Points Using, and Aggregate Duplicates Using. The default confidence level is 95%; interpolation fills missing points, and averaging combines duplicates. Match the value and timeline ranges. Summarize transactions into regular periods first so the model forecasts the quantity you intend.
Manual seasonality needs at least two full cycles: 24 months for a 12-month pattern. If no seasonal pattern is detected, Excel follows a linear trend. Selecting a long cycle from too little history gives the model too little evidence of repetition.
Forecast columns contain FORECAST.ETS and FORECAST.ETS.CONFINT formulas. Editing a historical value therefore updates the forecast. The chart continues the historical line into the forecast region, with bounds that usually spread as the horizon increases.
Hold back later observations
Choose a Forecast Start before the final observed period. Excel uses only earlier data to make those predictions, allowing comparison with the actual later values. This is backtesting, also called hindcasting. Keep those later observations out of fitting; otherwise the test benefits from information unavailable at the forecast date.
For four held-back months, suppose actual sales are 176, 190, 205, 198 and forecasts are 172, 186, 192, 204. Actual minus forecast gives 4, 4, 13, −6. The mean absolute error, MAE, ignores signs and averages miss sizes:
The root mean squared error, RMSE, squares first, averages, then takes the square root:
Both results are in units sold. RMSE gives the 13-unit miss more influence. In a worksheet, calculate absolute errors with ABS and squared errors by squaring each row, then average each helper column and take SQRT for RMSE. Averaging signed errors would let overpredictions cancel underpredictions.
Read the limits of the projection
Include forecast statistics reports fitted-history weights alpha, beta, gamma and error measures MASE, SMAPE, MAE, RMSE. MASE compares errors with a naive benchmark, with values below 1 indicating improvement over that benchmark. SMAPE expresses error on a percentage scale. Fitted-history statistics and held-back accuracy answer different questions; use the backtest to judge later-period performance.
Report forecast values with their intervals and period units. Keep the horizon modest compared with the history and refresh as new data arrive. The projection follows past patterns; a new event or process change can break them. In Google Sheets, use FORECAST.LINEAR or TREND and a line chart for a linear projection; there is no built-in ETS Forecast Sheet.
Key Takeaways
- Forecast Sheet creates a formula-based forecast table and chart.
- Use at least two full cycles for manual seasonality.
- Backtesting fits earlier data and tests against held-back later values.
- MAE averages absolute misses; RMSE gives large misses more weight.
- Report the forecast with bounds and refresh it with new observations.
Descriptive Statistics and Forecasting examples
1Turn a delivery column into a useful report
14 steps
- 1IntroductionStart with the question
A delivery manager wants to know the typical time (its center), whether a few deliveries are unusually slow (a question of spread and position), and whether regions differ. One average cannot answer all three questions. You will inspect the input, calculate a few descriptive measures, then choose group and position formulas. Finally, you will decide which results can refresh automatically and which need a new ToolPak run.
- 2TipGive every delivery one row
Put a delivery ID, time in minutes, and region on the same row. Use one header row and keep notes and subtotals outside the measurements.
Compare
COUNTwithCOUNTAin the time column. A nonempty entry can still be text, including a measurement stored as text. Converting it restores its contribution to statistical functions; changing its display alignment alone does not. - 3ExampleFind three kinds of center
Enter 32, 28, 45, 30, 28, 35, 41, 28, 38, 55 in B2:B11.
AVERAGEreturns 36 minutes. In sorted order, the middle two are 32 and 35, soMEDIANreturns 33.5.MODE.SNGLreturns 28 because it occurs most often.The larger mean reflects the high tail. The median gives the middle delivery position without being pulled as far toward the 55-minute observation.
- 4ExplanationChoose the spread that fits the group
Use
STDEV.Swhen the ten deliveries represent a larger month of work; useSTDEV.Pif these ten are the complete group you want to describe. Their results are about 8.92 and 8.46 minutes.VAR.SandVAR.Puse squared minutes. Standard deviation takes the square root, making its size easier to interpret alongside the delivery times themselves. - 5ChallengeA missing time is entered as zero
A time column contains 12, 15, 18, and one unrecorded time. What happens to
AVERAGEif the unrecorded cell is changed from empty to numeric zero?---reveal---
The original mean is 15 minutes from three measurements. A zero makes the mean 11.25 by adding a fourth numeric observation. Keep an unrecorded measurement missing; a true zero would describe a different observation.
- 6ExampleBuild a middle-half interval
Use
QUARTILE.INC(B2:B11,1)andQUARTILE.INC(B2:B11,3). The delivery values give Q1 = 28.5 and Q3 = 40.25 minutes. Subtract to obtain an IQR of 11.75 minutes.The
.EXCmethod gives different endpoints for this small set. Name the method in the report so another analyst can reproduce the interval and any outlier flags calculated from it. - 7ExampleCheck the largest time against fences
Multiply IQR 11.75 by 1.5 to get 17.625. Subtract that from Q1 for a lower fence of 10.875; add it to Q3 for an upper fence of 57.875 minutes.
The 55-minute time is high but remains inside these fences. Store the two fences in fixed cells before filling a row flag formula down, so every delivery is tested against the same limits.
- 8ExplanationAsk a group question with criteria
With regions in C2:C11,
=AVERAGEIFS(B2:B11,C2:C11,"North")returns 41.6 minutes. The matching South mean is 30.4.For a group median, select the values with
FILTER, then useMEDIAN. North returns 41 and South 28. A criteria formula selects rows itself; it does not need the worksheet to be visually filtered first. - 9ChallengeA filtered view still shows the old average
After filtering the list to North, an ordinary
AVERAGE(B2:B11)still shows 36. What formula can show the mean of visible rows, including exclusion of manually hidden rows?---reveal---
Use
=SUBTOTAL(101,B2:B11). OrdinaryAVERAGEincludes hidden rows in its referenced range. Code 101 makes the visible-row rule explicit, so the result follows the view of the list. - 10ExplanationRequest a ToolPak snapshot
Load the Analysis ToolPak from Excel Add-ins, then choose Data > Data Analysis > Descriptive Statistics. Select B1:B11 if B1 contains the time header. Choose Grouped By Columns, check Labels in first row, select a clear output location, and enable Summary statistics.
A header selected without the label option is treated as input data and can cause a non-numeric input error.
- 11ConnectionTwo different measures of variation
The report shows Standard Deviation about 8.92 and Standard Error about 2.82 minutes. The first describes delivery-to-delivery variation. The second divides by the square root of the count and describes variation among sample means.
A larger sample can reduce the standard error without making individual delivery times cluster more tightly. Read the output label before interpreting the size.
- 12ChallengeRead the confidence line as a margin
The ToolPak gives Mean 36 and Confidence Level (95%) about 6.38. What interval endpoints do those lines produce?
---reveal---
Subtract and add the margin to obtain 29.62 and 42.38 minutes. The 6.38 figure is a distance from the mean to a bound, not a bound itself. It also describes the sample mean, unlike the minimum and maximum delivery times in the same report.
- 13ChallengeChoose a refreshable reporting route
The source table will receive new delivery rows every week. The manager needs next week’s results to include them. What should be used for the main report, and what happens to today’s ToolPak block?
---reveal---
Use statistical formulas tied to table columns for the main report. New table rows enter the references and formulas recalculate. The existing ToolPak block stays fixed and needs a new run to describe the updated data.
- 14RecapKeep the result attached to its rows
Before using a delivery statistic, check which numeric observations entered it, what group or visibility rule selected them, and whether it refreshes. The count confirms the input size; center and spread describe the values; position measures identify cases to investigate. In a saved report, label the unit and method so the result remains understandable after the worksheet grows.
2Build and read a waiting-time histogram
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA picture of where the waits cluster
- 2ExampleWrite the upper limits
- 3ExampleLet FREQUENCY return every count
- 4ChallengeMove an exact boundary deliberately
- 5ExplanationRead a cumulative percentage
- 6ExplanationCreate the histogram from raw values
- 7TipUse formula counts for a live display
- 8ChallengeChoose a width that shows useful detail
- 9ExampleDescribe the distribution in context
- 10ExplanationCompare the middle halves
- 11ChallengeCounts can reverse the impression
- 12ChallengeAudit a group comparison
- 13RecapMake the distribution reproducible
3Read a relationship without losing the cases
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with matched measurements
- 2TipPreserve the row pairs
- 3ExplanationRead direction and strength separately
- 4ExampleTurn r into an explained share
- 5ChallengeA curve with almost no linear correlation
- 6ConnectionInvestigate a cool festival day
- 7ExplanationRead the triangle of a matrix
- 8Key InsightNotice overlap among explanatory variables
- 9ChallengeA shared cause behind two rising quantities
- 10ChallengeCheck the level of the cases
- 11RecapReport the number with its evidence
4Fit a regression and inspect the errors
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionA line that can be checked
- 2ExplanationChoose a family from the pattern
- 3ExampleAdd the line on a numeric scale
- 4ChallengeA convincing fit that bends too far
- 5TipKeep chart labels out of precise calculations
- 6ExplanationFit the same line with functions
- 7ExamplePredict inside the observed range
- 8ExampleCalculate one residual
- 9ExplanationRead the pattern of the misses
- 10ChallengeProject beyond the recorded temperatures
- 11TipSet up the Regression tool
- 12ExampleRead the statistics in their units
- 13ConnectionPartition the variation
- 14ExampleHold another input fixed
- 15ChallengeDecide whether another input helps
- 16ChallengeA close fit with changing error size
- 17RecapKeep the equation and error check together
5Smooth a series, forecast it, and test the misses
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate the pattern from the forecast test
- 2ExampleMove a three-month window
- 3ExplanationUnderstand the delay in the line
- 4ChallengeChoose where a centered mean belongs
- 5ConnectionCompare a smoothed level with a rising trend
- 6TipGive ETS a regular history
- 7ExplanationCount observations in one season
- 8ExampleFix the history and advance the target
- 9ExampleTurn half-width into two bounds
- 10ChallengeA quarterly model gets monthly settings
- 11ExplanationInspect the fitted components
- 12ExplanationCreate a formula-based forecast sheet
- 13TipHold later months out of fitting
- 14ExampleCalculate the typical absolute miss
- 15ExampleGive the largest miss extra influence
- 16ChallengeA seasonal backtest needs enough history
- 17RecapReport a forecast that can be reviewed
Descriptive Statistics and Forecasting practice questions
Set 1: Check data, functions, and charts10 Practice Questions
Question 1 of 10
Show answerHide answer
STDEV.S uses the sample form because the recorded inspections represent a larger group. STDEV.P would describe the recorded values as the entire population of interest. VAR.S also uses the sample convention but returns variance in squared time units.Question 2 of 10
=AVERAGE(B2:B6) return?Show answerHide answer
Question 3 of 10
Show answerHide answer
SUBTOTAL with code 101 averages visible numeric rows and excludes manually hidden rows too. Ordinary AVERAGE still includes rows hidden by the filter. AGGREGATE with option 6 ignores error values; that setting does not request the same hidden-row treatment.Question 4 of 10
Show answerHide answer
Question 5 of 10
FREQUENCY return, including the last output?Show answerHide answer
FREQUENCY's rule.Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
FORECAST.LINEAR takes the new x value first, then known responses, then known inputs. Here 19 is the new temperature, energy use is y, and recorded temperature is x. Swapping the two history ranges would fit temperature from energy use, a different prediction question.Question 10 of 10
=AVERAGE($B$2:$B$4) filled down as a three-month trailing average. B2:B9 holds rising monthly output. Every displayed average is identical. What repair makes the calculation and its dates correct?Show answerHide answer
Set 2: Apply statistics and read model output10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
FORECAST.ETS?Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Compare groups and choose a defensible model10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
COUNT returns 23 and COUNTA returns 24. One measurement has a green warning triangle and is left-aligned. What should be checked first?Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
FORECAST.ETS.CONFINT result of 85 units. What bounds should be reported?Show answerHide answer
Save this lesson to see this answer.
Set 4: Diagnose analysis and forecasting problems10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Combine checks and defend your analysis10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Adjusted R²
Aggregation
Analysis ToolPak
Arithmetic mean
AVERAGE.AVERAGE.B
Backtesting
Bimodal distribution
Bin
Bin width
Box plot
C
Centered moving average
Coefficient of determination
Conditional statistic
Confidence margin
Correlation matrix
Covariance
Cumulative frequency
D
Data completion
E
ETS
Excess kurtosis
Explanatory variable
Exponential smoothing
Exponential trendline
Extrapolation
F
Forced intercept
Forecast horizon
Forecast Sheet
Frequency
H
Histogram
I
Influential observation
Intercept
Interpolation
Interquartile range
Interval half-width
FORECAST.ETS.CONFINT returns this quantity.L
Lag
Least squares
Left skew
Level
LINEST
Logarithmic trendline
Lurking variable
M
MASE
Mean absolute error
Median
Mode
MODE.SNGL gives one mode, while MODE.MULT can return tied modes.Moving average
Multiple R
Multiple regression
O
Outlier fence
Overflow bin
P
Paired observation
Pareto chart
Pearson correlation
Percentile
Polynomial trendline
Population
Power trendline
Q
Quartile
R
Range
MIN result from a MAX result.Range restriction
Rank
RANK.EQ assigns tied values the same rank and ranks largest first by default.Relative frequency
Residual
Response variable
Right skew
Root mean squared error
S
Sample
Scatter chart
Seasonality
Skewness
Slope
SMAPE
Smoothing weight
Spill range
FREQUENCY.FREQUENCY formula uses five bin limits.Standard deviation
Standard error
Standard error of the estimate
STEYX returns it for a simple regression.Sum of squares
Symmetric distribution
T
Time series
Trailing moving average
Trend
Trendline
U
Underflow bin
V
Variance
Visible-row statistic
SUBTOTAL can exclude filtered and manually hidden rows.SUBTOTAL(101,...) changes when the report is filtered to a different team.W
Whisker
Z
Z-score
- 1Power Query
- 2Summarizing Data with PivotTables
- 3PivotCharts and Dashboards
- 4Data Models and Power Pivot
- 5What-If Analysis
- 6Descriptive Statistics and Forecasting
- 7Automating Work with Macros
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.