Question: python Q2. A tutor was asked to calculate Pearson correlation coefficient (don't worry about the technical name) for two subjects Math's and Physics Quizzes. There
Q2. A tutor was asked to calculate Pearson correlation coefficient (don't worry about the technical name) for two subjects Math's and Physics Quizzes. There are two quizzes in each subject (Two for Physics and Two for Math's). Write a python program to read Quizi and Quiz 2 of two subjects Maths(Qm1,0m2) and Physics(Qp1,Qp2) from the user then calculate the Pearson correlation coefficient given by the equation r = (2-a)/(6.0) output: where: z=(Qp1"Qm1)+(Qp2*Qm2) a=(Qp1+Qp2)*(Qm1+Qm2) b=2*(Qp1^2+Qm12)-((Qp1+Qm1)^2) c=2(Qp2^2+Qm2^2)-((Qp2+Qm2)^2) y\launcher 64093 -- d:\Users 116887\Lab_2_01.py Please enter Om1:10 Please enter Om2:9 Please enter Pm1:8 Please enter Pm2:7 The correlation of pearson is 187.6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
