To determine the expected value of a determined variable, x, given that you know the relative frequencies (P(xi)), you have to multiply each possible value of x by its corresponding relative frequency, then add all the results:

The possible values of the variable are the ones under column xi, and their corresponding relative frequencies are under column P(xi). The mean value can be calculated as:

The mean or expected value of the scenario shown on the frequency table is 2.16