Data Analysis Correl function and correlation

%3CLINGO-SUB%20id%3D%22lingo-sub-2151375%22%20slang%3D%22en-US%22%3EData%20Analysis%20Correl%20function%20and%20correlation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151375%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20difference%20between%20Correl%20and%20Correlation%3F%20Results%20are%20different.%20Correl%20gives%20the%20same%20result%20as%20R%20in%20regression%20analysis.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2151375%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151567%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Analysis%20Correl%20function%20and%20correlation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151567%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F972963%22%20target%3D%22_blank%22%3E%40Suhas_Lohokare%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECORREL%20is%20a%20function.%20It%20returns%20the%20correlation%20coefficient%20of%20two%20arrays%20of%20the%20same%20size.%3C%2FP%3E%0A%3CP%3EThe%20result%20is%20dynamic%3A%20if%20you%20change%20values%20in%20the%20arrays%2C%20the%20function%20result%20will%20automatically%20be%20updated.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Correlation%20tool%20in%20Data%20Analysis%20(if%20you%20have%20activated%20the%20Analysis%20ToolPak%20add-in)%20returns%20an%20array%20of%20correlation%20coefficients%20of%20each%20pair%20of%20columns%20(or%20rows)%20in%20the%20input%20range.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20if%20the%20input%20range%20has%202%20columns%2C%20you'll%20get%20a%202x2%20array.%3C%2FP%3E%0A%3CP%3EThe%20element%20in%20the%20lower%20left%20corner%20of%20the%20array%20will%20be%20identical%20to%20the%20result%20of%20CORREL.%3C%2FP%3E%0A%3CP%3EThe%20diagonal%20will%20contain%201s%2C%20since%20the%20correlation%20coefficient%20of%20a%20column%20with%20itself%20is%201.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20input%20range%20has%203%20columns%2C%20you'll%20get%20a%203x3%20array%2C%20etc.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20result%20is%20static%3A%20if%20you%20change%20values%20in%20the%20input%20range%2C%20the%20output%20of%20Correlation%20won't%20change.%20You'll%20have%20to%20run%20Data%20Analysis%20%26gt%3B%20Correlation%20again%20to%20update%20the%20output.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152876%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Analysis%20Correl%20function%20and%20correlation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152876%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20Hans%20It%20was%20very%20useful.%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

What is the difference between Correl and Correlation? Results are different. Correl gives the same result as R in regression analysis.

2 Replies

@Suhas_Lohokare 

 

CORREL is a function. It returns the correlation coefficient of two arrays of the same size.

The result is dynamic: if you change values in the arrays, the function result will automatically be updated.

 

The Correlation tool in Data Analysis (if you have activated the Analysis ToolPak add-in) returns an array of correlation coefficients of each pair of columns (or rows) in the input range.

 

So if the input range has 2 columns, you'll get a 2x2 array.

The element in the lower left corner of the array will be identical to the result of CORREL.

The diagonal will contain 1s, since the correlation coefficient of a column with itself is 1.

 

If the input range has 3 columns, you'll get a 3x3 array, etc.

 

The result is static: if you change values in the input range, the output of Correlation won't change. You'll have to run Data Analysis > Correlation again to update the output.

Thank you Hans It was very useful.@Hans Vogelaar