All language subtitles for 02 - Use a uniform distribution

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,000 --> 00:00:01,005 - Many business cases, 2 00:00:01,005 --> 00:00:04,007 analyze events that are not equally likely. 3 00:00:04,007 --> 00:00:07,003 Some products are more popular than others 4 00:00:07,003 --> 00:00:09,001 and your website gets more visitors 5 00:00:09,001 --> 00:00:11,008 in certain parts of the day and less than others. 6 00:00:11,008 --> 00:00:13,000 In this movie, I will show you 7 00:00:13,000 --> 00:00:14,004 how to generate random values 8 00:00:14,004 --> 00:00:16,009 when all of the events are equally likely. 9 00:00:16,009 --> 00:00:19,003 Such as in a random drawing. 10 00:00:19,003 --> 00:00:21,009 This is called the uniform distribution. 11 00:00:21,009 --> 00:00:24,002 And if there are four possible outcomes, 12 00:00:24,002 --> 00:00:27,009 values 1 through 4, then in the uniform distribution, 13 00:00:27,009 --> 00:00:31,009 the probability of each would be 25%. 14 00:00:31,009 --> 00:00:34,004 Now over time, it is very unlikely 15 00:00:34,004 --> 00:00:38,006 that you will have the same number of values exactly. 16 00:00:38,006 --> 00:00:40,005 However, they will be close. 17 00:00:40,005 --> 00:00:41,009 And here is one case, 18 00:00:41,009 --> 00:00:46,006 where I did a random generation of numbers from 1 to 4. 19 00:00:46,006 --> 00:00:50,003 And here you see the actual results. 20 00:00:50,003 --> 00:00:52,004 So as with most things in life, 21 00:00:52,004 --> 00:00:56,007 theory and practice are often close, but do diverge. 22 00:00:56,007 --> 00:00:59,001 Now switch over to Excel and I will show you 23 00:00:59,001 --> 00:01:03,000 how to work with values that are uniformly distributed. 24 00:01:03,000 --> 00:01:07,004 The Excel workbook that I'm using is 04_02_Uniform. 25 00:01:07,004 --> 00:01:09,007 And you can find it in the chapter four folder 26 00:01:09,007 --> 00:01:12,003 of the exercise files collection. 27 00:01:12,003 --> 00:01:14,007 And for this, I have laid out a spreadsheet 28 00:01:14,007 --> 00:01:18,001 and I will perform a number of calculations. 29 00:01:18,001 --> 00:01:22,004 Let's say that I want to have a minimum value of 1. 30 00:01:22,004 --> 00:01:26,000 So I'll type that in cell B3. Then enter. 31 00:01:26,000 --> 00:01:29,007 And a maximum value of 6. 32 00:01:29,007 --> 00:01:31,008 So type 6. And enter. 33 00:01:31,008 --> 00:01:34,000 And our number of values I know is 6, 34 00:01:34,000 --> 00:01:35,007 but if I want to calculate it, 35 00:01:35,007 --> 00:01:38,008 I can do equal, 36 00:01:38,008 --> 00:01:42,008 B4 minus B3 plus 1. 37 00:01:42,008 --> 00:01:47,000 And that's because I am subtracting the value in B3, 38 00:01:47,000 --> 00:01:48,007 which in this case is 1. 39 00:01:48,007 --> 00:01:51,008 So I need to add 1 back, otherwise I would get 5. 40 00:01:51,008 --> 00:01:53,000 So I'll press enter. 41 00:01:53,000 --> 00:01:58,000 And enter again to move down to cell B7. 42 00:01:58,000 --> 00:02:00,004 If I want to generate a random number 43 00:02:00,004 --> 00:02:03,002 that is a random whole number or integer, 44 00:02:03,002 --> 00:02:05,002 between 1 and 6, 45 00:02:05,002 --> 00:02:09,000 then I can use the function RANDBETWEEN. 46 00:02:09,000 --> 00:02:13,000 In B7, I will type equal. 47 00:02:13,000 --> 00:02:17,004 And then the function is RANDBETWEEN. 48 00:02:17,004 --> 00:02:20,003 And the bottom value is in B3. Comma. 49 00:02:20,003 --> 00:02:22,007 Top value in B4. 50 00:02:22,007 --> 00:02:24,006 Right parenthesis and enter. 51 00:02:24,006 --> 00:02:27,008 And I get the value of 3. 52 00:02:27,008 --> 00:02:29,008 Now for 'Value 2', I will do the same thing. 53 00:02:29,008 --> 00:02:32,004 So I'll do equal, 54 00:02:32,004 --> 00:02:34,004 RANDBETWEEN. 55 00:02:34,004 --> 00:02:37,001 Excuse me. I started typing in the numbers directly 56 00:02:37,001 --> 00:02:39,007 but it's better to use a cell reference 57 00:02:39,007 --> 00:02:40,009 so you can change the values 58 00:02:40,009 --> 00:02:43,003 without having to edit a formula. 59 00:02:43,003 --> 00:02:46,002 So that's B3 for the bottom value. 60 00:02:46,002 --> 00:02:48,007 And then comma. Top value's in B4. 61 00:02:48,007 --> 00:02:50,009 Right parenthesis and enter. 62 00:02:50,009 --> 00:02:52,006 And my worksheet recalculated, 63 00:02:52,006 --> 00:02:55,005 so I have both 4 and 3. 64 00:02:55,005 --> 00:03:00,000 Now I can calculate the probability of getting 'Value 1'. 65 00:03:00,000 --> 00:03:04,001 So I will go over to cell E3. 66 00:03:04,001 --> 00:03:08,000 And here because I know that I have a uniform distribution, 67 00:03:08,000 --> 00:03:10,008 that every value is equally likely. 68 00:03:10,008 --> 00:03:15,000 So I will and cell E3, type an equal sign then 1, 69 00:03:15,000 --> 00:03:17,007 because I'm only looking for one value 70 00:03:17,007 --> 00:03:19,006 and divide that by the number of values. 71 00:03:19,006 --> 00:03:23,004 Which is in cell B5. 72 00:03:23,004 --> 00:03:24,002 Enter. 73 00:03:24,002 --> 00:03:28,002 And I get a probability of 0.166 repeating. 74 00:03:28,002 --> 00:03:29,007 So 1/6th of the time. 75 00:03:29,007 --> 00:03:34,001 Which matches our six possible values. 76 00:03:34,001 --> 00:03:35,006 If I want to calculate 77 00:03:35,006 --> 00:03:38,006 the probability of 'Value 1' or 'Value 2', 78 00:03:38,006 --> 00:03:41,009 then that would be equal, 1, 79 00:03:41,009 --> 00:03:43,004 divided by the number of values, 80 00:03:43,004 --> 00:03:46,001 which again is in B5. 81 00:03:46,001 --> 00:03:48,009 Plus 1, divided by B5 again. 82 00:03:48,009 --> 00:03:51,007 'Cause I'm looking at two distinct values. 83 00:03:51,007 --> 00:03:54,008 Enter and I get 0.33. 84 00:03:54,008 --> 00:03:59,006 And yes it is possible that the randomly generated values 85 00:03:59,006 --> 00:04:02,007 in cells B7 and B8 could be the same. 86 00:04:02,007 --> 00:04:05,009 In which case the probability of 'value 1' or 'value 2' 87 00:04:05,009 --> 00:04:08,001 would be the same as getting a single value. 88 00:04:08,001 --> 00:04:10,005 But I'm working in the abstract here, 89 00:04:10,005 --> 00:04:15,006 as opposed to, with the specific value in B7 and B8. 90 00:04:15,006 --> 00:04:17,007 If you want to calculate the probability of getting 91 00:04:17,007 --> 00:04:19,009 neither 'Value 1' or Value 2', 92 00:04:19,009 --> 00:04:22,007 then you would subtract the probability 93 00:04:22,007 --> 00:04:25,002 of the positive outcome, from 1. 94 00:04:25,002 --> 00:04:27,009 So, in cell E7, I'll type equal. 95 00:04:27,009 --> 00:04:32,001 And it'll be 1 minus, the value in E5. 96 00:04:32,001 --> 00:04:33,000 Enter. 97 00:04:33,000 --> 00:04:35,007 And we get 0.666, 98 00:04:35,007 --> 00:04:36,007 repeating. 99 00:04:36,007 --> 00:04:39,009 So about 2/3rds of the time, which makes sense. 100 00:04:39,009 --> 00:04:42,006 Four out of six times, 101 00:04:42,006 --> 00:04:45,006 you will not get one or two distinct values. 102 00:04:45,006 --> 00:04:47,008 And that will happen about 2/3rds of the time. 103 00:04:47,008 --> 00:04:50,003 So our value is correct. 104 00:04:50,003 --> 00:04:52,009 And I have saved cell B10 for last, 105 00:04:52,009 --> 00:04:55,005 because I want to show you another way 106 00:04:55,005 --> 00:04:59,001 to generate random numbers between 0 and 1. 107 00:04:59,001 --> 00:05:02,002 And this is a 16 digit decimal. 108 00:05:02,002 --> 00:05:05,004 So in B10, I'll type, equal, 109 00:05:05,004 --> 00:05:07,002 and then rand. 110 00:05:07,002 --> 00:05:10,001 Followed by an open and closed parentheses. 111 00:05:10,001 --> 00:05:13,005 And this value will be a random number, 112 00:05:13,005 --> 00:05:15,004 a decimal number between zero and one. 113 00:05:15,004 --> 00:05:20,008 So enter. And there we get 0.81534. 114 00:05:20,008 --> 00:05:23,005 And the number is actually larger than that. 115 00:05:23,005 --> 00:05:26,004 So if I click cell B10. 116 00:05:26,004 --> 00:05:31,002 And go to the home tab and click increase decimal, 117 00:05:31,002 --> 00:05:35,009 you can see that the value increases. 118 00:05:35,009 --> 00:05:38,000 So what is the probability 119 00:05:38,000 --> 00:05:41,004 of generating this specific value? 120 00:05:41,004 --> 00:05:43,006 It is effectively zero. 121 00:05:43,006 --> 00:05:45,007 There are so many decimal points here. 122 00:05:45,007 --> 00:05:47,009 And I'm just estimating, 123 00:05:47,009 --> 00:05:50,007 let's say there are 12 digits there. 124 00:05:50,007 --> 00:05:54,007 If we look at 12 digits or 13 that would be in the billions. 125 00:05:54,007 --> 00:05:58,003 So the probability of getting 126 00:05:58,003 --> 00:06:01,007 exactly this value, is extremely low. 127 00:06:01,007 --> 00:06:05,008 And if I press F9 to recalculate, I get a different value. 128 00:06:05,008 --> 00:06:06,008 And again. 129 00:06:06,008 --> 00:06:09,000 And the probability of those values repeating, 130 00:06:09,000 --> 00:06:12,000 is so small, it's not worth worrying about. 131 00:06:12,000 --> 00:06:14,007 So I hope that this movie has given you an introduction 132 00:06:14,007 --> 00:06:16,005 to working with random numbers, 133 00:06:16,005 --> 00:06:21,000 both as integers and as decimal values between, 0 and 1. 9922

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