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.
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 topic | Modules | Where it is taught | Status |
|---|---|---|---|
| Descriptive statistics | M1 | Module 1: centre and spread, box plots and outliers, trueness, precision, bias and RMSE | Covered |
| Probability | M2 | Module 2: basic rules of probability and Bayes' theorem in the motor-alarm example | Covered |
| Probability distributions | M2 | Module 2: the binomial distribution, the normal distribution and the note that real data is not always normal | Covered |
| Sampling | M2M3M5 | Module 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 |
| Estimation | M3 | Module 3: standard error and confidence intervals, the three-flight example | Covered |
| Hypothesis testing | M3 | Module 3: testing a hypothesis from a requirement, Welch's t-test, two kinds of error and how to use p-values | Covered |
| Correlation | M4 | Module 4: correlation and the note that correlation is not causation | Covered |
| Regression | M4 | Module 4: linear regression, not extrapolating beyond the data, and Anscombe's four datasets | Covered |
| Data preparation | M4 | Module 4: checking the data before analysing it, and from PX4 logs to tables | Covered |
| Data visualization | M1M4M5 | Module 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 lab | Covered |
| Data analysis for technology-based decision making | M3M5 | Module 3: a passing mean does not mean every flight passes · Module 5: from requirement to evidence, and reporting pass rates within their limits | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | Data types, the experimental unit, centre and spread | Read module 1 up to 'Centre and spread'; run Example 1 | Choosing a centre for skewed data and reading percentiles of processing time | Worksheet 1 part A: open hover_error.csv in pandas, compute summaries, draw a histogram | Summary table and histogram |
| 2 M1 | Box plots and outliers | Read the box plot and outlier section | The 1.5 IQR rule and justified decisions to remove data | Worksheet 1 part B: box plot, remove two outliers, recompute SD, find p50 p90 p95 p99 of latency.csv | Before and after table with reasons |
| 3 M1 | Trueness, precision, bias and RMSE | Read the bias and RMSE section; take the module 1 quiz | Separating systematic and random error; RMSE per axis | Worksheet 1 part C: compute bias and RMSE per E, N, Z axis from checkpoint data | Worksheet 1 short report and quiz result |
| 4 M2 | Probability rules and Bayes' theorem | Read module 2 to the binomial section; run Example 1 | Conditional probability and why most alarms may be false | Worksheet 2 part A: change the failure rate in the motor-alarm example to 10% and explain | Calculation and explanation |
| 5 M2 | Binomial and normal distributions | Read the binomial and normal sections | Emergency landings per month and checking whether data is near normal | Worksheet 2 part B: probability of no events and of more than two; Shapiro test on hover_error.csv | Formula results and normal-curve comparison plot |
| 6 M2 | Monte Carlo simulation and the central limit theorem | Read the Monte Carlo section; take the module 2 quiz | Simulation 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 min | Worksheet 2 short report and quiz result |
| 7 M3 | Standard error and confidence intervals | Read module 3 to the confidence-interval section; run Example 1 | The t distribution for small samples and the correct meaning of a confidence interval | Worksheet 3 part A: write requirement, hypotheses, direction and α before opening endurance.csv | Test plan written before seeing the data |
| 8 M3 | Testing a requirement and Welch's t-test | Read the hypothesis test and Welch sections | One-sided lower bounds and comparing groups with unequal variances | Worksheet 3 part B: test the 20-minute requirement for every pair and compare brands A and B | Table of mean, SD, n, p-value and lower bound |
| 9 M3 | Two kinds of error and power; midterm | Review modules 1–3; take the module 3 quiz | Midterm examination (modules 1–3) | Worksheet 3 part C: simulate the smallest number of flights for 80% power | Worksheet 3 report and midterm score |
| 10 M4 | Checking data and correlation | Read module 4 to the correlation section | Data types, missing values and why correlation is not causation | Worksheet 4 part A: check endurance.csv; scatter plot coloured by brand | Data check notes and scatter plot |
| 11 M4 | Linear regression and Anscombe's data | Read the regression and Anscombe sections; run the lesson code | Slope, residuals, R² and the danger of extrapolation | Worksheet 4 part B: per-brand models, residual plots and Anscombe's four sets | Slope table and one-sentence advice per dataset |
| 12 M4 | From PX4 logs to tables | Read the PX4 log section; take the module 4 quiz | Converting 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 time | Worksheet 4 short report and quiz result |
| 13 M5 | From requirement to evidence; principles of experimental design | Read module 5 to the experimental-design section | Randomisation, replication, blocking and the 2² factorial | Worksheet 5 part A: write a two-propeller test plan, peer check, then analyse factorial.csv | Test plan, main effects and interaction |
| 14 M5 | Measurement uncertainty and reporting pass rates | Read the uncertainty and pass-rate sections; run Example 1; take the module 5 quiz | Type A and Type B and what a good test report contains | Worksheet 5 part B: interaction plot and uncertainty of the flight-time measurement | Interaction plot and uncertainty budget |
| 15 M5 | Mini-project presentations | Prepare the complete test report | Course wrap-up and project criteria | Present the one-page test report to a panel deciding whether to accept the equipment | Mini-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
- Open hover_error.csv; compute mean, median, SD, IQR and percentiles as in the lesson
- Draw a histogram and a box plot
- Flag outliers with the 1.5 IQR rule, remove the two clear ones and recompute SD
- Compute p50, p90, p95, p99 of latency.csv with numpy.percentile and statistics.quantiles; compare
- Compute bias and RMSE per E, N, Z axis from the checkpoint data
- 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
- States that the SD divides by n−1 and names the percentile method (linear or exclusive) of each command in Table 2
- Histogram and box plot have axis labels with units and show all three outliers
- The report gives the times of the two removed points, the reason, and results both before and after; nothing is deleted silently
- The script or notebook reruns from reading the files and reproduces the tables
Instructor guide
Class timing
- Review data types, experimental unit and summaries; hand out the data files30 min
- Summarise hover_error.csv and draw the histogram and box plot90 min
- Flag outliers with the 1.5 IQR rule, remove two and recompute60 min
- Percentiles of latency.csv by two methods60 min
- Bias and RMSE per axis from the checkpoints60 min
- Write the short report, answer questions and run the hand-in checklist60 min
Expected results
- Table 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.
- Table 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).
- Table 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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
- Compute by formula the chance of no emergency landing in a month, and of more than two, for 50 flights at 1%
- Check the same results by simulation
- Change the motor failure rate in the alarm example to 10% and explain why P(failure | alarm) changes
- Plot hover_error.csv against a normal curve; run the Shapiro test before and after removing outliers
- 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
- Table 2 computes P(alarm) from both true and false alarms, for both the 2% and 10% cases
- The histogram with normal curve has axis labels, units in m and a legend
- The Bayes and normality explanations use your own numbers and do not confuse P(failure | alarm) with the alarm's sensitivity
- The three-leg mission states every leg's mean and SD in minutes and the independence assumption
Instructor guide
Class timing
- Review probability rules, the binomial and Bayes with the lesson examples30 min
- Compute the 50-flight risk by formula and simulation75 min
- Change the failure rate in the alarm example and explain60 min
- Histogram against a normal curve and the Shapiro test75 min
- Simulate the three-leg mission60 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Table 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).
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Write the requirement, hypotheses, direction and α before opening the file
- Test the 'at least 20 minutes' requirement for every brand and payload pair
- Report mean, SD, n, p-value and one-sided lower bound
- Compare brands A and B at all three payloads with Welch's t-test
- Simulate the smallest number of flights giving 80% power when the true mean is 21 min and SD 0.9 min
- 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
- Table 1 has all 6 pairs, units in every column, and uses alternative="greater"
- Table 2 uses equal_var=False and reports the CI of the difference at every payload
- The conclusion avoids "equal" and "every flight passes" and states the conditions it holds for (brand, payload, synthetic data)
- The one-paragraph conclusion reads clearly without the code and quotes numbers from the tables
Instructor guide
Class timing
- Review SE, confidence intervals and the steps of a hypothesis test30 min
- Write the test plan in Note 1 before opening the data30 min
- Test the requirement for every pair and fill in Table 190 min
- Compare brands with Welch's t-test75 min
- Simulate the number of flights for 80% power75 min
- Write the conclusion, answer questions and run the checklist60 min
Expected results
- Note 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Check data types and missing values in endurance.csv
- Draw a scatter plot coloured by brand with regression lines
- Plot residuals against payload and against run_order
- Fit a model per brand, compare slopes and judge their practical meaning
- Plot all four Anscombe sets and write one sentence of advice for each
- 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
- The scatter plot is coloured by brand with regression lines, axis labels with units (kg, min) and a legend
- Table 1 has all 3 rows (all, A, B) with every value to two decimals and units
- The slope conclusion separates statistical from practical difference and does not use the model outside 0 to 1.0 kg
- Table 2 gives actionable advice for all four Anscombe sets
Instructor guide
Class timing
- Review data checks, correlation, regression and chart choice30 min
- Check types and missing values in endurance.csv30 min
- Scatter, regression lines and residual plots90 min
- Per-brand models and slope comparison60 min
- Anscombe's data and a PX4 SITL log (if available)90 min
- Wrap-up, questions and hand-in checklist60 min
Expected results
- Note 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).
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
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
- Write the test plan using the lesson table: requirement, acceptance criterion, method, evidence
- Have a classmate review it before opening the data
- Analyse factorial.csv for main effects, interaction and replicate SD
- Draw the interaction plot and explain non-parallel lines
- Assess Type A and Type B uncertainty of the flight-time measurement
- 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
- Table 2 has means and SDs for all 4 corners, both main effects and the interaction, all in minutes
- The interaction plot has payload on the x-axis, one line per propeller, and labelled axes with units
- Table 3 separates Type A from Type B and reports the result as value ± U with k stated
- The one-page report has every element of the lesson's "good test report" box, including any excluded data with reasons
Instructor guide
Class timing
- Review requirement to evidence, design principles and the 2² factorial30 min
- Write the test plan and have it peer-reviewed before opening the data60 min
- Analyse factorial.csv and draw the interaction plot90 min
- Assess Type A and Type B uncertainty60 min
- Write the one-page test report90 min
- Short presentations, questions and hand-in checklist30 min
Expected results
- 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.
- Table 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.
- Table 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.
- 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.
- 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.
- 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.
- 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.
Scoring rubric
For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.
| Criterion | Weight | Excellent (4) | Good (3) | Fair (2) | Needs work (1) |
|---|---|---|---|---|---|
| Accuracy of statistical calculations | 30% | All statistics correct, reproducible code, methods suited to the data | Nearly all correct, method shown | Some errors or some unsuitable methods | Many errors or no method |
| Interpretation and data-based decisions | 30% | Conclusions match the evidence, state uncertainty and limits, never overreach | Correct conclusions, minor limits missing | Some overreach or misreading of p-values | Conclusions unrelated to the analysis |
| Data preparation and visualisation | 20% | Data fully checked, right chart types, clear units and labels | Checks and charts nearly complete | Some checks skipped or charts hard to read | No data checks or misleading charts |
| Communication and reporting | 20% | Clear, concise report with every element of a good test report | Clear with minor flaws | Hard to follow or missing parts | Does 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.