I-Calculator ye-Potential

Dibanisa iziganeko ezimbini ezizimeleyo ezinokwenzeka: kwaye, okanye, akukho nanye.

%
%
A ne B —
A okanye B —
A kuphela —
B kuphela —
Akukho nanye —
Akukho zombini —

Iinketho ze projekti

Ingaba le calculator ikunika umyalezo olungileyo?

Malunga nale Calculator

This probability calculator takes the chance of two independent events A and B and works out the key combined probabilities: both happening (A and B), at least one happening (A or B), only one of them, and neither happening. It assumes the events are independent, meaning one occurring does not change the chance of the other. Enter each probability as a percentage between 0 and 100.

The rules it applies are the standard ones for independent events: 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).

Worked example: with P(A) = 50% and P(B) = 30%, both happen with probability 0.5 × 0.3 = 15%, at least one happens with probability 0.5 + 0.3 − 0.15 = 65%, and neither happens with probability 0.5 × 0.7 = 35%. These four outcomes always add up to 100%.

Imibuzo ebuza rhoqo

Ndiyifumana njani inokubakho kweziganeko ezimbini ezibini ezibangelwa?

Kwiziganeko ezizimeleyo, uphindaphindo olunokwenzeka: P(A noB) = P(A) · P(B). Isiganeko esingu-50% nesiganeko esingu-30% zombini zikhona yi-0.5 × 0.3 = 0.15, okanye i-15%.

Ithetha ntoni i-independent apha?

I-independent ithetha ukuba i-outcome yemeko enye ayinakubangela utshintsho kwimeko enye - njenge-coin rolls ezimbini ezihlukileyo. Ukuba iziganeko zibangela utshintsho (zixhomekeke), ezi fomula azisebenzi kwaye ufuna ukwenzeka okunokwenzeka okunokwenzeka.

I-"A okanye B" ibalolwa njani?

P(A okanye B) = P(A) + P(B) − P(A no B). Ukususa ukungqubana kunciphisa impumelelo enikezelweyo ekubeni ibalolwe kabini, ngoko ke impumelelo ayizukuba ngaphezulu kwe-100%.

Ndiyifumana njani inokubakho yokuba akukho sizathu sithile esibangelwayo?

Ukuphindaphinda iinzame zesiganeko ngasinye esingabakho: P(ngawo) = (1 − P(A)) × (1 − P(B)). Kwi-50% kunye ne-30% isiganeko esingu 0.5 × 0.7 = 0.35, okanye 35%.

Yintoni utshintsho phakathi kwe "A okanye B" kunye ne "nye kuphela yazo"?

"A okanye B" iquka iimeko apho zombini zisenza, ngelixa "enye kuphela" i excludes. "Enye kuphela" ilingana P (A okanye B) ngaphantsi P (A kunye B), ubalo ezimbini ezikhethekileyo-okanye izigqibo kodwa hayi ukungqubana.

Yintoni ukuba iziganeko ezimbini aziyi kuxhomekeka kunye?

Ezi fomula zithathela ingqalelo ukungabikho kolawulo. Ukuba isiganeko sibangela enye ingozi, kufuneka uqinisekise ukuba ikhona, P( A no B) = P( A) × P( B | A), kwaye le kalkulator izakuchaza ngaphezulu okanye ngaphantsi iinzame ezidityanisiweyo.

Ingaba ezi zinto zinokuthi zidityaniswe zingaphezulu kwe-100%?

Ii-equations ezine ezixhalabisayo - zombini, A kuphela, B kuphela nakunye - zihlala zidibanisa ngokuchanekileyo kwi-100%. Ii-figures ezizimeleyo ezinjenge "A okanye B" zingaba khulu, kodwa aziyi kudlula kwi-100% kuba ukungqubana kususwa.

❤️ Uthando Calculator.Free? Yabelana

𝕏  X Facebook Reddit
API — sebenzisa le calculator ukusuka kwikhowudi

Nceda le khadi lemali njengendawo esemva ye-JSON ekhululekileyo - akukho qhosha lifunekayo. Thumela amaxabiso endawo ezantsi njengeparameter yombuzo okanye i-JSON. Nantoni na oyenzayo isebenzisa okungagqibekanga okufanayo eli phepha ligqityiwe ngaphambili; iparameter engaziwayo yi 400, ayikho i zero ekhululekileyo. Funda i-API epheleleyo →

Incopho yesiphelo

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);

Results are estimates for general guidance only, not financial, medical or tax advice.