I'm revising probability questions after taking a break from that area for several years. I've put together a simplified version of my question and attached the probabilities as a table if that is easier to read. My question is, if you're given a distribution with negative values, do you still find the expected value and variance using the standard formula that I've put together below? I can't recall ever having seen an example with negative values before, so I was wasn't sure if it was a trick question. Also, does anyone know how to enter problems like this into Wolfram Alpha, so that I can check I got the right expected value and variance as I go through my revision problems? Expected value is usually straight forward enough, but variance calculations are so easy to mess up. Thanks!
E(X) = -1*0.4 + 1*0.35 + 3*0.25 = 0.7