4
$\begingroup$

Suppose I collect a lot of data from a group of persons, like

  • their height
  • their weight
  • color of eyes (chosen from eg the four categories blue/brown/black/other)
  • sex
  • day of the week the measurement was done

and I want to find which of the above data correlates with height.

For weight, I can image how that goes: just make the (x,y) set and measure stuff like Pearson's correlation. But I get stuck for things like 'colors of eyes' where there's no natural way to order them, or binary data like sex. Also for day of the week (where I'd like to find no correlation at all) but I wouldn't know how to order them.

How do I do this?

$\endgroup$

2 Answers 2

3
$\begingroup$

There are lots of textbooks under headings like "Categorical Data Analysis", "Non-Parametric Statistics", et cetera, and all the standard statistical packages — GenStat, SAS, SPSS, and other names that will make me sound real ancient if I mention them — will have lots of practical advice about their usage on this kind of data.

$\endgroup$
2
$\begingroup$

I think sex can be written as a yes/no question. Female = 1. Male = 0.

You can extend this to eye color. Blue eyes: yes/no. Green eyes: yes/no. Brown eyes: yes/no. One variable like eye color becomes three variables that are either 0 or 1. This gives you a lot of variables but you can do numerical things with them.

Sometimes it makes sense to look at these variables as the probability of being male, having green eyes or whatever.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .