Mpikirakira ny mety ho nitranga
Ny fiteny roa dia samy manana ny toetra roa: ny iray dia tsy azo lazaina na tsy azo lazaina.
Manova ny valin'ny fanoratanao.
Momba ity kapila ity
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%.
Fanontaniana matetika
Ahoana no ahafahako mahita ny mety hisian'ny zava-mitranga roa samy mitranga?
For independent events, multiply their probabilities: P(A and B) = P(A) · P(B). A 50% event and a 30% event both occurring is 0.5 × 0.3 = 0.15, or 15%.
Inona no dikan'ny hoe mahaleotena eto?
Ny hoe mahaleotena dia midika fa tsy misy fiantraikany amin'ny hafa ny vokatry ny zava-mitranga iray — toy ny hoe mivoaka ny vola roa miavaka. Raha mifampiankina (miankina) ireo zava-mitranga ireo, dia tsy mihatra ireo lasitra ireo ary mila mety ho mety misy fepetra ianao.
Ahoana no fomba fandaniana ny "A na B"?
Ny P(A na B) = P(A) + P(B) − P(A sy B). ny fanesorana ny fifampiraharahana dia misoroka ny voka-piaraha-miasa tsy ho voaisa indroa, ka ny voka-piaraha-miasa tsy ho mihoatra ny 100%.
Ahoana no ahafahako mahita ny mety ho mety tsy hisian'ny zava-mitranga?
Multiply the chances of each event not happening: P(neither) = (1 − P(A)) × (1 − P(B)). For a 50% and a 30% event that is 0.5 × 0.7 = 0.35, or 35%.
Inona no fahasamihafana misy eo amin'ny "A na B" sy ny "iray amin'izy ireo ihany"?
Ny "A na B" dia ahitana ny tranga izay mitranga ny roa, raha ny "iray ihany" dia manaisotra izany. "Iray ihany" mitovy P (A na B) latsaka P (A sy B), ny fanisana ny roa tsy misy na ny iray na ny hafa vokany fa tsy ny fifampitokisana.
Inona no ho lazaina raha tsy miavaka ireo hetsika roa ireo?
Raha misy zavatra iray miantraika amin'ny zavatra hafa dia mila ny mety hitranga amin'ny fepetra ianao, P(A sy B) = P(A) × P(B | A), ary ity milina fanisana ity dia haneho ny mety hitranga amin'ny fomba mitombo na mihena.
Afaka mitombo mihoatra ny 100% ve ireo mety hitranga ireo?
Ireo voka-dratsin'ny efatra mifampikasoka amin'ny iray hafa — samy samy, A ihany, B ihany ary tsy misy — dia mitambatra hatrany amin'ny 100% marina.Ny tarehimarika tsirairay toy ny "A na B" dia mety ho lehibe, saingy tsy mbola mihoatra ny 100% izy ireo satria ny fifandonana dia ahena.
API — mampiasa io milina fanisana io avy amin'ny rindran'asa
Antsoy ho toy ny farany JSON malalaka ity milina fanisana ity - tsy mila famaha. Mandefa ireo sanda eo amin'ny sehatr'asa etsy ambany ho toy ny mpizaratry ny fanontaniana na JSON. Ny zavatra tsy voalaza dia mampiasa ny sanda tsotra efa nameno ity pejy ity; 400 ny sanda tsy fantatra, tsy aotra tsy misy feo. Vakio ny tahirin-kevitra API feno →
Endpoint
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);
Ny voka-pikarohana dia natao ho an'ny torohevitra ankapobeny ihany, tsy torohevitra ara-bola, ara-pitsaboana na ara-bola.