2025-02-10. No notes, no electronic devices. Provide code
for full credit, pseudo-code/math/words for partial credit, and a pretty
drawing no more than zero credit.
E[X]=x∈S∑x⋅f(x)
Suppose X∼Bernoulli(p=0.25),
with density function
f(x)=px(1−p)(1−x)
where S={0,1}. Calculate
E[X].
Suppose X∼F, with density function
f(x) where S={1,2,3} and
f(1)=0.2,f(2)=0.5,f(3)=0.3. Calculate
E[X].