Te ārai o te tātaitai hapa
Ka kitea te rohe hapa o te ōwehenga rangahau.
Ka whakahōutia ngā hua i te wā e tātuhi ana.
Mo tēnei tātaitai
a percentage it is z*·√(p(1 − p) / n), where p is the sample proportion, n the sample size and z* the critical value for your confidence level (1.96 for 95%). The default 50% proportion gives the most conservative (largest) margin, because the quantity p(1 − p) peaks at p = 0.5, which is why pollsters often quote it. To halve that margin you would need roughly four times the sample. To halve that margin you would need roughly four times the sample. The default 50% proportion gives the most conservative (largest) margin, because the quantity p(1 − p) peaks at p = 0.5, which is why pollsters often quote it. The default 50% margin of error is 1.96 × 0.5 × 0.5 ÷ 1000 ≈ 0.0158.It reports the margin of error.Worked
Ko nga pātai e pā ana
He aha te take e whakaiti ana te tauira nui ake i te rohe hapa?
Ka whakaiti te rohe ki te pūtake tapawhā o te rahi tauira, nā reira e whā nga haurua o te rohe hapa. Ko te take o tēnei whakaititanga ko te take e hiahiatia ana ngā tauira tino nui hei whakaiti i te rohe ki raro iho i te kotahi, e rua rānei ngā wāhi ōrautanga.
He aha te 50% te ōrautanga pūmau?
Ko te nui p (1 − p) te nui rawa i p = 0.5, nō reira ko te whakaaro i tētahi wehenga 50/50 e whakaputa ana i te mokowā whānui rawa, te āhua o te hapa tino mārō.
He pēhea te tatau i te rohe o te hapa?
Whakarea te uara hira z * mō tō tātau taumata whakaponotanga e te pūtake tapawhā o p (1 − p) ÷ n. Mō p = 0.5, n = 1000 me te whakaponotanga 95%, ko 1.96 × √(0.25 ÷ 1000) ≈ 3.1 ngā pūtau ōrautanga.
He aha te rerekētanga i waenganui i te rohe hapa me te wā whakaū?
Ko te roanga o te hapa-whānui; ko te wā o te whakapono ko te awhe katoa e whiwhi ana ki te tāpiri me te tango i te roanga mai i tō tātou hua. Ko te hua 48% me te roanga 3-pū e tuku ana i tētahi wā o te whakapono o te 45% ki te 51%.
E hiahiatia ana e te iwi whānui ake he rohe hapa nui ake?
Kāore. I tua atu i ētahi mano ngā tāngata, kāore te rahi o te iwi whānui e pā ana ki te mārō - ko te mea e hira ana ko te rahi tauira. Ko te take ka taea e te poipoi ā-motu me te poipoi taone te tiritiri i te mārō ōrite me te tau ōrite o ngā kaiwhakautu.
He pēhea te huringa o te taumata whakapono i te rohe o te hapa?
Ko te taumata whakaponotanga tiketike ake e whakamahi ana i tētahi z* nui ake, e whakawhānui ana i te rohe. Ko te neke mai i te 95% (z* = 1.96) ki te 99% (z* = 2.576) e whakanui ana i te rohe e tata ana ki te 31% mō te tauira ōrite.
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/margin-of-error/
curl
curl "https://calculator.free/api/v1/margin-of-error/?n=1000&p=50&conf=1.96"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/margin-of-error/?" + new URLSearchParams({
"n": "1000",
"p": "50",
"conf": "1.96"
}));
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.