Nhazi
Ihe n'etiti ndesịta abụọ nke nọmba.
Nhọrọ ndị ahụ ga-akpụzi mgbe ị na-etipụta.
N'ihe banyere calculator a
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,
Ajụjụ ndị a na-ajụkarị
Gịnị ka ọbụna-n'omume na-ekwu m?
O na-egosipụta otu n'ime ụzọ abụọ váìlì na-akpụga n'otu n'otu n'ụdị laịnụ́. Valiu ndị dị nso na +1 mọọbụ -1 na-egosi njikọ lineari siri ike, ebe valiu ndị dị nso na 0 na-egosi na ọ bụghị njikọ lineari. Nnukwu akara na-egosi ụzọ nke njikọ ahụ.
Ọ bụ na ọbụna ihe ndị dị n'ime ya bụ ihe na-eme ka ọ bụrụ ihe?
Ọ dịghị. N'ihe nchọgharị elu a na-egosi na váìraịlụ abụọ na-akpụga n'otu n'otu ma ọ bụghị na otu na-eme ka nke ọzọ. Ónyénwē nke atọ a na-echekwa, mọọbụ nchọgharị nke ọma, nwere ike imepụta nchọgharị siri ike na-enweghị njikọ causal.
Gịnị bụ R²?
R² bụ square nke n'omume n'omume. Ọ bụ ọnụọgụgụ nke mgbanwe na y ekọwapụtara site na n'omume na x - r nke 0.8 na-enye R² nke 0.64, nke pụtara na 64% nke mgbanwe ahụ bụ n'ihe a na-atụle.
Gịnị bụ ihe na-ewere dị ka n'omume na-emetụtara?
As a rough guide, an absolute r below 0.3 is weak, around 0.3 to 0.5 moderate, 0.5 to 0.7 moderate-to-strong and above 0.7 strong. This calculator labels the strength for you, but sensible cutoffs vary by field.
Gịnị bụ ihe n'emeghị n'aka?
N'ihi na r na-egbochi bụ na vaịntaịra na-akpụgharị n'ụzọ dị iche: dịka otu na-akpụgharị ọzọ na-akpụgharị. r nke −0.9 bụ n'ụzọ dị ike dịka njikọ linear dị ka +0.9, na-atụgharị naanị n'ụzọ.
Gịnị bụ ọdịiche dị n'etiti nkwekọrịta na covariance?
Covariance na-enyocha otú vaịntaịra abụọ na-agbanwe n'otu oge ma ọ bụ ọbụla nke nha ya na-adabere na yunit ha, ya mere ọ dị mfe ịkọwa. Pearson's r bụ covariance nke a hapụrụ site na standard deviations abụọ, nke na-ewepụ ya n'ime yunit-free -1 ruo +1.
Olee otú regression line na-emetụtara n'ihe gbasara?
Ótù ala-squares regression line bụ ụzọ n'ụzọ atọ nke na-adaba n'ihe ngosi ahụ, nakwa ótù ya na-ekewapụta akara ya na r. Ọrụ ahụ na-agwa gị ka esi etinye ihe ngosi ahụ n'ihe ngosi ahụ, ebe r² na-enye gị akụkụ nke mgbanwe nke ọ̀sọ̀.
API — jiri kaadị a site na kóòdù
Kpọọ kalkulata a dịka ebe ngwụcha JSON n'efu - enweghị kii achọrọ. Ziga valiu mpaghara ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Gụọ ngwe ndị ahụ niile →
Ebemkpofuozi
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);
Ihe a na-ahụta bụ n'ihi nlekọta n'ozuzu ya, ọ bụghị nlekọta ego, ọgwụ ma ọ bụ nlekọta ego.