Logo

8/27 Data analysis lecture Notes

Ready 1h 15m Aug 27, 2026
0:001:15:58

Transcript

S

Speaker

To use ordinal variable and create a scale of comparison.

S

Speaker

Compared to a nuclear bomb, it actually seems like a tiny, trivial thing.

S

Speaker

But it'll be helpful for us. So I've gone on at some length about this idea that we need to know what our level of measurement is so that we aren't making any basic dumb mistakes like trying to find

S

Speaker

the average for an ordinal variable.

S

Speaker

And now I would like to talk out of the other side of my mouth and say, "Well, but sometimes I can't."

S

Speaker

And you'd like to, right? If you've got an ordinal variable

S

Speaker

that is acting like A scale level variable, that's good news, because now you can put it into tests and do math with it of the kind of appropriate scale level variables, and that is better, bigger, more

S

Speaker

powerful tests and further arithmetic. So, when you got a scale like

S

Speaker

ordinal variable,

S

Speaker

this is a matter of judgment. And different instructors in a room like this will tell you a different thing, and different books by different authors will tell you a different thing.

S

Speaker

For instance, in, my stats class I'm teaching this semester, I'm using a text that says you can treat an ordinal variable that just has ranks but not necessarily a step set

S

Speaker

like it's a scale level variable. When you think it's like a scale, Albert.

S

Speaker

Well, that is a little loosey-goosey for me, thanks very much.

S

Speaker

I would rather be

S

Speaker

more cautious. So for our purposes, let's follow this guideline.

S

Speaker

We will allow ourselves to use an ordinal variable.

S

Speaker

As though it were a scale variable. If it meets two conditions.

S

Speaker

One, you need at least seven response categories.

S

Speaker

Right. So in other words, if I asked, "What is your political orientation, left to right?

S

Speaker

" one, liberal; two, moderate; three, conservative. I, I wouldn't, I'd say, don't you do it.

S

Speaker

That's not, you haven't got enough gradation there for it to behave in a, a, a genuinely scale-like fashion.

S

Speaker

But if you got at least seven, it generally will.

S

Speaker

So if you said, "On a scale of one to seven, with one being most liberal and seven being most conservative, where would you place yourself?

S

Speaker

" One, two, three, four, five, six, seven.

S

Speaker

Alright, then you've met the condition, this first condition for, for saying, "Alright, I can treat that as ordinal.

S

Speaker

" And it's ordinal and not scale because I'm not, I don't have a specific metric, right?

S

Speaker

You're just saying, "You, give me your impression.

S

Speaker

" How liberal or conservative are you? And I'm not, I can't, I wouldn't

S

Speaker

bet a million dollars that the distance between one and two

S

Speaker

on that scale is exactly the same as the distance between four and five on that same scale.

S

Speaker

But long practice has convinced us that it, it gets more and more Regularly to be that way as you add

S

Speaker

response categories, and by the time you're up to seven, it does act more or less that way.

S

Speaker

Now, if you meet the second condition, then you're really pretty safe treating an ordinal variable as scale-like.

S

Speaker

If in your sample, 'cause you only have 3, 000 people or 200 people, you don't have everybody in the world, but if your sample data shows a distribution of scores on that scale that's pretty

S

Speaker

normal,

S

Speaker

then you're okay too.

S

Speaker

Up L curve. If you got small number here, whole bunch in the middle, small number there, right?

S

Speaker

If it's normally distributed scores

S

Speaker

and you got seven or more response categories, there's hardly anybody who'll give you any grief for treating that as a scale-like variable and putting it in a regression analysis.

S

Speaker

I mean, even rather strict statisticians would be like,

S

Speaker

That one's gonna act like a scale.

S

Speaker

So let's use that cautious and rather strict guideline as our default rule, and then we'll see if once in a while we wanna bend the rule even further.

S

Speaker

What you'll find is that we're going to use a lot of tests that have assumptions.

S

Speaker

This is the term of art. What assumptions does this test make?

S

Speaker

This test assumes normally distributed data, assumes scale level variable, and these tests are also pretty robust against violations of the assumptions.

S

Speaker

you can bend the rules a little bit and you'll still be saying the right thing when you say I found a statistically significant finding.

S

Speaker

Yeah, or didn't. You'll still usually be right, even if you bend the rules here and there in ways that I'll show you.

S

Speaker

my own

S

Speaker

disposition towards this sort of thing. Is that we should be rather rule-following authoritarian types, you know, we, in some part of your life, you may wanna be some kind of anarcho

S

Speaker

hippie, but when you're trying to decide should I do this or not with statistical tests, I, I think it makes pretty good sense to, be a goody-goody and a, and a rule follower

S

Speaker

and go by the bush.

S

Speaker

Alright, so currently,

S

Speaker

for a long time, the GSS had as its best measure of political orientation one called the Polycube, and it was in fact a seven point ordinal scale, and that's pretty good.

S

Speaker

But they have added now Leftright, and so

S

Speaker

it is

S

Speaker

L E F T R G H T.

S

Speaker

That's a funny way to spell, right? But that's what the name is.

S

Speaker

