How we are taking e(x)=1/p

how we are taking e(x)=1/p
and what does expectation means

Hey @uditkumar652 Expectation is the weighted average value of a random variable.
Lets say you want to find out the expected value of the die’s outcome.
Then it can be calculated as 1*(1/6) + 2*(1/6) + 3*(1/6) +4*(1/6) +5*(1/6) +6*(1/6)
For more on expectation ,check out this https://www.rapidtables.com/math/probability/Expectation.html

And as for why e(x)=1/p see this https://www.cut-the-knot.org/Probability/LengthToFirstSuccess.shtml

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.