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'ime laịị dị n'otu. Valiu ndị dị nso na +1 mọọbụ -1 na-egosi njikọ lineari siri ike, ebe valiu ndị dị nso na 0 na-egosi obere ma ọ bụ enweghị 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áìlìbàrị abụọ na-akpụga n'otu n'otu ma ọ bụghị na otu na-eme ka nke ọzọ. Ógé a na-echekwa nke atọ, mọọbụ nchọgharị n'ógé, nwere ike imepụta ihe 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 n'omume na x - r nke 0.8 na-enye R² nke 0.64, nke pụtara na 64% nke mgbanwe a na-enyocha ya.
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: 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ụna ọbụna 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 ka +1.
Olee otú regression line na-emetụtara n'ihe gbasara?
Ótù ala-squares regression line bụ ụzọ mkpirisi n'ótù nke na-ahazi ihenhọrọ ndị ahụ nke ọma, nakwa n'ótù ya na-ekewapụta akara ya na r. Ọrụ ahụ na-agwa gị ka esi etinye ihenhọrọ ndị ahụ n'ótù ahụ, ebe r² na-enye gị akụkụ nke mgbanwe nke ótù ahụ na-egosi.
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 ebe ahụ n'okpuru dịka paramita ajụjụ mọọbụ JSON. Ihe ọbụla ị na-ewepụ na-eji dìfọ́ọ̀ltụ̀ nke a na-edebe ihuakwụkwọ a na ya; parameter a na-amaghị bụ 400, ọ dịghị sẽọ̀rọ̀. 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.