COVAR() from first principles

Getafix1066

Board Regular
Joined
May 15, 2016
Messages
57
Hi,

Can anyone point me in the direction of an COVAR() tutorial/example that shows how the COVAR() function is calculated?

I'm NOT looking for examples of how it's used, I'm looking for how it's CALCULATED using lower level functions i.e. SUM(), AVG(), COUNT(), multiplication and addition etc.

thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=sumproduct((x - average(x)) * (y - average(y)) / count(x)
 
Upvote 0
Thanks for the responses, to clarify what I'm looking for. I'm trying to replicate the COVAR() function myself using an excel spreadsheet and basic excel functions, SUM(), AVG, COUNT() etc.

I've read the wikipedia article and seen some videos, but to fully understand it I want see the step by step working on a spreadsheet using low-level functions.
 
Upvote 0
Maybe this will help.
Based on the example in this video
https://www.youtube.com/watch?v=uzW9WKHzSYM

The example below breaks down each step in the video using Excel functions.
Plus using the formula that SHG gave you which puts it all in one formula.
NOTE: if this was a sample then n would be n-1 or 8 in this case.
Excel Workbook
ABCDEFGHIJK
1Data
2X123456789
3Y545689101312
4
5Mean (average)
6x5
7y8
8
9Square x149162536496481
10Square y251625366481100169144
11
12Sum of x^2285Var. of x6.667
13Sum of y^2660Var. of y9.333
14
15x*y581524405470104108
16
17Sigma xy428
18n9
19
20cov =7.556
21
22EXCEL COV()7.556
23
24Formula from SHG7.556
25
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top