Instruments, data collection and analysis
UAT 309 Introduction to Research in Unmanned Aircraft Systems and Automation Technology
Lesson
By the end of this module you will be able to
- Distinguish the validity and reliability of research instruments
- Compute the index of item-objective congruence (IOC) from experts and Cronbach's alpha from a pilot
- Prepare and check data before analysis
- Summarise survey data with descriptive statistics and a cross-tabulation (chi-square)
- Compare two group means with Welch's t-test, with a confidence interval and effect size
- Analyse a relationship with simple linear regression and interpret it carefully
Why this matters
Results can be no better than the tools used to measure. A questionnaire that asks the wrong things, or scales that were never calibrated, give wrong answers however sophisticated the analysis. This lesson checks the quality of the local government survey instrument, then analyses the payload experiment. All figures are hypothetical.
Research instruments, validity and reliability
A research instrument is what you use to collect data: questionnaires, observation forms, interview guides and physical measuring devices. A good instrument has two properties:
- Validity: it measures what it is meant to measure, for example readiness items really ask about readiness and not about liking drones.
- Reliability: repeated measurements give consistent results.
An instrument that is reliable but not valid is still useless, like scales that read the same every time but are 50 g off. For physical instruments, validity is checked by calibration against a reference, and reliability by the uncertainty of repeated measurements, following the GUM (JCGM 100).
For questionnaires, content validity is often checked with the index of item-objective congruence (IOC) of Rovinelli and Hambleton (1977). Each expert rates an item +1 (congruent), 0 (unsure) or −1 (not congruent), and the ratings are averaged; Thai research commonly keeps items with an IOC of at least 0.5. Internal-consistency reliability uses Cronbach’s (1951) coefficient alpha, usually considered acceptable from 0.70.
Example 1 IOC from three experts, and alpha from a pilot
from statistics import pvariance
# IOC: 3 experts rate each item +1 (congruent), 0 (unsure), -1 (not congruent)
ratings = {"Q1": [1, 1, 1], "Q2": [1, 0, 1], "Q3": [1, 1, 0], "Q4": [0, -1, 1], "Q5": [1, 1, 1]}
for q, r in ratings.items():
ioc = sum(r) / len(r)
print(f"{q} IOC {ioc:.2f} {'keep' if ioc >= 0.5 else 'revise'}")
# reliability from a pilot with 8 people (1-5 scores on items Q1, Q2, Q3, Q5)
pilot = [[4, 4, 5, 4], [3, 3, 3, 4], [5, 4, 5, 5], [2, 3, 2, 2],
[4, 5, 4, 4], [3, 2, 3, 3], [5, 5, 4, 5], [2, 2, 3, 2]]
k = len(pilot[0])
item_var = sum(pvariance([row[j] for row in pilot]) for j in range(k))
total_var = pvariance([sum(row) for row in pilot])
alpha = k / (k - 1) * (1 - item_var / total_var)
print(f"Cronbach alpha = {alpha:.3f}")
Q1 IOC 1.00 keep
Q2 IOC 0.67 keep
Q3 IOC 0.67 keep
Q4 IOC 0.00 revise
Q5 IOC 1.00 keep
Cronbach alpha = 0.939
Item Q4 has an IOC of 0.00 and must be reworded or dropped; the others pass. A pilot with 8 people outside the sample gives an alpha well above 0.70, so the items measure the same thing consistently. In real work a pilot should involve about 30 people or more.
Collecting and preparing data
Before collecting for real, pilot the instrument with a few people or flights to find items that confuse respondents or steps that take too long. Once data are in, check and clean them before analysis:
- Keep the original file unchanged and work on a copy.
- Check impossible values, such as a score of 6 on a 1–5 scale or a negative flight time.
- Handle missing data by rules set in advance, and report how many cases were removed.
- Log every change with its reason so others can trace it.
Descriptive statistics: summarising survey data
Before testing any hypothesis, you need to know what the data look like. Descriptive statistics condense a large amount of data into a few numbers people can read, like telling a friend “our class averaged 70, and most scores were between 60 and 80” instead of reading out every mark. The numbers fall into three groups:
- Frequency and percentage: how many people gave each answer. They work for every kind of data and are the main summary for categorical data such as sex, district or whether someone has been trained.
- Central tendency: the mean (sum divided by count), the median (the middle value when the data are sorted) and the mode (the most common value).
- Spread: the standard deviation (SD), roughly how far values lie from the mean, and the range (maximum minus minimum).
Answers on a 1–5 rating (Likert) scale are ordinal data. Much research reports the mean and SD of an item or of a total over several items, but you should always report the percentage for each answer and the median alongside them, because a mean of 3 could come from everyone answering 3 or from half answering 1 and half answering 5. If you translate means into levels, for example by cutting the 1–5 range into five equal bands of (1.00–1.80 lowest up to 4.21–5.00 highest), write that rule into chapter 3 of the report before collecting data.
To see whether two categorical answers are related, such as “trained in drone use” and “unit already uses drones”, build a cross-tabulation and test it with the chi-square test of independence, which compares the observed counts with the counts expected if the two answers were unrelated. OpenIntro Statistics explains that the test needs an expected count of at least 5 in every cell.
Example 2 Summarising the local government survey
The 294 questionnaires returned, matching the sample size from module 3: the item “My unit is ready to use drones in its work” and a cross-tabulation of training against drone use (hypothetical data).
from statistics import mean, median, stdev
from scipy import stats
# answers to "My unit is ready to use drones in its work" on a 1-5 scale (294 returned, hypothetical)
counts = {1: 18, 2: 41, 3: 97, 4: 103, 5: 35}
n = sum(counts.values())
scores = [s for s, c in counts.items() for _ in range(c)]
for s, c in counts.items():
print(f"score {s}: {c:3d} people {100 * c / n:5.1f}%")
print(f"n = {n}, mean = {mean(scores):.2f}, SD = {stdev(scores):.2f}, median = {median(scores)}")
# cross-tabulation: trained in drone use? x unit already uses drones?
table = [[64, 54], # trained: uses, does not use
[52, 124]] # not trained: uses, does not use
chi2, p, df, expected = stats.chi2_contingency(table, correction=False)
print(f"uses drones: trained {64 / 118:.1%}, not trained {52 / 176:.1%}")
print(f"chi-square = {chi2:.2f}, df = {df}, p = {p:.1e}, smallest expected count = {expected.min():.1f}")
score 1: 18 people 6.1%
score 2: 41 people 13.9%
score 3: 97 people 33.0%
score 4: 103 people 35.0%
score 5: 35 people 11.9%
n = 294, mean = 3.33, SD = 1.05, median = 3.0
uses drones: trained 54.2%, not trained 29.5%
chi-square = 18.03, df = 1, p = 2.2e-05, smallest expected count = 46.6
A mean of 3.33 falls in the 2.61–3.40 band, so it reads as “moderate”, but the frequency table says more: 46.9% answered 4 or 5 while 20.1% answered 1 or 2, so opinion is fairly split (an SD of 1.05 is almost a whole scale point). The cross-tabulation shows that 54.2% of trained respondents come from units that already use drones, against 29.5% of those without training. The chi-square p-value is tiny and every expected count is above 5, so the two answers are related, but this does not show which causes which (units that already own drones may be the ones sending staff to training).
Comparing two group means
Questions of the form “is group A higher than group B?” are very common: are trained staff more ready than untrained staff, or does one battery brand fly longer than another? When the two groups are independent (different people, different aircraft), use the independent two-sample t-test with against . The NIST/SEMATECH handbook recommends the form that does not assume equal spread in the two groups, known as Welch’s test:
The p-value only says how unlikely the observed difference would be by chance, so report it together with the confidence interval of the difference and an effect size such as Cohen’s d, the difference in means divided by the pooled SD of the two groups. Cohen (1988) suggested rough benchmarks of 0.2 small, 0.5 medium and 0.8 large. If the same people or aircraft are measured twice (before and after training), the data are not independent and a paired t-test is needed instead.
Example 3 Are trained staff more ready?
Readiness score (mean of 5 items on a 1–5 scale) by training, from the 294 questionnaires in Example 2 (hypothetical data).
import math
from scipy import stats
# readiness score (mean of 5 items, 1-5) by training group (hypothetical)
n1, m1, s1 = 118, 3.62, 0.71 # trained
n2, m2, s2 = 176, 3.21, 0.78 # not trained
res = stats.ttest_ind_from_stats(m1, s1, n1, m2, s2, n2, equal_var=False) # Welch t-test
v1, v2 = s1 ** 2 / n1, s2 ** 2 / n2
df = (v1 + v2) ** 2 / (v1 ** 2 / (n1 - 1) + v2 ** 2 / (n2 - 1))
diff, se = m1 - m2, math.sqrt(v1 + v2)
tcrit = stats.t.ppf(0.975, df)
sp = math.sqrt(((n1 - 1) * s1 ** 2 + (n2 - 1) * s2 ** 2) / (n1 + n2 - 2))
print(f"difference = {diff:.2f}, t = {res.statistic:.2f}, df = {df:.1f}, p = {res.pvalue:.1e}")
print(f"95% CI of difference: {diff - tcrit * se:.2f} to {diff + tcrit * se:.2f}")
print(f"Cohen's d = {diff / sp:.2f}")
difference = 0.41, t = 4.66, df = 266.4, p = 4.9e-06
95% CI of difference: 0.24 to 0.58
Cohen's d = 0.54
Trained staff score 0.41 points higher on readiness, with a 95% confidence interval of 0.24 to 0.58 that does not include zero. The p-value is tiny, so is rejected, and is a medium effect. A good summary sentence is “trained staff were on average 0.41 points more ready than untrained staff (95% CI 0.24–0.58, medium effect)”, with the warning that this is a survey, not an experiment: people already interested in drones may have chosen to attend training.
Analysis and interpretation
When both variables are continuous numbers, the relationship between them is analysed with simple linear regression, . Montgomery and Runger explain how to find the slope, its confidence interval and the test of whether it differs from zero.
Example 4 Payload and flight time
Data from the 12 flights flown in the randomised order from module 3.
from scipy import stats
payload = [0, 0, 0, 200, 200, 200, 400, 400, 400, 600, 600, 600] # grams
minutes = [21.8, 22.3, 21.5, 19.9, 20.4, 19.6, 18.2, 17.9, 18.6, 16.4, 16.9, 16.1] # flight time (hypothetical)
fit = stats.linregress(payload, minutes)
print(f"flight time = {fit.intercept:.2f} - {abs(fit.slope) * 100:.3f} × (payload / 100 g) min")
print(f"r = {fit.rvalue:.3f}, R² = {fit.rvalue ** 2:.3f}, p = {fit.pvalue:.1e}")
lo, hi = fit.slope - 2.228 * fit.stderr, fit.slope + 2.228 * fit.stderr # t(0.975, df = 10)
print(f"95% CI of slope: {lo * 100:.3f} to {hi * 100:.3f} min per 100 g")
flight time = 21.82 - 0.897 × (payload / 100 g) min
r = -0.987, R² = 0.975, p = 2.5e-09
95% CI of slope: -0.998 to -0.795 min per 100 g
Every extra 100 g of payload cuts flight time by about 0.9 minutes, with a 95% confidence interval of roughly 0.8 to 1.0 minutes. The p-value is tiny, so is rejected, and says payload explains about 97% of the variation in flight time.
Interpretation needs care in three ways. First, the line holds only within the range tested; it says nothing about 1,000 g. Second, statistical significance is not practical importance; look at the size of the effect too. Third, association is not causation in a survey where the variables were not set. This experiment can support cause and effect because we set the payload and randomised the order.
Class activity
Activity: check an instrument and analyse
- Write 5 items to measure one variable in your group’s conceptual framework.
- Have three other groups act as experts, rate the items and compute IOC as in Example 1.
- Pilot with classmates, compute alpha, and revise items that pull alpha down.
- Summarise the pilot answers with frequencies, percentages, mean, SD and median as in Example 2, then compare the means of two groups in the class (for example, have flown a drone or not) with the code of Example 3.
- Use the data in Example 4 to predict flight time at 300 g and state the limits of that prediction.
- Write one paragraph of interpretation that includes the effect size, confidence interval and limitations.
Common mistakes
Watch out
- Not piloting the instrument before collecting real data
- Assuming high alpha means the instrument is valid, although alpha only shows reliability
- Editing the original data file without a record
- Reporting only the mean of a 1–5 scale without the percentage for each answer, which hides split opinion
- Using the independent two-sample t-test on repeated measurements of the same people (before and after), which need the paired test
- Predicting outside the range of the experiment
- Reporting only the p-value, without effect size and confidence interval
Summary
- A good instrument must be both valid and reliable.
- IOC checks content validity from experts; Cronbach’s alpha checks internal-consistency reliability.
- Pilot the instrument, keep the original data, and log every cleaning step.
- Descriptive statistics (frequencies, percentages, mean, SD, median) always come before tests; two categorical answers are tested for association with chi-square.
- Compare two independent group means with Welch’s t-test and report the confidence interval of the difference and Cohen’s d.
- Regression gives the slope, its confidence interval and ; interpret only within the range of the data.
Check your understanding
- Three experts rate an item +1, +1 and −1. What is its IOC, and should it be kept or revised?
- A 4-item questionnaire has item variances summing to 3.0 and a total-score variance of 9.0. What is alpha?
- Using the equation in Example 4, predict flight time at a 300 g payload.
- A group of 40 people who have flown drones has a mean readiness score of 3.8 (SD 0.6); 50 people who have not have a mean of 3.5 (SD 0.7). What is Welch’s ?
- Why can the payload experiment support cause and effect, but the local government survey cannot?
Answers
- , below 0.5, so revise the item
- minutes
- The experiment set the payload and randomised the order, ruling out other variables; the survey measures variables as they are, so another variable may be a common cause
Key formulas
| Index of item-objective congruence (IOC) | |
| Cronbach alpha | |
| Mean and standard deviation | |
| Welch t statistic | |
| Simple linear regression |
Key references
- Rovinelli, R. J., & Hambleton, R. K. (1977). On the use of content specialists in the assessment of criterion-referenced test item validity. Tijdschrift voor Onderwijsresearch, 2, 49–60. link
- Cronbach, L. J. (1951). Coefficient alpha and the internal structure of tests. Psychometrika, 16(3), 297–334. link
- Montgomery, D. C., & Runger, G. C. (2018). Applied statistics and probability for engineers (7th ed.). Wiley. link
- NIST/SEMATECH. e-Handbook of statistical methods. National Institute of Standards and Technology. link
- JCGM. (2008). Evaluation of measurement data — Guide to the expression of uncertainty in measurement (JCGM 100:2008). BIPM. link
- NIST/SEMATECH. Two-sample t-test for equal means (section 1.3.5.3). e-Handbook of statistical methods. link
- Diez, D. M., Çetinkaya-Rundel, M., & Barr, C. D. (2019). OpenIntro statistics (4th ed.). OpenIntro. link
- Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
สถิติเชิงพรรณนาและการแจกแจงความน่าจะเป็น
การจัดการและแสดงผลข้อมูลด้วย Python
In class / field
Lecture, case discussion and in-class problem solving
Learning evidence: Quiz results and submitted exercises