All language subtitles for 03 - Calculate covariance among multiple pairs of columns

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,004 --> 00:00:01,006 - [Instructor] In the previous movie, 2 00:00:01,006 --> 00:00:03,009 I showed you how to calculate covariance 3 00:00:03,009 --> 00:00:05,008 for two columns of data. 4 00:00:05,008 --> 00:00:08,000 In this movie, I will show you do it 5 00:00:08,000 --> 00:00:12,003 for multiple columns of data by creating a grid. 6 00:00:12,003 --> 00:00:15,005 My sample file is 05_03_MultipleCovariance 7 00:00:15,005 --> 00:00:18,003 and you can find it in the Chapter05 folder 8 00:00:18,003 --> 00:00:21,003 of the Exercise Files collection. 9 00:00:21,003 --> 00:00:23,002 I have four columns of data in this workbook 10 00:00:23,002 --> 00:00:26,007 and you can see them over here in columns A through D. 11 00:00:26,007 --> 00:00:29,002 And then I also have the covariance formula 12 00:00:29,002 --> 00:00:31,007 over here on the right as a reminder 13 00:00:31,007 --> 00:00:34,005 but we're actually not going to implement it directly. 14 00:00:34,005 --> 00:00:36,008 Instead, we're going to use a built-in function. 15 00:00:36,008 --> 00:00:39,006 It'll save us a lot of time. 16 00:00:39,006 --> 00:00:42,007 To start, I will click in cell G2. 17 00:00:42,007 --> 00:00:46,008 And I want to calculate the covariance 18 00:00:46,008 --> 00:00:49,007 of column one with itself. 19 00:00:49,007 --> 00:00:52,003 And no, this calculation doesn't make any sense 20 00:00:52,003 --> 00:00:55,003 in any real way but what it will let us do 21 00:00:55,003 --> 00:00:57,006 is create formulas that we can copy 22 00:00:57,006 --> 00:01:00,003 to the rest of the cells in the worksheet. 23 00:01:00,003 --> 00:01:01,006 So in cell G2, 24 00:01:01,006 --> 00:01:03,007 I will type an equal sign 25 00:01:03,007 --> 00:01:07,001 and I will use COVARIANCE.S 26 00:01:07,001 --> 00:01:08,007 and this assumes that we have a sample 27 00:01:08,007 --> 00:01:13,001 instead of every possible value for our dataset. 28 00:01:13,001 --> 00:01:19,000 The first array is A2 to A11. 29 00:01:19,000 --> 00:01:21,007 And I want to make this reference unchanging. 30 00:01:21,007 --> 00:01:25,004 So I will click inside of A2 31 00:01:25,004 --> 00:01:26,007 and press F4. 32 00:01:26,007 --> 00:01:29,001 That would be Command + T on the Mac 33 00:01:29,001 --> 00:01:31,003 to make it an absolute reference 34 00:01:31,003 --> 00:01:34,008 and I'll do the same thing for A11. 35 00:01:34,008 --> 00:01:36,003 F4. 36 00:01:36,003 --> 00:01:38,009 Then type a comma 37 00:01:38,009 --> 00:01:41,003 and A2 through A11 again. 38 00:01:41,003 --> 00:01:43,004 So I'll just select those cells. 39 00:01:43,004 --> 00:01:46,004 Now I'll type a right parentheses and Enter, 40 00:01:46,004 --> 00:01:51,003 and we get a value that actually doesn't mean anything. 41 00:01:51,003 --> 00:01:54,005 But that's fine because we have a base to work from now. 42 00:01:54,005 --> 00:01:57,000 I want to copy the formula 43 00:01:57,000 --> 00:01:59,005 that I just created down to cell G3 44 00:01:59,005 --> 00:02:02,008 so we can compare column one and column two. 45 00:02:02,008 --> 00:02:08,002 So I will double click cell G2. 46 00:02:08,002 --> 00:02:10,008 Select the text of the formula. 47 00:02:10,008 --> 00:02:15,001 Press Control C to copy it, then I'll press Escape. 48 00:02:15,001 --> 00:02:18,004 And double click G3. 49 00:02:18,004 --> 00:02:20,003 Press Control + V to paste 50 00:02:20,003 --> 00:02:25,002 and now I want to base my calculations not on A2 to A11 51 00:02:25,002 --> 00:02:30,003 but B2 to B11, comparing that to the values in column A. 52 00:02:30,003 --> 00:02:33,009 So I'll type B2. 53 00:02:33,009 --> 00:02:35,007 And then change it to B11 54 00:02:35,007 --> 00:02:37,008 so I can see my two separate columns. 55 00:02:37,008 --> 00:02:42,000 Press Enter and I have the covariance 56 00:02:42,000 --> 00:02:45,003 of values between those two columns. 57 00:02:45,003 --> 00:02:47,000 Now I can do the same thing for column three 58 00:02:47,000 --> 00:02:47,008 and column four. 59 00:02:47,008 --> 00:02:49,009 I'll move a little bit more quickly. 60 00:02:49,009 --> 00:02:54,003 So I will double click in cell G4 to open it for editing. 61 00:02:54,003 --> 00:02:56,009 Press Control + V, given my original formula 62 00:02:56,009 --> 00:02:59,000 that I copied was still available. 63 00:02:59,000 --> 00:03:02,002 And I will change the first references 64 00:03:02,002 --> 00:03:07,008 from A2 to A11 to C2 to C11 and Enter. 65 00:03:07,008 --> 00:03:09,001 Have covariance there. 66 00:03:09,001 --> 00:03:13,005 I'll do the same thing in cell G5. 67 00:03:13,005 --> 00:03:17,007 And I'll make it D2 to D11 68 00:03:17,007 --> 00:03:20,001 for the first array. 69 00:03:20,001 --> 00:03:23,009 Press Enter and there I have the covariance 70 00:03:23,009 --> 00:03:27,006 between column one and column four. 71 00:03:27,006 --> 00:03:29,004 Now with the formulas I just created, 72 00:03:29,004 --> 00:03:31,005 I am able to copy them over 73 00:03:31,005 --> 00:03:35,001 to the remaining cells in rows H, I and J 74 00:03:35,001 --> 00:03:38,002 to calculate the covariance for every combination 75 00:03:38,002 --> 00:03:40,008 of columns in my dataset. 76 00:03:40,008 --> 00:03:44,001 So I'll select cells G2 through G5. 77 00:03:44,001 --> 00:03:46,008 Grab the fill handle at the bottom right corner 78 00:03:46,008 --> 00:03:48,005 of cell G5. 79 00:03:48,005 --> 00:03:50,005 And I know my mouse pointer's in the right place 80 00:03:50,005 --> 00:03:53,009 when it turns into a black cross. 81 00:03:53,009 --> 00:03:58,002 So I will drag over. 82 00:03:58,002 --> 00:04:03,000 And there I have all of my calculations. 83 00:04:03,000 --> 00:04:04,006 So if I want to see the covariance 84 00:04:04,006 --> 00:04:06,009 between column two and column three, 85 00:04:06,009 --> 00:04:10,009 I can go to either cell that indicates that value. 86 00:04:10,009 --> 00:04:17,003 So I have in cell H4 for column two and column three, -8.17 87 00:04:17,003 --> 00:04:19,000 and if I go to the intersection 88 00:04:19,000 --> 00:04:20,008 of column two and column three. 89 00:04:20,008 --> 00:04:22,002 I see the same value. 90 00:04:22,002 --> 00:04:24,001 So the values are repeated 91 00:04:24,001 --> 00:04:26,007 but creating the formulas the way that I showed you 92 00:04:26,007 --> 00:04:29,007 actually allows you to accelerate the process 93 00:04:29,007 --> 00:04:32,000 with a little bit of repetition of result. 6946

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.