Hi Team

I have a doubt regarding calculation of E[S^2]. Below is my code.I am getting 1.33 as expected value of sample variance but Sir says it as 1.944.Can you help me find bug in my code

The same logic works well for continuous distribution.I see 0.667 which is close to the value sir has mentioned(0.665)