I-Calculator ye-Probability
Yenza iqembu lezimo ezimbili ezizimele: futhi, noma, noma.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
example, if the probability of two independent events A and B is 50%, then the probability of both events happening is 100%. The probability calculator uses the following rules: P(A and B) = P(A) × P(B); P(A or B) = P(A) + P(B) − P(A and B); P(neither) = (1 − P(A)) × (1 − P(B)); and "only A" is P(A) − P(A and B). A pie chart splits the sample space into the four mutually exclusive outcomes (both, A only, B only, neither).The work example: The probability calculator uses the following rules: P(A) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50% and P(B) = 50% and P(B) = 50% and P(A) = 50% and P(B) = 50%
Imibuzo ebuzwa kaningi
Ngiyithola kanjani inketho yezinto ezimbili eziba khona?
Izimo ezizimele, ukuphindaphinda izici zabo: P(A noB) = P(A) · P(B). I-50% yesimo kanye ne-30% yesimo zombili ezikhona yi-0.5 × 0.3 = 0.15, noma i-15%.
Iyini inkinga?
Ukuzimela kusho ukuthi imiphumela yesigameko esisodwa ayisebenzi kusinye - njengezinhlamvu ezimbili ezihlukanisiwe. Uma izigameko zithintana (zihlobene), lezi fomuli azisebenzi futhi ufuna izici ezifanele.
Ukubalwa kanjani "A noma B"?
P(A noma B) = P(A) + P(B) − P(A ne B). Ukususa ukungqubuzana kunciphisa imiphumela ehlukanisiwe esuka ekuhloleni kabili, ngakho-ke imiphumela ayikwazi ukudlula i-100%.
Ngiyithola kanjani inketho yokuthi akukho lutho oluzokwenzeka?
Ukuphindaphinda izinkinga zesigameko ngasinye esingaba khona: P(akukho) = (1 − P(A)) × (1 − P(B)). Ku-50% no-30% isigameko esingu-0.5 × 0.7 = 0.35, noma 35%.
Yini ushintsho phakathi kwe "A noma B" ne "enye kuphela yazo"?
"A noma B" kufaka phakathi isinqumo lapho zombili zikhona, ngenkathi "enye kuphela" i excludes it. "Yene kuphela" ilingana P (A noma B) minus P (A ne B), ukubalwa kwezimbili ezikhethekile-noma iziphetho kodwa hhayi ukudluliswa.
Yini uma izimo ezimbili zingekho ezizimele?
Lezi fomu zithatha ukuzimela. Uma isinqumo sithinta omunye umuntu, kufanele usebenzise isinqumo esifanele, P(A noB) = P(A) × P(B | A), futhi le kalkuli izobe ichaza ngokugcwele noma ichaza ngokuncane isinqumo esihlangene.
Ingabe lezi zibalo zingaba ngaphezulu kwe-100%?
Izinkomba ezine ezihlukile - zombili, A kuphela, B kuphela nanoma yiziphi - zihlala zihlanganisa ngokugcwele ku-100%. Ama-figures ahlukene njenge "A noma B" angaba mkhulu, kodwa angeke adlule ku-100% ngoba ukungqubuzana kususwa.
API — sebenzisa le calculator kusuka kukhodi
Nquma le kalkuli njengendawo ephelezelwa i-JSON - akukho isitshixo esidingekayo. Thumela amaxabiso endawo ngezansi njengepharamitha yombuzo noma i-JSON. Funda i-API egcwele →
Ingxenye yendawo
GET https://calculator.free/api/v1/probability/
curl
curl "https://calculator.free/api/v1/probability/?pa=50&pb=30"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/probability/?" + new URLSearchParams({
"pa": "50",
"pb": "30"
}));
const data = await r.json();
console.log(data.results);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.