Bernoulli distribution is the one where categorical atribution has two possible values {x1,x2}, the probability mass function is p1 if value is x1 and p2 if value is x2, where p1+p2=1. Median would be 1 if p1 probability is higher than p2, 0 if p2 probability is higher than p1, and 0,5 if both p1 and p2 probability are equal. Mode would be 1 if p1 probability is higher and p2, 0 if probability of p2 is higher than p1 or both p1 and p2 if they are equally likely. Variance would be p*q.
Example: on a tv show a random guy have to take out from a bag a ball, there arre 8 red ball and two blue balls, he would only win if he take a blue ball, he just have a single attempt. Which is the mode, the median and the variance in this case?.
blue probability = 0,8
red probability = 0,2
Mode = 1
Median = 1
Variance =0.8*0,2= 0,16
No hay comentarios:
Publicar un comentario