And, let's see, I would show you the main and show me students and curricula systems too.

S

Speaker

I haven't subscribed just yet. What? What? What?

S

Speaker

And giving it history.

S

Speaker

And show me the normal curve superimposed on top of that histogram so you can see if it was perfectly normal, what it would look like.

S

Speaker

Yeah. What did you mean? And then what?

S

Speaker

on the frequency statistics. Frequency statistics, I picked mean, and then I also picked standard deviations that tell you how normal or deviated

S

Speaker

your distribution is.

S

Speaker

I'll talk about those in detail in a week or two or three, but right this second, just show me.

S

Speaker

This thing here

S

Speaker

meets our needs. You look at it, you're like, "Well, this black line is a perfectly normal distribution, and gosh, this is too peaky.

S

Speaker

It doesn't all fit exactly over there." Yeah, yeah, yeah.

S

Speaker

But But for it to be too far from normal,

S

Speaker

you need,

S

Speaker

numbers, see this unit and this cryptosis, as long as both of those, and we don't even write that yet, we're gonna talk about this later,

S

Speaker

but for right now I'm just telling you, if skewness and kurtosis have an absolute value within two, you're fine, and these are both closer to zero.

S

Speaker

In other words, in the grand mathematical scheme of things, this is an extremely normally distributed set of responses.

S

Speaker

You got as few previous as, as, as can be.

S

Speaker

So I am absolutely comfortable treating that as a scale level variable, so much so that I presume In this data set,

S

Speaker

two under left, right.

S

Speaker

Look how I,

S

Speaker

look at that! I called it scale. I set it to, you know, the flag right there is scale because that's scale enough.

S

Speaker

This matters because we're going to be doing a bunch of tests that require scale up, and I really- I really haven't been keeping up with political things, and so now I'm so delighted that I have this basic measure

S

Speaker

of political orientation left right that I can put into regression, t-tests, ANOVA, yay!

S

Speaker

All right,

S

Speaker

that's all the stuff that I hoped to get through by, on Tuesday.

S

Speaker

And so now, we're starting Thursday. if you will

S

Speaker

log in, Kevin, and go to assignments,

S

Speaker

you will see, yours probably doesn't even show because it's not yet published, you probably just see one assignment, the assignment one, and it's published today at, at eleven,

S

Speaker

and look, look at this,

S

Speaker

read these carefully, right? If you're familiar with Canvas, it puts the wrong thing first.

S

Speaker

Once in a while, students who are new to Texas State or Canvas, they're like, "Oh, come on, I saw September 2nd, 10:30, I added in before that, but no, no, no, look, due

S

Speaker

September 1st,

S

Speaker

available for half a day through the next day, so read carefully." And we're done.

S

Speaker

Here we go. Assignment one. Here's your instruction.

S

Speaker

Do that.

S

Speaker

and what we'll do each week is,

S

Speaker

you know, I'll let you get started and go along, and then depending on how complex it is or how much,

S

Speaker

help seems appropriate for me, I'll come along after you go, all right?

S

Speaker

Here's me generating the output. Does yours look like this?

S

Speaker

Then you'll be able to look and go, "Yeah, actually, I'm matchy-matchy, good, sweet, great.

S

Speaker

" Anything else? You can do like that.

S

Speaker

What, what we'll try to do most weeks is have it be the case that you can get your output generated while we're sitting here together, and then routinely, that then, that'll,

S

Speaker

then you, you got five days to do the rest, right?

S

Speaker

'Cause generating output often will only take just a few minutes.

S

Speaker

Today that'll be the case. We'll, we'll have our output here in ten minutes.

S

Speaker

and then, some weeks you might be able to get much of the assignment done while we're still sitting here together and able to ask each other questions, right?

S

Speaker

I mean, we're, we're, an engaged and sophisticated student can say, "Oh, you know what?

S

Speaker

Your fourth question there, do you mean this or that

S

Speaker

Ask a good question, do we mean this or that?

S

Speaker

We can kinda talk about stuff together. But sometimes the assignments will be extensive enough where we'll get the output generated,

S

Speaker

and then you will save it in some form you can get off of this machine, right?

S

Speaker

You'll either put it in your Dropbox or your OneNote or your flash drive if you're brave enough.

S

Speaker

We use a pretty clean machine.

S

Speaker

And then you've got until Tuesday to write up your now that's, that's,

S

Speaker

that's what you get an A for. you're gonna have the output together, we're gonna do that rather mechanically, you'd have to goof not that you're output, but then you've gotta say smart things about the output and why it

S

Speaker

is.

S

Speaker

So,

S

Speaker

start.

S

Speaker

And then in a minute I'll say, "Alright, here's what I was doing at the start, we'll see." And if you're completely overwhelmed, you're like, "Man, I can't remember how to start," don't worry, in five minutes I'll come along

S

Speaker

and see how far you can get.

S

Speaker

Bowie,

S

Speaker

Emily.

S

Speaker

Hey, it's Liam calling. What's your name? You're Liam.

Scroll to load more transcript lines (120 / 702)

AI creations

Nothing has been created from this recording yet.