Tutti i valori in centesimi.
* C = {50, 80, 110} [C come carboidrati]
* L = {280, 310, 340, 410} [L come lipidi]
* S = C + L = {330, 360, 360, 390, 390, 390, 420, 420, 450, 460, 490, 520} [S come spesa]
------------------------------
L'enigmatica frase finale "Variabile casuale: X = «somma spesa»." che mai vorrà dire?
Interpretandola, MOLTO liberamente, ritengo che sia una richiesta delle principali statistiche descrittive sull'insieme S.
Se è così, allora
* n = |S| = 12
* T = Σ s = 4980
* μ = T/n = 415
* Me = (s[6] + s[7])/2 = (390 + 420)/2 = 405
* ξ = {(s[i] - μ)} = {- 75, - 45, - 45, - 15, - 15, - 15, 15, 15, 45, 55, 85, 115}
* ξ^2 = {(s[i] - μ)^2} = {5625, 2025, 2025, 225, 225, 225, 225, 225, 2025, 3025, 7225, 13225}
* D = Σ ξ^2 = 36300
* σ^2 = D/n = 36300/12 = 3025
* σ = √(D/n) = 55