# How to analyze relationship between a nominal variable (2 values) and a numerical variable (integer)?

I'm trying to find out if a nominal variable A (2 values: x and y) and a numerical variable B (integer) are somehow related. E.g., does A=x mean that B will be lower than when A=y. I'm working with SPSS, and I have to admit that I'm not a very skilled statistician. Can anyone explain to me how to approach this?

There are many options. You could code the values of A as 0 and 1 (doesn't matter which, so long as you keep track) and calculate a point-biserial correlation with B, or Spearman's $\rho$, Kendall's $\tau$, or a Goodman–Kruskal $\gamma$ for that matter (good comparison questions to be found here and here). There are hypothesis tests for the difference of these effect sizes from zero.
You could also compare central tendencies of the two independent samples using A as a grouping variable, as by a t-test, Mann–Whitney U, or bootstrap test (you could also bootstrap the aforementioned effect sizes AFAIK). You can then calculate effect sizes from these statistics, including Cohen's d, Hedges' g, a few others, or even the r you'd get from the point-biserial correlation.