Reading data, basic statistics and computing tools
UAT 101 Applied Mathematics for Technology
Lesson
By the end of this module you will be able to
- Read and interpret data from tables, bar charts and graphs
- Compute the mean, median, range and standard deviation, and say which to use
- Use calculators, spreadsheets and Python correctly for computation
- Apply the mathematics of the whole course to simple technology problems
Why this matters
After the spraying mission the team has records of each flight’s time, the weather and the mix used. Raw data do not help anyone decide until they are summarised into a few numbers, such as “how long does a flight usually last” and “how much does it vary”. This module covers reading data, basic statistics and computing tools, which continue in UAT 106 Statistics and Data Analysis.
Reading tables and charts
Before concluding anything from a table or graph, answer three questions:
- What is each axis or column, and in what unit?
- Where do the data come from, and how many are there? Five records and five hundred are very different in credibility
- Does the scale start at zero? A bar chart whose vertical axis does not start at zero makes differences look larger than they are
Centre and spread
The mean is the total divided by the count. The median is the middle value when the data are sorted. A single unusual value pulls the mean but barely moves the median.
The range is the largest value minus the smallest, a rough extent of the data. The standard deviation says how far data typically lie from the mean; the larger it is, the less consistent the data. The NIST statistics handbook uses the sample formula dividing by .
Example 1 Summarising eight flight times
import statistics as st
times = [18.5, 19.2, 17.8, 18.9, 19.5, 18.1, 16.4, 18.7] # flight time per sortie (minutes)
print(f"n {len(times)}, mean {st.mean(times):.2f}, median {st.median(times):.2f}")
print(f"range {min(times)}-{max(times)} ({max(times) - min(times):.1f}), SD {st.stdev(times):.2f}")
n 8, mean 18.39, median 18.60
range 16.4-19.5 (3.1), SD 0.97
The mean is 18.39 minutes and the median 18.60. The mean is lower because flight 7 lasted only 16.4 minutes, clearly below the rest, so check whether it had strong wind or an old battery. A standard deviation of about 1 minute means flight times typically lie about a minute from the mean, so planning should not assume 18 minutes for every flight.
Categorical data and percentages
Some data are not numbers, such as the weather for each flight. They are summarised by counting frequencies and converting to percentages, then shown with a bar chart.
Example 2 Weather for 25 planned flights, and spreadsheet formulas
flights = {"sunny": 14, "cloudy": 7, "light rain (cancelled)": 3, "strong wind (cancelled)": 1}
total = sum(flights.values())
for k, v in flights.items():
print(f"{k:<24} {v:>2} ({v / total:.0%})")
print("spreadsheet: =AVERAGE(B2:B9) =MEDIAN(B2:B9) =STDEV.S(B2:B9) =COUNTIF(C2:C26,\"sunny\")")
sunny 14 (56%)
cloudy 7 (28%)
light rain (cancelled) 3 (12%)
strong wind (cancelled) 1 (4%)
spreadsheet: =AVERAGE(B2:B9) =MEDIAN(B2:B9) =STDEV.S(B2:B9) =COUNTIF(C2:C26,"sunny")
Sunny weather allowed the most flights, 56%, and cancellations from rain or wind totalled 16%. This helps plan how many spare days to allow. The last line shows formulas that give the same results in spreadsheets such as Excel or Google Sheets, which students should be able to use alongside calculators and Python.
Computing tools
- Scientific calculators suit step-by-step calculation in the field; check degree or radian mode and use brackets fully
- Spreadsheets suit many rows of data; use formulas rather than retyping numbers, so results update when data change
- Python suits repeated tasks or large data sets; the code in this course runs in Python, and some examples use the standard
statisticslibrary
Whatever the tool, estimate the answer first and record the method so others can check it.
Class activity
Activity: summarising the whole class’s mission data
- Your lecturer provides a simulated log of 30 flights with flight time, weather and mix used
- Compute the mean, median, range and standard deviation of flight time with a calculator, a spreadsheet and the code in Example 1, and confirm they agree
- Count flights by weather, compute percentages and draw a bar chart with the vertical axis starting at zero
- Write a three-sentence summary for the team leader using the numbers you computed
Common mistakes
Watch out
- Using only the mean when there are unusual values, without looking at the median
- Ignoring spread and assuming every flight lasts the average
- Bar charts whose vertical axis does not start at zero, exaggerating differences
- Typing results into a spreadsheet by hand instead of using formulas, so they do not update
- Concluding from too little data without stating how much data there is
Summary
- Read data by checking units, source, count and scale before concluding
- Mean and median describe the centre; range and standard deviation describe spread; unusual values pull the mean but rarely the median
- Categorical data are summarised with frequencies, percentages and bar charts
- Use calculators, spreadsheets and Python as suits the task, and always estimate first
Check your understanding
- What are the mean and median of 12, 15, 14, 13, 16?
- For 12, 15, 14, 13, 46, which describes the centre better, and why?
- What is the range of data from 16.4 to 19.5?
- Of 40 planned flights, 6 were cancelled. What percentage is that?
- Why use spreadsheet formulas instead of typing results in yourself?
Answers
- Mean , median 14
- The median (14), because the unusual value 46 pulls the mean up to 20
- Results update automatically when data change, and others can check the method
Key formulas
| Mean | |
| Range | |
| Sample standard deviation |
Key references
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
In class / field
Lecture, case discussion and in-class problem solving
Learning evidence: Quiz results and submitted exercises