Item Response Theory (IRT)
It looks not at how many items you got right, but at which items you got right.
Suppose you want to assess how much important security knowledge employees actually picked up after completing cybersecurity training. Even if everyone took the same test, the number of correct answers alone isn't enough to compare individual ability.
That's because some items almost anyone gets right, while others only people with solid security knowledge can answer. Even two employees with the same number of correct answers may differ in how well they understand the material, depending on which questions they got right.
Item response theory (IRT) analyzes these differences by considering the characteristics of the items and the respondents' latent ability together. Instead of simply adding up correct answers, it estimates each item's difficulty, discrimination and so on, and models the probability that a person with a given ability answers each item correctly.
In this article we'll cover the basic principles of IRT, the 1PL, 2PL and 3PL models, item characteristic curves and information functions, ability estimation, and model diagnostics and reporting.
What does item response theory analyze?
IRT uses observed item responses to estimate a latent trait, a characteristic that is hard to measure directly.
On a test it might be knowledge or ability; on a psychological or attitude survey it might be anxiety or a particular disposition. In this article we'll treat cybersecurity knowledge as the latent ability.
This latent ability is usually written with the Greek letter θ (theta), and analyses often scale it to have mean 0 and standard deviation 1. θ = 0 doesn't mean no knowledge at all; it means an average level in the chosen reference group. θ = 1 means an ability level one standard deviation above the mean of that reference group.
The key question in IRT goes beyond "How many did you get right?" to "How did you respond to items with what difficulty and discrimination?"
That lets you evaluate the quality of the items themselves and the respondents' ability together.
Worked example: assessing employees' cybersecurity knowledge
Suppose a company gave 800 employees a 12-item security knowledge assessment.
The items cover spotting phishing emails, multi-factor authentication, file-sharing permissions, incident reporting procedures and so on, and every item is scored 1 for correct and 0 for incorrect. To evaluate the training, the company wants to check not only each employee's knowledge level but also each item's difficulty.
| Item | Setting |
|---|---|
| Respondents | 800 employees |
| Number of items | 12 multiple-choice items |
| Scoring | Correct 1, incorrect 0 |
| Latent trait | Cybersecurity knowledge level (θ) |
| Goal of analysis | Estimate item difficulty and discrimination, and each employee's ability |
| Base model | Two-parameter logistic model (2PL) |
The research question is: "Which items best distinguish knowledge levels, and what level of ability does each employee's response pattern suggest?"
These results can also inform later revisions of items or the design of level-based training. But first you should check whether the actual content of the items measures a single ability.
How is the proportion correct different from item difficulty?
Classical test theory (CTT) uses an item's proportion correct as a simple indicator of its difficulty.
A high proportion correct suggests an easy item, and a low one a hard item. But the proportion correct is also affected by the ability level of the group that took the test.
The difficulty parameter (b) in IRT shows where an item sits on the chosen latent ability scale. In the 2PL model, b is the ability level at which the probability of a correct answer is 50%. For example, an item with b = −1 gives a 50% chance of a correct answer even at a fairly low ability level, while an item with b = 1 requires higher ability.
That doesn't mean IRT difficulty is completely invariant across every sample. It requires conditions such as an appropriate model and items that function the same way across groups. And in the 3PL model, the guessing parameter means b can't simply be read as the 50%-correct point.
How do 1PL, 2PL and 3PL differ?
The standard IRT models for dichotomous items are 1PL, 2PL and 3PL.
The number in the model name is the number of main parameters estimated for each item.
| Model | Item parameters | Key assumption or feature |
|---|---|---|
| 1PL / Rasch model | Difficulty (b) | Constrains discrimination to be the same for all items |
| 2PL | Difficulty (b), discrimination (a) | Allows discrimination to differ by item |
| 3PL | Difficulty (b), discrimination (a), lower asymptote (c) | Models a floor on the probability of a correct answer even at low ability |
1PL is simple and easy to interpret, but it imposes the strong restriction that every item distinguishes ability in a similar way. 2PL lets discrimination differ from item to item, and 3PL captures the chance of a correct answer at low ability due to guessing, especially on multiple-choice tests.
Note, though, that c in 3PL is not a directly observed "guessing rate" of the respondents. As the number of parameters grows, estimation can require more data and stronger identification conditions.
How is the 2PL model calculated?
In the 2PL model, the probability that a person with ability θ answers a given item correctly is expressed as a logistic function.
P(Yi = 1 | θ) = 1 ÷ ( 1 + exp[ −ai(θ − bi) ] )
Here a is the discrimination and b the difficulty. For example, suppose an item on spotting phishing emails has discrimination a = 1.5 and difficulty b = 0.5. The probability that an average employee (θ = 0) answers correctly is about 0.321, and for an employee one standard deviation above average (θ = 1) it is about 0.679.
| Employee ability (θ) | Expected probability correct |
|---|---|
| −1.0 | 9.5% |
| 0.0 | 32.1% |
| 0.5 | 50.0% |
| 1.0 | 67.9% |
| 2.0 | 90.5% |
These are probabilities calculated from example parameters, not the observed proportions correct of actual employees. Also, software can differ in how it scales discrimination, so when comparing parameters or results, check which model formula was used.
How do you read an item characteristic curve (ICC)?
An item characteristic curve (ICC) is an S-shaped curve with latent ability θ on the horizontal axis and the probability of a correct answer on the vertical axis.
The higher the difficulty b, the further the curve shifts to the right; the higher the discrimination a, the more steeply the curve rises around the difficulty.
For example, on an easy item (b = −1), even employees with below-average ability can have a high probability of answering correctly. On a hard item (b = 1.5), by contrast, the probability only gets large once ability is high enough. On an item with low discrimination, the probability of a correct answer differs relatively little across ability levels, so it may not separate respondents well in any particular ability range.
When looking at ICCs, it's important not to aim only for a high proportion correct. A test that checks minimum essential knowledge after training needs easy items, and a test meant to distinguish experts needs hard items.
A good item is not necessarily a hard one; it's one that provides the information you need in the ability range that matches the purpose of measurement.
How do you interpret actual item parameter results?
Suppose all 12 items were estimated; let's look at the results for four of them.
| Item | Content | Discrimination a | Difficulty b | Interpretation |
|---|---|---|---|---|
| Q2 | Spotting suspicious links | 1.80 | 0.20 | Distinguishes ability near the average fairly clearly |
| Q5 | Basics of multi-factor authentication | 0.75 | −1.10 | Fairly easy, with rather low discrimination |
| Q8 | Judging access permissions | 1.35 | 1.20 | Useful in the relatively high ability range |
| Q11 | Incident reporting priorities | 0.40 | 0.10 | Response pattern and item content need further review |
Q2 has relatively high discrimination at 1.80, so it can be useful for distinguishing employees whose ability is around its difficulty of 0.20. Q5, with difficulty −1.10, is closer to an item that checks basic knowledge, and Q8, with difficulty 1.20, can provide more useful information in the high ability range.
Q11 has low discrimination at 0.40, so it's worth checking whether its wording is ambiguous or whether it mixes several concepts. But rather than deleting it right away just because its discrimination is low, consider the training goals and the importance of the item as well.
What does the item information function tell you?
The item information function (IIF) shows how precise the information an item provides is at a given ability level.
In the 2PL model, the information of one item is:
Ii(θ) = ai² × Pi(θ) × [ 1 − Pi(θ) ]
By this formula, at the same ability position, an item with higher discrimination can provide more information. Also, a 2PL item generally provides the most information near its difficulty, where the probability of a correct answer is 0.5.
Taking the earlier item with a = 1.5 and b = 0.5 as an example, the probability of a correct answer at θ = 0.5 is 0.5. The information there is 1.5² × 0.5 × 0.5 = 0.5625.
Under conditions such as local independence, the information function for the whole test can be calculated by summing the item information functions. So by placing items of different difficulties appropriately, you can measure precisely over a wider ability range.
How is an employee's ability (θ) estimated?
IRT estimates ability θ from a respondent's pattern of correct and incorrect answers and the estimated item parameters.
Common methods include maximum likelihood estimation (MLE), expected a posteriori (EAP) and maximum a posteriori (MAP). The estimates can differ depending on the method, especially for extreme response patterns.
For example, suppose employees A and B both got 8 of the 12 items right. A may have gotten several hard items right and missed some easy ones, while B got most of the easy items right and missed the hard ones. Taking the items' characteristics into account, IRT can give the two employees different ability estimates.
| Employee | Number correct | Ability estimate θ | Standard error of estimate (SE) |
|---|---|---|---|
| A | 8/12 | 0.65 | 0.32 |
| B | 8/12 | 0.20 | 0.38 |
| C | 5/12 | −0.55 | 0.44 |
This table is an example to illustrate differences in response patterns; the values were not produced by an actual estimation.
An ability estimate of 0.65 means a level 0.65 standard deviations above the mean on the chosen scale. The standard error of the estimate shows the uncertainty in that score, and it can differ by ability level.
How are the test information function and measurement precision connected?
The test information function (TIF) is the sum of the item information, and it shows how precisely the test measures in each ability range.
Under suitable conditions, the local standard error of an ability estimate is roughly related to it as follows.
SE(θ) ≈ 1 ÷ √( Itest(θ) )
For example, if the test information near θ = 0 is 9, the standard error there is about 0.33. If the test information at θ = 2 is 4, the standard error is about 0.50. In other words, the same test can provide different amounts of information for average employees and for very high-ability employees.
When designing a test, you don't need to aim for the same precision across all ability ranges. If the purpose is to judge a minimum standard of essential security knowledge, it's useful to increase precision around the passing score; if the purpose is to select advanced security specialists, it's important to increase information in the high ability range.
What assumptions and diagnostics should you check in IRT?
To trust IRT estimates, you need to check that the chosen model adequately describes the structure of the actual response data.
The usual checks are unidimensionality, local independence, item fit and how items function across groups.
Unidimensionality
In a basic single-factor IRT model, this is the assumption that response patterns are explained mainly by one latent trait. If, on a cybersecurity test, phishing knowledge and network configuration skills are strongly separate traits, you may need to consider multidimensional IRT.
Local independence
The assumption that, given latent ability, there is no additional dependence between item responses. For example, if the answer to an earlier item gives a hint for a later one, this assumption can be violated.
Item fit
Assesses how well an item's actual response pattern matches the pattern the model predicts. For items that fit poorly, check the wording, the answer key, the possibility of more than one correct answer and so on. Don't decide whether to delete an item based on a single fit statistic.
Differential item functioning (DIF)
Checks whether people with the same ability have different probabilities of answering a particular item correctly depending on the group they belong to. For example, you can look at cases where familiarity with terminology differs by department or job. Finding DIF doesn't necessarily mean the item is unfair, but it is an important clue for reviewing the content.
How is IRT different from classical test theory?
Classical test theory evaluates tests and items with relatively simple statistics such as total scores, item proportions correct, item-total correlations and Cronbach's alpha.
IRT, by contrast, uses a model that directly links latent ability to the probability of each item response.
| Aspect | Classical test theory (CTT) | Item Response Theory (IRT) |
|---|---|---|
| Respondent score | Mainly sum or mean scores | Latent ability θ |
| Item difficulty | Mainly proportion correct | Difficulty parameter b on the latent scale |
| Item discrimination | Item-total correlation, etc. | Discrimination parameter a, etc. |
| Measurement precision | Focused on reliability of the total score | Information and standard error by ability range |
| Use | Basic item diagnostics, scale evaluation | Item banks, test equating, adaptive testing, etc. |
IRT is also used for item banks and computerized adaptive testing (CAT). For example, you can design a test that chooses as the next item the one that provides the most information at the employee's current ability estimate, reaching the same measurement goal with fewer items.
Implementing this, however, requires enough item calibration data, stable parameter estimates and management of item exposure, among other things.
How do you report IRT results?
A research report should include the number of respondents and items, the scoring method, the IRT model used, how the parameters were estimated, the range of the item parameters, and the results of checking model fit and the information functions.
If you used 3PL, state how the lower asymptote was estimated; if you compared groups, state how DIF was examined.
Sample write-up
A two-parameter logistic item response model (2PL) was applied to the responses of 800 employees on a cybersecurity knowledge assessment. The analysis used 12 items scored as correct or incorrect, and the latent ability scale was interpreted with a mean of 0 and a standard deviation of 1.
Item-level diagnostics showed that Q2, on spotting suspicious links, had a discrimination of 1.80 and a difficulty of 0.20, and it was interpreted as a useful item for distinguishing knowledge levels near the average. Q11, on incident reporting priorities, had low discrimination at 0.40, so its content and response patterns needed further review. The test information function was used to assess measurement precision by ability level, and it confirmed the need to consider the amount of information around the training goals and the cut score when assembling items in the future.
An actual report should also present the necessary diagnostic evidence, such as standard errors of the estimates, item fit results, the ability estimation method and checks of unidimensionality and local independence.
IRT looks beyond the number correct to the information each item provides
Item response theory uses item difficulty, discrimination and other parameters to model the probability that a person with a given ability answers an item correctly.
Unlike simply adding up correct answers, it can estimate latent ability by taking into account which items were answered and how.
In particular, item characteristic curves are useful for understanding difficulty and discrimination, and item and test information functions for assessing measurement precision by ability level. But unless you check the model's assumptions, item fit and how items function across groups, the estimates are hard to trust.
The core of IRT is not to score tests in a more complicated way, but to assess ability more accurately and more explainably by taking the items' characteristics and the purpose of measurement into account.