Info

This question is closed. Reopen it to edit or answer.

Suppose that X is a discrete random variable with the probability mass function Given by: p(x) = i/15 where i = 1, 2, 3, 4, 5. Determine the mean E(x) Determine Variance

2 views (last 30 days)

nSuppose that X is a discrete random variable with the probability mass function
n Given by: p(x) = i/15 where i = 1, 2, 3, 4, 5.
nDetermine the mean E(x)
nDetermine Variance Var(x)

  2 Comments
Steven Lord
Steven Lord on 2 Oct 2025
This sounds like a homework assignment. If it is, show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty and we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Torsten
Torsten on 2 Oct 2025
Edited: Torsten on 2 Oct 2025
Just use the definitions of E(X) and Var(X):
E(X) = sum_{i=1}^{i=5} i * p(X = i)
Var(X) = sum_{i=1}^{i=5} (i - E(X))^2 * p(X = i)

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!