Teaching pack · UAT 106

A 15-week teaching plan, 5 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.

Last updated: · 3(2-2-5) · Per week: lecture 2 h, lab 2 h, self-study 5 h; 60 contact hours per term

Coverage of the course description

The lessons fully teach 11 of 11 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.

Description topicModulesWhere it is taughtStatus
Descriptive statisticsM1Module 1: centre and spread, box plots and outliers, trueness, precision, bias and RMSECovered
ProbabilityM2Module 2: basic rules of probability and Bayes' theorem in the motor-alarm exampleCovered
Probability distributionsM2Module 2: the binomial distribution, the normal distribution and the note that real data is not always normalCovered
SamplingM2M3M5Module 2: 'Sampling methods' (simple random, stratified, cluster, multistage and systematic sampling, and the bias of convenience samples) with Example 2 estimating the fleet's battery capacity by stratified sampling, plus 'Monte Carlo simulation and the central limit theorem' · Module 3: standard error and confidence intervals · Module 5: randomisation in 'Principles of experimental design'Covered
EstimationM3Module 3: standard error and confidence intervals, the three-flight exampleCovered
Hypothesis testingM3Module 3: testing a hypothesis from a requirement, Welch's t-test, two kinds of error and how to use p-valuesCovered
CorrelationM4Module 4: correlation and the note that correlation is not causationCovered
RegressionM4Module 4: linear regression, not extrapolating beyond the data, and Anscombe's four datasetsCovered
Data preparationM4Module 4: checking the data before analysing it, and from PX4 logs to tablesCovered
Data visualizationM1M4M5Module 4: 'Choosing and designing charts' (question-to-chart table, Cleveland and McGill's ordering of perceptual tasks, the principle of proportional ink, colour and showing uncertainty) with Example 1 on a truncated bar chart, plus 'Anscombe's four datasets' · Module 1: histograms and box plots · Module 5: interaction plot in the labCovered
Data analysis for technology-based decision makingM3M5Module 3: a passing mean does not mean every flight passes · Module 5: from requirement to evidence, and reporting pass rates within their limitsCovered

Weekly teaching plan

WeekTopicPre-classLectureLabEvidence
1 M1Data types, the experimental unit, centre and spreadRead module 1 up to 'Centre and spread'; run Example 1Choosing a centre for skewed data and reading percentiles of processing timeWorksheet 1 part A: open hover_error.csv in pandas, compute summaries, draw a histogramSummary table and histogram
2 M1Box plots and outliersRead the box plot and outlier sectionThe 1.5 IQR rule and justified decisions to remove dataWorksheet 1 part B: box plot, remove two outliers, recompute SD, find p50 p90 p95 p99 of latency.csvBefore and after table with reasons
3 M1Trueness, precision, bias and RMSERead the bias and RMSE section; take the module 1 quizSeparating systematic and random error; RMSE per axisWorksheet 1 part C: compute bias and RMSE per E, N, Z axis from checkpoint dataWorksheet 1 short report and quiz result
4 M2Probability rules and Bayes' theoremRead module 2 to the binomial section; run Example 1Conditional probability and why most alarms may be falseWorksheet 2 part A: change the failure rate in the motor-alarm example to 10% and explainCalculation and explanation
5 M2Binomial and normal distributionsRead the binomial and normal sectionsEmergency landings per month and checking whether data is near normalWorksheet 2 part B: probability of no events and of more than two; Shapiro test on hover_error.csvFormula results and normal-curve comparison plot
6 M2Monte Carlo simulation and the central limit theoremRead the Monte Carlo section; take the module 2 quizSimulation instead of formulas; the distribution of sample means; sampling methods, stratified sampling and convenience bias (Example 2)Worksheet 2 part C: simulate a three-leg mission; find the chance total time exceeds 60 minWorksheet 2 short report and quiz result
7 M3Standard error and confidence intervalsRead module 3 to the confidence-interval section; run Example 1The t distribution for small samples and the correct meaning of a confidence intervalWorksheet 3 part A: write requirement, hypotheses, direction and α before opening endurance.csvTest plan written before seeing the data
8 M3Testing a requirement and Welch's t-testRead the hypothesis test and Welch sectionsOne-sided lower bounds and comparing groups with unequal variancesWorksheet 3 part B: test the 20-minute requirement for every pair and compare brands A and BTable of mean, SD, n, p-value and lower bound
9 M3Two kinds of error and power; midtermReview modules 1–3; take the module 3 quizMidterm examination (modules 1–3)Worksheet 3 part C: simulate the smallest number of flights for 80% powerWorksheet 3 report and midterm score
10 M4Checking data and correlationRead module 4 to the correlation sectionData types, missing values and why correlation is not causationWorksheet 4 part A: check endurance.csv; scatter plot coloured by brandData check notes and scatter plot
11 M4Linear regression and Anscombe's dataRead the regression and Anscombe sections; run the lesson codeSlope, residuals, R² and the danger of extrapolationWorksheet 4 part B: per-brand models, residual plots and Anscombe's four setsSlope table and one-sentence advice per dataset
12 M4From PX4 logs to tablesRead the PX4 log section; take the module 4 quizConverting ulog to CSV, aligning timestamps and limits of simulated data; choosing and designing charts without misleading (Example 1)Worksheet 4 part C: convert a SITL log with ulog2csv; relate battery voltage to timeWorksheet 4 short report and quiz result
13 M5From requirement to evidence; principles of experimental designRead module 5 to the experimental-design sectionRandomisation, replication, blocking and the 2² factorialWorksheet 5 part A: write a two-propeller test plan, peer check, then analyse factorial.csvTest plan, main effects and interaction
14 M5Measurement uncertainty and reporting pass ratesRead the uncertainty and pass-rate sections; run Example 1; take the module 5 quizType A and Type B and what a good test report containsWorksheet 5 part B: interaction plot and uncertainty of the flight-time measurementInteraction plot and uncertainty budget
15 M5Mini-project presentationsPrepare the complete test reportCourse wrap-up and project criteriaPresent the one-page test report to a panel deciding whether to accept the equipmentMini-project report and presentation, scored with the rubric

Worksheets and instructor guide

One worksheet per module. Students open it on the web, print it or download the .docx. The instructor guide under each worksheet gives the class timing, expected results, discussion questions and notes for students with different backgrounds.

1Worksheet 1 Summarising a hover
Analysis activity · About 6 h of class time · CLO1, CLO3

Objective: Summarise hover and processing-time data with descriptive statistics, judge outliers with reasons, and compute bias and RMSE

Equipment

  • Computer with Python, pandas, numpy and matplotlib
  • hover_error.csv and latency.csv from /downloads/uat-106/
  • Checkpoint data from the knowledge unit on map accuracy checking

Safety

  • Desk work only; no flying

Steps

  1. Open hover_error.csv; compute mean, median, SD, IQR and percentiles as in the lesson
  2. Draw a histogram and a box plot
  3. Flag outliers with the 1.5 IQR rule, remove the two clear ones and recompute SD
  4. Compute p50, p90, p95, p99 of latency.csv with numpy.percentile and statistics.quantiles; compare
  5. Compute bias and RMSE per E, N, Z axis from the checkpoint data
  6. Write a short report showing results before and after removal, with reasons

Deliverables

  • Reproducible script or notebook
  • Histogram and box plot
  • Before and after table
  • Bias and RMSE table per axis

Checklist

  • Table 1 has mean, median, SD, Q1, Q3, IQR and both fences, before and after removal, with units in m (Accuracy of statistical calculations)
  • States that the SD divides by n−1 and names the percentile method (linear or exclusive) of each command in Table 2 (Accuracy of statistical calculations)
  • Histogram and box plot have axis labels with units and show all three outliers (Data preparation and visualisation)
  • The report gives the times of the two removed points, the reason, and results both before and after; nothing is deleted silently (Interpretation and data-based decisions)
  • The script or notebook reruns from reading the files and reproduces the tables (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Review data types, experimental unit and summaries; hand out the data files30 min
  2. Summarise hover_error.csv and draw the histogram and box plot90 min
  3. Flag outliers with the 1.5 IQR rule, remove two and recompute60 min
  4. Percentiles of latency.csv by two methods60 min
  5. Bias and RMSE per axis from the checkpoints60 min
  6. Write the short report, answer questions and run the hand-in checklist60 min

Expected results

  1. Record: Table 1 Summary of hover_error.csv before and after removing the two outliersTable 1 (600 synthetic points): before removal mean −0.002 m, median −0.001 m, SD 0.127 m, min −0.735 m, max 0.897 m, Q1 −0.086 m, Q3 0.082 m, IQR 0.167 m, fences [−0.337, 0.333] m; three outliers at 21.5 s (0.897 m), 43.0 s (−0.735 m) and 58.3 s (−0.372 m). After removing the first two (n = 598): mean −0.002 m, median −0.001 m, SD 0.119 m. Accept ±0.001 m from rounding. np.std without ddof=1 gives 0.1274 instead of 0.1275, a tiny gap because n is large.
  2. Record: Table 2 Percentiles of latency.csv by two methodsTable 2: p50 numpy 40.55 ms, statistics 40.55 ms (difference 0.00); p90 57.74 vs 58.06 ms (0.32); p95 62.59 vs 64.21 ms (1.62); p99 76.30 vs 76.60 ms (0.29). Accept ±0.01 ms. The largest gap is at p95 because the right tail has few points and the two methods interpolate differently (linear vs exclusive).
  3. Record: Table 3 Bias and RMSE per axis from checkpoints A to DTable 3 (knowledge-unit points A to D, eE = 0.03, −0.03, 0, 0; eN = 0.04, 0.04, −0.05, 0.05; eZ = 0.10, 0, −0.10, 0 m): E bias 0.000 m, RMSE 0.021 m; N bias +0.020 m, RMSE 0.045 m; Z bias 0.000 m, RMSE 0.071 m; combined horizontal RMSE_H 0.050 m. Accept ±0.001 m. A good remark: Z has zero bias yet the largest RMSE, and adding 0.20 m to every point gives bias_Z 0.200 m and RMSE_Z 0.212 m.
  4. Question 1: The mean and median of hover_error.csv barely change after removing two points, but the SD drops. What does this say about how sensitive each statistic is to outliers?The mean and median barely move (−0.002 and −0.001 m) because the two points lie on opposite sides (+0.897 and −0.735 m) and cancel, and the median is robust anyway. The SD falls from 0.127 to 0.119 m (about 6%) because it squares distances, so far points weigh heavily. A strong answer notes the mean is also sensitive and would shift clearly if both points were on the same side.
  5. Question 2: The point at 58.3 s lies just outside the fence. Did your group keep or remove it, and how would you justify that in the report?Either choice is fine if justified. A strong answer says the 1.5 IQR rule is a signal to investigate, not an order to delete; this point is only 0.035 m past the fence (−0.372 vs −0.337), unlike the two far points. Without a found cause such as a gust or sensor fault it should be kept, and results reported both ways.
  6. Question 3: If image processing must finish within 60 ms, which summary of latency.csv should decide it, and does the difference between the two methods at p95 matter?Use p95, or count the share of frames over 60 ms, not the mean of 42.3 ms, which looks comfortable. p95 is about 62.6 to 64.2 ms, over 60 ms by both methods, and 14 of 200 frames (7%) are slower than the limit. The 1.62 ms gap does not change this conclusion, but it could near the limit, so always state the method.
  7. Question 4: Axis E has zero bias but axis N has a bias of 0.02 m. What kind of problem does this map show, and why must both bias and RMSE be reported?The map is shifted systematically north by 0.02 m (three of four eN are positive), while E and Z are not shifted but spread. Zero bias does not mean zero error because positive and negative errors cancel (Z has RMSE 0.071 m). RMSE combines bias and spread but gives no direction, so report both. A strong answer suggests checking causes such as the CRS or point marking and notes that four points are a calculation exercise, not enough to certify a map.
  8. Question 5: This log has 600 points from one hover. If the question is "how well does this drone model hold altitude?", how many independent samples are there, and what extra data is needed?Only one independent sample, because the experimental unit is the flight; 600 points taken every 0.1 s in one hover are not independent. Repeat the hover over several flights (different days, and different aircraft if the question is about the model), summarise each flight, for example its SD, and then compare.

Discussion questions

  • If a commander asks for "one number" for hover accuracy, which would you give, and what information would be lost?
  • Who should decide that an outlier may be removed: the analyst, the pilot or the owner of the requirement? What evidence is needed?
  • Why do two programs give different p95 values, and what should a team agree on before collecting data?

Adapting to student background

Upper secondary (M.6)
Have them compute SD, Q1, Q3 and RMSE by hand on small sets (such as 20, 22, 24 min and points A to D) before checking with pandas, linking formulas to code; stress explaining results in drone terms.
Vocational certificate
Provide starter code that already reads the files and plots; students add one line per row of Table 1, and check RMSE in a spreadsheet column by column (square, average, root).
Diploma
Extension: run the same script on an altitude log from a real or SITL hover the group has recorded, and compare its SD and outliers with the synthetic data.

Common student mistakes: Common mistakes in the module 1 lesson

2Worksheet 2 Assessing mission risk
Analysis activity · About 6 h of class time · CLO2, CLO1

Objective: Use probability rules, binomial and normal distributions and Monte Carlo simulation to assess mission risk

Equipment

  • Computer with Python, numpy and scipy
  • Module 2 example code and hover_error.csv

Safety

  • Desk work only; no flying

Steps

  1. Compute by formula the chance of no emergency landing in a month, and of more than two, for 50 flights at 1%
  2. Check the same results by simulation
  3. Change the motor failure rate in the alarm example to 10% and explain why P(failure | alarm) changes
  4. Plot hover_error.csv against a normal curve; run the Shapiro test before and after removing outliers
  5. Simulate a three-leg mission with normal leg times; find the chance the total exceeds 60 min

Deliverables

  • Formula results against simulation
  • Explanation of the Bayes result
  • Plots and normality test results
  • Three-leg mission simulation result

Checklist

  • Table 1 has both formula and simulation results, states the seed and number of runs, and they differ by no more than 0.01 (Accuracy of statistical calculations)
  • Table 2 computes P(alarm) from both true and false alarms, for both the 2% and 10% cases (Accuracy of statistical calculations)
  • The histogram with normal curve has axis labels, units in m and a legend (Data preparation and visualisation)
  • The Bayes and normality explanations use your own numbers and do not confuse P(failure | alarm) with the alarm's sensitivity (Interpretation and data-based decisions)
  • The three-leg mission states every leg's mean and SD in minutes and the independence assumption (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Review probability rules, the binomial and Bayes with the lesson examples30 min
  2. Compute the 50-flight risk by formula and simulation75 min
  3. Change the failure rate in the alarm example and explain60 min
  4. Histogram against a normal curve and the Shapiro test75 min
  5. Simulate the three-leg mission60 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Table 1 Emergency-landing risk in 50 flights a month: formula vs simulationTable 1: P(none) = 0.99^50 = 0.6050; P(more than 2) = 1 − P(X ≤ 2) = 0.0138; expected count 0.5 per month. A simulation with seed 116 and 100,000 months gives 0.6049 and 0.0139. Accept simulation results within ±0.005 of the formula for 100,000 runs (other seeds differ slightly).
  2. Record: Table 2 Motor alarm at 2% and 10% failure ratesTable 2 (sensitivity 90%, false alarms 5%, as in the lesson): at 2%, P(alarm) = 0.0670, P(failure | alarm) = 0.269, 18 true and 49 false alarms per 1,000 motors; at 10%, P(alarm) = 0.1350, P(failure | alarm) = 0.667, 90 true and 45 false alarms per 1,000. Accept ±0.001.
  3. Record: Table 3 Normality tests and the three-leg mission simulationTable 3: Shapiro on all 600 points W = 0.963, p ≈ 4 × 10⁻¹¹ (reject normality); after removing the two clear points W = 0.998, p = 0.86; after removing all three outside the fences W = 0.998, p = 0.73 (no evidence against normality). Three-leg mission (the lesson gives no values; with example legs of 15 ± 2, 25 ± 3 and 18 ± 2 min): total mean 58 min, SD √17 = 4.12 min, P(over 60 min) = 0.314 by formula and 0.3135 by simulation with seed 116 and 100,000 runs. If a group chooses other values, check that its simulation is close to 1 − Φ((60 − μ)/σ) for those values.
  4. Question 1: How far is the simulation from the formula? What would you expect if the number of runs rose 100-fold, and why set a seed?The gap of about 0.0001 to 0.001 is random. Simulation error shrinks like 1/√(runs), so 100 times more runs makes the gap about 10 times smaller, not 100. A seed lets others rerun and get the same numbers to check the work.
  5. Question 2: When the failure rate rises from 2% to 10% the alarm's sensitivity is unchanged, yet P(failure | alarm) changes a lot. Explain with the true and false alarm counts in Table 2.False alarms come from the many healthy motors. At 2% there are 49 false alarms per 18 true, so only 27% are real; at 10% true alarms rise to 90 while false fall to 45, so 67% are real. A strong answer says P(failure | alarm) depends on the base rate, not on sensitivity alone, and an alarm should lead to confirmation checks before replacing a motor.
  6. Question 3: What do the Shapiro results before and after removing outliers tell you, and how does that change the way you would estimate the chance of a large altitude error?All the data is not normal because of two gust spikes; after removing them it fits a normal well (a high p means no evidence against normality, not proof of it). Using normal formulas on data with outliers underestimates the chance of large errors. A strong answer suggests counting from the data itself or analysing gust events separately, and states which points were removed and why.
  7. Question 4: The three-leg simulation assumes the legs are independent. How might that be wrong in real operations, and would it make the chance of exceeding 60 min higher or lower than computed?Legs can be related, for example a windy day slows every leg, or a weak battery stretches them all. Positive correlation makes the SD of the total larger than √(sum of variances), so the chance of exceeding 60 min is likely higher than computed when the mean total is below 60. A strong answer proposes simulating a shared factor such as wind speed.

Discussion questions

  • At 50 flights a month, 0.5 emergency landings a month sounds small. What does it mean over a year, and what should be planned in advance?
  • Frequent false alarms make crews ignore them. How would you design a confirmation step that still catches the real failures?

Adapting to student background

Upper secondary (M.6)
Have them draw a tree or a 1,000-motor table by hand before using Bayes, and show that 0.99^50 equals the binomial formula at k = 0.
Vocational certificate
Replace Bayes' formula with a 1,000-motor counting table (true and false alarms) and give ready-made simulation code where only the top numbers change; ask them to explain results in their own words.
Diploma
Extension: take each leg's duration from at least 5 of the group's flight logs (real or SITL), estimate mean and SD, and use them in place of the assumed values.

Common student mistakes: Common mistakes in the module 2 lesson

3Worksheet 3 Interpreting endurance tests
Analysis activity · About 6 h of class time · CLO2

Objective: Set hypotheses from a requirement before seeing the data, test means and compare two groups, and conclude no further than the data allows

Equipment

  • Computer with Python and scipy
  • endurance.csv from /downloads/uat-106/
  • Experiment guide L14 in the drone knowledge base

Safety

  • Desk work only; no flying

Steps

  1. Write the requirement, hypotheses, direction and α before opening the file
  2. Test the 'at least 20 minutes' requirement for every brand and payload pair
  3. Report mean, SD, n, p-value and one-sided lower bound
  4. Compare brands A and B at all three payloads with Welch's t-test
  5. Simulate the smallest number of flights giving 80% power when the true mean is 21 min and SD 0.9 min
  6. Write conclusions that do not go beyond the data

Deliverables

  • Time-stamped test plan written before opening the data
  • Results table for every pair
  • Power simulation result
  • One-paragraph conclusion

Checklist

  • Note 1 has the requirement, H0, H1, direction, α and a time earlier than the file was opened (Interpretation and data-based decisions)
  • Table 1 has all 6 pairs, units in every column, and uses alternative="greater" (Accuracy of statistical calculations)
  • Table 2 uses equal_var=False and reports the CI of the difference at every payload (Accuracy of statistical calculations)
  • The conclusion avoids "equal" and "every flight passes" and states the conditions it holds for (brand, payload, synthetic data) (Interpretation and data-based decisions)
  • The one-paragraph conclusion reads clearly without the code and quotes numbers from the tables (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Review SE, confidence intervals and the steps of a hypothesis test30 min
  2. Write the test plan in Note 1 before opening the data30 min
  3. Test the requirement for every pair and fill in Table 190 min
  4. Compare brands with Welch's t-test75 min
  5. Simulate the number of flights for 80% power75 min
  6. Write the conclusion, answer questions and run the checklist60 min

Expected results

  1. Record: Note 1 Test plan before opening the data: requirement, H0, H1, direction, α and time writtenNote 1: the requirement "mean endurance at least 20 minutes" needs evidence that the mean is above 20, so H0: μ ≤ 20, H1: μ > 20, one-sided, α = 0.05 per pair, with a time earlier than opening the file. If a student writes H1: μ < 20 or two-sided, ask what the requirement needs evidence of.
  2. Record: Table 1 Testing the 'at least 20 minutes' requirement for every brand and payload pairTable 1 (n = 4 for every pair): A 0.0 kg mean 25.63, SD 0.79, p 0.0004, lower bound 24.70; A 0.5 kg 24.08, SD 1.13, p 0.0027, LB 22.75; A 1.0 kg 22.57, SD 0.94, p 0.0061, LB 21.46; B 0.0 kg 25.46, SD 1.03, p 0.0009, LB 24.25; B 0.5 kg 24.78, SD 0.79, p 0.0006, LB 23.85; B 1.0 kg 22.49, SD 0.93, p 0.0063, LB 21.40 (minutes). Accept ±0.01 min and ±0.0001 in p. Every pair rejects H0.
  3. Record: Table 2 Brand B vs A by Welch's t-test, and the power simulationTable 2 Welch's t-test (B − A): 0.0 kg −0.16 min, t −0.25, p 0.81, CI [−1.78, 1.45]; 0.5 kg +0.70, t 1.02, p 0.35, CI [−1.04, 2.44]; 1.0 kg −0.08, t −0.11, p 0.91, CI [−1.69, 1.54]. Accept ±0.01. Power (true mean 21, SD 0.9, α 0.05 one-sided, seed 116, 10,000 runs): n 4 about 52%, n 5 about 65%, n 6 about 75%, n 7 about 83%, n 8 about 88%; the smallest n giving 80% is 7 flights. Accept power ±2% depending on the seed.
  4. Question 1: Every pair passes with p below 0.05. Can the report say "every flight lasts at least 20 minutes"? Why or why not?No. The p-value and lower bound are about the population mean, not individual flights. Certifying that nearly every flight exceeds 20 minutes needs a tolerance interval and much more data, and results hold only for the brand, payload and conditions tested (here, synthetic data). A strong answer notes that at 1.0 kg the shortest flights were 21.43 and 21.83 min, close to the limit.
  5. Question 2: The brand comparisons at all three payloads give p above 0.05. What is the correct conclusion, and what does the CI of the difference say that the p-value cannot?The correct conclusion is "the data cannot yet tell the brands apart", not "they are equal". The CIs are about 3 minutes wide, for example at 0.5 kg from B being 1.04 min worse to 2.44 min better, so practically important differences remain possible either way; the CI shows effect size, which a p-value does not.
  6. Question 3: How many flights does the simulation say are needed for 80% power? If only 4 flights are tested, as in this data, what risk arises when the true mean is 21 minutes?At least 7 flights. With only 4 flights power is about 52%, so nearly half of such tests would fail to reject H0 even though the system really meets the requirement (a type II error), risking rejecting a good system or repeating the test, so plan the number of flights first.
  7. Question 4: Why must the test direction and α be written before opening the file? If it were switched to two-sided after seeing the results, what would the p-value for brand A at 1.0 kg become?So that nobody picks the version that makes p pass after seeing the results, which raises the real type I error above the stated α. Switched to two-sided, the p-value for A at 1.0 kg doubles to 0.0122 (still below 0.05, but changing after seeing data is wrong whether or not the result changes).

Discussion questions

  • When a maker claims "20 minutes of flight", does that mean the mean, the worst flight or 95% of flights, and how should you ask the maker?
  • Testing 6 pairs at α = 0.05 each raises the chance of at least one type I error. How, and how should a report handle it?

Adapting to student background

Upper secondary (M.6)
Have them compute SE, t and the lower bound for A at 1.0 kg by hand with a t table, compare with scipy, and explain in words what the 95% means.
Vocational certificate
Give a fill-in test-plan template (requirement, H0, H1, direction, α) and ready-made code that loops over the pairs; focus on reading results and writing conclusions from a model sentence such as "the data cannot yet tell ...".
Diploma
Extension: plan the group's real test with a power simulation (mean and SD from the group's earlier data) and estimate the time and number of batteries needed.

Common student mistakes: Common mistakes in the module 3 lesson

4Worksheet 4 An endurance model for mission planning
Analysis activity · About 6 h of class time · CLO3, CLO1

Objective: Check and prepare data, find correlations, build regression models and check residuals before using them for planning

Equipment

  • Computer with Python, pandas and matplotlib
  • endurance.csv and Anscombe's data
  • PX4 SITL log and ulog2csv (if available)

Safety

  • Desk and simulation work only; no real flights

Steps

  1. Check data types and missing values in endurance.csv
  2. Draw a scatter plot coloured by brand with regression lines
  3. Plot residuals against payload and against run_order
  4. Fit a model per brand, compare slopes and judge their practical meaning
  5. Plot all four Anscombe sets and write one sentence of advice for each
  6. If a PX4 log is available, convert it with ulog2csv, relate voltage to time and state the limits of simulated data

Deliverables

  • Data check notes
  • Scatter and residual plots
  • Slope table with conclusions
  • Advice for the Anscombe data

Checklist

  • Note 1 gives the types of all 5 columns, the missing count and a crosstab confirming 4 flights per group (Data preparation and visualisation)
  • The scatter plot is coloured by brand with regression lines, axis labels with units (kg, min) and a legend (Data preparation and visualisation)
  • Table 1 has all 3 rows (all, A, B) with every value to two decimals and units (Accuracy of statistical calculations)
  • The slope conclusion separates statistical from practical difference and does not use the model outside 0 to 1.0 kg (Interpretation and data-based decisions)
  • Table 2 gives actionable advice for all four Anscombe sets (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Review data checks, correlation, regression and chart choice30 min
  2. Check types and missing values in endurance.csv30 min
  3. Scatter, regression lines and residual plots90 min
  4. Per-brand models and slope comparison60 min
  5. Anscombe's data and a PX4 SITL log (if available)90 min
  6. Wrap-up, questions and hand-in checklist60 min

Expected results

  1. Record: Note 1 Data check: data types, missing values and flights per groupNote 1: 24 rows, no missing values; flight_id and battery are text, run_order integer, payload_kg and endurance_min decimal; the crosstab shows 4 flights in every pair (2 brands × 3 payloads).
  2. Record: Table 1 Regression models of endurance on payloadTable 1: all flights b0 25.68 min, b1 −3.02 min/kg, SE 0.45, R² 0.67 (r = −0.82); brand A b0 25.62, b1 −3.06, SE 0.65, R² 0.69; brand B b0 25.73, b1 −2.97, SE 0.69, R² 0.65. Accept ±0.01.
  3. Record: Table 2 Advice for Anscombe's data and notes from the residual plotsTable 2: Anscombe set I, a straight line is fine but check residuals; set II is a curve, use a curved model; set III has one outlier pulling the line, investigate it and report with and without it; set IV's slope comes from the single point at x = 19, collect data at other x (all four have mean x 9.00, mean y 7.50, r 0.816, line y = 3.00 + 0.500x). Residuals of endurance.csv average −0.13, +0.26, −0.13 min at 0, 0.5, 1.0 kg (possible slight curvature), residual SD 0.88 min, and correlation with run_order r = 0.28, p = 0.18 (no clear trend). If a PX4 log was used, accept answers that show voltage falling over time and say simulated data does not represent a real battery.
  4. Question 1: How much do the slopes of brands A and B differ, and is that large compared with the slope SE? Does it matter in practice to a mission planner?The slopes differ by only 0.09 min/kg (A −3.06, B −2.97) while the SE of the difference is about 0.94, so the gap is far smaller than the uncertainty. At 1 kg it is about 0.09 min, around 5 seconds, which has no practical meaning. A planner can use the pooled slope of about −3 min/kg, noting there are only 4 flights per pair.
  5. Question 2: Does the residual plot against run_order show a trend? If so, what would it say about the test, and why does randomising the flight order matter?No clear trend (r = 0.28, p = 0.18). A trend, such as residuals rising with order, would point to something changing over time, such as temperature, wind, battery ageing or a pilot getting better. Randomising the order keeps those effects from mixing with the payload or brand effect.
  6. Question 3: A planner wants endurance at 0.75 kg and at 3 kg. Can this model answer both? Why or why not?At 0.75 kg yes, it is inside the data range: 25.68 − 3.02 × 0.75 = 23.41 min (noting the positive residual at 0.5 kg hints at slight curvature). At 3 kg no: the line predicts about 16.6 min, but that extrapolates beyond 0 to 1.0 kg; the drone may not lift it or the motors may overheat, so engineering reasons and more data are needed.
  7. Question 4: What does Anscombe's data teach about reporting r and R², and which plots should this worksheet attach so readers can trust the model?Identical statistics (r 0.816 in all four sets) hide very different shapes, so a high R² does not mean the model is right. Attach the scatter plot with regression lines coloured by brand, and residual plots against payload and run_order. A strong answer mentions axis labels with units and showing every data point, since there are only 24 flights.

Discussion questions

  • This data came from an experiment that set payloads and randomised order. If the same numbers came from operational logs recorded as they happened, how would conclusions about cause change?
  • If you had to show the brand difference to managers on one slide, which chart would avoid making a small difference look large?

Adapting to student background

Upper secondary (M.6)
Have them compute the slope and one residual by hand from the b1 formula, compare with linregress, and discuss why Anscombe set II has the same R² as set I.
Vocational certificate
Give ready-made plotting code where only column names change; focus on reading plots and writing the Anscombe advice in their own words, and check the 0.75 kg prediction with a calculator.
Diploma
Extension: fly a hover in PX4 SITL, convert the log with ulog2csv, plot battery voltage against time and write how simulated data differs from a real battery.

Common student mistakes: Common mistakes in the module 4 lesson

5Worksheet 5 Designing and analysing a propeller test
Analysis activity · About 6 h of class time · CLO2

Objective: Plan a test from requirements, analyse a 2² factorial experiment, assess uncertainty and write a test report

Equipment

  • Computer with Python
  • factorial.csv and the module 5 example code
  • Flight-time data from the group's test or from the lecturer

Safety

  • Desk work only; any real flight data must be collected under lecturer supervision within CAAT conditions

Steps

  1. Write the test plan using the lesson table: requirement, acceptance criterion, method, evidence
  2. Have a classmate review it before opening the data
  3. Analyse factorial.csv for main effects, interaction and replicate SD
  4. Draw the interaction plot and explain non-parallel lines
  5. Assess Type A and Type B uncertainty of the flight-time measurement
  6. Write a complete one-page test report

Deliverables

  • Peer-reviewed test plan
  • Main-effect and interaction table
  • Uncertainty budget
  • One-page test report

Checklist

  • Table 1 has requirement, acceptance criterion, procedure and evidence, with a reviewer's name signed before the data was opened (Interpretation and data-based decisions)
  • Table 2 has means and SDs for all 4 corners, both main effects and the interaction, all in minutes (Accuracy of statistical calculations)
  • The interaction plot has payload on the x-axis, one line per propeller, and labelled axes with units (Data preparation and visualisation)
  • Table 3 separates Type A from Type B and reports the result as value ± U with k stated (Accuracy of statistical calculations)
  • The one-page report has every element of the lesson's "good test report" box, including any excluded data with reasons (Communication and reporting)

Instructor guide

Class timing 360 min

  1. Review requirement to evidence, design principles and the 2² factorial30 min
  2. Write the test plan and have it peer-reviewed before opening the data60 min
  3. Analyse factorial.csv and draw the interaction plot90 min
  4. Assess Type A and Type B uncertainty60 min
  5. Write the one-page test report90 min
  6. Short presentations, questions and hand-in checklist30 min

Expected results

  1. Record: Table 1 Propeller comparison test plan (before opening the data)Table 1: a good example states the requirement "the efficient propeller adds at least X minutes at 0.5 and 1.0 kg", a numeric acceptance criterion written before results (for example the propeller effect exceeds replicate variation, with the number of flights), a procedure with start and stop points for timing, randomised order and 3 repeats per corner, and evidence of logs, results table, code and weather. The reviewer signs before the file is opened.
  2. Record: Table 2 Corner means and SDs, main effects and interaction from factorial.csvTable 2: corner means 0.5 kg standard 23.16 (SD 0.47), 0.5 kg efficient 24.82 (SD 0.59), 1.0 kg standard 20.05 (SD 0.47), 1.0 kg efficient 20.39 (SD 0.21) min; payload main effect −3.76, propeller main effect +1.00, interaction −0.66 min (the propeller adds 1.66 min at 0.5 kg and 0.34 min at 1.0 kg). Accept ±0.01. Using the pooled SD of 0.45 min (df 8), the SE of an effect = 2 × 0.45/√12 = 0.26 min and the critical t is 2.31, so effects beyond ±0.60 min are clear: payload (t ≈ −14.4), propeller (t ≈ 3.8) and interaction (t ≈ −2.5) all exceed it, the interaction only just. Accept simpler methods, such as comparing effect sizes with the corner SDs, if well reasoned.
  3. Record: Table 3 Uncertainty budget for flight timingTable 3 (the lesson gives no group data; with the lesson example of 5 timers reading 1212.4, 1212.9, 1212.1, 1212.6, 1212.5 s on 0.1 s stopwatches): Type A u_A = s/√5 = 0.130 s, Type B u_B = 0.05/√3 = 0.029 s, u_c = 0.134 s, result 1212.50 s ± 0.27 s (k = 2). If a group uses its own data, check it applies s/√n and a/√3 correctly and states k.
  4. Question 1: The lines in the interaction plot are not parallel. What does that tell someone who wants the efficient propeller for 1.0 kg delivery missions?The efficient propeller helps a lot with a light load (1.66 min at 0.5 kg) but little with a heavy one (0.34 min at 1.0 kg). Looking only at the +1.00 min main effect, or testing only at 0.5 kg, would overstate the benefit for heavy delivery; decide from the 1.0 kg result and weigh the cost of changing propellers.
  5. Question 2: Which effects clearly exceed the replicate variation, what value did you use to judge, and what limits come from only 3 repeats per corner?Payload and propeller are clearly beyond the noise; the interaction only just passes (−0.66 vs ±0.60), judged by the effect SE from the pooled replicate SD. Limits: with 3 repeats per corner each corner SD is very uncertain (0.21 to 0.59), the data is synthetic, and results hold only for the two payloads tested. A strong answer proposes more repeats before concluding on the interaction.
  6. Question 3: In your uncertainty budget, which source is largest, and what should you invest in to reduce the uncertainty?In the lesson example Type A (0.130 s) is about 4.5 times Type B (0.029 s), so a finer stopwatch barely helps; change the method, for example take times from the flight controller log or define clear start and stop points. If the group's data differs, the answer must match its own Table 3.
  7. Question 4: If a system passes 8 of 10 runs, how would you report the pass rate, and why not write just "80% pass"?Report 8/10 (80%) with a 95% Clopper-Pearson interval of about 44% to 97%, the number of runs, the pass criterion set before testing, unfinished runs reported separately, and the conditions tested, because 80% from 10 runs is far less certain than 80% from 100 runs (about 71% to 87%).

Discussion questions

  • If the propeller test needs two days, how would you use blocking, and what goes wrong if all standard-propeller flights are on day one and all efficient ones on day two?
  • How far can SITL or bench results serve as evidence about the real aircraft, and how should a report say so?

Adapting to student background

Upper secondary (M.6)
Have them compute main effects and the interaction by hand from the four corner means using the lesson formulas (as in practice questions 2 and 3), check with code, and practise writing measurable acceptance criteria.
Vocational certificate
Start by drawing the factorial square on paper with each corner mean, then subtract pairs with a calculator; give a one-page report template with all headings to fill in.
Diploma
Extension: design a real propeller test on a thrust stand or supervised hover flights, write a seeded random run order and plan blocking if it takes two days.

Common student mistakes: Common mistakes in the module 5 lesson

Scoring rubric

For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.

CriterionWeightExcellent (4)Good (3)Fair (2)Needs work (1)
Accuracy of statistical calculations30%All statistics correct, reproducible code, methods suited to the dataNearly all correct, method shownSome errors or some unsuitable methodsMany errors or no method
Interpretation and data-based decisions30%Conclusions match the evidence, state uncertainty and limits, never overreachCorrect conclusions, minor limits missingSome overreach or misreading of p-valuesConclusions unrelated to the analysis
Data preparation and visualisation20%Data fully checked, right chart types, clear units and labelsChecks and charts nearly completeSome checks skipped or charts hard to readNo data checks or misleading charts
Communication and reporting20%Clear, concise report with every element of a good test reportClear with minor flawsHard to follow or missing partsDoes not communicate results

Assessment map: CLOs and how they are assessed Draft

The CLOs are a web-team draft; the course owner sets the final ones (curriculum book, part 4). This table is built from the worksheet and module-quiz data, so it follows any change to the CLOs.

CLOWorksheetsModule quizzes
CLO1 Summarise and present data with descriptive statisticsW 1W 2W 4M1M2M4
CLO2 Use statistical inference to evaluate test resultsW 2W 3W 5M2M3M5
CLO3 Analyse flight-log data with PythonW 1W 4M1M4