UAT 106 Statistics and Data Analytics for Technology

Worksheet 4 An endurance model for mission planning

Analysis activity 6 hAssesses CLO3, CLO1

Objective

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

Equipment and materials

  • 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

Record of results

Note 1 Data check: data types, missing values and flights per group
Table 1 Regression models of endurance on payload
DataIntercept b0 (min)Slope b1 (min/kg)Slope SER²
Table 2 Advice for Anscombe's data and notes from the residual plots
Set or plotWhat the plot showsOne sentence of advice

Questions

  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?

  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?

  3. A planner wants endurance at 0.75 kg and at 3 kg. Can this model answer both? Why or why not?

  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?

Check before you hand in

What to hand in

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

CLO3 Analyse flight-log data with Python. CLO1 Summarise and present data with descriptive statistics. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack