Skip to content
Snippets Groups Projects
Commit 35f12316 authored by rubegar's avatar rubegar
Browse files

Delete confianza.py

parent d17d55f8
No related branches found
No related tags found
No related merge requests found
import math
def confianza(d, alpha,s, n):
nraiz = math.sqrt(n)
C1 = d - (alpha * (s / nraiz))
C2 = d + (alpha * (s / nraiz))
return [C1, C2]
# Ejemplo de uso
d = 7845.77 # Media muestral
alpha = 1.96 # Nivel de confianza
s = 1660.38 # Desviación estandar muestral
n = 87 # Tamaño muestral
probabilidad = confianza(d, alpha, s, n)
print(probabilidad)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment