Module 6 — Multivariate & Time-Series Visualization
Compare multivariate relationships and change over time.
Start with the statistical foundations for studying several variables together and observations ordered over time.
Start with the five prediction checks.
DV11–DV12 Skills Map
Begin with the prediction checks. The map will distinguish practice evidence from demonstrated mastery.
Next best action: prediction checks →Module overviewView full topics and learning outcomes
What students will cover
- Multivariate structure: relationships among several variables, correlation matrices, pair plots, facets, heatmaps, and residual plots.
- Standardized values: how measurement units affect numerical spread, how \(z\)-scores express distance from a mean, and how to label original and standardized axes.
- Clustering and grouping: distance, scaling, cluster sensitivity, and the difference between a useful grouping visual and an unsupported category claim.
- Time-series visualization: trend, seasonality, smoothing windows, moving averages, indexed series, rate of change, and the visual consequences of aggregation.
- AI audit: checking AI-generated multivariate and time-series claims for scale errors, over-smoothed patterns, omitted variables, and unsupported causal language.
Student learning outcomes
- Choose among facets, heatmaps, pair plots, correlation matrices, residual plots, and time-series views based on the statistical question.
- Explain how standardization expresses observations relative to each variable’s center and spread.
- Interpret positive, negative, and zero standardized values without confusing them with original measurement units.
- Compare raw and standardized multivariate views and state what each preserves, distorts, or discards.
- Use smoothing or aggregation on a time series only after naming the window, unit, and pattern that may be hidden.
- Audit an AI-generated multivariate or time-series claim and revise it into defensible statistical language.
- Write a final visual defense that names the omitted dimensions, scaling choices, time unit, and one limitation.
Interactive reading: association, regression and time series
This reading uses quick prediction checks before the explanation is revealed. Work each prompt before opening the answer; the goal is to defend multivariate and time-series choices instead of accepting a graphic because it is visually appealing.
A strong correlation between two variables proves that changing one variable causes the other to change. True or false?
A residual is the observed response minus the predicted response. True or false?
A scatterplot can be used to visualize the relationship between two quantitative variables. True or false?
- Time order carries information: rows of a time series are not interchangeable. Reordering them destroys the pattern, which is not true of an independent random sample.
- Serial dependence: a value is often related to the values just before it. Today’s enrollment is informative about tomorrow’s.
- Lag: the number of time steps between two observations. A lag-1 comparison sets each value beside the one immediately before it.
- Autocorrelation: the correlation of a series with its own lagged values. The autocorrelation function summarizes it across several lags.
- Why it matters: methods that assume independent observations can report intervals that are too narrow when observations are positively autocorrelated, so the stated uncertainty understates the actual uncertainty.
- Separate rows do not establish independence: recording each observation in its own row says nothing about whether the observations are related.
Observations collected at different times must be independent of one another. True or false?
Smoothing replaces a noisy time series with a less variable curve, usually by averaging nearby values or fitting a local trend. Reducing short-term variability can make a long-term trend easier to see, and different methods, such as moving averages, LOESS and splines, can produce different curves from the same data.
The noisy original may also contain real short-term changes. A smoother can hide peaks, sudden changes, seasonality, outliers and structural breaks, so a smoothed line is not automatically more accurate than the raw series. Stronger smoothing lowers variance but can introduce bias when the window is too wide or the method is unsuitable. The raw series records what was observed; the smoothed line is a summary produced by a chosen method.
A smoothed time-series line is always more truthful than the noisy original because it removes random fluctuation. True or false?
Checking what this checkpoint still needs…
Raw and standardized values
Compare original measurements with their positions relative to each variable’s mean and standard deviation.
The standardization lab needs JavaScript.
Checking what this checkpoint still needs…
Choose the view that preserves the evidence
Match each statistical question to the representation that answers it, then audit the shortcuts proposed by AI.
Open the representation-choice lab · about 10 minutes
Your task Match all six questions to the view that answers them. Ask what each view preserves and what it throws away before you choose.
Lab complete when the score box reads 6 / 6 and you can say why the runner-up view fails for each question.
The representation lab needs JavaScript.
Open the multivariate AI-output audit · about 10 minutes
AI-output audit
Your task Rule Accept, Modify, or Reject on all six AI proposals. Modify is for a proposal whose diagnosis is right but whose action needs discipline.
Lab complete when every proposal has a verdict and the audit table below the cards is filled in — that table lists recommended revisions. Add only the work you actually carried out to your Project 4 project log.
This AI audit needs JavaScript.
Checking what this checkpoint still needs…
Interpret smoothing and temporal variation
A weekly series carrying trend, an annual cycle, and noise. Smoothing is a filter whose window determines which patterns remain visible. A window close to the length of the seasonal cycle attenuates the seasonality that the analysis is asked to report. Then run the browser-R lab below without leaving QuantegyAI.
Open the smoothing tradeoff lab · about 10 minutes
This visual lab needs JavaScript.
Open the browser-R activities: a starter, Labs A and B, and the real-data Lab C
Starter: understand moving-average endpoints
Optional starter practice. Your task Compare 12 fixed synthetic weekly values with a centered three-week moving average. Explain why the endpoint averages are undefined and what smoothing hides.
Lab complete when the output contains the raw values and their moving averages, and your interpretation identifies the trend, the window and a pattern the smoother can hide. Undefined endpoint averages must not be described as missing raw observations.
R Lab A — Multivariate structure
Required evidence activity; supplied lab route. Your task Compare raw and standardized views of five simulated variables across 40 campuses. Read the correlation matrix with the pair plot, choose a view, and explain the scaling, relationship and limitations.
Lab complete when your interpretation identifies an association, examines its shape in a suitable plot, explains raw versus standardized units and states a limitation.
R Lab B — Seasonal time series
Required evidence activity; supplied lab route. Your task Use 104 simulated weeks with trend, a 52-week cycle and noise. Compare the raw series with its five-week smoother; justify the window, time unit and aggregation, report undefined endpoints, and identify a pattern smoothing could hide.
Lab complete when your interpretation uses the raw and smoothed output to distinguish trend from the designed seasonal cycle, justify the window and identify a hidden-pattern risk. Report any undefined endpoints.
R Lab C — Real data: New York air quality, 1973
Optional real-data lab for Project 4. Your task Labs A and B use simulated data. This lab uses a real public dataset with real gaps: daily ozone, solar radiation, wind and temperature in New York, May to September 1973. Audit what is missing, summarize each month with its n, and decide which of the two printed charts answers which question. You may use this dataset for DV11 or DV12 instead of the simulated data. It adds no requirement and earns no practice points.
Lab complete when your interpretation states how many Ozone values are missing and in which month most of them fall, says how many rows the correlation matrix rests on, and names the chart you would publish for each question and why.
Data dictionary for airquality (from R's own documentation)
Source: R Core Team, help(airquality) in the base datasets package. Ozone data from the New York State Department of Conservation; meteorological data from the National Weather Service. Reproduced in Chambers, Cleveland, Kleiner and Tukey (1983), Graphical Methods for Data Analysis, Wadsworth. 153 rows, one per day, 1 May to 30 September 1973.
| Variable | Type | Meaning and unit |
|---|---|---|
Ozone | numeric | Mean ozone in parts per billion, 1300 to 1500 hours, Roosevelt Island |
Solar.R | numeric | Solar radiation in Langleys, frequency band 4000–7700 Angstroms, 0800 to 1200 hours, Central Park |
Wind | numeric | Average wind speed in miles per hour, 0700 and 1000 hours, LaGuardia Airport |
Temp | numeric | Maximum daily temperature in degrees Fahrenheit, LaGuardia Airport |
Month | numeric | Month, 1–12 (here 5–9) |
Day | numeric | Day of month, 1–31 |
The year, 1973, appears only in the documentation. Missing readings are recorded as NA; the documentation does not say why a reading is missing.
Checking what this checkpoint still needs…
Module 6 evidence: explain and evaluate the visual analysis
Complete Canvas Project 4 evidence items DV11 and DV12. Each item autosaves, and the shared AI grader evaluates the statistical defense rather than its presentation.
Where do I get my data?
The starter is a fixed synthetic fixture; Labs A and B use simulated data. Their source is the supplied script, not collected campus records. External retrieval is not applicable. Preserve the script version and seeds with your evidence. Lab C is different: real public data, documented in R.
For the time-series half of DV12: The starter R lab already holds week and visits in its editor, 12 weeks with a trend and noise. Run it to compare raw values with the three-week moving average and defend what the smoother hides. That series carries no seasonal component, so use R Lab B when your defense has to name seasonality.
For the multivariate half of DV11: R Lab A already holds the designed campus data frame in its editor: five variables across 40 campuses with the structure built in. Open it and press Run: it prints the raw and standardized views, the correlation matrix, a pair plot, and one complementary visual. These outputs support a facet, heatmap, pair-plot or correlation-matrix defense.
For the seasonal half of DV12: R Lab B already holds the season data frame in its editor, 104 weeks with a 52-week cycle, for trend, seasonality and a smoothing window. Open it and press Run: it draws the raw series with the 5-week moving average over it. Both Lab A and Lab B are drawn with set.seed(), so describe them as simulated rather than collected.
Real data: R Lab C already holds air, a copy of the airquality data documented in R: 153 real days of New York ozone and weather in 1973, with real missing values. Its data dictionary sits above the editor. Use it for either half of DV11 or DV12; it is optional and changes no requirement.
Without writing R: The standardized values lab and the smoothing tradeoff lab both report numbers you can quote directly in your defense.
Another dataset: You can use any built-in R dataset (run data() to list them) or add your own CSV under Your data in the R lab (files up to 500 MB stay in your browser). The R lab dataset is sufficient for this assignment.
Open the DV11 and DV12 Project 4 evidence checklists
Your task Open each card, read the worked exemplar, then tick each check once your own work satisfies it and paste your note or link.
Module 6 evidence complete when both cards read complete — that is 2 of the 4 Project 4 evidence items. Continue to Module 7 for DV13 and DV14. The shared Project_4_Canvas_Packet.zip is eligible to download on the Project 4 page when all four items are download-eligible. Evidence completion and download eligibility are separate: completed evidence or the applicable earned-credit policy can make an item eligible. This includes newly earned credit, not only historical credit. Module 6 credit alone does not unlock the whole four-item ZIP; DV13 and DV14 must also be eligible. Unticked boxes still mean evidence is incomplete, even when earned credit permits download.
Project 4 evidence items: DV11 Multivariate Structure Defense · DV12 Time-Series Story
Open the submission decision check
The Module 6 submission decision check needs JavaScript.
Open the Module 6 AI-feedback workspace
Submit the Module 6 workspace for AI feedback
Shared workspace loading…
Capstone writing autosaves as you work.
Checking what this checkpoint still needs…
Review concepts and save the mastery assessment
Review the concepts and complete the four-question mastery assessment. Saving its result does not complete the evidence checklists or verify a Canvas submission.
Adaptive reflection
Mastery check loading…
Module 6 record
Your saved Module 6 record needs JavaScript. You can also see it on the report card in My Skills Dashboard.