S15 · Chapter 8
Level of measurement: the kind of information a variable’s values carry, which decides what you may later do with them. Example: game holds names, and viewers holds counts.
stream_log table spans all four
Nominal: categories that are only names, with no order. Example: game holds Fortnite, Just Chatting, Art, and Hearthstone, and no arithmetic relates them.
channel is nominal, and so is a raw title
Ordinal: categories with a meaningful order, where the distances between them are not guaranteed equal. Example: titles binned short, medium, and long, where short-to-medium need not match medium-to-long.
Median: the middle value once the values are sorted. Example: the middle category when every title is lined up from short to long.
Interval: numbers with equal distances between them but no true zero, so a difference means something and a ratio does not. Example: the posting time of each message, where a minute is a minute anywhere in the column.
date stores it as milliseconds counted from 1970Ratio: numbers with equal distances and a true zero, where zero means none at all. Example: viewers, where zero means nobody is watching, so 28,000 really is twice the audience of 14,000.
Stream title, measured three ways:
Level of measurement is not a property the data hands you. It is a property of the decision you make.
You make the choice before coding a single case.
Chi-square test: a test of whether two categorical variables are associated, comparing the counts you observed with the counts you would expect if they were unrelated. Example: whether message target differs between gaming and non-gaming streams.
viewers is already a number, game already a categorychat_logFor the second kind, operationalization is most of the work.
Intercoder reliability: how closely two or more coders agree when each codes the same items independently. Example: two coders each label the same 100 messages without seeing the other’s codes.
Stability: how closely your own codes match when you code the same items a second time, after a gap. Example: re-coding 10 percent of the messages 48 hours later and comparing the two passes.
Raw agreement: the share of items where your two passes gave the same code. Example: 74 of 100 items match, so raw agreement is 74 percent.
Chance agreement: matches that happen by luck, even when nobody follows a rule. Example: two people flipping coins to sort messages into two categories agree about half the time.
Cohen’s kappa: a score for how much two coding passes agree beyond what luck alone would give. Example: a kappa near 0 means the passes agree about as often as luck would.
Krippendorff’s alpha: a reliability score like kappa that also works with more than two passes, ranked or numeric codes, and missing codes. Example: three coders rating how heated a message is from 1 to 5.
A codebook’s job is to make independent passes agree, whoever makes them.
Validity: how well a measure captures the idea it claims to measure. Example: whether counting at-mentions really captures who a message is aimed at.
Face validity: whether a measure looks, on its face, like a reasonable measure of the idea. Example: counting at-mentions to measure messages aimed at the streamer makes sense without much explanation.
Content validity: whether a measure covers every part of the idea, not just some of it. Example: a message count leaves out who is talking and to whom, so it covers only part of chat engagement.
Construct validity: whether a measure behaves the way theory says the idea should, the most demanding of the three. Example: a measure of parasocial language should run higher where viewers report stronger bonds with the streamer.
Consistency is the easiest thing to mistake for accuracy.
A codebook is the instrument that produces it.