



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




VARIABLES: Notes for M
I. What is a variable?
In basic algebra, a variable is a quantity that may be unknown or may be changing. It’s the x that troubles middle-school students who wonder how a letter can be a number. In this course, we are concerned with data analysis. Here the word “variable” has a somewhat different meaning. It’s just something that you go out and measure or observe in different individuals or in different objects or on various occasions. Here are some examples:
II. “Determining the value of a variable” means measuring it.
When we speak about variables, we use a specialized vocabulary and a language that is slightly artificial. The purpose is only to be clear and precise. When talking about variables we often refer to the values that a variable takes at different times or for different individuals. This is a convenient piece of vocabulary that I would like you to learn to use. To make the meaning clear, let me give some examples that show you how to use the words “variable” and “value” to say some things that you can also say without them.
Example. I weighed myself last Sunday. My weight was 162. I had gained two pounds since the previous Sunday. The variable here is my weight. This variable changes with time. The value of the variable “my weight” was 160 on the previous Sunday and its value last Sunday was 162.
Example. Imagine the people in a room. Each one has a date-of-birth, and this varies from person to person. This is why we call “date of birth” a variable. On the other hand, your date of birth is not a variable. Your date of birth is a specific date that is fixed and unchanging. If you were born, say, on May 15, 1980, then we would say that May 15, 1980 is the value that the variable date-of-birth that is associated with you.
Example. If the variable is hair color, then some of the possible values are black, brown, red, blonde, gray and white. Hair color tends to run in families. Certain values of the variable “hair color” occur with greater frequency in some families than in others.
Example. Mark is taller than Fred. The variable here is height. The value of the height variable associated with Mark is greater than the value associated with Fred.
Summary. When we make a measurement or observation, we determine a value of whatever variable it is that we are observing. On different occasions, or when dealing with different individuals, a given variable takes on different values.
Remark. You could probably get away without ever using this kind of terminology if you always restricted your attention to just one variable at a time. Why then do we need this vocabulary? In order to make general statements about variables, we need a uniform way to refer to the values that we record when we make observations or measurements. So the variable/value terminology is useful.
Problems
III. Kinds of variables
Variable may be either qualitative or quantitative.
Qualitative variables classify. Examples. Hair color, blood type and race are some qual- itative variables that are applicable to people. Make, model and color are some qualitative variables that are applicable to cars.
A qualitative variable that is associated with a yes-no classification is called boolean. For example, married/not married is a boolean variable.
Quantitative variables either count or measure on a numerical scale. Examples. Pop- ulation is a quantitative variable of cities. Number of teeth is a quantitative variable of people. Age, height and weight are quantitative variables of people. Temperature is a quantitative variable (of place and time).
A quantitative variable, such as population or number of teeth, that is always a whole number is called discrete. A variable such as age, weight or height that can take a value on a continuous scale is called continuous.
The census appears to have gone against the requirement of non-overlapping categories that I recommended above. The complex (but well-considered) reasons for doing so are discussed at the web site Recommendations from the Interagency Committee for the Review of the Racial and Ethnic Standards, which is at
http : //www.census.gov/population/www/socdemo/race/Directive 15.html
The standards set by the Office of Management and Budget satisfied the government’s needs, but by allowing overlapping categories, the census created some significant book- keeping problems. If we look at these, we can begin to understand why non-overlapping categories are desirable. Consider the following questions:
Projects.
Read the report at the web site mentioned above.
IV. The Reference Class of a Variable.
Some variables only apply to certain limited classes of things. For example, date inaugu- rated makes sense for presidents, but not for other people. Number of calories makes sense for a piece of food, but you don’t measure how many calories a shoe has. Similarly, events of a specific type may have certain special variables attached—magnitude on the Richter scale is a variable that makes sense for earthquakes, but not for sunsets. We will call the class of all those things for which a variable makes sense the reference class of the variable. The members of the reference class are called observational units. Sometimes the reference class is so clear that we don’t even mention it. If the variable is grade earned on a certain quiz in this course, then the reference class is made up of the students who took the quiz. Sometimes the reference class of a variable may be somewhat vague. For example, the variable LSU grade point average makes good sense for most LSU students. But do you need to be enrolled in a degree program to have a GPA? How about those students in their first semester? Do they have a grade point average before the end of the semester? Does a high school student who takes one LSU course after school have an LSU GPA? What we do to sharpen the boundaries depends on what we intend to do with the variable. For example, if we want to compare the average GPA of LSU students with the average GPA of Texas A& M students, we would want to make sure we were averaging comparable groups. We might, for example, restrict the reference class to students who had already earned grades in at least 12 hours and were presently enrolled full time. There are times when the reference class of a variable is restricted to a group smaller than the full collection for which the variable makes sense. The meaning of any summary data about the variable—such as average value (for a quantitative variable) or the percents in various categories (for a qualitative variable)—depends on the reference class. If it is reported that a certain variable has such-and-such an average, or that such-and-such a category occurs in 90% of all cases, then it is important to know the reference class. If, for example, you are told that 9 out 10 patients benefit from a certain drug and your doctor is considering giving it to you, you may well question what the composition of the refernce class was in which the 9-out-of-10 benefit rate ocurred. How similar to the members of the reference class are you? If you are told that the rate of side effects is 5%, does that mean that 5% of the people who take the drug experience side effects, or does it mean that 5% of the times a dose is taken there is a side effect. Does the reference class consist of people taking the drug, or does it consist of the ocasions on which the drug is taken?
V. Measurement Procedure.
The meaning of the data we gather when we measure a variable depends on the procedure used. The name we give the variable may be misleading, because it may suggest a meaning that is only indirectly related to the procedure used to make the measurement.
Example. IQ stands for “Intelligence Quotient”. The name suggests that IQ ought to be a good measure of intelligence. But how is IQ measured? Typically, it’s calculated from a score on a written test of a very special kind. But there are many kinds of intelligence that might not be related to performance on such a test—for example, the ability to