Write a Python program that computes the factorial of an integer X (the program should ask the user to enter the value of X)
B. Write a Python program to compute the CORRELATION according to the following Pearson equation:
https://www.statisticshowto.datasciencecentral.com/wp-content/uploads/2012/10/pearson.gif
Hint: define a function called cor using the def key word that takes two inputs and return the correlation as an output.
Then create two vectors X and Y (Lists) of 10 numbers each and calculate the correlation between them using the function cor you defined.
For more details about the correlation, see the following link:








Recent Comments