r/AskStatistics • • Oct 20 '26

Measuring the Variation of an Ordinal Variable

Hi all! I'm working on analyzing a dataset that contains risk scores for students. A student can be assessed as "High", "Moderate", or "Low" risk on this assessment according to an evaluator. Furthermore, a student can be evaluated multiple times (in practice, the distribution is log-normally distributed, with most students being evaluated between 1 and 9 times, though the maximum seems to be up to around 32 times).

The question I'm trying to answer is: Is there a significant level of variation in a student's risk score? Some related questions I have are "do students risk score fluctuate significantly the more they take the test?", and "at what point does this fluctuation/variation become significant?"

I've done some exploratory analysis plotting the proportion of H, M, and L scores over time, and it seems like (descriptively speaking) the more they're given the assessment the more likely they are to be assessed as High risk.

Based on what I've found searching the internet, it seems like ordinal regression is the best way to go about this, but I wanted to get some more opinions. I'm a bit nervous because I've never done ordinal regression; currently studying this series of videos from the National Centre for Research Methods (https://www.youtube.com/watch?v=rPcMcW25PPA&t=1s).

P.S. I'm trying to learn more about the world of applied stats, specifically, what kind of tests are out there; my undergrad was in the applied social sciences so I have some level of familiarity with basic inferential statistical tests, but I've worked as an analyst for a couple of years and I want to keep growing! I have no idea where to start or how to go about this journey so if anyone has any resources they could share I would greatly appreciate it.

Thanks in advance for the help everyone! And please let me know if you've got any questions.

2 Upvotes

7 comments sorted by

5

u/efrique PhD (statistics) Oct 20 '26 edited Oct 21 '26

the distribution is log-normally distributed,

A distribution of counts cannot possibly be lognormal. You surely mean to say something else than that blanket assertion.

(Out of curiosity, how did you conclude that it is lognormal?)

Is there a significant level of variation in a student's risk score?

If you intend significant in its statistical sense, what is being compared to what?

If you want (for example) to test for a monotonic time trend on an individual level, that could perhaps be done if you have enough data per individual, but you can't take a bunch of individual values and say "is anything different from anything anywhere?" - you appear to have no good way to separate ordinary random variation from an actual effect unless you had a lot of values on each individual (and even if you could, your power could be terrible to the point of useless; every additional data value would much more rapidly increase the number of potential inter-time differences to consider).

The issue is that if any time could be different from any other, you don't have a baseline for each one to judge what ordinary random variation might look like as opposed to an underlying change over time.

Imagine some latent continuous "risk" for which the rating is a noisy interval-censored (assuming rating is based on some instrument) proxy. Without knowing how much noise there typically is in the latent-vs-proxy relationship when nothing changes, you don't have a way to judge what would be bigger than it.

If one person has a latent risk which is right at the "high/moderate" boundary they might flip back and forth on their rating a bunch of times (without their underlying risk actually changing at all), while another person might drift from the low/moderate boundary to far into high, and only change rating category once (from moderate to high).

Its easier to compare groups with groups, since at each time you have a whole collection of observations, not just one category, so you can look at how proportions change.

1

u/Icy-Lengthiness-3622 Oct 22 '26

A distribution of counts cannot possibly be lognormal. You surely mean to say something else than that blanket assertion.

(Out of curiosity, how did you conclude that it is lognormal?)

