สถิติเชิงพรรณนาและการแจกแจงความน่าจะเป็น

Central tendency, dispersion, the normal distribution and data visualisation

Last updated:

Why it matters

Flight-test data never comes as a single value. Ten flights give ten flight times; a hundred position fixes give a hundred errors. Descriptive statistics condense such a set into a few numbers and charts that show its key features: where the centre is, how wide the spread is, and whether there are unusual values. A probability distribution is a model for predicting how likely future values are to fall in a given range. Both underpin test reports, sensor accuracy assessments and safety decisions.

Types of data

Quantitative data are measured numbers such as flight time, altitude or temperature. They are either continuous (can take decimals) or discrete (counts, such as the number of satellites tracked). Qualitative data are categories or labels: flight mode, battery brand, a pass/fail inspection. The data type decides which statistics and charts make sense. A mean battery brand is meaningless, but a frequency count is not.

Centre and spread

Measures of centre locate the middle of the data:

  • Mean: x̄ = (sum of all values)/n. It uses every value but is sensitive to outliers.
  • Median: the middle value once the data are sorted. It is robust to outliers.
  • Mode: the most frequent value, suited to qualitative data.

Measures of spread show how far apart the values are:

  • Range: maximum minus minimum. Easy to grasp, but it depends on the two extremes only.
  • Sample standard deviation, s = √(Σ(xi − x̄)2/(n − 1)). The divisor is n − 1 because x̄ was computed from the same data. The variance is s2.
  • Quartiles and the interquartile range (IQR): Q1 and Q3 are the 25th and 75th percentiles, and IQR = Q3 − Q1 is the width of the middle half. It is robust to outliers.

A box plot shows the median, Q1, Q3 and whiskers in one picture. Points outside Q1 − 1.5 IQR to Q3 + 1.5 IQR are drawn separately as values to investigate. The rule is a prompt to look for a cause, not an instruction to delete.

Accuracy, precision, bias and RMSE

When measuring against a reference, the error is e = measured − reference. Bias is the mean error and shows whether measurements lean one way. Precision is judged from the standard deviation of the errors and shows how closely repeated measurements agree. RMSE (root mean square error) combines both and is widely used to report position and mapping accuracy.

The normal distribution

A probability distribution says how likely each range of values is. A histogram of a large data set approximates the shape of its distribution. The normal distribution is a symmetric bell curve defined by two values, the mean μ and the standard deviation σ. Measurement errors that come from many small independent causes are often close to normal.

For a normal distribution, about 68.3% of values lie within μ ± σ, about 95.4% within μ ± 2σ and about 99.7% within μ ± 3σ. The z-score, z = (x − μ)/σ, says how many σ a value lies from the mean; a table or software then gives the probability.

Assume the flight time of a battery model is normal with μ = 22 minutes and σ = 1.5 minutes. For a mission needing 20 minutes, z = (20 − 22)/1.5 ≈ −1.33, so the chance that a flight falls short of 20 minutes is about 9.1%, roughly one flight in eleven. Planning from the mean alone is not enough; the spread matters.

Much real data is not normal. Communication latency, for example, is usually right-skewed with a long tail of large values. Applying μ ± 2σ to skewed data underestimates the chance of extremes. Always look at a histogram first.

Worked example: altitude error in hover

Assume a drone hovers over a point of precisely known height and ten altitude errors (m) are recorded: 0.4, −0.2, 0.1, 0.6, −0.3, 0.2, 0.0, 0.5, −0.1 and 2.8.

import numpy as np
import statistics

err = np.array([0.4, -0.2, 0.1, 0.6, -0.3, 0.2, 0.0, 0.5, -0.1, 2.8])
print(err.mean(), np.median(err), err.std(ddof=1))   # 0.40 0.15 0.894
print(np.percentile(err, [25, 75]))                  # linear: -0.075 0.475
print(statistics.quantiles(err, n=4))                # exclusive: -0.125 0.15 0.525
print(np.sqrt(np.mean(err**2)))                      # RMSE 0.938
  • The mean is 0.40 m but the median is 0.15 m. One value of 2.8 m pulls the mean up.
  • The standard deviation is 0.894 m and the range 3.1 m.
  • NumPy's linear quartiles give Q1 = −0.075 and Q3 = 0.475, IQR = 0.55, upper fence 0.475 + 1.5 × 0.55 = 1.30 m. The statistics module's exclusive method gives Q1 = −0.125, Q3 = 0.525, upper fence 1.50 m. Both flag 2.8 m for review.
  • The RMSE of all ten values is 0.938 m.

Suppose the log shows the 2.8 m value coincided with a strong gust. To report calm-air accuracy, it may be set aside with the reason stated; the other nine values have mean 0.13 m, median 0.10 m, standard deviation 0.32 m and RMSE 0.33 m. But if the question is "how far can altitude be off in real operations?", 2.8 m is the most important number in the set and must stay. The question decides, not how tidy the numbers look.

Common pitfalls

  • Reporting a mean without a spread. Equal means can hide very different spreads.
  • Using the mean on skewed or outlier-laden data. Report the median alongside.
  • Mixing ddof without noticing. pandas .std() divides by n − 1, but np.std() divides by n unless ddof=1 is given.
  • Not stating the quartile method. Different software gives different values for small samples.
  • Deleting outliers without finding the cause, which may remove the most important event.
  • Assuming normality without checking. Plot a histogram or box plot before using normal-distribution formulas.
  • Confusing bias with precision. A very precise instrument can still read consistently high. Calibration fixes bias; it does not improve precision.

Continue in the lessons

Key references

  1. Montgomery, D. C., & Runger, G. C. (2018). Applied statistics and probability for engineers (7th ed.). Wiley. link
  2. NIST/SEMATECH. e-Handbook of statistical methods. National Institute of Standards and Technology. link
  3. NIST/SEMATECH. Normal distribution (section 1.3.6.6.1). e-Handbook of statistical methods. link
  4. NIST/SEMATECH. Box plot (section 1.3.3.7). e-Handbook of statistical methods. link
  5. Diez, D. M., Çetinkaya-Rundel, M., & Barr, C. D. (2019). OpenIntro statistics (4th ed.). OpenIntro. link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). สถิติเชิงพรรณนาและการแจกแจงความน่าจะเป็น. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/stats-descriptive/