You are on page 1of 4

Laboratory Activity 2

Title of Activity:
Pearson’s r Correlation Coefficient and Correlation Matrix with Methods

Description of Activity:
Before beginning understanding the concept of Arrays, you have to learn how to use
Methods, Parameter Passing, and Local Variables. It is important to learn and apply the
syntax for Arrays using Java programming.

Learning Outcome(s):
At the end of this activity, students should be able:

 To apply Arrays using Java Programming Language

Note: You can check for Internet references for actual statistical formulae of the
Pearson’s r correlation coefficients.

Laboratory Activity Procedure


1. Create a program that accepts greater than or equal to 6 data observations for n
number of features (variables or columns).
a. Display them in the order they are inputted.
2. Create a class that will calculate for the following values.
1. Pearson’s r Correlation Coefficient
2. Correlation Matrix
a. Show the correlation matrix to the client.
3. Submit a soft copy through your eLearn account using LA2_LastName.zip.
Duration:
Ninety-six (96) hours

Assessment Task and Student Deliverables:

Soft copy to be submitted to the teacher the following meeting if there would be a late
submission.

Note: Pearson’s r Correlation Coefficient is a correlation coefficient as Kendall’s Tau


and Spearman’s rho Correlation.
Scoring Tool:
3-point Scoring Guide (see Appendix “A”)
Appendix “A”

Pearson’s r Correlation Coefficient and Correlation Matrix with Methods


(3-Point Scale)

Level of Student Performance


0 1 2
Criteria Weight
Method X1 No Method Partial Method Complete
Method

Array X3 No Array Partial Array Complete


Array

Correlation X1 No Correlation Partial Complete


Matrix Matrix Correlation Correlation
Matrix Matrix
Bibliography

You might also like