What we are solvingX takes the values 1, 2, ..., n with P(X=x)=10xThe mean E(X) is 3We need nChapter: ProbabilityTopic: discrete random variables, expectationConcept and formulasE(X)=∑xP(X=x)Sum of squares12+22+⋯+n2=6n(n+1)(2n+1)Also all probabilities add to 1∑P(X=x)=1WorkingUse the meanE(X)=x=1∑nx⋅10x=101x=1∑nx2101⋅6n(n+1)(2n+1)=3n(n+1)(2n+1)=180Try whole numbersn=4:4×5×9=180✓So n=4Check that it is a valid distribution101+2+3+4=1010=1✓Check the meanE(X)=101+4+9+16=1030=3✓Answer:n=4Tip: Always check that the probabilities add to 1 with your n