1 00:00:00,000 --> 00:00:00,000 2 00:00:00,000 --> 00:00:07,310 PROFESSOR: Hi. 3 00:00:07,310 --> 00:00:08,970 Welcome back to recitation. 4 00:00:08,970 --> 00:00:11,650 Today we're going to do a couple of exercises on 5 00:00:11,650 --> 00:00:16,040 computing average values and probabilities using 6 00:00:16,040 --> 00:00:18,690 integration. 7 00:00:18,690 --> 00:00:21,750 So for this problem, I'm going to let R be the name of the 8 00:00:21,750 --> 00:00:25,506 region that's bounded above by the curve, by the line I 9 00:00:25,506 --> 00:00:30,090 guess, y equals x and below by the curve y equals x cubed. 10 00:00:30,090 --> 00:00:33,060 So I have a little picture of r here, it, you know, lives 11 00:00:33,060 --> 00:00:34,790 all in the first quadrant there. 12 00:00:34,790 --> 00:00:38,610 It's just this little sliver. 13 00:00:38,610 --> 00:00:42,270 So the first part of the question is, if I look at all 14 00:00:42,270 --> 00:00:44,270 the points in r, what's that average 15 00:00:44,270 --> 00:00:46,530 x-coordinate of those points? 16 00:00:46,530 --> 00:00:49,220 What's the average value of the x-coordinate? 17 00:00:49,220 --> 00:00:52,860 And the second problem is, if I choose a point at random 18 00:00:52,860 --> 00:00:55,650 somewhere in R, what's the probability that its 19 00:00:55,650 --> 00:00:58,050 x-coordinate is larger than 1/2? 20 00:00:58,050 --> 00:01:00,280 So what's the probability that it lies on the right 21 00:01:00,280 --> 00:01:02,470 hand side of R? 22 00:01:02,470 --> 00:01:04,560 So why don't you pause the video, take a couple minutes 23 00:01:04,560 --> 00:01:06,670 to work through these problems. Come back and we can 24 00:01:06,670 --> 00:01:07,920 work on them together. 25 00:01:07,920 --> 00:01:16,240 26 00:01:16,240 --> 00:01:17,520 Alright, welcome back. 27 00:01:17,520 --> 00:01:20,260 So hopefully you've had a chance to get some good work 28 00:01:20,260 --> 00:01:21,630 done on these questions. 29 00:01:21,630 --> 00:01:23,800 So let's start to work through them. 30 00:01:23,800 --> 00:01:29,290 So remember, to compute the average value of a function 31 00:01:29,290 --> 00:01:32,460 over some region what you need to do is you need to compute a 32 00:01:32,460 --> 00:01:33,430 weighted average. 33 00:01:33,430 --> 00:01:37,910 And the weighting here is that you have to consider the fact 34 00:01:37,910 --> 00:01:40,890 that, you know, for x very near zero, there aren't very 35 00:01:40,890 --> 00:01:43,590 many points in r in this little corner. 36 00:01:43,590 --> 00:01:44,020 Right? 37 00:01:44,020 --> 00:01:46,540 And for x very near 1, there aren't very many 38 00:01:46,540 --> 00:01:47,480 points there either. 39 00:01:47,480 --> 00:01:52,120 In the middle, this region is a little higher, so there are 40 00:01:52,120 --> 00:01:52,960 more points there. 41 00:01:52,960 --> 00:01:56,500 So those points will sort of weigh more when you take the 42 00:01:56,500 --> 00:01:59,110 average of all points, than the points near the edges. 43 00:01:59,110 --> 00:02:02,040 So the way we account for that is we have this weight 44 00:02:02,040 --> 00:02:05,170 function that is the, in our case, since we're interested 45 00:02:05,170 --> 00:02:08,360 in the x-coordinate, the weight at a given x-coordinate 46 00:02:08,360 --> 00:02:13,150 is the slice of the-- how much of the region lies above that 47 00:02:13,150 --> 00:02:14,770 x-coordinate. 48 00:02:14,770 --> 00:02:17,250 What, you know, the area of a little rectangle above that 49 00:02:17,250 --> 00:02:19,940 x-coordinate says, tells you how many of the points have 50 00:02:19,940 --> 00:02:22,350 that x-coordinate. 51 00:02:22,350 --> 00:02:27,620 So then we want to average the function x, right? 52 00:02:27,620 --> 00:02:29,200 Because we're interested in the x-coordinate, so the 53 00:02:29,200 --> 00:02:33,330 function we're averaging is x. 54 00:02:33,330 --> 00:02:36,640 Over this region, with that weighting. 55 00:02:36,640 --> 00:02:39,100 So, all right, so let's write down what that means. 56 00:02:39,100 --> 00:02:53,340 So we have want average of the function f of x, and the thing 57 00:02:53,340 --> 00:02:55,850 we're computing the average of is just the x-coordinate, so 58 00:02:55,850 --> 00:03:02,720 it's just the function value x over R. So we want the average 59 00:03:02,720 --> 00:03:07,880 of this function, f of x over R. So what we need to compute 60 00:03:07,880 --> 00:03:09,980 is the, so we have two integrals we need to compute. 61 00:03:09,980 --> 00:03:13,710 We need one integral that is the numerator and so that 62 00:03:13,710 --> 00:03:19,010 numerator-- so I'm going to just write average for the 63 00:03:19,010 --> 00:03:20,180 average that we want. 64 00:03:20,180 --> 00:03:23,480 So the numerator is the integral-- 65 00:03:23,480 --> 00:03:25,670 OK, and so we have to integrate, we have to take all 66 00:03:25,670 --> 00:03:29,000 possible x values into consideration. 67 00:03:29,000 --> 00:03:32,940 So x going, In this case that's x going from 0 to 1 and 68 00:03:32,940 --> 00:03:35,640 now we want to multiply the function that we're averaging, 69 00:03:35,640 --> 00:03:37,470 which in this case is x, by the 70 00:03:37,470 --> 00:03:38,880 appropriate weight function. 71 00:03:38,880 --> 00:03:40,920 And the weight function is how much of the region is 72 00:03:40,920 --> 00:03:43,060 associated with that x value. 73 00:03:43,060 --> 00:03:45,540 And that's the height of this little rectangle, which in 74 00:03:45,540 --> 00:03:52,730 this case is x minus x cubed dx. 75 00:03:52,730 --> 00:03:53,480 OK. 76 00:03:53,480 --> 00:03:57,030 But then, this is an average, we have to divide by the total 77 00:03:57,030 --> 00:03:58,130 weight of the region. 78 00:03:58,130 --> 00:04:01,190 The weight, in this case, is just the area. 79 00:04:01,190 --> 00:04:05,470 So we have to divide by the integral from 0 to 1 of just 80 00:04:05,470 --> 00:04:07,912 this x minus x cubed dx. 81 00:04:07,912 --> 00:04:10,750 82 00:04:10,750 --> 00:04:13,000 OK, so we have to compute these two integrals and then 83 00:04:13,000 --> 00:04:15,740 we have to take their ratio. 84 00:04:15,740 --> 00:04:17,240 So let's do them separately. 85 00:04:17,240 --> 00:04:19,120 So the first one is-- 86 00:04:19,120 --> 00:04:20,770 well, the second one is actually a little simpler. 87 00:04:20,770 --> 00:04:24,540 The one in the denomenator, so let's handle that first. The 88 00:04:24,540 --> 00:04:31,300 integral from 0 to 1 of x minus x cubed dx. 89 00:04:31,300 --> 00:04:32,590 Well, this is a pretty easy integral. 90 00:04:32,590 --> 00:04:38,380 It's x squared over 2 minus x to the fourth over 4 91 00:04:38,380 --> 00:04:39,910 between 0 and 1. 92 00:04:39,910 --> 00:04:44,700 So that's 1/2 minus 1/4 minus, well when you put in 0 you 93 00:04:44,700 --> 00:04:45,630 just get 0. 94 00:04:45,630 --> 00:04:48,870 So that's 1/4. 95 00:04:48,870 --> 00:04:54,160 And the first one, the top, the numerator is the integral 96 00:04:54,160 --> 00:04:54,767 from 0 to 1. 97 00:04:54,767 --> 00:04:59,030 OK, we can multiply through, so that's x squared minus x to 98 00:04:59,030 --> 00:05:02,180 the fourth dx. 99 00:05:02,180 --> 00:05:09,190 So that integral from 0 to 1 again is x cubed over 3 minus 100 00:05:09,190 --> 00:05:14,980 x to the fifth over 5 between 0 and 1. 101 00:05:14,980 --> 00:05:19,270 When we put in 0 we get 0, put int 1 we get 1/3 minus 1/5. 102 00:05:19,270 --> 00:05:23,220 So that's common denominator 15. 103 00:05:23,220 --> 00:05:25,360 2/15. 104 00:05:25,360 --> 00:05:29,200 So the numerator of our average value is 2/15, the 105 00:05:29,200 --> 00:05:32,610 denomenator is 1/4. 106 00:05:32,610 --> 00:05:37,100 So the average value we're interested in is 2/15 divided 107 00:05:37,100 --> 00:05:41,770 by 1/4, which is 8/15. 108 00:05:41,770 --> 00:05:45,240 So the average x-coordinate is just, so 8/15 is just a tiny 109 00:05:45,240 --> 00:05:47,290 bit larger than 1/2. 110 00:05:47,290 --> 00:05:50,760 So this is saying somehow the average x-coordinate is just 111 00:05:50,760 --> 00:05:53,840 slightly shifted to the right of 1/2. 112 00:05:53,840 --> 00:05:56,630 So this, I may have drawn this region sort of symetrically, 113 00:05:56,630 --> 00:06:00,530 but in fact it's a little bit shifted to the right there. 114 00:06:00,530 --> 00:06:03,500 So that's the the first part of the problem. 115 00:06:03,500 --> 00:06:06,680 116 00:06:06,680 --> 00:06:11,100 For the second part, we want to compute the probability-- 117 00:06:11,100 --> 00:06:14,690 so OK, so we choose a point at random in this set R and we 118 00:06:14,690 --> 00:06:17,160 want to know what's the probability that its 119 00:06:17,160 --> 00:06:20,530 x-coordinate is larger than 1/2. 120 00:06:20,530 --> 00:06:23,170 Well, since all points are, you know, equally likely, all 121 00:06:23,170 --> 00:06:27,140 regions the probability is just has to do with the area 122 00:06:27,140 --> 00:06:27,780 of the region. 123 00:06:27,780 --> 00:06:32,000 What we really want to know is, what's is area of R to the 124 00:06:32,000 --> 00:06:34,960 right of the line x equals 1/2. 125 00:06:34,960 --> 00:06:38,410 So that's the good region, and then we want to know how much 126 00:06:38,410 --> 00:06:40,330 of the entire region is that. 127 00:06:40,330 --> 00:06:43,910 So we want to know the area of the good region to the right 128 00:06:43,910 --> 00:06:47,080 of 1/2 divided by the total area. 129 00:06:47,080 --> 00:06:48,530 Now luckily we've already computed the 130 00:06:48,530 --> 00:06:50,590 total area, right here. 131 00:06:50,590 --> 00:06:53,610 This was this denominator that we had over here. 132 00:06:53,610 --> 00:06:56,890 So we just need the numerator of that fraction. 133 00:06:56,890 --> 00:07:00,000 So let's go over here, let me write that down. 134 00:07:00,000 --> 00:07:04,300 135 00:07:04,300 --> 00:07:09,010 So the probability equals-- 136 00:07:09,010 --> 00:07:11,950 137 00:07:11,950 --> 00:07:16,270 I'm going to put good area in quotation marks-- 138 00:07:16,270 --> 00:07:22,710 139 00:07:22,710 --> 00:07:26,330 so what I mean by good area is the area of the set of points 140 00:07:26,330 --> 00:07:28,450 that satisfies our condition. 141 00:07:28,450 --> 00:07:35,120 And in our case, the good area is just-- 142 00:07:35,120 --> 00:07:38,150 so a point we're interested in, if it's x-coordinate is 143 00:07:38,150 --> 00:07:42,170 bigger than 1/2, so we just want to take the part of this 144 00:07:42,170 --> 00:07:45,150 region to the right of 1/2. 145 00:07:45,150 --> 00:07:49,140 So in order to compute that, we just take this integral 146 00:07:49,140 --> 00:07:52,020 from 1/2 to 1 instead of from 0 to 1. 147 00:07:52,020 --> 00:07:57,350 So we're only counting those points to the right of 1/2 and 148 00:07:57,350 --> 00:08:00,030 then we want the, you know, the area between these two 149 00:08:00,030 --> 00:08:02,600 curves on that region. 150 00:08:02,600 --> 00:08:04,400 OK, so, and again this is a fairly 151 00:08:04,400 --> 00:08:07,230 simple integral to compute. 152 00:08:07,230 --> 00:08:12,320 So this gives me x squared over 2 minus x to the fourth 153 00:08:12,320 --> 00:08:16,390 over 4 between 1/2 and 1. 154 00:08:16,390 --> 00:08:19,410 All right, so this is maybe a tiny bit hairy, so this gives 155 00:08:19,410 --> 00:08:29,820 me 1/2 minus 1/4 minus-- well we put in 1/2 here we get 1/8 156 00:08:29,820 --> 00:08:39,050 minus 1/2 to the fourth is 1/16 divided by 4 is 1/64. 157 00:08:39,050 --> 00:08:42,960 So this is all going to be in sxty-fourths. 158 00:08:42,960 --> 00:08:43,360 So OK. 159 00:08:43,360 --> 00:08:51,700 So let's see, 32/64 minus 16/64 minus 8/64 plus 1. 160 00:08:51,700 --> 00:08:54,075 If I just put it all over that common denominator. 161 00:08:54,075 --> 00:08:56,930 162 00:08:56,930 --> 00:09:02,030 All right, so I think that looks like 9/64, 163 00:09:02,030 --> 00:09:03,410 if I did that right. 164 00:09:03,410 --> 00:09:03,522 So, OK. 165 00:09:03,522 --> 00:09:04,920 So that's the good area. 166 00:09:04,920 --> 00:09:07,930 And then the probability that I want, I have to divide the 167 00:09:07,930 --> 00:09:09,670 good area by the total area. 168 00:09:09,670 --> 00:09:13,540 And we saw before that the total area was 1/4. 169 00:09:13,540 --> 00:09:16,870 And that was what this computational was. 170 00:09:16,870 --> 00:09:20,990 So the total area's 1/4, so the probability-- 171 00:09:20,990 --> 00:09:23,600 I'm just goint to write pr for probability-- 172 00:09:23,600 --> 00:09:30,930 that we're interested in is 9/64 divided by 173 00:09:30,930 --> 00:09:37,340 1/4 which is 9/16. 174 00:09:37,340 --> 00:09:38,720 OK, so this says-- 175 00:09:38,720 --> 00:09:41,600 also 9/16 is also a little bit bigger than a half. 176 00:09:41,600 --> 00:09:44,880 So this is a different way of saying, our region, there's a 177 00:09:44,880 --> 00:09:46,560 little bit more of it to the right then 178 00:09:46,560 --> 00:09:48,000 there is to the left. 179 00:09:48,000 --> 00:09:50,470 You know, so it's slightly more likely that a random 180 00:09:50,470 --> 00:09:53,940 point is to the right of the line y equals 1/2 than it is 181 00:09:53,940 --> 00:09:55,940 to the left of that line. 182 00:09:55,940 --> 00:09:59,560 So just to sum up, we had these two different problems 183 00:09:59,560 --> 00:10:03,140 that we did concerning this region R. So first we computed 184 00:10:03,140 --> 00:10:06,290 the average value of the x-coordinate of a point in 185 00:10:06,290 --> 00:10:07,540 this region. 186 00:10:07,540 --> 00:10:09,560 187 00:10:09,560 --> 00:10:10,330 So that was part a. 188 00:10:10,330 --> 00:10:12,930 We computed the average value of the x-coordinate, and that 189 00:10:12,930 --> 00:10:13,550 was over here. 190 00:10:13,550 --> 00:10:16,320 So we had to, you know, do this, the weighted average of 191 00:10:16,320 --> 00:10:19,240 the x-coordinate divided by the total area. 192 00:10:19,240 --> 00:10:21,920 And then second, we computed the probability that a 193 00:10:21,920 --> 00:10:25,760 randomly chosen point has x-coordinate larger than 1/2. 194 00:10:25,760 --> 00:10:28,300 And we did that over here. 195 00:10:28,300 --> 00:10:31,620 And for that we needed to compute the area of the good 196 00:10:31,620 --> 00:10:34,590 region, which was the part to the right of the line y equals 197 00:10:34,590 --> 00:10:37,820 1/2 and then we needed to divide it by the total area. 198 00:10:37,820 --> 00:10:39,550 So I'll end there. 199 00:10:39,550 --> 00:10:39,639