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 standardizes 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, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 59, 61, 62, 63,
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 mu y chinotaurwa ne linear relationship ne x — an r of 0.8 gives an R² of 0.64, meaning 64% of the variation is accounted for.
Chii chinofungidzirwa sechisimba chekuenzanisa?
Sezvakaoma chirongo, a r isingasviki 0.3 idiki, pamusoro 0.3 kusvika 0.5 yakaderera, 0.5 kusvika 0.7 yakaderera-ku-kusimba uye pamusoro 0.7 kusimba.
Chii chinonzi negative correlation?
R yakaipa inoratidza kuti zvinhu zviviri zvinofamba munzira dzakasiyana: kana chimwe chinhu chichikwira, chimwe chinhu chine kusimba kwakafanana nechinogona kukwira. 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 zvinosiyana, izvo zvinozoishandura kuita chiyero chisina zviuru.
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
Chiva iyi calculator semahara JSON endpoint - hapana chikuru zvinodiwa. Kutumira nzvimbo zviwanikwa pasi separameter query kana JSON. 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.