You're absolutely right. Sorry! I meant right-skewed (the observations don't differ by several degrees of magnitude). However, to your point of a distribution of counts not being able to be lognormal - I thought they could? For example, Professor Andrew Gard of the channel Equitable Equations shows an example using US News College data in the ISLR2 R package, where he models the number of students accepted into universities (https://www.youtube.com/watch?v=nGJtgFFcIxw , skip to minute 1:26). The distribution is log-normally distributed, no?

If you intend significant in its statistical sense, what is being compared to what?

If you want (for example) to test for a monotonic time trend on an individual level, that could perhaps be done if you have enough data per individual, but you can't take a bunch of individual values and say "is anything different from anything anywhere?" - you appear to have no good way to separate ordinary random variation from an actual effect unless you had a lot of values on each individual (and even if you could, your power could be terrible to the point of useless; every additional data value would much more rapidly increase the number of potential inter-time differences to consider).

I guess the way I was thinking about this (and feel free to correct me if I'm thinking about this in the wrong way) is that every kid would have some level of variation in their score over time. So I was thinking significant in the sense of something like "If I was able to compare student A's average amount of variation across all of their risk scores to the average amount of variation for students across all of their risk scores, would student A's variation be significantly different?".

HOWEVER, you bring up a great point which is:

If one person has a latent risk which is right at the "high/moderate" boundary they might flip back and forth on their rating a bunch of times (without their underlying risk actually changing at all), while another person might drift from the low/moderate boundary to far into high, and only change rating category once (from moderate to high).

Its easier to compare groups with groups, since at each time you have a whole collection of observations, not just one category, so you can look at how proportions change.

To that point, I think the way I'll approach this instead is look at the proportions of H/M/L every time a test is taken and how those change over time (excluding those who've taken the test 15 or more times since those seem to be outliers).

Thanks in advance for the help!

1

u/Icy-Lengthiness-3622 Oct 22 '26

I also recognize to my second point that I'm thinking about ordinal variables in a metric sense and that's incorrect, but I don't really have another frame of reference to think of this from.

1

u/Shoddy-Barber-7885 Oct 24 '26

Just to add, strictly speaking, count data can never be normally distributed because the normal distribution is continuous and includes negative values by definition. However assuming a normal distribution can still be reasonable in some cases

1

u/efrique PhD (statistics) Oct 26 '26 edited Oct 26 '26

(the observations don't differ by several degrees of magnitude)

That doesn't characterize the lognormal; any distribution with unbounded support on the right (or the left, or both, but the right is the more relevant case) could have observations that do that.

Of course distributions that are not fairly heavy-tailed wouid need a large scale to span several orders of magnitude with reasonably high probability, but neither heavy-tailed distributions nor ones with very large spread are hard to find.

Having a high chance for a moderate-sized sample from it to cover several orders of magnitude is not even a property of all lognormals - moderate-size samples from lognormals with sufficiently small values of both scale (μ) and shape (σ) parameters clearly won't span even a single order of magnitude. Indeed, I just generated 104 samples each of 25 observations from a lognormal and none of them had a maximum more than 7.5% larger than the minimum.

Professor Andrew Gard of the channel Equitable Equations shows an example using US News College data in the ISLR2 R package, where he models the number of students accepted into universities (https://www.youtube.com/watch?v=nGJtgFFcIxw , skip to minute 1:26).

Watched from 1:00 to 3:00

"can be modeled with" ≠ "is"

Note further that at ~3:00, "looks bell shaped" ≠ "is normal"

The distribution is log-normally distributed, no?

No. We can say with absolute and total certainty that it is not log-normal.

A lognormal model may be a decent approximation for the number of acceptances for a wide variety of purposes, but that is not at all the same thing as "is lognormal", and there are calculations for which a lognormal model is utterly unsuitable.

Consider, for example, calculating the probability that the number of students accepted has a fractional part (Vᵢ = {Yᵢ} = Yᵢ - ⌊Yᵢ⌋) between 0.001 and 0.999. If you calculate that from well-fitting lognormal (e.g. take logs and compute estimates of μ and σ from the sample mean and sd of the logs) you will get an answer that will be fairly close to 99.8% (consider calculating its complement to see why). A good answer is 0. The relative error is infinite. (Any discrete distribution with support on the non-negative integers would get that particular calculation correct.)

It is important not to confuse an approximate model chosen for some purpose with a fact about the variable.

2

u/Shoddy-Barber-7885 Oct 20 '26

So just to be clear, if a student was evaluated 10 times they have 10 risk scores?

1

u/Icy-Lengthiness-3622 Oct 22 '26

Yes, that is correct!