Sub topic 5
Scoring correctly: totals, reverse items and subscales
A well-chosen questionnaire still gives a wrong number if you score it wrongly. This chapter covers the mechanics of turning raw responses into scale scores: sums, reverse-keyed items, subscale totals, rescaling, and the checks that catch mistakes before you interpret anything.
Prerequisites and scope
This chapter assumes you know the following:
- A Likert item is a statement rated on an ordered response scale, such as 1 (strongly disagree) to 7 (strongly agree).
- A "validated" scale has published evidence of reliability and validity, covered in earlier chapters.
- You can read short Python functions. The code is optional, and every rule is also stated in plain words.
The scale-specific walkthroughs for the SWLS and the WHO-5 come in the next chapters. Here you build the general toolkit they rely on.
Why scoring rules matter
Scale developers fix the scoring rules when they validate an instrument. Published cut-offs, norms and bands are all calibrated to that exact procedure. If you average where the authors summed, or forget a reverse item, your result lives on a different scale from the one the norms describe. Comparing it to published guidance is then meaningless.
Three decisions define a scoring procedure:
- Which items count, and in which direction.
- How items combine: sum, mean, or weighted combination.
- Whether the result is rescaled, for example to a percentage.
Always take these from the scale's official scoring instructions. Do not infer them from the item wording.
Totals: sums versus means
The two most common combination rules are a sum score and a mean score.
| Method | How it works | Range for 5 items on 1-7 | Typical use |
|---|---|---|---|
| Sum | Add all item responses | 5 to 35 | SWLS |
| Mean | Sum divided by number of items | 1 to 7 | PANAS-style subscale averages, WEMWBS variants |
| Rescaled | Sum multiplied by a constant | 0 to 100 | WHO-5 percentage |
A sum and a mean carry the same information when the number of items is fixed. They differ in what happens when an item is missing. A sum silently shrinks, while a mean stays on the original response range. That difference matters in the missing-data section below.
Know your range before you score
Compute the minimum and maximum possible score before you start. For k items on a response range from low to high:
- Minimum sum:
k * low - Maximum sum:
k * high
For a 5-item scale on 1-7, that gives 5 and 35. A total of 3 or 40 is therefore an error, and you can catch it immediately.
Note that some scales start at 0 and others at 1. The WHO-5 uses 0 to 5 per item, so its raw range is 0 to 25. The SWLS uses 1 to 7 per item, so its range is 5 to 35. Mixing these up is a common source of off-by-five errors.
Reverse-keyed items
A reverse-keyed item is worded so that agreeing signals a lower level of the construct. For example, on a scale of positive mood, "I often feel down" is reverse-keyed. Developers include such items to reduce acquiescence, which is a habit of agreeing with statements regardless of content.
If you add a reverse-keyed item without flipping it, the item subtracts information instead of adding it. Someone with high well-being who strongly disagrees with "I often feel down" would receive a low score on that item.
The flipping formula
To flip a response on a scale from low to high, use:
reversed = (low + high) - valueThis works for any numeric range. On a 1-7 scale, low + high is 8, so a 2 becomes 6 and a 4 stays 4. On a 0-5 scale, low + high is 5, so a 1 becomes 4.
def reverse_score(value, low, high):
"""Flip a reverse-keyed item on a scale running from low to high."""
if not low <= value <= high:
raise ValueError(f"value {value} outside {low}-{high}")
return (low + high) - value
# On a 1-7 scale, a response of 2 becomes 6.
print(reverse_score(2, 1, 7))The range check matters. Without it, a typo such as 8 on a 1-7 scale would silently turn into 0, and that value would pass into your total unnoticed.
Common reverse-scoring errors
- Using the wrong constant. On a 1-7 scale,
7 - valuegives 0 to 6, not 1 to 7. Use8 - value. The general formula avoids this. - Flipping twice. If your spreadsheet already stores reversed values, flipping them again restores the original and cancels the correction.
- Flipping the wrong items. The scoring key names which items are reversed. Item position or tone is not a reliable guide.
- Flipping before checking the range. An out-of-range entry produces another out-of-range value that looks plausible.
A worked example with a reverse item
Suppose a hypothetical 4-item mood scale uses a 1-5 response range, and item 3 is reverse-keyed. Responses are 4, 5, 2, 4.
- Flip item 3:
(1 + 5) - 2 = 4. - Scored items: 4, 5, 4, 4.
- Sum: 17. Mean: 4.25.
Without the flip, the sum would be 15. The mismatch of 2 points is large relative to a possible range of 4 to 20.
def score_with_reverse(responses, reverse_idx, low, high):
"""Return the sum after flipping items at the given 0-based positions."""
scored = []
for i, value in enumerate(responses):
if i in reverse_idx:
value = (low + high) - value
if not low <= value <= high:
raise ValueError(f"item {i + 1} out of range")
scored.append(value)
return sum(scored)
print(score_with_reverse([4, 5, 2, 4], {2}, 1, 5))Subscales
Many instruments measure more than one dimension. A subscale is a subset of items that together measure one dimension, and each subscale gets its own score. Examples you will meet later include the positive and negative halves of an affect scale and the separate domains of a multidimensional scale.
Rules for subscale scoring:
- Score each subscale from its own items only, using the key's item list.
- Apply reverse-keying within the subscale before summing.
- Do not add subscale scores into a grand total unless the authors define a total score.
- Report subscales separately. Positive and negative affect, for instance, are related but distinct, and combining them hides information.
def score_subscales(responses, key):
"""key maps subscale name to a list of 1-based item numbers."""
return {
name: sum(responses[i - 1] for i in items)
for name, items in key.items()
}
key = {"positive": [1, 3, 5], "negative": [2, 4, 6]}
print(score_subscales([4, 2, 5, 1, 4, 2], key))This example has no reverse items. If your instrument has them, flip first and then pass the flipped list in.
Mapping the pipeline
The order of operations is the same for nearly every scale.
Rescaling
Some scales convert the raw total into another unit. The WHO-5 raw score of 0 to 25 is multiplied by 4 to give a percentage from 0 to 100. This makes scores easier to read, but it also makes steps larger. One raw point becomes 4 percentage points, so a change of 4 percentage points is the smallest change possible.
Rescaling does not add precision. A 100-point scale built from 25 raw points still has only 26 possible values.
Keep both numbers. Published thresholds are sometimes stated on the raw scale and sometimes on the percentage scale, and you need to know which one a source uses.
Worked scoring of two scales
The following examples preview the next chapters. They show that the same toolkit handles quite different instruments.
The SWLS has five items on a 1-7 range, all keyed in the same direction. You sum them and look up a descriptive band.
def score_swls(items):
"""Score the 5-item Satisfaction With Life Scale (each item 1-7)."""
if len(items) != 5 or any(not 1 <= x <= 7 for x in items):
raise ValueError("SWLS needs 5 responses, each from 1 to 7")
total = sum(items)
if total >= 31:
band = "extremely satisfied"
elif total >= 26:
band = "satisfied"
elif total >= 21:
band = "slightly satisfied"
elif total == 20:
band = "neutral"
elif total >= 15:
band = "slightly dissatisfied"
elif total >= 10:
band = "dissatisfied"
else:
band = "extremely dissatisfied"
return total, band
print(score_swls([5, 6, 5, 4, 3]))The WHO-5 has five items on a 0-5 range. You sum them and multiply by 4.
def score_who5(items):
"""Score the WHO-5 (five items, each 0-5)."""
if len(items) != 5 or any(not 0 <= x <= 5 for x in items):
raise ValueError("WHO-5 needs 5 responses, each from 0 to 5")
raw = sum(items)
percent = raw * 4 # rescale 0-25 to 0-100
return raw, percent
raw, percent = score_who5([3, 4, 2, 3, 3])
print(raw, percent)
if raw < 13:
print("Below the usual screening threshold: consider talking to a professional.")Both functions validate the number of items and the range before they compute anything. A scoring function that rejects bad input is safer than one that returns a number for any input.
Missing responses
Real data often has gaps. The correct handling depends on the scale, and the authors' manual is the authority.
Common options:
- Do not score. Many short scales, including the 5-item ones above, have no approved procedure for missing items. With only five items, one gap is 20% of the scale.
- Prorate. For longer scales, some manuals allow you to compute the mean of the answered items and multiply by the full item count, provided only a small share of items is missing.
- Report as incomplete. Record that the score could not be computed.
Never fill a gap with a middle value just to get a number. That pulls every score toward the center and distorts the comparison with norms.
Checking your own scoring
Mistakes in scoring are easy to make and hard to see. Build in three checks.
- Range check. The total must fall between the minimum and maximum you computed earlier.
- Extreme-case test. Score a response set of all lowest answers and all highest answers. The first should give the minimum possible score and the second the maximum. On a scale with reverse items, an all-lowest response should still produce an intermediate result, because the reversed items offset the others.
- Hand check. Score one response set by hand and compare with your code or spreadsheet.
def check_swls():
assert score_swls([1, 1, 1, 1, 1])[0] == 5
assert score_swls([7, 7, 7, 7, 7])[0] == 35
assert score_swls([4, 4, 4, 4, 4])[0] == 20
print("SWLS checks passed")
def score_swls(items):
if len(items) != 5 or any(not 1 <= x <= 7 for x in items):
raise ValueError("SWLS needs 5 responses, each from 1 to 7")
return sum(items), None
check_swls()Reliability depends on correct scoring
Scoring also affects the statistics that justify a scale in the first place. Cronbach's alpha is an estimate of internal consistency. It compares the variance of single items with the variance of the total. If a reverse item is left unflipped, it correlates negatively with the others, and alpha drops sharply or turns negative. A surprisingly low alpha is therefore a useful warning that a key was applied incorrectly.
from statistics import variance
def cronbach_alpha(rows):
"""rows: list of respondents, each a list of item scores."""
k = len(rows[0])
item_vars = [variance([r[i] for r in rows]) for i in range(k)]
total_var = variance([sum(r) for r in rows])
return (k / (k - 1)) * (1 - sum(item_vars) / total_var)
data = [[5, 6, 5, 4, 3], [2, 3, 2, 2, 3], [6, 6, 7, 6, 5], [4, 4, 3, 4, 4]]
print(round(cronbach_alpha(data), 2))Alpha needs responses from several people. You cannot compute it from your own single set of answers. For your own use, the point is to trust the published reliability of the scale only when you score it the way the authors did.
Summary of rules
- Use the official key for items, direction, combination rule and rescaling.
- Compute the possible range first and check every result against it.
- Flip reverse items with
(low + high) - value, once, and only for keyed items. - Score subscales separately, from their own items.
- Keep raw and rescaled scores distinct, and note which one a threshold uses.
- Do not guess at missing items.
Exercise
A 6-item scale uses responses from 1 to 5. Items 2 and 5 are reverse-keyed. Your responses are 4, 2, 5, 3, 1, 4. What is the total score, and what are the minimum and maximum possible totals?
Show answer
Flip item 2: (1 + 5) - 2 = 4. Flip item 5: (1 + 5) - 1 = 5. The scored items are 4, 4, 5, 3, 5, 4. The total is 25. The minimum possible total is 6 (6 items x 1) and the maximum is 30 (6 items x 5).
Exercise
A person completes the WHO-5 and their raw score is 11. What is the percentage score, and is the raw score below the commonly used screening threshold of 13? What should the result be treated as?
Show answer
The percentage is 11 x 4 = 44. The raw score of 11 is below 13, so it falls under the usual flag for follow-up. It is a prompt to consider talking to a professional, not a diagnosis.
Exercise
Why is it wrong to fill in a missing SWLS answer with the middle value (4) and then compare the total with the published bands?
Show answer
The published bands were calibrated on complete responses. Inserting 4 pulls the total toward the center and invents data the person never gave. The result is not comparable to the norms, so the response should be reported as incomplete unless the manual allows a specific method.