Questions tagged [pearson]

in statistics, Pearson's r, the Pearson product moment correlation coefficient, shows the extent of a linear relationship between two data sets on a scale from -1 to 1.

Overview

Pearson product-moment correlation coefficient is given by the following equation:

enter image description here

where,

pXY = Pearson’s correlation coefficient;
Cov(X,Y) = covariance of random variables X and Y;
Var(X) = variance of random variable X;
Var(Y) = variance of random variable Y;


Tag usage

Questions on tag should be about implementation and programming problems, not about the statistical or theoretical properties of the technique. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

155 questions
0
votes
6 answers

Error in displaying the largest and smallest number

I was attempting to write a program for exercise 2.19 in How to Program, but I ran into some difficulties. The program is supposed to have the user enter three integers and then display the sum, average, and product of those integers. The only…
-1
votes
1 answer

Why is statmotsmodels.Logit P > |z| different from scipy.stats pearsonr? They both are p_values, but they are giving me different values

Here's my pandas dataframe with my data: c0 c1 c10 c11 c12 c13 c14 c15 c16 c3 c4 c5 c6 c7 c8 c9 index 0 1 49 2.0 0 2 2 0 1 6797.761892 130 269.0 0 1 …
Al777
  • 9
  • 3
-1
votes
1 answer

Item Based Similarity Metric

I am using Mahout Apache to write an item based recommender (based on similar item ratings by users) and I was wondering which of the following two similarity metrics would be the best to use: Pearson, Spearman, Euclidean, Tanimoto and Loglikelihood
tlauer
  • 558
  • 2
  • 8
  • 22
-2
votes
1 answer

stat_cor function incorrectly calculating correlation p value

I am using stat_cor with ggplot to add r and p values to a scatter plot. It is incorrectly calculating the p value based on the number of observations in long format data frame. It is confused about long format organization, and the p value is…
b1234
  • 63
  • 7
-3
votes
1 answer

How to compute Pearson Correlation between 2 given vectors?

I have to code this in C# Can you explain step by step in the below given example? vector 1 : [0.3, 0, 1.7, 2.2] vector 2 : [0, 3.3, 1.2, 0] Ty very much This will be used in document clustering
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
1 2 3
10
11