Kuenzanisa Coefficient Calculator
Calculate Pearson’s r pakati pezviuru zviviri zvemazita.
Zvinyorwa zvinogadziridzwa paunenge uchinyora.
Nezve iyi kalkulator
Pearson’s correlation coefficient (r) is a measure of the strength and direction of the linear relationship between two variables, ranging from −1 (perfect negative) through 0 (no linear relationship) to +1 (perfect positive). It is found by dividing the covariance of x and y by the product of their standard deviations, which standardises the result into that fixed −1 to +1 range. It needs at least two pairs, and the result is undefined if either variable never changes. It needs at least two pairs, and the result is undefined if either variable never changes. It needs at least two pairs, and the result is plotted with its best-fit line. Worked example: for x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 6 the points trend upward together, giving r ≈ 0.85 — a strong positive correlation — and r² ≈ 0.73, meaning about 73% of the variation in y.Worked example: for x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 6, 7Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2, 3, 4, 5, 6Worked example: for x = 1, 2,
Zvimwe zvinobvunzwa zvakanyanya
Chii chinonzi correlation coefficient?
Kuenzanisa kwezviyero zvinotiudza kuti zvinhu zviviri zvinochinjana sei munzira imwe chete. Maonero anenge asiri pedyo ne +1 kana -1 anoreva kuti kune simba rehukama hwekukurumidza, asi maonero anenge asiri pedyo ne0 anoreva kuti hapana kana kuti hakuna kuwirirana kwekukurumidza. Chiratidzo chinoratidza nzira yehukama.
Chii chinonzi correlation?
Hapana. A high correlation inoratidzwa maviri variations kukwira pamwe chete asi kwete kuti mumwe anokonzera mumwe. A yakachengeteka wechitatu chikonzero, kana zvakajairika, anogona kuumba simba correlation pasina causal link.
Chii chinonzi R²?
R² i square ye correlation coefficient.Ini ndicho chikamu chekuchinja kwey chinotaurwa nechimiro chekubatanidza nex — r ye0.8 inotipa R² ye0.64, zvinoreva kuti 64% yekuchinja kwacho kwataurwa.
Chii chinofungidzirwa sechisimba chekuenzanisa?
Sezvakaoma mutemo, a r isingasviki 0.3 idiki, pamusoro 0.3 kusvika 0.5 yakaderera, 0.5 kusvika 0.7 yakaderera-ku-kukurumidza uye pamusoro 0.7 kuoma.
Chii chinonzi negative correlation?
R yakaipa inoratidza kuti zvinhu zviviri zvinofamba munzira dzakasiyana: kana chimwe chinhu chichikwira, chimwe chinhu chichikwira. R yakaipa ye-0.9 inoratidza kuti zvinhu zviviri izvi zvinofamba munzira dzakasiyana.
Chii chinonzi chiyero pakati pekuenzanisa uye kuchinja?
Covariance inoongorora kuti zvinhu zviviri zvinosiyana sei pamwe chete asi kureba kwayo kunoenderana nezviuru zvavo, saka zvinonetsa kunyatsoitaura. Pearson’s r icho chiyero chekuenzanisa chinoparadzwa nezviuru zviviri zvezviyero zvezviyero, izvo zvinoishandura kuita zviuru zviviri zvisina kukwana, zvichibva pa-1 kusvika pa-1.
Sei regression line anotaura nezvekuenzana?
The least-squares regression line imwechete ndiyo yakanyanyisa inonyatsofananidza zviratidzo, uye kukwira kwayo kunobatana ne r. Kuenzana kunotaura kuti zviratidzo zvinoramba zvakavhara sei iyo line, asi r² inokuudza kuti ndeipi chikamu chekuchinja kweline chinotaura.
API — kushandisa iyi kalkulator kubva code
Nhare iyi calculator semahara JSON endpoint - hapana chikuru zvinodiwa. Kutumira nzvimbo mavara pasi separameter query kana JSON. Chii zvachose chaunoisa kunze chinoshandisa default iyo peji iri rakasviba nayo; parameter isiri yechokwadi inonzi 400, uye haisi zero. Tora yakazara API docs →
Endpoint
GET https://calculator.free/api/v1/correlation-coefficient/
curl
curl "https://calculator.free/api/v1/correlation-coefficient/?x=1, 2, 3, 4, 5&y=2, 4, 5, 4, 6"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/correlation-coefficient/?" + new URLSearchParams({
"x": "1, 2, 3, 4, 5",
"y": "2, 4, 5, 4, 6"
}));
const data = await r.json();
console.log(data.results);
Zviratidzo zvemubvunzo ndezvekufungidzira kwechinangwa chekudzidzisa chete, kwete zvemari, zvehutano kana zvemari.