Te tātaitai tūponotanga
Ko te pahekotanga o ngā tūponotanga takahanga takitahi e rua: me, kāore rānei, kāore rānei.
Ka whakahōutia ngā hua i te wā e tātuhi ana.
Mo tēnei tātaitai
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).There are two different probability calculators: the one that works with the random variables and the one that works with the random variables. The first is the random variable calculator.The second is the random variable calculator.The first is the random variable calculator.The second is the random variable calculator.The second is the random variable calculator.The third is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The second is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The fourth is the random variable calculator.The four
Ko nga pātai e pā ana
He pēhea te kimi i te tūponotanga o ngā takahanga e rua e puta ana?
Mō ngā takahanga takitahi, whakarea ō rātou tūponotanga: P(A me B) = P(A) × P(B). He takahanga 50% me tētahi takahanga 30% e puta ana, 0.5 × 0.3 = 0.15, 15% rānei.
He aha te tikanga o te rangatiratanga i konei?
Ko te tikanga o te rangatira ko te hua o tētahi takahanga kāore he pānga ki tētahi atu — pēnei i ngā tāruatanga takirua o ngā tāruatanga. Mēnā ka pā ki a rātou anō ngā takahanga (he whakawhirinaki), kāore ēnei tātai e pā ana, ā, e hiahiatia ana e koe ngā tūponotanga ā-whakahaere.
He pēhea te tatau i te "A, B rānei"?
P(A, B rānei) = P(A) + P(B) − P(A me B). Ko te tangohanga o te whakawhānuitanga ka ārai i te hua tiritiri mai i te tatautanga e rua, nō reira kāore te hua i te nui ake i te 100%.
He pēhea te kimi i te tūponotanga kāore e puta ai tētahi takahanga?
Whakarea ngā tūponotanga o ia takahanga kāore e puta: P (kore) = (1 − P(A)) × (1 − P(B)). Mō tētahi 50% me tētahi takahanga 30% ko 0.5 × 0.7 = 0.35, 35% rānei.
He aha te rerekētanga i waenganui i te "A, B rānei" me te "kotahi anake o rātau"?
Kei roto i "A, B rānei" te take e puta ai ngā mea e rua, i te wā e whakawātea ana "tētahi anake". "Tērā anake" e ōrite ana ki P(A, B rānei) whakaiti i P(A me B), e tatau ana i ngā hua tārua-kore, engari kāore i te whakawātea.
He aha mēnā kāore ngā takahanga e rua i te takitahi?
Mēnā ka pā te kotahi takahanga ki te atu, ka hiahiatia e koe te tūponotanga ā-whakahaere, P(A me B) = P(A) × P(B | A), ā, ka whakapūtātia e tēnei tātaitai, ka whakapūtātia rānei ngā tūponotanga whakakotahi.
Ka taea e ēnei tūponotanga te tāpiri ki te nui ake i te 100%?
Ko ngā hua e whā i whakawāteatia ai - e rua, A anake, B anake, kāore rānei - ka tāpiri tonu ki te 100%. Ka taea e ngā tau takitahi pēnei i te "A, B rānei" te nui, engari kāore i te nui ake i te 100% nā te mea ka tangohia te whakawhānuitanga.
API — whakamahi tēnei tātaitai mai i te waehere
E kī ana tēnei tātaitai hei wāhi mutunga kore JSON - kāore he kī e hiahiatia ana. Ka tukuna ngā uara āpure i raro nei hei tohutoro pātai, JSON rānei. Ka pānui te papatono API katoa →
Whakamutunga
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);
Ko ngā hua he whakataunga mō te tohutohu ahuwhānui anake, ehara i te tohutohu moni, rongoā, tāke rānei.