I-Calculator ye-Correlation Coefficient
Bhala i-r ye-Pearson phakathi kwezinhlamvu ezimbili ezibhalwe ngezansi.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
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. The calculator returns r, the coefficient of determination r², the covariance, and the least-squares regression line (slope and intercept), and plots the data with its best-fit line. Worked example:Enter paired x and y values in the same order; the two lists must have the same number of values. The calculator returns r, the coefficient of determination r², the covariance, and the least-squares regression line (slope and intercept), plus a plain-English reading of the strength, and plots the data with its best-fit line.Worked example:Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;Enter paired x and y values in the same order;
Imibuzo ebuzwa kaningi
Yini okushoyo i-correlation coefficient?
Ichaza ukuthi zingakanani iziguquki ezimbili ezihamba ndawonye emgqeni oqondile. Amaxabiso aphakathi kuka +1 noma -1 abonisa ubudlelwane obuqinile obuhamba phambili, kanti amaxabiso aphakathi kuka 0 abonisa ubudlelwane obuncane noma obungena phambili. Isibonakaliso sibonisa indlela yobudlelwane.
Ingabe ukuhambisana kusho ukuveza?
Akukho. Ukuhambisana okuphezulu kubonisa ukuthi ama-variables amabili ahamba ndawonye kodwa hhayi ukuthi omunye ubangela omunye. Umphumela wesithathu ofihlakele, noma ukuhambisana okuphelele, kungadala ukuxhumana okuqinile ngaphandle kokuxhumana okuholela.
Yini i-R²?
R² yisikwere se-correlation coefficient. Yingxenye yoshintsho e-y echazwe ngokuxhumana okuqondile ne-x — r ka-0.8 inikeza u-R² ka-0.64, okusho ukuthi i-64% yoshintsho ithathwa njengento ebalulekile.
Yini ebalwa njenge-correlation enamandla?
Njengendlela elula, i-r ephansi kuka-0.3 iphansi, 0.3 kuya ku-0.5 iphakathi, 0.5 kuya ku-0.7 iphakathi-kuya-kunamandla futhi ngaphezu kuka-0.7 inamandla. Le kalkuli iphawula amandla akho, kodwa ama-cutoffs afanele ahluka ngokwendawo.
Yini okushoyo ukuxhumana okubi?
I-r elahlekile isho ukuthi iziguquki zihamba ngezinhlangothi ezihlukile: njengoba enye ikhula enye ivame ukuwa. I-r ye-−0.9 inamandla okuxhumana okuqondile njenge +0.9, ishintshwe kuphela ngesivinini.
Yini ushintsho phakathi kokuxhumana ne-covariance?
I-Covariance ilinganisela ukuthi kanjani iziguquki ezimbili zishintshana ndawonye kodwa ubukhulu bayo buxhomekeke eziyunithini zabo, ngakho kunzima ukuchaza. I-r ye-Pearson yi-covariance ehlukaniswe ngezigaba ezimbili ezijwayelekile, ezizoyiguqula ibe yiyunithi ekhululekile -1 kuya +1.
Ingabe i-regression line ihlobene kanjani nokuxhumana?
I-line yokubuyela emuva encane-eyisikwere yi-line eqondile elungele kakhulu amaphuzu, futhi ukuphakama kwayo kuhlukaniswa uphawu lwayo ne-r. Ukuqhathaniswa kutshela ukuthi amaphuzu abamba umgwaqo, ngenkathi i-r² inikeza inhlanganisela yoshintsho lomgwaqo ochazayo.
API — sebenzisa le calculator kusuka kukhodi
Nquma le kalkuli njengendawo ephelezelwa i-JSON - akukho isitshixo esidingekayo. Thumela amaxabiso endawo ngezansi njengepharamitha yombuzo noma i-JSON. Funda i-API egcwele →
Ingxenye yendawo
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);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.