Калькулятор вероятности трех событий

@import url('https://fonts.googleapis.com/css?family=Droid+Serif|Raleway');

.axis--y .domain { display: none; }

h1 { color: black; text-align: center; margin-top: 15px; margin-bottom: 0px; font-family: 'Raleway', sans-serif; }

h2 { color: black; font-size: 20px; text-align: center; margin-bottom: 15px; margin-top: 15px; font-family: 'Raleway', sans-serif; }

p { color: black; text-align: center; margin-bottom: 15px; margin-top: 15px; font-family: 'Raleway', sans-serif; }

words_intro {

color: black; font-family: Raleway; max-width: 550px; margin: 25px auto; line-height: 1.75; }

words_outro {

color: black; font-family: Raleway; max-width: 550px; margin: 25px auto; line-height: 1.75; }

words {

color: black; font-family: Raleway; max-width: 550px; margin: 25px auto; line-height: 1.75; padding-left: 100px; }

calcTitle {

text-align: center; font-size: 20px; margin-bottom: 0px; font-family: 'Raleway', serif; }

hr_top {

width: 30%; margin-bottom: 0px; margin-top: 10px; border: none; height: 2px; color: black; background-color: black; }

hr_bottom {

width: 30%; margin-top: 15px; border: none; height: 2px; color: black; background-color: black; }

.input_label_calc { display: inline-block; vertical-align: baseline; width: 350px; }

#button_calc { border: 1px solid; border-radius: 10px; margin-top: 20px; padding: 10px 10px; cursor: pointer; outline: none; background-color: white; color: black; font-family: 'Work Sans', sans-serif; border: 1px solid grey; /* Green */ }

#button_calc:hover { background-color: #f6f6f6; border: 1px solid black; }

.label_radio { text-align: center; } Этот калькулятор находит вероятности, связанные с тремя событиями A , B и C.Просто введите вероятности для трех событий в поля ниже, а затем нажмите кнопку «Рассчитать». Вероятность события А Вероятность события B Вероятность события C  P(происходят все события) = 0,045000

P (ни одно из событий не происходит) = 0,210000

P(Произошло хотя бы одно событие) = 0,790000

P (происходит ровно одно событие) = 0,475000

function calc() { //get input values and calculate WHIP var a = document.getElementById('a').value*1; var b = document.getElementById('b').value*1; var c = document.getElementById('c').value*1;

var all = a*b*c; var none = (1-a)*(1-b)*(1-c); var atleast1 = 1-none; var exactly1 = ((a)*(1-b)*(1-c)) - (-(1-a)*(b)*(1-c)) - (-(1-a)*(1-b)*(c)); //output document.getElementById('all').innerHTML = all.toFixed(6); document.getElementById('none').innerHTML = none.toFixed(6); document.getElementById('atleast1').innerHTML = atleast1.toFixed(6); document.getElementById('exactly1').innerHTML = exactly1.toFixed(6); }

Замечательно! Вы успешно подписались.
Добро пожаловать обратно! Вы успешно вошли
Вы успешно подписались на кодкамп.
Срок действия вашей ссылки истек.
Ура! Проверьте свою электронную почту на наличие волшебной ссылки для входа.
Успех! Ваша платежная информация обновлена.
Ваша платежная информация не была обновлена.