2 The random variable \(X\) has the probability distribution shown in the table.
| \(x\) | 2 | 4 | 6 |
| \(\mathrm { P } ( X = x )\) | 0.5 | 0.4 | 0.1 |
Two independent values of \(X\) are chosen at random. The random variable \(Y\) takes the value 0 if the two values of \(X\) are the same. Otherwise the value of \(Y\) is the larger value of \(X\) minus the smaller value of \(X\).
- Draw up the probability distribution table for \(Y\).
- Find the expected value of \(Y\).