Skip to main content

Correlation and Regression Example

 

Numerical Example – Karl Pearson’s Correlation Coefficient (r)

Correlation and Regression 

Find the coefficient of correlation between X and Y.

X246810
Y13468


🔹 Step 1: Formula

r=nXYXY[nX2(X)2][nY2(Y)2]r = \frac{n\sum XY - \sum X \sum Y}{\sqrt{[n\sum X^2 - (\sum X)^2][n\sum Y^2 - (\sum Y)^2]}}

🔹 Step 2: Prepare Calculation Table

XYXY
21412
4316912
64361624
86643648
1081006480

Now compute totals:

X=30\sum X = 30 Y=22\sum Y = 22 X2=220\sum X^2 = 220 Y2=126\sum Y^2 = 126 XY=166\sum XY = 166 n=5n = 5



🔹 Step 3: Substitute in Formula

Numerator:

5(166)(30)(22)5(166) - (30)(22) =830660=170= 830 - 660 = 170

Denominator:

[5(220)302][5(126)222]\sqrt{[5(220) - 30^2][5(126) - 22^2]} =[1100900][630484]= \sqrt{[1100 - 900][630 - 484]} =(200)(146)= \sqrt{(200)(146)} =29200= \sqrt{29200} =170.88= 170.88

🔹 Step 4: Final Answer

r=170170.88r = \frac{170}{170.88} r0.995r ≈ 0.995

✅ Interpretation:

There is a very strong positive correlation between X and Y.


2️⃣ Numerical Example – Spearman’s Rank Correlation (ρ)

Developed by Charles Spearman.




🔹 Question

Two judges ranked 5 students as follows:

StudentABCDE
Judge 112345
Judge 221435

Find Spearman’s rank correlation coefficient.


🔹 Step 1: Formula

ρ=16d2n(n21)\rho = 1 - \frac{6\sum d^2}{n(n^2 - 1)}

🔹 Step 2: Compute d and d²

StudentR₁R₂d = R₁ − R₂
A12-11
B2111
C34-11
D4311
E5500
d2=4\sum d^2 = 4 n=5n = 5

🔹 Step 3: Substitute in Formula

ρ=16(4)5(251)\rho = 1 - \frac{6(4)}{5(25 - 1)} =1245(24)= 1 - \frac{24}{5(24)} =124120= 1 - \frac{24}{120} =10.2= 1 - 0.2 ρ=0.8\rho = 0.8

✅ Interpretation:

There is a strong positive agreement between the two judges.

Linear Regression

probability and statistics Notes R23 

Comments

Popular posts from this blog

APSET 2026 – Artificial Intelligence (AI) MCQs (50 Questions)

  APSET 2026 – Artificial Intelligence (AI) MCQs (50 Questions) (Computer Science & Applications – As per APSET / UGC NET Syllabus) 2. The father of AI is: A) Alan Turing B) John McCarthy C) Marvin Minsky D) Herbert Simon 👉  Answer:  B Below are 50 important MCQs for APSET 2026 preparation. 🔹 PART A: Basics of Artificial Intelligence 1. Artificial Intelligence was formally introduced in: A) 1943 B) 1956 C) 1965 D) 1972 👉 Answer: B 2. The father of AI is: A) Alan Turing B) John McCarthy C) Marvin Minsky D) Herbert Simon 👉 Answer: B 3. The Turing Test was proposed by: A) John McCarthy B) Alan Turing C) Newell D) Simon 👉 Answer: B 4. AI primarily deals with: A) Numerical computation B) Intelligent agents C) Hardware design D) Databases 👉 Answer: B 5. Rational agent acts to: A) Maximize performance measure B) Minimize input C) Reduce memory D) Increase speed 👉 Answer: A 🔹 PART B: Search Techniques 6. Breadth First Search...

Central Bank of India Recruitment 2026 – 275 Specialist Officer (SO) Posts

Central Bank of India Recruitment 2026 – 275 Specialist Officer (SO) Posts The Central Bank of India has officially invited applications for 275 Specialist Officer (SO) positions across various technical and risk-related streams. Online applications began recently and interested candidates can apply directly through the official portal. 📅 Key Dates 🟢 Application Start: 28 February 2026 ⏰ Last Date to Apply: 23 March 2026 🖥️ Online Exam: April 2026 (Tentative) 🎤 Interview: April 2026 (Tentative) 📌 Vacancy & Roles There are 275 vacancies in the Specialist Officer category, covering roles such as: IT Officer Software Developer (Java / .NET) Mobile Application Developer Database Administrator Cyber Security & Information Security Specialist Data Scientist / Data Engineer Cloud Manager Risk Manager Taxation / CA Specialist DevSecOps and more technical/risk disciplines 📋 Eligibility (General Overview) Educational Qualification: Relevant full-time degree like B.E./B....

Reserve Bank of India RBI Assistant Recruitment 2026 - Apply Online for 650 Posts

Reserve Bank of India RBI Assistant Recruitment 2026 - Apply Online for 650 Posts 🏦 Reserve Bank of India (RBI) Assistant Recruitment 2026 – 650 Posts The RBI Assistant Recruitment 2026 notification has been released for 650 Assistant vacancies across RBI offices in India. Eligible graduates can apply online through the official RBI website.  📋 Recruitment Overview Organization: Reserve Bank of India (RBI) Post Name: Assistant Total Vacancies: 650 Application Mode: Online Notification Release Date: 16 February 2026 Last Date to Apply: 8 March 2026 Job Location: Across India Official Website: rbi.org.in  🎓 Educational Qualification Candidates must have: Bachelor’s Degree in any discipline from a recognized university Minimum 50% marks (pass marks for SC/ST/PwBD candidates) Knowledge of word processing on computer Proficiency in the local language of the state/region applied for  🎂 Age Limit (as on 1 Feb 2026) Minimum Age: 20 years Maximum Age: 28 years Age ...