by Titus Pullo
Last Updated May 16, 2018 14:19 PM

I need to analyse the results of a survey. Among the different questions I have: *"How happy did you feel last month"*?. There are 5 possible answers:

- Not at all
- Not very
- Somewhat
- Very
- Completely

Now, I would like to measure if there is a correlation between `age`

and `happiness`

. One option is to simply plot the `age`

on the x-axis (from 18 to 99), the `happiness`

values (from 1 to 5) on the y-axis and then check for a possible trend. However, I'd like to have a more rigorous statistical test. Given that `happiness`

is an ordinal variable, would it be wrong to treat it as a `continuous`

variable and calculate either `Pearson`

or `Spearman`

correlation coefficient? If this approach is correct, can it be done for binary variable as well? E.g `gender`

: `Male`

or `Female`

?

- Serverfault Help
- Superuser Help
- Ubuntu Help
- Webapps Help
- Webmasters Help
- Programmers Help
- Dba Help
- Drupal Help
- Wordpress Help
- Magento Help
- Joomla Help
- Android Help
- Apple Help
- Game Help
- Gaming Help
- Blender Help
- Ux Help
- Cooking Help
- Photo Help
- Stats Help
- Math Help
- Diy Help
- Gis Help
- Tex Help
- Meta Help
- Electronics Help
- Stackoverflow Help
- Bitcoin Help
- Ethereum Help