Está en la página 1de 7

PREGUNTA 3

REDES BAYESIANDAS APLICADAS AL SORTEO DE LA TINKA


LAS REDES BAYESIANAS Y LAS PROBABILIDADES
Las redes Bayesianas usan probabilidades para realizar
los clculos de acuerdo al rbol de decisiones.

NOCIN DE PROBABILIDAD Y TEOREMA DE BAYES


APLICACIN EN EL SOFTWARE ENGINE
MODELO DESARROLLADO
COMPROBACIN CON ALGORITMO
SIMULACIN
ALGORITMO CLIPS

FUENTE EN PYTHON
#!/usr/bin/env python
cant_num=[]
for i in range(4):
cant_num.append(0)
sorteos = int(input("Cantidad de sorteos consecutivos = "))
numeros_tinka = open('numerostinka.txt','r')
act=0
def aumenta(j):
if j == 0:
cant_num[j]+=1
elif j == 1:
cant_num[j]+=1
elif j == 2:
cant_num[j]+=1
else:
cant_num[j]+=1
return
(PHYTON GUI):

También podría gustarte