Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- -7dYXCHtTFY.txtAdded
- -T34yGp4T7A.txtAdded+699
- -r0hWGcNLSI.txtAdded
- 0IF8oBg_Zd8.txtAdded+595
- 0Q6kYWnhaks.txtAdded+261
- 17Z89x_ZWQ4.txtAdded+315
- 1s2H3QssiMw.txtAdded+1227
- 2HpF8R_cjR8.txtAdded+4024
- 2oK7Eb0YZ9U.txtAdded+475
- 4PBYm3FuUNQ.txtAdded+1307
- 4VH8SW9Tq2A.txtAdded
- 7o5shPC0R2k.txtAdded
- 8abBLKEZLaI.txtAdded+1979
- B6a9FaYI730.txtAdded+571
- BZfqcnlpofI.txtAdded
- BiLtNbncW8o.txtAdded+1731
- C2BBAW78fYg.txtAdded+2890
- CA7I2GLpgdo.txtAdded+558
- CTVFDb44ses.txtAdded
- DZHguXpwuXU.txtAdded+857
- EJ6Sjn1c04Y.txtAdded
- E_KUHMuoPLE.txtAdded+1211
- Ed0Wg-5YYCk.txtAdded
- EkMfTvmLJl0.txtAdded+3539
- FWtYuLFIUUM.txtAdded
- G3OmGH1rvGc.txtAdded
- GAOjfd5QJZE.txtAdded+2659
- GkD5tIgc-Bo.txtAdded+619
- GyukKStk6Ls.txtAdded+1995
- Hu-ZLesnxfc.txtAdded+1691
- IE9cFQ9b33U.txtAdded+382
- IER0CBHl1qs.txtAdded
- Iu4xTLKcbPo.txtAdded+1855
- IvJvmufB1oA.txtAdded+2883
- J6L9uQ-IO90.txtAdded+2451
- JSs_dqq2uWo.txtAdded
- KalMFMv3_IM.txtAdded+3568
- KtOhRHLE7Q0.txtAdded+347
- L2vNqnov1rs.txtAdded
- LIRI_8hjgm8.txtAdded
- Mv8tuMBQk-g.txtAdded+1107
- NEsObJTwDXI.txtAdded
- NsrNLQ5g978.txtAdded+819
- Nz1KZXbghj8.txtAdded+2553
- O6yw1qkECig.txtAdded+260
- OBHUrAFLQW8.txtAdded
- P-QxpiSYPOY.txtAdded+515
- PuRJ9IgUW-M.txtAdded
- PwBO6pn5mkM.txtAdded
- Pz7U-AEi8v0.txtAdded+199
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699align:start position:0% this is an example or rather a story
align:start position:0%this is an example or rather a story
align:start position:0%this is an example or rather a storythat's supposed to give us some insight
align:start position:0%that's supposed to give us some insight
align:start position:0%that's supposed to give us some insightand some intuition about what the law of
align:start position:0%and some intuition about what the law of
align:start position:0%and some intuition about what the law ofiterated expectations really means
align:start position:0%iterated expectations really means
align:start position:0%iterated expectations really meanssuppose that you work for a forecasting
align:start position:0%suppose that you work for a forecasting
align:start position:0%suppose that you work for a forecastingcompany and suppose that you make
align:start position:0%company and suppose that you make
align:start position:0%company and suppose that you makeforecasts by calculating expected values
align:start position:0%forecasts by calculating expected values
align:start position:0%forecasts by calculating expected valuesof the quantities that you want to
align:start position:0%of the quantities that you want to
align:start position:0%of the quantities that you want toforecast and of course when you
align:start position:0%forecast and of course when you
align:start position:0%forecast and of course when youcalculate an expected value you always
align:start position:0%calculate an expected value you always
align:start position:0%calculate an expected value you alwaysuse whatever information you have so
align:start position:0%use whatever information you have so
align:start position:0%use whatever information you have sohere we have the beginning of the year
align:start position:0%here we have the beginning of the year
align:start position:0%here we have the beginning of the yearand you are working for a company that's
align:start position:0%and you are working for a company that's
align:start position:0%and you are working for a company that'strying to forecast the sales during the
align:start position:0%trying to forecast the sales during the
align:start position:0%trying to forecast the sales during themonth of February that's a random
align:start position:0%month of February that's a random
align:start position:0%month of February that's a randomvariable capital X you're sitting in
align:start position:0%variable capital X you're sitting in
align:start position:0%variable capital X you're sitting inyour office in the beginning of the year
align:start position:0%your office in the beginning of the year
align:start position:0%your office in the beginning of the yearwhat is going to be your forecast it's
align:start position:0%what is going to be your forecast it's
align:start position:0%what is going to be your forecast it'sgoing to be the expected value of the
align:start position:0%going to be the expected value of the
align:start position:0%going to be the expected value of therandom variable X so this is the
align:start position:0%random variable X so this is the
align:start position:0%random variable X so this is theforecast that you make at this point in
align:start position:0%forecast that you make at this point in
align:start position:0%forecast that you make at this point intime now time goes by and we are sitting
align:start position:0%time now time goes by and we are sitting
align:start position:0%time now time goes by and we are sittingnow in the beginning of February or the
align:start position:0%now in the beginning of February or the
align:start position:0%now in the beginning of February or theend of January at that time you obtain
align:start position:0%end of January at that time you obtain
align:start position:0%end of January at that time you obtainsome new information which is the value
align:start position:0%some new information which is the value
align:start position:0%some new information which is the valuelittle Y of a random variable Capital y
align:start position:0%little Y of a random variable Capital y
align:start position:0%little Y of a random variable Capital ywhat should your new forecast be well
align:start position:0%what should your new forecast be well
align:start position:0%what should your new forecast be wellonce you have this information in your
align:start position:0%once you have this information in your
align:start position:0%once you have this information in yourhands your new forecast should be the
align:start position:0%hands your new forecast should be the
align:start position:0%hands your new forecast should be theexpected value of x given the specific
align:start position:0%expected value of x given the specific
align:start position:0%expected value of x given the specificavailable information that you have so
align:start position:0%available information that you have so
align:start position:0%available information that you have sothis is the revised forecast as
align:start position:0%this is the revised forecast as
align:start position:0%this is the revised forecast ascalculated at the end of January but if
align:start position:0%calculated at the end of January but if
align:start position:0%calculated at the end of January but ifyou are sitting here in the beginning of
align:start position:0%you are sitting here in the beginning of
align:start position:0%you are sitting here in the beginning ofthe year and you ask yourself what is
align:start position:0%the year and you ask yourself what is
align:start position:0%the year and you ask yourself what isthe revised forecast going to be your
align:start position:0%the revised forecast going to be your
align:start position:0%the revised forecast going to be youranswer will be I don't know what is
align:start position:0%answer will be I don't know what is
align:start position:0%answer will be I don't know what isgoing to be it's random it depends on
align:start position:0%going to be it's random it depends on
align:start position:0%going to be it's random it depends onwhat capital y will end up being my
align:start position:0%what capital y will end up being my
align:start position:0%what capital y will end up being myrevised forecast is a random variable
align:start position:0%revised forecast is a random variable
align:start position:0%revised forecast is a random variablethe expected value of x given Y which
align:start position:0%the expected value of x given Y which
align:start position:0%the expected value of x given Y whichwill take this particular numerical
align:start position:0%will take this particular numerical
align:start position:0%will take this particular numericalvalue if it turns out that the random
align:start position:0%value if it turns out that the random
align:start position:0%value if it turns out that the randomvariable Y takes a specific value little
align:start position:0%variable Y takes a specific value little
align:start position:0%variable Y takes a specific value littleY so this is the forecast calculated at
align:start position:0%Y so this is the forecast calculated at
align:start position:0%Y so this is the forecast calculated atthis point in time
align:start position:0%this point in time
align:start position:0%this point in timethis is the forecast viewed in the
align:start position:0%this is the forecast viewed in the
align:start position:0%this is the forecast viewed in thebeginning of the year at which time we
align:start position:0%beginning of the year at which time we
align:start position:0%beginning of the year at which time wedo not know yet the value of the revised
align:start position:0%do not know yet the value of the revised
align:start position:0%do not know yet the value of the revisedforecast now what does the law of
align:start position:0%forecast now what does the law of
align:start position:0%forecast now what does the law ofiterated expectations tell us in this
align:start position:0%iterated expectations tell us in this
align:start position:0%iterated expectations tell us in thiscase it tells us that the expected value
align:start position:0%case it tells us that the expected value
align:start position:0%case it tells us that the expected valueof the revised forecast is the same as
align:start position:0%of the revised forecast is the same as
align:start position:0%of the revised forecast is the same asthe original forecast
align:start position:0%
align:start position:0% what does this mean in practical terms
align:start position:0%
align:start position:0% it means that given today's forecast the
align:start position:0%it means that given today's forecast the
align:start position:0%it means that given today's forecast theoriginal forecast you do not expect the
align:start position:0%original forecast you do not expect the
align:start position:0%original forecast you do not expect thenext forecast the revised one to be
align:start position:0%next forecast the revised one to be
align:start position:0%next forecast the revised one to behigher or lower it could be either
align:start position:0%higher or lower it could be either
align:start position:0%higher or lower it could be eitherhigher or lower but on the average you
align:start position:0%higher or lower but on the average you
align:start position:0%higher or lower but on the average youexpect the revision of the forecast
align:start position:0%expect the revision of the forecast
align:start position:0%expect the revision of the forecastgoing from this one to that one the
align:start position:0%going from this one to that one the
align:start position:0%going from this one to that one therevised one that revision on the average
align:start position:0%revised one that revision on the average
align:start position:0%revised one that revision on the averageto be equal to zero
align:start position:0%to be equal to zero
align:start position:0%to be equal to zeroyou do not expect forecasts to be
align:start position:0%you do not expect forecasts to be
align:start position:0%you do not expect forecasts to berevised either upwards or downwards on
align:start position:0%revised either upwards or downwards on
align:start position:0%revised either upwards or downwards onthe average of course this is not what
align:start position:0%the average of course this is not what
align:start position:0%the average of course this is not whathappens always in real life so suppose
align:start position:0%happens always in real life so suppose
align:start position:0%happens always in real life so supposethat capital X the quantity you're
align:start position:0%that capital X the quantity you're
align:start position:0%that capital X the quantity you'reforecasting is the cost of some big
align:start position:0%forecasting is the cost of some big
align:start position:0%forecasting is the cost of some bigproject and your original budget or
align:start position:0%project and your original budget or
align:start position:0%project and your original budget ororiginal forecast expected value of x is
align:start position:0%original forecast expected value of x is
align:start position:0%original forecast expected value of x iswhat you expect the cost of the project
align:start position:0%what you expect the cost of the project
align:start position:0%what you expect the cost of the projectto be well from experience with real
align:start position:0%to be well from experience with real
align:start position:0%to be well from experience with reallife we kind of know that budgets or
align:start position:0%life we kind of know that budgets or
align:start position:0%life we kind of know that budgets orcost estimates tend to be revised
align:start position:0%cost estimates tend to be revised
align:start position:0%cost estimates tend to be revisedupwards more often than downwards does
align:start position:0%upwards more often than downwards does
align:start position:0%upwards more often than downwards doesthis real-life fact contradict the law
align:start position:0%this real-life fact contradict the law
align:start position:0%this real-life fact contradict the lawof iterated expectations well not really
align:start position:0%of iterated expectations well not really
align:start position:0%of iterated expectations well not reallywhat is going on here is that real life
align:start position:0%what is going on here is that real life
align:start position:0%what is going on here is that real lifeforecasts are not really honestly
align:start position:0%forecasts are not really honestly
align:start position:0%forecasts are not really honestlycalculated expected values but maybe
align:start position:0%calculated expected values but maybe
align:start position:0%calculated expected values but maybethey're calculated with some implicit or
align:start position:0%they're calculated with some implicit or
align:start position:0%they're calculated with some implicit orhidden biases so that the forecasts that
align:start position:0%hidden biases so that the forecasts that
align:start position:0%hidden biases so that the forecasts thatare given are actually not the expected
align:start position:0%are given are actually not the expected
align:start position:0%are given are actually not the expectedvalues so there is no contradiction
align:start position:0%values so there is no contradiction
align:start position:0%values so there is no contradictionbetween this mathematical fact and
align:start position:0%between this mathematical fact and
align:start position:0%between this mathematical fact andpossible life experiences123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595align:start position:0% so I think our reason for really giving
align:start position:0%so I think our reason for really giving
align:start position:0%so I think our reason for really givinga public face to the class in the course
align:start position:0%a public face to the class in the course
align:start position:0%a public face to the class in the courseitself but also on OpenCourseWare I
align:start position:0%itself but also on OpenCourseWare I
align:start position:0%itself but also on OpenCourseWare Ithink there's a number of different
align:start position:0%think there's a number of different
align:start position:0%think there's a number of differentdimensions associated with that first I
align:start position:0%dimensions associated with that first I
align:start position:0%dimensions associated with that first Ithink it's a sort of personal I think
align:start position:0%think it's a sort of personal I think
align:start position:0%think it's a sort of personal I thinkthat Professor teller started this class
align:start position:0%that Professor teller started this class
align:start position:0%that Professor teller started this classand we really want to make these
align:start position:0%and we really want to make these
align:start position:0%and we really want to make thesematerials available to people and really
align:start position:0%materials available to people and really
align:start position:0%materials available to people and reallykind of build on that legacy of the work
align:start position:0%kind of build on that legacy of the work
align:start position:0%kind of build on that legacy of the workthat he's done and if the work that
align:start position:0%that he's done and if the work that
align:start position:0%that he's done and if the work thatwe've contributed this year can help the
align:start position:0%we've contributed this year can help the
align:start position:0%we've contributed this year can help theclass continue on and continue to grow
align:start position:0%class continue on and continue to grow
align:start position:0%class continue on and continue to growand flourish I think that's a really
align:start position:0%and flourish I think that's a really
align:start position:0%and flourish I think that's a reallyexciting part the second piece i think
align:start position:0%exciting part the second piece i think
align:start position:0%exciting part the second piece i thinkis really for the for the students the
align:start position:0%is really for the for the students the
align:start position:0%is really for the for the students theopportunity to interact with people in
align:start position:0%opportunity to interact with people in
align:start position:0%opportunity to interact with people inthe wider community to share their work
align:start position:0%the wider community to share their work
align:start position:0%the wider community to share their workthe work that they've done I think all
align:start position:0%the work that they've done I think all
align:start position:0%the work that they've done I think allof our students are very proud of the
align:start position:0%of our students are very proud of the
align:start position:0%of our students are very proud of thework that they've done they really got
align:start position:0%work that they've done they really got
align:start position:0%work that they've done they really gotinto the projects and working with their
align:start position:0%into the projects and working with their
align:start position:0%into the projects and working with theirclients and so in having a public
align:start position:0%clients and so in having a public
align:start position:0%clients and so in having a publicshowcase at the end and having them
align:start position:0%showcase at the end and having them
align:start position:0%showcase at the end and having themcommunicate their work online in video
align:start position:0%communicate their work online in video
align:start position:0%communicate their work online in videoor through ocw i think is part of the
align:start position:0%or through ocw i think is part of the
align:start position:0%or through ocw i think is part of thelearning experience i think and the
align:start position:0%learning experience i think and the
align:start position:0%learning experience i think and thethird piece is that we really think
align:start position:0%third piece is that we really think
align:start position:0%third piece is that we really thinkthere's a big opportunity in terms of
align:start position:0%there's a big opportunity in terms of
align:start position:0%there's a big opportunity in terms ofassistive technology education or kind
align:start position:0%assistive technology education or kind
align:start position:0%assistive technology education or kindof project based education that we work
align:start position:0%of project based education that we work
align:start position:0%of project based education that we workwith people with disabilities in the
align:start position:0%with people with disabilities in the
align:start position:0%with people with disabilities in thecambridge or boston area but in a lot of
align:start position:0%cambridge or boston area but in a lot of
align:start position:0%cambridge or boston area but in a lot ofways this model could be applied to a
align:start position:0%ways this model could be applied to a
align:start position:0%ways this model could be applied to alot of other places a lot of other
align:start position:0%lot of other places a lot of other
align:start position:0%lot of other places a lot of othercolleges or universities in other in
align:start position:0%colleges or universities in other in
align:start position:0%colleges or universities in other inother towns or cities in the United
align:start position:0%other towns or cities in the United
align:start position:0%other towns or cities in the UnitedStates or around the world there's
align:start position:0%States or around the world there's
align:start position:0%States or around the world there'sthere's really a huge need or a huge
align:start position:0%there's really a huge need or a huge
align:start position:0%there's really a huge need or a hugeopportunity I think to work in assistive
align:start position:0%opportunity I think to work in assistive
align:start position:0%opportunity I think to work in assistivetechnology a lot of potential partners
align:start position:0%technology a lot of potential partners
align:start position:0%technology a lot of potential partnersjust spread geographically and we want
align:start position:0%just spread geographically and we want
align:start position:0%just spread geographically and we wantto kind of communicate how we did it
align:start position:0%to kind of communicate how we did it
align:start position:0%to kind of communicate how we did ithere and maybe share some materials that
align:start position:0%here and maybe share some materials that
align:start position:0%here and maybe share some materials thatmake it a little bit easier for somebody
align:start position:0%make it a little bit easier for somebody
align:start position:0%make it a little bit easier for somebodythinking about doing this or maybe just
align:start position:0%thinking about doing this or maybe just
align:start position:0%thinking about doing this or maybe justto inspire them to think about how they
align:start position:0%to inspire them to think about how they
align:start position:0%to inspire them to think about how theymight be able to work on a
align:start position:0%might be able to work on a
align:start position:0%might be able to work on aa course or project like this I think
align:start position:0%a course or project like this I think
align:start position:0%a course or project like this I thinkone of the more public aspects of the
align:start position:0%one of the more public aspects of the
align:start position:0%one of the more public aspects of theclass as well was the fact that we asked
align:start position:0%class as well was the fact that we asked
align:start position:0%class as well was the fact that we askedour students to write a blog post over
align:start position:0%our students to write a blog post over
align:start position:0%our students to write a blog post overthe semester and so all of them had to
align:start position:0%the semester and so all of them had to
align:start position:0%the semester and so all of them had towrite four different blog posts and a
align:start position:0%write four different blog posts and a
align:start position:0%write four different blog posts and apublic blog for the class and and one
align:start position:0%public blog for the class and and one
align:start position:0%public blog for the class and and onething that's very important to me when
align:start position:0%thing that's very important to me when
align:start position:0%thing that's very important to me whenwe teach about disability is that we're
align:start position:0%we teach about disability is that we're
align:start position:0%we teach about disability is that we'renot coming in as saviors and we're not
align:start position:0%not coming in as saviors and we're not
align:start position:0%not coming in as saviors and we're notcoming into like oh let's share
align:start position:0%coming into like oh let's share
align:start position:0%coming into like oh let's sharewonderful engineering knowledge with you
align:start position:0%wonderful engineering knowledge with you
align:start position:0%wonderful engineering knowledge with youand one of the central aspects of this
align:start position:0%and one of the central aspects of this
align:start position:0%and one of the central aspects of thisclass is that is user centered design
align:start position:0%class is that is user centered design
align:start position:0%class is that is user centered designand we have to recognize that the
align:start position:0%and we have to recognize that the
align:start position:0%and we have to recognize that theclients themselves understand a
align:start position:0%clients themselves understand a
align:start position:0%clients themselves understand adisability the best and they understand
align:start position:0%disability the best and they understand
align:start position:0%disability the best and they understandtype of challenges that come with living
align:start position:0%type of challenges that come with living
align:start position:0%type of challenges that come with livingwith a disability the best so one of the
align:start position:0%with a disability the best so one of the
align:start position:0%with a disability the best so one of thegreat things about having those blog
align:start position:0%great things about having those blog
align:start position:0%great things about having those blogposts was that the community outside
align:start position:0%posts was that the community outside
align:start position:0%posts was that the community outsidecould also engage with students and say
align:start position:0%could also engage with students and say
align:start position:0%could also engage with students and saywell this is a good idea maybe this is
align:start position:0%well this is a good idea maybe this is
align:start position:0%well this is a good idea maybe this isnot a good idea have you considered this
align:start position:0%not a good idea have you considered this
align:start position:0%not a good idea have you considered thisother aspect and so we think that by
align:start position:0%other aspect and so we think that by
align:start position:0%other aspect and so we think that byengaging our users that also just makes
align:start position:0%engaging our users that also just makes
align:start position:0%engaging our users that also just makesthe design process a lot more rigorous123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261Our first task is to work on the datapathlogic needed to execute ALU instructions with
two register operands.
Each instruction requires the same processingsteps:
Fetch, where the 32-bit encoded instructionis read from main memory from the location
specified by the program counter (PC).
Decode, where the opcode field (instructionbits [31:26]) is used to determine the values
for the datapath control signals.
Read, where the contents of the registersspecified by the RA and RB fields (instruction
bits [20:16] and [15:11]) are read from theregister file.
Execute, where the requested operation isperformed on the two operand values.
We'll also need to compute the next valuefor the PC.
And Write-back, where the result of the operationis written to the register file in the register
specified by the RC field (instruction bits[25:21]).
The system's clock signal is connected tothe register file and the PC register.
At the rising edge of the clock, the new valuescomputed during the Execute phase are written
to these registers.
The rising clock edge thus marks the end ofexecution for the current instruction and
the beginning of execution for the next instruction.
The period of the clock, i.e., the time betweenrising clock edges, needs to be long enough
to accommodate the cumulative propagationdelay of the logic that implements the 5 steps
described here.
Since one instruction is executed each clockcycle, the frequency of the clock tells us
the rate at which instructions are executed.
If the clock period was 10ns, the clock frequencywould be 100 MHz and our Beta would be executing
instructions at 100 MIPS!
Here's a sketch showing the hardware neededfor the Fetch and Decode steps.
The current value of the PC register is routedto main memory as the address of the instruction
to be fetched.
For ALU instructions, the address of the nextinstruction is simply the address of the current
instruction plus 4.
There's an adder dedicated to performing the"PC+4" computation and that value is routed
back to be used as the next value of the PC.
We've also included a MUX used to select theinitial value for the PC when the RESET signal
is 1.
After the memory propagation delay, the instructionbits (ID[31:0]) are available and the processing
steps can begin.
Some of the instruction fields can be useddirectly as-is.
To determine the values for other controlsignals, we'll need some logic that computes
their values from the bits of the opcode field.
Now let's fill in the datapath logic neededto execute ALU instructions with two register
operands.
The instruction bits for the 5-bit RA, RBand RC fields can be connected directly to
the appropriate address inputs of the registerfile.
The RA and RB fields supply the addressesfor the two read ports and the RC field supplies
the address for the write port.
The outputs of the read data ports are routedto the inputs of the ALU to serve as the two
operands.
The ALUFN control signals tell the ALU whatoperation to perform.
These control signals are determined by thecontrol logic from the 6-bit opcode field.
For specificity, let's assume that the controllogic is implemented using a read-only memory
(ROM), where the opcode bits are used as theROM's address and the ROM's outputs are the
control signals.
Since there are 6 opcode bits, we'll need2^6 = 64 locations in the ROM.
We'll program the contents of the ROM to supplythe correct control signal values for each
of the 64 possible opcodes.
The output of the ALU is routed back to thewrite data port of the register file, to be
written into the RC register at the end ofthe cycle.
We'll need another control signal, WERF ("write-enableregister file"), that should have the value
1 when we want to write into the RC register.
Let me introduce you to Werf, the 6.004 mascot,who, of course, is named after her favorite
control signal, which she's constantly mentioning.
Let's follow the flow of data as we executethe ALU instruction.
After the instruction has been fetched, supplyingthe RA and RB instruction fields, the RA and
RB register values appear on the read dataports of the register file.
The control logic has decoded the opcode bitsand supplied the appropriate ALU function
code.
You can find a listing of the possible functioncodes in the upper right-hand corner of the
Beta Diagram handout.
The result of the ALU's computation is sentback to the register file to be written into
the RC register.
Of course, we'll need to set WERF to 1 toenable the write.
5.oo Here we see one of the major advantagesof a reduced-instruction set computer architecture:
the datapath logic required for executionis very straightforward!
The other form of ALU instructions uses aconstant as the second ALU operand.
The 32-bit operand is formed by sign-extendingthe 16-bit two's complement constant stored
in the literal field (bits [15:0]) of theinstruction.
In order to select the sign-extended constantas the second operand, we added a MUX to the
datapath.
When its BSEL control signal is 0, the outputof the register file is selected as the operand.
When BSEL is 1, the sign-extended constantis selected as the operand.
The rest of the datapath logic is the sameas before.
Note that no logic gates are needed to performsign-extension - it's all done with wiring!
To sign-extend a two's complement number,we just need to replicate the high-order,
or sign, bit as many times as necessary.
You might find it useful to review the discussionof two's complement in Lecture 1 of Part 1
of the course.
So to form a 32-bit operand from a 16-bitconstant, we just replicate it's high-order
bit (ID[15]) sixteen times as we make theconnection to the BSEL MUX.
During execution of ALU-with-constant instructions,the flow of data is much as it was before.
The one difference is that the control logicsets the BSEL control signal to 1, selecting
the sign-extended constant as the second ALUoperand.
As before, the control logic generates theappropriate ALU function code and the output
of the ALU is routed to the register fileto be written back to the RC register.
Amazingly, this datapath is sufficient toexecute most of the instructions in the Beta
ISA!
We just have the memory and branch instructionleft to implement.
That's our next task.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315align:start position:0% in this last lecture of this unit we
align:start position:0%in this last lecture of this unit we
align:start position:0%in this last lecture of this unit wecontinue with some of our earlier themes
align:start position:0%continue with some of our earlier themes
align:start position:0%continue with some of our earlier themesand then introduce one new notion the
align:start position:0%and then introduce one new notion the
align:start position:0%and then introduce one new notion thenotion of independence of random
align:start position:0%notion of independence of random
align:start position:0%notion of independence of randomvariables we will start by elaborating a
align:start position:0%variables we will start by elaborating a
align:start position:0%variables we will start by elaborating abit more on the subject of conditional
align:start position:0%bit more on the subject of conditional
align:start position:0%bit more on the subject of conditionalprobability mass functions we have
align:start position:0%probability mass functions we have
align:start position:0%probability mass functions we havealready discussed the case where we
align:start position:0%already discussed the case where we
align:start position:0%already discussed the case where wecondition a random variable on an event
align:start position:0%condition a random variable on an event
align:start position:0%condition a random variable on an eventhere we will talk about conditioning a
align:start position:0%here we will talk about conditioning a
align:start position:0%here we will talk about conditioning arandom variable on another random
align:start position:0%random variable on another random
align:start position:0%random variable on another randomvariable and we will develop yet another
align:start position:0%variable and we will develop yet another
align:start position:0%variable and we will develop yet anotherversion of the total probability and
align:start position:0%version of the total probability and
align:start position:0%version of the total probability andtotal expectation theorem there are no
align:start position:0%total expectation theorem there are no
align:start position:0%total expectation theorem there are nonew concepts here just new notation I
align:start position:0%new concepts here just new notation I
align:start position:0%new concepts here just new notation Ishould say however that notation is
align:start position:0%should say however that notation is
align:start position:0%should say however that notation isimportant because it guides you on how
align:start position:0%important because it guides you on how
align:start position:0%important because it guides you on howto think about problems in the most
align:start position:0%to think about problems in the most
align:start position:0%to think about problems in the mosteconomical way the one new concept that
align:start position:0%economical way the one new concept that
align:start position:0%economical way the one new concept thatwe will introduce is the notion of
align:start position:0%we will introduce is the notion of
align:start position:0%we will introduce is the notion ofindependence of random variables it is
align:start position:0%independence of random variables it is
align:start position:0%independence of random variables it isactually not an entirely new concept it
align:start position:0%actually not an entirely new concept it
align:start position:0%actually not an entirely new concept itis defined more or less the same way as
align:start position:0%is defined more or less the same way as
align:start position:0%is defined more or less the same way asindependence of events and has a similar
align:start position:0%independence of events and has a similar
align:start position:0%independence of events and has a similarintuitive interpretation two random
align:start position:0%intuitive interpretation two random
align:start position:0%intuitive interpretation two randomvariables are independent if information
align:start position:0%variables are independent if information
align:start position:0%variables are independent if informationabout the value of one of them does not
align:start position:0%about the value of one of them does not
align:start position:0%about the value of one of them does notchange your model or beliefs about the
align:start position:0%change your model or beliefs about the
align:start position:0%change your model or beliefs about theother on the mathematical side we will
align:start position:0%other on the mathematical side we will
align:start position:0%other on the mathematical side we willsee that independence leads to some
align:start position:0%see that independence leads to some
align:start position:0%see that independence leads to someadditional nice properties of means and
align:start position:0%additional nice properties of means and
align:start position:0%additional nice properties of means andvariances we will conclude this lecture
align:start position:0%variances we will conclude this lecture
align:start position:0%variances we will conclude this lectureand this unit on discrete random
align:start position:0%and this unit on discrete random
align:start position:0%and this unit on discrete randomvariables by considering a rather
align:start position:0%variables by considering a rather
align:start position:0%variables by considering a ratherdifficult problem the hard problem we
align:start position:0%difficult problem the hard problem we
align:start position:0%difficult problem the hard problem wewill see that by being systematic and
align:start position:0%will see that by being systematic and
align:start position:0%will see that by being systematic andusing some of the tricks that we have
align:start position:0%using some of the tricks that we have
align:start position:0%using some of the tricks that we havelearned we can calculate the mean and
align:start position:0%learned we can calculate the mean and
align:start position:0%learned we can calculate the mean andvariance of a rather complicated random
align:start position:0%variance of a rather complicated random
align:start position:0%variance of a rather complicated randomvariable123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227Hi.
In this session, we're going tocover a nice review problem
that will look at howto infer one random
variable based on another.
And in this problem, we're giventwo random variables--
X and Y--
and we're also given their jointpdf, which we're told is
a constant 2/3 within theregion bounded by
these orange lines.
And outside of the region,the joint pdf is 0.
So the first thing we're goingto look at, or the first thing
that we're asked to do, is findthe LMS estimator of Y
based on X. Now, remember thatLMS estimator is really just a
conditional expectation.
So the LMS estimator of Y basedon X is the conditional
expectation of Y, given X.
Now, when we have a plot ofthe joint pdf and we're
dealing with these two randomvariables, and especially when
the joint pdf is constant likethis, it's often easy to
calculate this conditionalexpectation visually.
So what we really need to dois just say, given any
particular value of X, whatis the conditional
expectation of Y?
So what we can do is we can justpick some values of X and
see visually what that initialexpectation is.
So for example, if X is 1/2,given that X is 1/2, and since
this whole joint pdf is uniform,then the conditional
slice of Y will be fromhere to here.
And that slice, the conditionaldistribution of Y,
given that X is 1/2, willalso be uniform.
So it'll be uniformfrom here to here.
And if it's uniform, we knowthat the conditional
expectation will just bethe midpoint here.
And so that would be what theconditional expectation of Y
would be, given that X is 1/2.
And we could do the samething for X equals 1.
And we'll see that again,because everything is uniform,
this slice is also goingto be uniform.
And so the conditionalexpectation will again be the
midpoint, which is there.
And then if we just look at itwithin this region, it's
always going to bethe midpoint.
And so we get that the initialexpectation of Y, given X,
will just look like that line,which you can think of it as
just bisecting this angle formedby these two parts of
the region.
But things are a little bitdifferent, though, when we
move to the region whereX is between 1 and 2.
Between 1 and 2, sayat 1 and 1/2, this
line doesn't continue.
Because now, the slice of Y goesfrom here to here, and
again, it's still uniform.
So the midpoint wouldbe there.
And similarly for X equals2, it would be here.
And so for X between 1 and 2,the conditional expectation
actually looks like this.
So you see that there's actuallytwo linear parts of
it, but there's a kinkat X equals 1.
And so by looking at thisvisually and taking advantage
of the fact that everything isuniform, we can pretty easily
figure out what this conditionalexpectation is.
So now, let's actually justwrite it out algebraically.
So for X between 0 and 1, wesaid that it's this line,
which if we look at it, that'sjust 1/2 of X. Now, this is
for X between 0 and 1.
And if X is between 1 and 2,it's going to be this line,
which is a slope of 1.
And if we extend thisdown, it hits the
y-axis at negative 1/2.
So it's X minus 1/2, ifX is between 1 and 2.
And otherwise, it's undefined.
So we'll focus on thesetwo cases here.
Now, the second part of thequestion, now that we know
what the LMS estimator is, we'reasked to find what is
the traditional mean squarederror of this estimator?
So we want to knowhow good is it.
And one way of capturingthat is to look at the
mean squared error.
And so recall that theconditional mean squared error
is given by this expression.
So what we're saying is this iswhat we estimate Y to be.
This is what y really is, sothis difference is how wrong,
or the error in our estimate.
We square it, because otherwise,positive and
negative errors might canceleach other out,
so we square it.
And then this just lookingat each individual
value of x for now.
So this is why it'sthe conditional
mean squared error.
So how do we calculate this?
Well, remember that this g ofX, we said the LMS estimator
is just a conditionalexpectation.
So it's just expectationof Y, given X.
Well, then if you look at this,what this reminds you
of, it reminds you of thedefinition of what a
conditional variance is.
A variance is just, you take therandom variable, subtract
its mean, square it, and takethe expectation of that.
This is no different, exceptthat everything is now the
conditional world of X.
So this is actually theconditional variance of Y,
given X is little x.
What is the conditionalvariance of Y, given
that X is little x?
Now, we can again go backto this plot to
try to help us out.
We can split this upinto regions again.
So just take some little x asan example and see what the
variance is.
So if little x is 1/2, then weknow that the conditional
distribution of Y wouldbe uniform, we said,
from 0 up to here.
Well, that point is thisfrom 0 to 1/2.
And remember, the variance of auniform distribution is just
the width of the uniformdistribution
squared, divided by 12.
And so in this case, the widthwould be 1/2 squared over 12.
And in general, for the regionof X between 0 and 1, the
width of the conditionaldistribution of Y will always
be X, because the width willgo from 0 to wherever X is.
So because of that, theconditional variance will just
be X squared, the width squared,over 12, when X is
between 0 and 1.
Now, let's think about theother case, where X is
between 1 and 2.
Well, if X is between 1 and2, we're over here.
And now, if we take theconditional distribution of Y,
it's again uniform.
But the width now, instead ofvarying with Y, it's always
going to be the same width.
Each of these slices have thesame width, and the width goes
from here-- this is X minus1, and that's X.
So if the width is always goingto be a constant of 1.
And so this variance isgoing to be 1/12.
And from that, we get our answerfor the conditional
mean squared error.
Now, part c asks us to find themean squared error, which
is given by this expression.
And we'll see that it looks verysimilar to this, which
was the conditional meansquared error.
And now, given what weknow from part b,
this is easy to calculate.
We can just apply totalexpectation, because this is
just equal to the integralof the conditional
mean squared error.
And then we need to alsomultiply this by the pf of x,
and then integrate over X. Andthat integral will should be
from X equals 0 to 2, becausethat's the only range that
applies for x, giventhis joint pdf.
Now, in order to do this first,though, we need to
figure out what thepdf of X is.
In order to do that, we can goback to our original joint pdf
of X and Y and marginalize it.
So marginalizing, you couldthink of it as taking this
joint pdf and collapsing it ontothe x-axis so that you
take everything andintegrate out Y.
Now to do that, let'sdo that up here.
We can split it up intotwo sections.
So the section of X between 0and 1, we integrate the joint
pdf from Y equals 0 to Yequals X, which is this
portion of this line.
So we integrate Y. The joint pdfis 2/3, and we integrate Y
out from Y equals 0 to X. Andthen for the portion of X from
1 to 2, we again integrateY out.
Now we integrate Y fromX minus 1 up to X.
So this is X between 0 and 1,and this is X between 1 and 2.
So we just do some little bitof calculus, and we get that
this is going to be 2/3 X whenX is between 0 and 1.
And it's going to be 2/3 whenX is between 1 and 2.
So now that we have what themarginal pdf of X is, we can
plug that into this, and plug inwhat we had for b, and then
calculate what thisactually is.
So remember, we need to takecare of these two cases, these
two regions--
X between 0 and 1, andX between 1 and 2.
So the conditional mean squarederror for X between 0
and 1 is X squared over 2.
So between 0 and 1, this firstpart is X squared over 12.
The pdf of X in that sameregion is 2/3 x.
And we integrate that in theregion from x equals 0 to 1.
And then, we also have thesecond region which
is X from 1 to 2.
In that region, the traditionalmean squared error
from part b is 1/12.
The marginal pdf of X is 2/3,and we do this integral.
And if you just carry out somecalculus here, you'll get that
the final answer isequal to 5/72.
Now, the last part of thisquestion asks us, is this mean
squared error the same thing--
does it equal the expectationof the conditional variance?
And it turns out thatyes, it does.
And to see that, we can justtake this, and use the law of
iterated expectations, becauseiterated expectations tells us
this is in fact equal to theexpectation of Y minus g of X
squared, given X. That's justapplying law of iterated
expectations.
And then, if we look at this,this part that's inside is
exactly equal to the conditionalvariance of Y,
given X. And so these twoare, in fact, the same.
In part c, we calculated whatthe marginal pdf of X is, and
it'll actually be used lateron in this problem.
So for future reference, let'sjust write it down here in
this corner.
Now, so far in thisproblem, we've
looked at the LMS estimator.
And of course, there areother estimators that
you can use as well.
And now in part d, let's lookat the linear LMS estimator.
Now remember, the linear LMSestimator is special, because
it forces the estimator to havea linear relationship.
So the estimator is going tobe a linear function of X.
Now, compare thatto what the LMS
estimator was in this case.
It was two linear pieces,but there was a kink.
And so the entire estimatorwasn't actually linear in X.
Now, the LLMS estimator, or thelinear LMS estimator, will
give us the linear estimator.
It's going to be a linearfunction of X.
And we know that we havea formula for this.
Is the expectation of Y plus thecovariance of X and Y over
the variance of X times X minusexpectation of X. All
right, so in order to calculatewhat this is, we
just need to calculatewhat four things are.
Now, let's start with this lastone, the expected value
of X. To calculate the expectedvalue of X, we just
use a formula.
And from before, we knowwhat the pdf of X is.
And so we know that thisis just going to be X
times fx of x dx.
And in particular, this willgive us that from 0 to 1, it's
going to be X times thepdf of X is 2/3 X,
so it's 2/3 X squared.
And from 1 to 2, it's going tobe X times the pdf of X, which
is just 2/3, so it's 2/3 X dx.
And when you calculatethis out, you'll get
that is equal to 11/9.
Now, let's calculate thevariance of X next.
In order to calculate that,let's use the formula that
variance is equal to theexpectation of X squared minus
the expectation of Xquantity squared.
We had the expectation of X,so let's calculate what the
expectation of X squared is.
Now, it's the same idea.
Instead, we have X squaredtimes f of X dx.
And we'll get the samesort of formula.
We'll split it up again intotwo different parts from X
equals 0 to X equals 1.
It's going to be X squaredtimes pdf, so
it's 2/3 X cubed dx.
And then from X equals 1 to2, it's going to be X
squared times 2/3.
So it's 2/3 X squared dx.
And when we calculate thisout, we'll get that
it's equal to 31/18.
From that, we know that thevariance is going to be equal
to expectation of X squaredminus expectation of X
quantity squared.
Now, expectation of Xsquared is 31/18.
Expectation of X is 11/9.
And when we calculate this,we get that the
variance is equal to 37/162.
So now we have this,and we have that.
Let's calculate what expectationof Y is.
Expectation of Y, let'scalculate it using the law of
iterated expectations.
The law of iterated expectationstells us that
this is equal to the expectationof Y conditioned
on X.
Now, we already know whatexpectation of Y
conditioned on X is.
That was the LMS estimator thatwe calculated earlier.
It's this.
So now we just need tocalculate this out,
and we can do that.
So we know that in the rangefrom X between 0 and 1, it's
equal to 1/2 X. So in the rangefrom 0 to 1, it's equal
to 1/2 X. But then, we have touse total expectation, so we
have to multiply by the pdfof X in that region
which is 2/3 X dx.
And then in the range fromX equals 1 to 2, this
conditional expectationis X minus 1/2.
And the pdf of X in thatregion is 2/3.
Now, when we calculate out thisvalue, we'll get that
it's equal to 7/9.
And now, the last piece is thecovariance of X and Y.
Remember, the covariance, wecan calculate that as the
expectation of X times Y minusthe expectation of X times the
expectation of Y. We alreadyknow the expectation of X and
the expectation of Y, so wejust need to calculate the
expectation of X times Y,the product of the two.
And for that, we'll use thedefinition, and we'll use the
joint pdf that we have.
So this is going to be a doubleintegral of X times Y
times the joint pdf.
And the tricky part here is justfiguring out what these
limits are.
So we'll integratein this order--
X and Y.
Now, let's split this up.
So let's focus onsplitting X up.
So for X between 0 and 1, wejust need to figure out what's
the rate right range of Y tointegrate over such that this
is actually non-zero.
Because remember, thejoint pdf is easy.
It's just a constant 2/3.
But it's only a constant2/3 within this region.
So the difficult part is justfiguring out what the limits
are in order to specifythat region.
So for X between 0 and 1, Yhas to be between 0 and X,
because this line is Y equalsX. So we need to integrate
from 0 to X--
X times Y times the jointpdf, which is 2/3.
And now, let's do the otherpart, which is X from 1 to 2.
Well, if X is from 1 to 2, inorder to fall into this
region, Y has to be between Xminus 1 and X. So we integrate
Y from X minus 1 to X. Against,it's X times Y times
the joint pdf, which is 2/3.
And now, once we have this setup, the rest of it we can just
do some calculus.
And what we find isthat the final
answer is equal to 41/36.
Now, what that tells us is thatthe covariance of X and
Y, which is just expectationof X times Y, the product,
minus expectation of X timesexpectation of Y.
We know expectationof X times Y now.
It's 41/36.
Expectation of X is 11/9.
Expectation of Y is 7/9.
So when we substitute all ofthat in, we get that this
covariance is 61/324.
All right, so now we haveeverything we need.
Expectation of Y is here.
Covariance is here.
Variance of X is here.
And expectation of X is here.
So let's substitute that in, andwe can figure out what the
actual LLMS estimator is.
So expectation of Ywe know is 7/9.
Expectation of X is 11/9.
And when you divide thecovariance, which is 61/324,
by the variance, which is37/162, we'll get 61/74.
And so that is the LLMSestimator that we calculated.
And notice that it is,in fact, linear in X.
So let's plot that and seewhat it looks like.
So it's going to be aline, and it's going
to look like this.
So at X equals 2, it's actuallya little bit below 1
and 1/2, which is what theLMS estimator would be.
At X equals 1, it's actually alittle bit above 1/2, which is
what the LMS estimatorwould be.
And then it crosses 0 aroundroughly 1/4, and it drops
actually below 0.
So if we connect the dots,it's going to look
something like this.
So notice that it's actually nottoo far away from the LMS
estimator here.
But it doesn't have the kinkbecause it is a line.
And note also that it actuallydrops below.
So when X is very small, youactually estimate negative
values of Y, which is actuallyimpossible, given the joint
pdf distribution thatwe're given.
And that is sometimes a featureor artifact of the
linear LMS estimator, thatyou'll get values that don't
necessarily seemto make sense.
So now that we've calculatedthe linear LMS estimator in
part d, which is this, and theLMS estimator in part a, which
is this, we've also comparedthem visually.
The linear LMS estimatoris the one in pink,
the straight line.
And the LMS estimator is theone in black with the kink.
It's an interesting questionto now ask, which
one of these is better?
And in order to judge that, weneed to come up with some sort
of criterion to comparethe two with.
And the one that we're goingto look at in part e is the
mean squared error.
Which one gives the lowermean squared error.
And so specifically, we're goingto ask ourselves which
of these two estimatorsgives us the smaller
mean squared error?
Is it the linear LMS estimatorgiven by l of X?
Or is it the LMS estimator,given by g of X?
Now, we know that the LMSestimator is the one that
actually minimizes this.
The LMS estimator is designedto minimize the
mean squared error.
And so we know that given anyestimator of X, this one will
have the smallest meansquared error.
And so the linear LMS estimator,its mean squared
error has to be at least aslarge as the LMS estimators.
And the last part of thequestion now asks us to look
at a third type of estimator,which is the MEP estimator.
Now, we want to ask, why is itthat we haven't been using the
MEP estimator in this problem?
Well, remember what theMEP estimator does.
In this case, what we woulddo is it would take the
conditional distribution ratioof Y given any value of X. And
then it would pick the valueof Y that gives the highest
value in the conditionaldistribution.
And that would be theMEP estimate of Y.
But the problem in this case isthat if you take any slice
here, so a condition on anyvalue of X, any of these
slices, if you just take thisout and look at it, it's going
to be uniform.
This is what the conditionaldistribution of Y given X is.
It's going to be uniform between0 and X. Now, what the
MEP rule tells us is we're goingto pick the value of Y
that gives us the highest pointin this conditional
distribution.
You can think of it as aposterior distribution.
Now, what's the problem here?
Well, every single point givesus exactly the same value for
this conditional distribution.
And so there's nounique MEP rule.
Every single value of Y hasjust the same conditional
distribution.
So there's no sensible way ofchoosing a value based on the
MEP rule in this case.
But compare that with the LMSestimator, which is just get
conditional expectation.
In that case, we can alwaysfind a conditional
expectation.
In this case, the conditionalexpectation is the midpoint,
which is X/2, just ashad found in part a.
OK, so in this problem, wereviewed a bunch of different
ideas in terms of inference, andwe took a joint pdf of X
and Y, and we used that tocalculate the LMS estimator,
the linear LMS estimator.
We compared the two, and then wealso looked at why in this
case, the MEP estimator doesn'treally make sense.
All right, so I hope thatwas helpful, and we'll
see you next time.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024align:start position:0% here are two people
align:start position:0%here are two people
align:start position:0%here are two peoplethey're both standing but they're
align:start position:0%they're both standing but they're
align:start position:0%they're both standing but they'restanding in two completely different
align:start position:0%standing in two completely different
align:start position:0%standing in two completely differentways
align:start position:0%ways
align:start position:0%wayswhich person would be easier to push
align:start position:0%which person would be easier to push
align:start position:0%which person would be easier to pushover if you wanted to push
align:start position:0%over if you wanted to push
align:start position:0%over if you wanted to pushthis person over where would you apply a
align:start position:0%this person over where would you apply a
align:start position:0%this person over where would you apply aforce and what about
align:start position:0%force and what about
align:start position:0%force and what aboutthis person the answers to all these
align:start position:0%this person the answers to all these
align:start position:0%this person the answers to all thesequestions can be explained using the
align:start position:0%questions can be explained using the
align:start position:0%questions can be explained using theconcept
align:start position:0%concept
align:start position:0%conceptof torque this video is part of the
align:start position:0%of torque this video is part of the
align:start position:0%of torque this video is part of therepresentations video series
align:start position:0%representations video series
align:start position:0%representations video seriesinformation can be represented in words
align:start position:0%information can be represented in words
align:start position:0%information can be represented in wordsthrough mathematical symbols
align:start position:0%through mathematical symbols
align:start position:0%through mathematical symbolsgraphically or in 3d models
align:start position:0%graphically or in 3d models
align:start position:0%graphically or in 3d modelsrepresentations are used to develop a
align:start position:0%representations are used to develop a
align:start position:0%representations are used to develop adeeper and more flexible understanding
align:start position:0%deeper and more flexible understanding
align:start position:0%deeper and more flexible understandingof objects
align:start position:0%of objects
align:start position:0%of objectssystems and processes hi i'm sanjay
align:start position:0%systems and processes hi i'm sanjay
align:start position:0%systems and processes hi i'm sanjaysarma professor of mechanical
align:start position:0%sarma professor of mechanical
align:start position:0%sarma professor of mechanicalengineering at mit
align:start position:0%engineering at mit
align:start position:0%engineering at mitin this video we will be talking about
align:start position:0%in this video we will be talking about
align:start position:0%in this video we will be talking abouttorque and balance
align:start position:0%torque and balance
align:start position:0%torque and balancein order to understand these core
align:start position:0%in order to understand these core
align:start position:0%in order to understand these coreconcepts you'll need a working knowledge
align:start position:0%concepts you'll need a working knowledge
align:start position:0%concepts you'll need a working knowledgeof vectors
align:start position:0%of vectors
align:start position:0%of vectorsand their uses specifically you must be
align:start position:0%and their uses specifically you must be
align:start position:0%and their uses specifically you must befamiliar with force
align:start position:0%familiar with force
align:start position:0%familiar with forcedisplacement and torque we will also
align:start position:0%displacement and torque we will also
align:start position:0%displacement and torque we will alsoassume that you know how to compute
align:start position:0%assume that you know how to compute
align:start position:0%assume that you know how to computea cross product and how to use the right
align:start position:0%a cross product and how to use the right
align:start position:0%a cross product and how to use the righthand rule
align:start position:0%hand rule
align:start position:0%hand ruleand that you've done problems involving
align:start position:0%and that you've done problems involving
align:start position:0%and that you've done problems involvingthe center of mass
align:start position:0%the center of mass
align:start position:0%the center of massof an object our objective is to improve
align:start position:0%of an object our objective is to improve
align:start position:0%of an object our objective is to improveyour ability
align:start position:0%your ability
align:start position:0%your abilityto draw torque diagrams and give you
align:start position:0%to draw torque diagrams and give you
align:start position:0%to draw torque diagrams and give yousome practice with setting them up
align:start position:0%some practice with setting them up
align:start position:0%some practice with setting them upby the end you should also understand
align:start position:0%by the end you should also understand
align:start position:0%by the end you should also understandwhat is needed
align:start position:0%what is needed
align:start position:0%what is neededfor human beings to balance we'll start
align:start position:0%for human beings to balance we'll start
align:start position:0%for human beings to balance we'll startwith an activity
align:start position:0%with an activity
align:start position:0%with an activityeveryone stand up and spread out across
align:start position:0%everyone stand up and spread out across
align:start position:0%everyone stand up and spread out acrossthe room you'll need a partner for this
align:start position:0%the room you'll need a partner for this
align:start position:0%the room you'll need a partner for thisactivity
align:start position:0%activity
align:start position:0%activitywhen i say go your goal is to carefully
align:start position:0%when i say go your goal is to carefully
align:start position:0%when i say go your goal is to carefullypush your partner over
align:start position:0%push your partner over
align:start position:0%push your partner overuse the smallest amount of force you can
align:start position:0%use the smallest amount of force you can
align:start position:0%use the smallest amount of force you canyou will switch partners halfway through
align:start position:0%you will switch partners halfway through
align:start position:0%you will switch partners halfway throughso be gentle
align:start position:0%so be gentle
align:start position:0%so be gentlewhen you push consider where you should
align:start position:0%when you push consider where you should
align:start position:0%when you push consider where you shouldpush and in what direction
align:start position:0%push and in what direction
align:start position:0%push and in what directiontry many different approaches here are
align:start position:0%try many different approaches here are
align:start position:0%try many different approaches here aresome questions that may help you think
align:start position:0%some questions that may help you think
align:start position:0%some questions that may help you thinkabout this
align:start position:0%about this
align:start position:0%about thisin a scientific manner when it comes to
align:start position:0%in a scientific manner when it comes to
align:start position:0%in a scientific manner when it comes toyour push
align:start position:0%your push
align:start position:0%your pushwhere will you push what direction will
align:start position:0%where will you push what direction will
align:start position:0%where will you push what direction willyou push
align:start position:0%you push
align:start position:0%you pushhow hard will you push consider your
align:start position:0%how hard will you push consider your
align:start position:0%how hard will you push consider yourpartner as well
align:start position:0%partner as well
align:start position:0%partner as wellhow is your partner standing what is the
align:start position:0%how is your partner standing what is the
align:start position:0%how is your partner standing what is theflow like
align:start position:0%flow like
align:start position:0%flow likeunder your partner's feet can your
align:start position:0%under your partner's feet can your
align:start position:0%under your partner's feet can yourpartner balance well
align:start position:0%partner balance well
align:start position:0%partner balance wellare you ready go
align:start position:0%
align:start position:0% switch partners
align:start position:0%
align:start position:0% your teacher will now lead you in a
align:start position:0%your teacher will now lead you in a
align:start position:0%your teacher will now lead you in ashort discussion about this activity
align:start position:0%short discussion about this activity
align:start position:0%short discussion about this activitypause the video here
align:start position:0%
align:start position:0% let's continue our investigation of
align:start position:0%let's continue our investigation of
align:start position:0%let's continue our investigation oftorque imbalance in the human body
align:start position:0%torque imbalance in the human body
align:start position:0%torque imbalance in the human bodytake a look at this next video clip in
align:start position:0%take a look at this next video clip in
align:start position:0%take a look at this next video clip inwhich mit researchers
align:start position:0%which mit researchers
align:start position:0%which mit researcherscolin fredericks and jennifer french
align:start position:0%colin fredericks and jennifer french
align:start position:0%colin fredericks and jennifer frenchdemonstrate
align:start position:0%demonstrate
align:start position:0%demonstratethe effectiveness of properly applied
align:start position:0%the effectiveness of properly applied
align:start position:0%the effectiveness of properly appliedtorque
align:start position:0%
align:start position:0% this is called saison stance this is a
align:start position:0%this is called saison stance this is a
align:start position:0%this is called saison stance this is abasic stance in martial arts known for
align:start position:0%basic stance in martial arts known for
align:start position:0%basic stance in martial arts known forits stability along a particular
align:start position:0%its stability along a particular
align:start position:0%its stability along a particulardirection
align:start position:0%direction
align:start position:0%directionthis is my colleague mathematician
align:start position:0%this is my colleague mathematician
align:start position:0%this is my colleague mathematicianjennifer french
align:start position:0%jennifer french
align:start position:0%jennifer frenchjen knows that the stance is strong
align:start position:0%jen knows that the stance is strong
align:start position:0%jen knows that the stance is strongalong certain directions
align:start position:0%along certain directions
align:start position:0%along certain directionssuch as the one she's pulling in now
align:start position:0%
align:start position:0% it can also withstand a great deal of
align:start position:0%it can also withstand a great deal of
align:start position:0%it can also withstand a great deal offorce in the opposite direction
align:start position:0%force in the opposite direction
align:start position:0%force in the opposite directioni'm not going to be knocked over if
align:start position:0%i'm not going to be knocked over if
align:start position:0%i'm not going to be knocked over ifshe's pushing or pulling along that
align:start position:0%she's pushing or pulling along that
align:start position:0%she's pushing or pulling along thatparticular line
align:start position:0%
align:start position:0% however jen knows the stance's weak
align:start position:0%however jen knows the stance's weak
align:start position:0%however jen knows the stance's weakpoint if she pushes along a different
align:start position:0%point if she pushes along a different
align:start position:0%point if she pushes along a differentline it'll knock me right down to the
align:start position:0%line it'll knock me right down to the
align:start position:0%line it'll knock me right down to theground
align:start position:0%
align:start position:0% this isn't just martial arts this is
align:start position:0%this isn't just martial arts this is
align:start position:0%this isn't just martial arts this isscience torque controls my ability to
align:start position:0%science torque controls my ability to
align:start position:0%science torque controls my ability tobalance and we're going to show you how
align:start position:0%balance and we're going to show you how
align:start position:0%balance and we're going to show you howtoday
align:start position:0%
align:start position:0% to analyze the situation let's look at
align:start position:0%to analyze the situation let's look at
align:start position:0%to analyze the situation let's look atwhat physical properties are important
align:start position:0%what physical properties are important
align:start position:0%what physical properties are importanthere
align:start position:0%here
align:start position:0%herewhat forces do you think are involved
align:start position:0%what forces do you think are involved
align:start position:0%what forces do you think are involvedpause the video
align:start position:0%pause the video
align:start position:0%pause the videoto discuss
align:start position:0%
align:start position:0% next draw a simple diagram that you can
align:start position:0%next draw a simple diagram that you can
align:start position:0%next draw a simple diagram that you canuse
align:start position:0%use
align:start position:0%useto find the net torque on this man pause
align:start position:0%to find the net torque on this man pause
align:start position:0%to find the net torque on this man pausethe video
align:start position:0%the video
align:start position:0%the videowhile you do this
align:start position:0%
align:start position:0% the simplest way to represent this man
align:start position:0%the simplest way to represent this man
align:start position:0%the simplest way to represent this manis with a rectangle
align:start position:0%is with a rectangle
align:start position:0%is with a rectangleyou should remove any other details and
align:start position:0%you should remove any other details and
align:start position:0%you should remove any other details anddraw our forces
align:start position:0%draw our forces
align:start position:0%draw our forcesso that we can tell exactly where
align:start position:0%so that we can tell exactly where
align:start position:0%so that we can tell exactly wherethey're applied to his body
align:start position:0%they're applied to his body
align:start position:0%they're applied to his bodyfinally if you were to draw a diagram
align:start position:0%finally if you were to draw a diagram
align:start position:0%finally if you were to draw a diagramshowing someone resisting a push
align:start position:0%showing someone resisting a push
align:start position:0%showing someone resisting a pushhow would you do it which of these three
align:start position:0%how would you do it which of these three
align:start position:0%how would you do it which of these threeis most appropriate
align:start position:0%is most appropriate
align:start position:0%is most appropriatepause the video to discuss
align:start position:0%
align:start position:0% you may be wondering why we can use a
align:start position:0%you may be wondering why we can use a
align:start position:0%you may be wondering why we can use atwo-dimensional diagram to discuss
align:start position:0%two-dimensional diagram to discuss
align:start position:0%two-dimensional diagram to discussa three-dimensional situation the reason
align:start position:0%a three-dimensional situation the reason
align:start position:0%a three-dimensional situation the reasonis
align:start position:0%is
align:start position:0%isthat all of our forces are applied in
align:start position:0%that all of our forces are applied in
align:start position:0%that all of our forces are applied inthe same plane
align:start position:0%the same plane
align:start position:0%the same planesimplifying the problem while our torque
align:start position:0%simplifying the problem while our torque
align:start position:0%simplifying the problem while our torquevectors point in and out of the screen
align:start position:0%vectors point in and out of the screen
align:start position:0%vectors point in and out of the screenon this diagram
align:start position:0%on this diagram
align:start position:0%on this diagramwe can represent that fairly easily in a
align:start position:0%we can represent that fairly easily in a
align:start position:0%we can represent that fairly easily in amore complex situation we may need to
align:start position:0%more complex situation we may need to
align:start position:0%more complex situation we may need todraw something
align:start position:0%draw something
align:start position:0%draw somethingmore fully three-dimensional as our
align:start position:0%more fully three-dimensional as our
align:start position:0%more fully three-dimensional as ourtorques might point
align:start position:0%torques might point
align:start position:0%torques might pointin other directions this next
align:start position:0%in other directions this next
align:start position:0%in other directions this nextvideo clip will walk you through a
align:start position:0%video clip will walk you through a
align:start position:0%video clip will walk you through apartial analysis
align:start position:0%partial analysis
align:start position:0%partial analysisof the situation you will need a way to
align:start position:0%of the situation you will need a way to
align:start position:0%of the situation you will need a way totake notes
align:start position:0%take notes
align:start position:0%take notesand draw diagrams while you watch
align:start position:0%
align:start position:0% i couldn't push colin over by applying a
align:start position:0%i couldn't push colin over by applying a
align:start position:0%i couldn't push colin over by applying aforce in a stable direction
align:start position:0%force in a stable direction
align:start position:0%force in a stable directionyet when i applied the same force in a
align:start position:0%yet when i applied the same force in a
align:start position:0%yet when i applied the same force in adifferent direction i could push him
align:start position:0%different direction i could push him
align:start position:0%different direction i could push himover
align:start position:0%over
align:start position:0%overhow did i know this torque here you see
align:start position:0%how did i know this torque here you see
align:start position:0%how did i know this torque here you seetwo two-dimensional views representing
align:start position:0%two two-dimensional views representing
align:start position:0%two two-dimensional views representingcolin
align:start position:0%colin
align:start position:0%colinthe width of the base represents the
align:start position:0%the width of the base represents the
align:start position:0%the width of the base represents thedistance between his feet the wide
align:start position:0%distance between his feet the wide
align:start position:0%distance between his feet the widesquare is the view of column from the
align:start position:0%square is the view of column from the
align:start position:0%square is the view of column from theside and stable stance
align:start position:0%side and stable stance
align:start position:0%side and stable stancethe narrow rectangle is the view of
align:start position:0%the narrow rectangle is the view of
align:start position:0%the narrow rectangle is the view ofcolin from straight on
align:start position:0%colin from straight on
align:start position:0%colin from straight onlet's draw in the forces acting on colin
align:start position:0%let's draw in the forces acting on colin
align:start position:0%let's draw in the forces acting on colinas i push him in the stable directions
align:start position:0%as i push him in the stable directions
align:start position:0%as i push him in the stable directionsstart by drawing the center of mass
align:start position:0%start by drawing the center of mass
align:start position:0%start by drawing the center of masswhich we assume is at the center of the
align:start position:0%which we assume is at the center of the
align:start position:0%which we assume is at the center of thesquare
align:start position:0%square
align:start position:0%squarethe force of gravity pulls straight down
align:start position:0%the force of gravity pulls straight down
align:start position:0%the force of gravity pulls straight downwith magnitude three halves
align:start position:0%with magnitude three halves
align:start position:0%with magnitude three halvesthere's also the force of my push of
align:start position:0%there's also the force of my push of
align:start position:0%there's also the force of my push oflength one which we place at the
align:start position:0%length one which we place at the
align:start position:0%length one which we place at thelocation that the force is applied
align:start position:0%location that the force is applied
align:start position:0%location that the force is appliedthis push shifts collin's weight
align:start position:0%this push shifts collin's weight
align:start position:0%this push shifts collin's weightentirely
align:start position:0%entirely
align:start position:0%entirelyto his back foot so the normal force is
align:start position:0%to his back foot so the normal force is
align:start position:0%to his back foot so the normal force isapplied there with magnitude equal and
align:start position:0%applied there with magnitude equal and
align:start position:0%applied there with magnitude equal andopposite
align:start position:0%opposite
align:start position:0%oppositethat of gravity the force of friction is
align:start position:0%that of gravity the force of friction is
align:start position:0%that of gravity the force of friction isalso at this foot
align:start position:0%also at this foot
align:start position:0%also at this footequal and opposite the magnitude and
align:start position:0%equal and opposite the magnitude and
align:start position:0%equal and opposite the magnitude anddirection of the push force
align:start position:0%direction of the push force
align:start position:0%direction of the push forcerecall that torque is r cross f that is
align:start position:0%recall that torque is r cross f that is
align:start position:0%recall that torque is r cross f that istorque occurs when a force is applied
align:start position:0%torque occurs when a force is applied
align:start position:0%torque occurs when a force is appliedsome displacement distance from a
align:start position:0%some displacement distance from a
align:start position:0%some displacement distance from areference point
align:start position:0%reference point
align:start position:0%reference pointwe can choose any reference point we
align:start position:0%we can choose any reference point we
align:start position:0%we can choose any reference point welike and the net torque we compute will
align:start position:0%like and the net torque we compute will
align:start position:0%like and the net torque we compute willbe the same
align:start position:0%be the same
align:start position:0%be the samefor this problem i will choose my
align:start position:0%for this problem i will choose my
align:start position:0%for this problem i will choose myreference point to be the pivot point
align:start position:0%reference point to be the pivot point
align:start position:0%reference point to be the pivot pointwhy don't you try this problem but
align:start position:0%why don't you try this problem but
align:start position:0%why don't you try this problem butchoose the center of mass as the
align:start position:0%choose the center of mass as the
align:start position:0%choose the center of mass as thereference
align:start position:0%reference
align:start position:0%referencepoint let's get back to the problem the
align:start position:0%point let's get back to the problem the
align:start position:0%point let's get back to the problem thepush force and the gravitational force
align:start position:0%push force and the gravitational force
align:start position:0%push force and the gravitational forceare applied some distance from the pivot
align:start position:0%are applied some distance from the pivot
align:start position:0%are applied some distance from the pivotpoint at the foot
align:start position:0%point at the foot
align:start position:0%point at the footso they will create torque however the
align:start position:0%so they will create torque however the
align:start position:0%so they will create torque however thefriction force and normal force
align:start position:0%friction force and normal force
align:start position:0%friction force and normal forceare applied at the pivot point so r is
align:start position:0%are applied at the pivot point so r is
align:start position:0%are applied at the pivot point so r iszero and we can ignore them as we
align:start position:0%zero and we can ignore them as we
align:start position:0%zero and we can ignore them as wecompute the net torque
align:start position:0%compute the net torque
align:start position:0%compute the net torquelet's compute the torque due to the push
align:start position:0%let's compute the torque due to the push
align:start position:0%let's compute the torque due to the pushforce the vector r is the displacement
align:start position:0%force the vector r is the displacement
align:start position:0%force the vector r is the displacementfrom the pivot point to where the force
align:start position:0%from the pivot point to where the force
align:start position:0%from the pivot point to where the forceis applied we decompose this vector into
align:start position:0%is applied we decompose this vector into
align:start position:0%is applied we decompose this vector intoits x and y components
align:start position:0%its x and y components
align:start position:0%its x and y componentswe use a coordinate system with origin
align:start position:0%we use a coordinate system with origin
align:start position:0%we use a coordinate system with originat the pivot point to determine
align:start position:0%at the pivot point to determine
align:start position:0%at the pivot point to determinethe r vector to be four i
align:start position:0%the r vector to be four i
align:start position:0%the r vector to be four iplus three j the magnitude of the push
align:start position:0%plus three j the magnitude of the push
align:start position:0%plus three j the magnitude of the pushforce
align:start position:0%force
align:start position:0%forceis negative one i
align:start position:0%is negative one i
align:start position:0%is negative one ithe magnitude of torque can be found as
align:start position:0%the magnitude of torque can be found as
align:start position:0%the magnitude of torque can be found asthe magnitude of r
align:start position:0%the magnitude of r
align:start position:0%the magnitude of rtimes the magnitude of f times sine
align:start position:0%times the magnitude of f times sine
align:start position:0%times the magnitude of f times sinetheta where theta is the angle between
align:start position:0%theta where theta is the angle between
align:start position:0%theta where theta is the angle betweenthe two vectors
align:start position:0%the two vectors
align:start position:0%the two vectorsthus the magnitude is the area of the
align:start position:0%thus the magnitude is the area of the
align:start position:0%thus the magnitude is the area of theparallelogram
align:start position:0%parallelogram
align:start position:0%parallelogramformed by r and f since the area of this
align:start position:0%formed by r and f since the area of this
align:start position:0%formed by r and f since the area of thisparallelogram
align:start position:0%parallelogram
align:start position:0%parallelogramis also the area of the rectangle formed
align:start position:0%is also the area of the rectangle formed
align:start position:0%is also the area of the rectangle formedby f
align:start position:0%by f
align:start position:0%by fand r sine theta or the component of r
align:start position:0%and r sine theta or the component of r
align:start position:0%and r sine theta or the component of rthat's perpendicular to f
align:start position:0%that's perpendicular to f
align:start position:0%that's perpendicular to fwe can see this magnitude visually as
align:start position:0%we can see this magnitude visually as
align:start position:0%we can see this magnitude visually asthe area of this rectangle
align:start position:0%the area of this rectangle
align:start position:0%the area of this rectanglewe will show the magnitudes in this way
align:start position:0%we will show the magnitudes in this way
align:start position:0%we will show the magnitudes in this waybecause it's very easy to see the
align:start position:0%because it's very easy to see the
align:start position:0%because it's very easy to see therelative magnitudes of the various
align:start position:0%relative magnitudes of the various
align:start position:0%relative magnitudes of the varioustorques
align:start position:0%torques
align:start position:0%torquesso for the push force the area
align:start position:0%so for the push force the area
align:start position:0%so for the push force the areais 3 which means that the magnitude of
align:start position:0%is 3 which means that the magnitude of
align:start position:0%is 3 which means that the magnitude ofthe torque
align:start position:0%the torque
align:start position:0%the torqueis 3.
align:start position:0%
align:start position:0% the direction of the torque vector is
align:start position:0%the direction of the torque vector is
align:start position:0%the direction of the torque vector isalong the axis of rotation caused by
align:start position:0%along the axis of rotation caused by
align:start position:0%along the axis of rotation caused bythis force
align:start position:0%this force
align:start position:0%this forcewe find the direction using the right
align:start position:0%we find the direction using the right
align:start position:0%we find the direction using the righthand rule point our fingers along r
align:start position:0%hand rule point our fingers along r
align:start position:0%hand rule point our fingers along rand curl along f in this case we find
align:start position:0%and curl along f in this case we find
align:start position:0%and curl along f in this case we findthe direction to be
align:start position:0%the direction to be
align:start position:0%the direction to beout of the board or positive k
align:start position:0%out of the board or positive k
align:start position:0%out of the board or positive kso this tells us that the torque due to
align:start position:0%so this tells us that the torque due to
align:start position:0%so this tells us that the torque due tothe push force
align:start position:0%the push force
align:start position:0%the push forceis equal to 3k
align:start position:0%is equal to 3k
align:start position:0%is equal to 3kwe can also find the torque vector by
align:start position:0%we can also find the torque vector by
align:start position:0%we can also find the torque vector bytaking the determinant
align:start position:0%taking the determinant
align:start position:0%taking the determinantof the following 3x3 matrix the first
align:start position:0%of the following 3x3 matrix the first
align:start position:0%of the following 3x3 matrix the firstrow
align:start position:0%row
align:start position:0%rowis i j and k the second row
align:start position:0%is i j and k the second row
align:start position:0%is i j and k the second roware the x y and z components of the r
align:start position:0%are the x y and z components of the r
align:start position:0%are the x y and z components of the rvector
align:start position:0%vector
align:start position:0%vectorand the third row is the x y and z
align:start position:0%and the third row is the x y and z
align:start position:0%and the third row is the x y and zcomponents of the force vector
align:start position:0%components of the force vector
align:start position:0%components of the force vectorbecause r and f lie in the same plane
align:start position:0%because r and f lie in the same plane
align:start position:0%because r and f lie in the same planethe z
align:start position:0%the z
align:start position:0%the zcomponents are zero in our example
align:start position:0%components are zero in our example
align:start position:0%components are zero in our examplethe force is pointing in the negative i
align:start position:0%the force is pointing in the negative i
align:start position:0%the force is pointing in the negative idirection
align:start position:0%direction
align:start position:0%directionand r we found to be 4i plus 3j
align:start position:0%and r we found to be 4i plus 3j
align:start position:0%and r we found to be 4i plus 3jcomputing it this way we also find that
align:start position:0%computing it this way we also find that
align:start position:0%computing it this way we also find thatthe torque is 3k
align:start position:0%the torque is 3k
align:start position:0%the torque is 3know let's find the torque due to gravity
align:start position:0%now let's find the torque due to gravity
align:start position:0%now let's find the torque due to gravitythe vector r is found by connecting the
align:start position:0%the vector r is found by connecting the
align:start position:0%the vector r is found by connecting thepivot point to the center of mass
align:start position:0%pivot point to the center of mass
align:start position:0%pivot point to the center of masswe leave it to you to pause the video
align:start position:0%we leave it to you to pause the video
align:start position:0%we leave it to you to pause the videoand determine the components of r
align:start position:0%and determine the components of r
align:start position:0%and determine the components of rusing this coordinate system
align:start position:0%
align:start position:0% we find the magnitude of the torque by
align:start position:0%we find the magnitude of the torque by
align:start position:0%we find the magnitude of the torque bytaking the component
align:start position:0%taking the component
align:start position:0%taking the componentof r that is perpendicular to f
align:start position:0%of r that is perpendicular to f
align:start position:0%of r that is perpendicular to fpointing in the x direction then the
align:start position:0%pointing in the x direction then the
align:start position:0%pointing in the x direction then themagnitude is the area
align:start position:0%magnitude is the area
align:start position:0%magnitude is the areaof the rectangle between these two
align:start position:0%of the rectangle between these two
align:start position:0%of the rectangle between these twovectors
align:start position:0%vectors
align:start position:0%vectorsagain we find the direction using the
align:start position:0%again we find the direction using the
align:start position:0%again we find the direction using theright hand rule we find the torque to be
align:start position:0%right hand rule we find the torque to be
align:start position:0%right hand rule we find the torque to bepointing
align:start position:0%pointing
align:start position:0%pointinginto the board at the pivot point
align:start position:0%into the board at the pivot point
align:start position:0%into the board at the pivot pointsince the x component of the r vector is
align:start position:0%since the x component of the r vector is
align:start position:0%since the x component of the r vector is
align:start position:0%
align:start position:0%and the force due to gravity is 3 halves
align:start position:0%and the force due to gravity is 3 halves
align:start position:0%and the force due to gravity is 3 halvespointing in the negative j direction
align:start position:0%pointing in the negative j direction
align:start position:0%pointing in the negative j directionthe magnitude of the torque due to
align:start position:0%the magnitude of the torque due to
align:start position:0%the magnitude of the torque due togravity is 3
align:start position:0%gravity is 3
align:start position:0%gravity is 3and it points in the negative k
align:start position:0%and it points in the negative k
align:start position:0%and it points in the negative kdirection so the torque is negative 3
align:start position:0%direction so the torque is negative 3
align:start position:0%direction so the torque is negative 3k at the pivot point adding the push
align:start position:0%k at the pivot point adding the push
align:start position:0%k at the pivot point adding the pushtorque and the gravity torque together
align:start position:0%torque and the gravity torque together
align:start position:0%torque and the gravity torque togetherwe find that we get zero this means that
align:start position:0%we find that we get zero this means that
align:start position:0%we find that we get zero this means thatthere is no
align:start position:0%there is no
align:start position:0%there is norotation about the pivot point now let's
align:start position:0%rotation about the pivot point now let's
align:start position:0%rotation about the pivot point now let'slook in the unstable direction
align:start position:0%look in the unstable direction
align:start position:0%look in the unstable directionwe have all the same forces as before
align:start position:0%we have all the same forces as before
align:start position:0%we have all the same forces as beforeforce of gravity at the center of mass
align:start position:0%force of gravity at the center of mass
align:start position:0%force of gravity at the center of massthe push force a normal force
align:start position:0%the push force a normal force
align:start position:0%the push force a normal forceat the back foot as well as a friction
align:start position:0%at the back foot as well as a friction
align:start position:0%at the back foot as well as a frictionforce
align:start position:0%
align:start position:0% the magnitudes of all of these forces
align:start position:0%the magnitudes of all of these forces
align:start position:0%the magnitudes of all of these forcesare the same as in the other diagram
align:start position:0%are the same as in the other diagram
align:start position:0%are the same as in the other diagramlet's compute the torque due to the push
align:start position:0%let's compute the torque due to the push
align:start position:0%let's compute the torque due to the pushforce the vector r connects
align:start position:0%force the vector r connects
align:start position:0%force the vector r connectsthe pivot point to the place where the
align:start position:0%the pivot point to the place where the
align:start position:0%the pivot point to the place where theforce is applied
align:start position:0%
align:start position:0% using our coordinate axes with the
align:start position:0%using our coordinate axes with the
align:start position:0%using our coordinate axes with theorigin placed at the pivot point we find
align:start position:0%origin placed at the pivot point we find
align:start position:0%origin placed at the pivot point we findthis vector
align:start position:0%this vector
align:start position:0%this vectorto be i plus 3j
align:start position:0%
align:start position:0% we find the magnitude of the torque
align:start position:0%we find the magnitude of the torque
align:start position:0%we find the magnitude of the torquevector as the area of the rectangle
align:start position:0%vector as the area of the rectangle
align:start position:0%vector as the area of the rectangleformed by the force vector
align:start position:0%formed by the force vector
align:start position:0%formed by the force vectorand the component of r perpendicular to
align:start position:0%and the component of r perpendicular to
align:start position:0%and the component of r perpendicular tof
align:start position:0%f
align:start position:0%fthus the area is one times three
align:start position:0%thus the area is one times three
align:start position:0%thus the area is one times threeor three in order to find the direction
align:start position:0%or three in order to find the direction
align:start position:0%or three in order to find the directionwe use the right hand rule point our
align:start position:0%we use the right hand rule point our
align:start position:0%we use the right hand rule point ourfingers along
align:start position:0%fingers along
align:start position:0%fingers alongr curl in the direction of f and our
align:start position:0%r curl in the direction of f and our
align:start position:0%r curl in the direction of f and ourthumb points out of the board so the
align:start position:0%thumb points out of the board so the
align:start position:0%thumb points out of the board so thedirection
align:start position:0%direction
align:start position:0%directionof the torque is k since the magnitude
align:start position:0%of the torque is k since the magnitude
align:start position:0%of the torque is k since the magnitudeis
align:start position:0%is
align:start position:0%is3 that tells us the torque due to the
align:start position:0%3 that tells us the torque due to the
align:start position:0%3 that tells us the torque due to thepush is 3k
align:start position:0%push is 3k
align:start position:0%push is 3kat the pivot point finally let's find
align:start position:0%at the pivot point finally let's find
align:start position:0%at the pivot point finally let's findthe torque due to gravity
align:start position:0%the torque due to gravity
align:start position:0%the torque due to gravitystart by drawing the r vector from the
align:start position:0%start by drawing the r vector from the
align:start position:0%start by drawing the r vector from thepivot point to the center of mass
align:start position:0%pivot point to the center of mass
align:start position:0%pivot point to the center of massnow let's decompose this vector into its
align:start position:0%now let's decompose this vector into its
align:start position:0%now let's decompose this vector into itsx and y components
align:start position:0%x and y components
align:start position:0%x and y componentswe leave this as an exercise to u using
align:start position:0%we leave this as an exercise to u using
align:start position:0%we leave this as an exercise to u usingthe coordinate system
align:start position:0%the coordinate system
align:start position:0%the coordinate systemshown here
align:start position:0%
align:start position:0% the magnitude of the torque due to
align:start position:0%the magnitude of the torque due to
align:start position:0%the magnitude of the torque due togravity at the pivot point is found by
align:start position:0%gravity at the pivot point is found by
align:start position:0%gravity at the pivot point is found bythe area of the rectangle formed by the
align:start position:0%the area of the rectangle formed by the
align:start position:0%the area of the rectangle formed by theforce vector
align:start position:0%force vector
align:start position:0%force vectorand the x component of the r vector
align:start position:0%and the x component of the r vector
align:start position:0%and the x component of the r vectorthe direction is found using the right
align:start position:0%the direction is found using the right
align:start position:0%the direction is found using the righthand rule pointing our fingers along r
align:start position:0%hand rule pointing our fingers along r
align:start position:0%hand rule pointing our fingers along rand curling around f in other words into
align:start position:0%and curling around f in other words into
align:start position:0%and curling around f in other words intothe board or negative k
align:start position:0%
align:start position:0% so the torque due to gravity is
align:start position:0%so the torque due to gravity is
align:start position:0%so the torque due to gravity isone half times three halves
align:start position:0%one half times three halves
align:start position:0%one half times three halvesor three fourths pointing in the
align:start position:0%or three fourths pointing in the
align:start position:0%or three fourths pointing in thenegative k
align:start position:0%negative k
align:start position:0%negative kdirection the net torque about the pivot
align:start position:0%direction the net torque about the pivot
align:start position:0%direction the net torque about the pivotpoint is the sum of these two
align:start position:0%point is the sum of these two
align:start position:0%point is the sum of these twoin other words the torque push plus the
align:start position:0%in other words the torque push plus the
align:start position:0%in other words the torque push plus thetorque due to gravity
align:start position:0%torque due to gravity
align:start position:0%torque due to gravityis the net torque about the pivot point
align:start position:0%is the net torque about the pivot point
align:start position:0%is the net torque about the pivot pointwhich is two and a quarter in the
align:start position:0%which is two and a quarter in the
align:start position:0%which is two and a quarter in thepositive k
align:start position:0%positive k
align:start position:0%positive kdirection that means that there is a
align:start position:0%direction that means that there is a
align:start position:0%direction that means that there is atotal net rotation
align:start position:0%total net rotation
align:start position:0%total net rotationabout the pivot point causing colin to
align:start position:0%about the pivot point causing colin to
align:start position:0%about the pivot point causing colin tofall over
align:start position:0%
align:start position:0% we leave it as an exercise for you to
align:start position:0%we leave it as an exercise for you to
align:start position:0%we leave it as an exercise for you touse the determinant in order to compute
align:start position:0%use the determinant in order to compute
align:start position:0%use the determinant in order to computethe torque vectors
align:start position:0%the torque vectors
align:start position:0%the torque vectorsif you computed the net torque using the
align:start position:0%if you computed the net torque using the
align:start position:0%if you computed the net torque using thecenter of mass as the reference point
align:start position:0%center of mass as the reference point
align:start position:0%center of mass as the reference pointyou should notice that the networks you
align:start position:0%you should notice that the networks you
align:start position:0%you should notice that the networks youfound are equal to the networks that we
align:start position:0%found are equal to the networks that we
align:start position:0%found are equal to the networks that wecomputed here
align:start position:0%
align:start position:0% now that you've seen torque and
align:start position:0%now that you've seen torque and
align:start position:0%now that you've seen torque andbalancing in detail
align:start position:0%balancing in detail
align:start position:0%balancing in detaillet's consider a more complex problem
align:start position:0%let's consider a more complex problem
align:start position:0%let's consider a more complex problemthis one is a bit tricky
align:start position:0%this one is a bit tricky
align:start position:0%this one is a bit trickyi'll show you how it works i'm going to
align:start position:0%i'll show you how it works i'm going to
align:start position:0%i'll show you how it works i'm going totake a chair and place it next to the
align:start position:0%take a chair and place it next to the
align:start position:0%take a chair and place it next to thewall
align:start position:0%wall
align:start position:0%walli'll put my toes up to the wall and step
align:start position:0%i'll put my toes up to the wall and step
align:start position:0%i'll put my toes up to the wall and stepback
align:start position:0%back
align:start position:0%backtoe to heel twice
align:start position:0%
align:start position:0% i step sideways until i'm over the chair
align:start position:0%i step sideways until i'm over the chair
align:start position:0%i step sideways until i'm over the chairthen i went forward
align:start position:0%then i went forward
align:start position:0%then i went forwarduntil my head touches the wall pick up
align:start position:0%until my head touches the wall pick up
align:start position:0%until my head touches the wall pick upthe chair
align:start position:0%the chair
align:start position:0%the chairand stand up or not
align:start position:0%and stand up or not
align:start position:0%and stand up or notthis is something that most women can do
align:start position:0%this is something that most women can do
align:start position:0%this is something that most women can doand
align:start position:0%and
align:start position:0%andmen cannot maybe you think it's a trick
align:start position:0%men cannot maybe you think it's a trick
align:start position:0%men cannot maybe you think it's a trickhere's a video of some of your
align:start position:0%here's a video of some of your
align:start position:0%here's a video of some of yourprofessors trying to lift the chair
align:start position:0%professors trying to lift the chair
align:start position:0%professors trying to lift the chairthemselves okay walk up to the wall
align:start position:0%themselves okay walk up to the wall
align:start position:0%themselves okay walk up to the wallyes and then heel toe you'll tell that's
align:start position:0%yes and then heel toe you'll tell that's
align:start position:0%yes and then heel toe you'll tell that'sit
align:start position:0%it
align:start position:0%itone more time and now translate over but
align:start position:0%one more time and now translate over but
align:start position:0%one more time and now translate over butdon't come in or out
align:start position:0%don't come in or out
align:start position:0%don't come in or outokay now bend over the wall bend over
align:start position:0%okay now bend over the wall bend over
align:start position:0%okay now bend over the wall bend overput your head on the wall
align:start position:0%put your head on the wall
align:start position:0%put your head on the wallpick the chair up now stand up
align:start position:0%
align:start position:0% huh
align:start position:0%
align:start position:0% toes against the wall
align:start position:0%
align:start position:0% one
align:start position:0%
align:start position:0% pick up the chair first clean pick up of
align:start position:0%pick up the chair first clean pick up of
align:start position:0%pick up the chair first clean pick up ofthe chair please
align:start position:0%the chair please
align:start position:0%the chair pleasestand up
align:start position:0%
align:start position:0% okay come on over
align:start position:0%
align:start position:0% here
align:start position:0%here
align:start position:0%hereall right okay and then do it one more
align:start position:0%all right okay and then do it one more
align:start position:0%all right okay and then do it one moretime
align:start position:0%time
align:start position:0%timethe other foot okay okay now
align:start position:0%the other foot okay okay now
align:start position:0%the other foot okay okay nowcan you translate over a little bit just
align:start position:0%can you translate over a little bit just
align:start position:0%can you translate over a little bit justmove over but don't go in or out
align:start position:0%
align:start position:0% now pick up the chair and
align:start position:0%now pick up the chair and
align:start position:0%now pick up the chair andnow stand up no no don't do it again you
align:start position:0%now stand up no no don't do it again you
align:start position:0%now stand up no no don't do it again youhave to pick up the chair clean pick up
align:start position:0%
align:start position:0% now stand up
align:start position:0%
align:start position:0% all right
align:start position:0%
align:start position:0% now it's your turn to try get together
align:start position:0%now it's your turn to try get together
align:start position:0%now it's your turn to try get togetherwith your partner
align:start position:0%with your partner
align:start position:0%with your partneragain and bring a chair over to the wall
align:start position:0%again and bring a chair over to the wall
align:start position:0%again and bring a chair over to the wallwhy don't you pause the video and give
align:start position:0%why don't you pause the video and give
align:start position:0%why don't you pause the video and giveit a try
align:start position:0%
align:start position:0% now that you've attempted the chairlift
align:start position:0%now that you've attempted the chairlift
align:start position:0%now that you've attempted the chairliftlet's return to our seats and discuss
align:start position:0%let's return to our seats and discuss
align:start position:0%let's return to our seats and discusswhat happened if you wanted to figure
align:start position:0%what happened if you wanted to figure
align:start position:0%what happened if you wanted to figureout why this happens
align:start position:0%out why this happens
align:start position:0%out why this happenswhat information would you need what
align:start position:0%what information would you need what
align:start position:0%what information would you need whatassumptions
align:start position:0%assumptions
align:start position:0%assumptionswould you have to make discuss the
align:start position:0%would you have to make discuss the
align:start position:0%would you have to make discuss thematter with your partner
align:start position:0%matter with your partner
align:start position:0%matter with your partnertry to draw a diagram of the situation
align:start position:0%try to draw a diagram of the situation
align:start position:0%try to draw a diagram of the situationpause the video here
align:start position:0%pause the video here
align:start position:0%pause the video herewhile you work this out
align:start position:0%
align:start position:0% many of you should be wondering about
align:start position:0%many of you should be wondering about
align:start position:0%many of you should be wondering aboutthe center of mass for this situation
align:start position:0%the center of mass for this situation
align:start position:0%the center of mass for this situationthis diagram shows typical locations for
align:start position:0%this diagram shows typical locations for
align:start position:0%this diagram shows typical locations forthe center of mass
align:start position:0%the center of mass
align:start position:0%the center of massin men on your left and women on the
align:start position:0%in men on your left and women on the
align:start position:0%in men on your left and women on theright
align:start position:0%right
align:start position:0%rightnot only are men typically taller but
align:start position:0%not only are men typically taller but
align:start position:0%not only are men typically taller buttheir center of mass is usually higher
align:start position:0%their center of mass is usually higher
align:start position:0%their center of mass is usually higherin their bodies this is not always true
align:start position:0%in their bodies this is not always true
align:start position:0%in their bodies this is not always truebut it is fairly typical
align:start position:0%but it is fairly typical
align:start position:0%but it is fairly typicalusing this information work with your
align:start position:0%using this information work with your
align:start position:0%using this information work with yourpartner to try to explain what is
align:start position:0%partner to try to explain what is
align:start position:0%partner to try to explain what ishappening
align:start position:0%happening
align:start position:0%happeningwhy can women left the chair when men
align:start position:0%why can women left the chair when men
align:start position:0%why can women left the chair when mencannot
align:start position:0%cannot
align:start position:0%cannotyou do not need to obtain a numerical
align:start position:0%you do not need to obtain a numerical
align:start position:0%you do not need to obtain a numericalsolution
align:start position:0%solution
align:start position:0%solutioninstead use reasoned arguments diagrams
align:start position:0%instead use reasoned arguments diagrams
align:start position:0%instead use reasoned arguments diagramsand well-supported assumptions to prove
align:start position:0%and well-supported assumptions to prove
align:start position:0%and well-supported assumptions to proveyour answer
align:start position:0%your answer
align:start position:0%your answeronly use calculations if you cannot
align:start position:0%only use calculations if you cannot
align:start position:0%only use calculations if you cannotsupport your answer in any other way
align:start position:0%support your answer in any other way
align:start position:0%support your answer in any other waypause the video and give it a try
align:start position:0%
align:start position:0% are you ready to see the solution let's
align:start position:0%are you ready to see the solution let's
align:start position:0%are you ready to see the solution let'stake a look
align:start position:0%take a look
align:start position:0%take a lookfor this section we will measure torques
align:start position:0%for this section we will measure torques
align:start position:0%for this section we will measure torquesaround the center of mass
align:start position:0%around the center of mass
align:start position:0%around the center of massthis will simplify our work so that we
align:start position:0%this will simplify our work so that we
align:start position:0%this will simplify our work so that wedon't have to worry about the person's
align:start position:0%don't have to worry about the person's
align:start position:0%don't have to worry about the person'smass
align:start position:0%mass
align:start position:0%massand the pull of gravity this diagram
align:start position:0%and the pull of gravity this diagram
align:start position:0%and the pull of gravity this diagramshows
align:start position:0%shows
align:start position:0%showsthe man lifting the chair you can see
align:start position:0%the man lifting the chair you can see
align:start position:0%the man lifting the chair you can seethat the center of mass
align:start position:0%that the center of mass
align:start position:0%that the center of massis outside his body and has been moved
align:start position:0%is outside his body and has been moved
align:start position:0%is outside his body and has been movedforward and down
align:start position:0%forward and down
align:start position:0%forward and downby the chair this diagram shows the same
align:start position:0%by the chair this diagram shows the same
align:start position:0%by the chair this diagram shows the samefor the woman her center of mass is also
align:start position:0%for the woman her center of mass is also
align:start position:0%for the woman her center of mass is alsojust
align:start position:0%just
align:start position:0%justoutside her body but is much closer to
align:start position:0%outside her body but is much closer to
align:start position:0%outside her body but is much closer toher legs
align:start position:0%her legs
align:start position:0%her legsif we draw a line for the man to
align:start position:0%if we draw a line for the man to
align:start position:0%if we draw a line for the man toindicate where his toes are
align:start position:0%indicate where his toes are
align:start position:0%indicate where his toes areyou can see that the center of mass is
align:start position:0%you can see that the center of mass is
align:start position:0%you can see that the center of mass isbeyond the edge of his foot
align:start position:0%beyond the edge of his foot
align:start position:0%beyond the edge of his footno matter how hard he tries he simply
align:start position:0%no matter how hard he tries he simply
align:start position:0%no matter how hard he tries he simplycannot apply force
align:start position:0%cannot apply force
align:start position:0%cannot apply forcein the right place to lift that chair
align:start position:0%in the right place to lift that chair
align:start position:0%in the right place to lift that chairon our diagram we can see that the
align:start position:0%on our diagram we can see that the
align:start position:0%on our diagram we can see that thetorque will always point in the
align:start position:0%torque will always point in the
align:start position:0%torque will always point in thedirection
align:start position:0%direction
align:start position:0%directionout of the screen it will rotate the man
align:start position:0%out of the screen it will rotate the man
align:start position:0%out of the screen it will rotate the mancounterclockwise
align:start position:0%counterclockwise
align:start position:0%counterclockwisepushing his head harder into the wall
align:start position:0%pushing his head harder into the wall
align:start position:0%pushing his head harder into the wallthe harder he pushes
align:start position:0%the harder he pushes
align:start position:0%the harder he pushesthe worse it will be the woman however
align:start position:0%the worse it will be the woman however
align:start position:0%the worse it will be the woman howeverhas her center of mass above her feet
align:start position:0%has her center of mass above her feet
align:start position:0%has her center of mass above her feetshe can stand up
align:start position:0%she can stand up
align:start position:0%she can stand upbecause her feet are able to apply force
align:start position:0%because her feet are able to apply force
align:start position:0%because her feet are able to apply forcein the proper location
align:start position:0%in the proper location
align:start position:0%in the proper locationand direction
align:start position:0%
align:start position:0% if we draw a torque diagram we can see
align:start position:0%if we draw a torque diagram we can see
align:start position:0%if we draw a torque diagram we can seethat the direction
align:start position:0%that the direction
align:start position:0%that the directionof torque applied by her feet will be
align:start position:0%of torque applied by her feet will be
align:start position:0%of torque applied by her feet will beinto the screen
align:start position:0%into the screen
align:start position:0%into the screenby applying more force she can rotate
align:start position:0%by applying more force she can rotate
align:start position:0%by applying more force she can rotateher upper body clockwise
align:start position:0%her upper body clockwise
align:start position:0%her upper body clockwiseand stand up whereas the man cannot
align:start position:0%and stand up whereas the man cannot
align:start position:0%and stand up whereas the man cannottoday we hope that you have improved
align:start position:0%today we hope that you have improved
align:start position:0%today we hope that you have improvedyour ability to draw torque diagrams
align:start position:0%your ability to draw torque diagrams
align:start position:0%your ability to draw torque diagramsand to analyze torque problems that
align:start position:0%and to analyze torque problems that
align:start position:0%and to analyze torque problems thatoccur in the real world
align:start position:0%occur in the real world
align:start position:0%occur in the real worldtorque is an important quantity that
align:start position:0%torque is an important quantity that
align:start position:0%torque is an important quantity thatcomes into play in countless situations
align:start position:0%comes into play in countless situations
align:start position:0%comes into play in countless situationsaround us
align:start position:0%around us
align:start position:0%around usfrom machinery to buildings to the
align:start position:0%from machinery to buildings to the
align:start position:0%from machinery to buildings to thesimple act of walking
align:start position:0%simple act of walking
align:start position:0%simple act of walkingi hope you've enjoyed this look at one
align:start position:0%i hope you've enjoyed this look at one
align:start position:0%i hope you've enjoyed this look at oneof its most fascinating applications
align:start position:0%
align:start position:0% you123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475align:start position:0% suppose we have a rigid body and it's
align:start position:0%suppose we have a rigid body and it's
align:start position:0%suppose we have a rigid body and it'srotating about a fixed axis and we know
align:start position:0%rotating about a fixed axis and we know
align:start position:0%rotating about a fixed axis and we knowthat the angular acceleration Alpha is
align:start position:0%that the angular acceleration Alpha is
align:start position:0%that the angular acceleration Alpha isgiven now it may be a function of time
align:start position:0%given now it may be a function of time
align:start position:0%given now it may be a function of timeand we'd like to find from this the
align:start position:0%and we'd like to find from this the
align:start position:0%and we'd like to find from this theangular velocity and how much angle has
align:start position:0%angular velocity and how much angle has
align:start position:0%angular velocity and how much angle hasrotated in sometime interval so the
align:start position:0%rotated in sometime interval so the
align:start position:0%rotated in sometime interval so thefirst thing we have to do is choose a
align:start position:0%first thing we have to do is choose a
align:start position:0%first thing we have to do is choose apoint in the rigid body and introduce a
align:start position:0%point in the rigid body and introduce a
align:start position:0%point in the rigid body and introduce acoordinate system here we have our angle
align:start position:0%coordinate system here we have our angle
align:start position:0%coordinate system here we have our angleTheta and with this point we have our R
align:start position:0%Theta and with this point we have our R
align:start position:0%Theta and with this point we have our Rhat and our Theta hat Direction and
align:start position:0%hat and our Theta hat Direction and
align:start position:0%hat and our Theta hat Direction andrecall that by the right hand rule the K
align:start position:0%recall that by the right hand rule the K
align:start position:0%recall that by the right hand rule the Khat is
align:start position:0%hat is
align:start position:0%hat isgoing out of the plane of the
align:start position:0%going out of the plane of the
align:start position:0%going out of the plane of thefigure and so we have our coordinate
align:start position:0%figure and so we have our coordinate
align:start position:0%figure and so we have our coordinatesystem and we wrote Alpha as the second
align:start position:0%system and we wrote Alpha as the second
align:start position:0%system and we wrote Alpha as the secondderivative of theta with respect to time
align:start position:0%derivative of theta with respect to time
align:start position:0%derivative of theta with respect to timeK hat now our goal is to
align:start position:0%K hat now our goal is to
align:start position:0%K hat now our goal is tofind
align:start position:0%find
align:start position:0%findOmega which we'll write
align:start position:0%Omega which we'll write
align:start position:0%Omega which we'll writeas the first derivative of D Theta DT K
align:start position:0%as the first derivative of D Theta DT K
align:start position:0%as the first derivative of D Theta DT Khat and also to find Theta as a function
align:start position:0%hat and also to find Theta as a function
align:start position:0%hat and also to find Theta as a functionof time now recall that our notation was
align:start position:0%of time now recall that our notation was
align:start position:0%of time now recall that our notation wasthat Alpha Z was the Omega Z
align:start position:0%that Alpha Z was the Omega Z
align:start position:0%that Alpha Z was the Omega Zdtal d^2 Theta DT ^2 and in this
align:start position:0%dtal d^2 Theta DT ^2 and in this
align:start position:0%dtal d^2 Theta DT ^2 and in thisnotation Omega Z was equal to D Theta DT
align:start position:0%notation Omega Z was equal to D Theta DT
align:start position:0%notation Omega Z was equal to D Theta DTnow what we're going to do is we're
align:start position:0%now what we're going to do is we're
align:start position:0%now what we're going to do is we'regoing to integrate Alpha just like we
align:start position:0%going to integrate Alpha just like we
align:start position:0%going to integrate Alpha just like wedid
align:start position:0%did
align:start position:0%didin simple circular motion kinematics for
align:start position:0%in simple circular motion kinematics for
align:start position:0%in simple circular motion kinematics forPoint like objects and so what we have
align:start position:0%Point like objects and so what we have
align:start position:0%Point like objects and so what we havehere is that for some time interval
align:start position:0%here is that for some time interval
align:start position:0%here is that for some time intervalOmega Z at time T minus Omega Z 0 is the
align:start position:0%Omega Z at time T minus Omega Z 0 is the
align:start position:0%Omega Z at time T minus Omega Z 0 is theintegral of T Prime equals 0 to T of
align:start position:0%integral of T Prime equals 0 to T of
align:start position:0%integral of T Prime equals 0 to T ofalpha Z which is our component of the
align:start position:0%alpha Z which is our component of the
align:start position:0%alpha Z which is our component of theangular acceleration we have an
align:start position:0%angular acceleration we have an
align:start position:0%angular acceleration we have anintegration variable DT Prime and recall
align:start position:0%integration variable DT Prime and recall
align:start position:0%integration variable DT Prime and recallthat that implies
align:start position:0%that that implies
align:start position:0%that that impliesthat Omega ZT can have some initial
align:start position:0%that Omega ZT can have some initial
align:start position:0%that Omega ZT can have some initialvalue at time T equals 0 plus this
align:start position:0%value at time T equals 0 plus this
align:start position:0%value at time T equals 0 plus thisintegral relationship which is what we
align:start position:0%integral relationship which is what we
align:start position:0%integral relationship which is what wewant to figure
align:start position:0%want to figure
align:start position:0%want to figureout by direct integration now this only
align:start position:0%out by direct integration now this only
align:start position:0%out by direct integration now this onlyworks when Alpha Z is some function of
align:start position:0%works when Alpha Z is some function of
align:start position:0%works when Alpha Z is some function oftime in order to get the angle Theta of
align:start position:0%time in order to get the angle Theta of
align:start position:0%time in order to get the angle Theta ofT we use we integrate again where we
align:start position:0%T we use we integrate again where we
align:start position:0%T we use we integrate again where wehave Theta of t0 is the integral from T
align:start position:0%have Theta of t0 is the integral from T
align:start position:0%have Theta of t0 is the integral from TPrime equal 0 to T Prime equal T of this
align:start position:0%Prime equal 0 to T Prime equal T of this
align:start position:0%Prime equal 0 to T Prime equal T of thisfunction Omega Z again we have some
align:start position:0%function Omega Z again we have some
align:start position:0%function Omega Z again we have someintegration variable T Prime DT Prime
align:start position:0%integration variable T Prime DT Prime
align:start position:0%integration variable T Prime DT Primeand so we see that Theta of T can have
align:start position:0%and so we see that Theta of T can have
align:start position:0%and so we see that Theta of T can havesome initial value plus this integral
align:start position:0%some initial value plus this integral
align:start position:0%some initial value plus this integralrelationship T Prime equal T of Omega z
align:start position:0%relationship T Prime equal T of Omega z
align:start position:0%relationship T Prime equal T of Omega zt Prime DT Prime and this is how we can
align:start position:0%t Prime DT Prime and this is how we can
align:start position:0%t Prime DT Prime and this is how we canfigure out the how the point p has an a
align:start position:0%figure out the how the point p has an a
align:start position:0%figure out the how the point p has an acomponent of angular velocity and what
align:start position:0%component of angular velocity and what
align:start position:0%component of angular velocity and whatangle the the point P sweeps out in some
align:start position:0%angle the the point P sweeps out in some
align:start position:0%angle the the point P sweeps out in sometime interval
align:start position:0%
align:start position:0% t12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307PROFESSOR: OK, this lecture,this day, is differential
equations day.
I just feel even though theseare not on the BC exams, that
we've got everythingwe need to actually
see calculus in use.
We've got the derivatives ofthe key functions and ready
for a differential equation.
And there it is.
When I look at that equation--
so it's a differential equationbecause it has the
derivatives of y as well asy itself in the equation.
And when I look at it, I seeit's a second order equation
because there's a secondderivative.
It's a linear equation becausesecond derivative, first
derivative, and y itself areseparate, no multiplying of y
times y prime.
In fact, the onlymultiplications are by these
numbers m, r and k, and thoseare constant numbers coming
from the application.
So I have a constantcoefficient, linear, second
order, differential equation,and I'd like to solve it.
And we can do it because it usesthe very functions that
we know how to findderivatives of.
Let me take two or three specialcases where those
functions appear purely.
So one special case is ifI knock out the second
derivative term, and letme just choose--
rewrite it in the way it lookseasiest and best. It's just
the derivative of y assome multiple of y.
It's now first order, and weknow the function that solves
that equation.
When the derivative equals thefunction itself, that's the
exponential.
If I want to have an extrafactor a here, then I
need e to the at.
And usually, in fact, we expectthat with a first order
equation, in the solutionthere'll be some constant that
we can set later to matchthe starting condition.
And that constantshows up here.
It's just if e to the at solvesthat equation, as it
does, because when I take thederivative, down comes on a,
so does c times e to the at.
That's because the equationis linear.
So that's a nice one.
Pure exponential.
OK, ready for this one.
So this one, I don't havethis middle term.
I just have the secondderivative and the function.
And let me again change toletters I like, putting the ky
on the other side witha minus sign.
So this omega squaredwill be k/m when I
reorganize that equation.
My point is we can solve thisequation, the second
derivative equaling minusthe function.
We've met that.
That's this equationthat the sine and
the cosine both solve.
There we get two solutions forthis second order equation.
And just as with the a in thisproblem, so with this number
here, I'll just jiggle the sineand the cosine a little
bit so that we get omega to comedown twice when I take
two derivatives.
So the solution here will be--
one solution will be the cosineof omega t because two
derivatives of the cosineis minus the cosine--
that's what this asks for--
with the factor omegacoming out twice.
And another solution willbe sine of omega t
for the same reason.
And again, now with a secondorder equation, I'm expecting
a couple of constants to beable to choose later.
And here they are: c cosineomega t and d sine omega t.
That's the general solutionto that equation.
So we know that.
And these are the twoimportant ones.
There's another less importantone and an
extremely simple one.
Suppose all that went away, andI just had as a third very
special case d second ydt squared equals 0.
We sure know the solutionto that.
What functions have secondderivative equals 0?
Well, a constant functiondoes, certainly.
A constant, even its firstderivative is 0
much less its second.
And then t does.
Its first derivative is1 and then the second
derivative is 0.
So there show up thepowers of t.
Well, the first two powers, t tothe 0 and t to the 1, show
up in that very special case.
Sine and cosine show up here.
e to the at shows up here.
And now let me tell you thegood part of this lecture.
The solution to this equationand in fact to equations of
third, fourth, all orders, areproducts of these ones that we
know: exponentials times sinesand cosines times powers of t.
That's all we need to solveconstant coefficient
differential equations.
So I plan now to go aheadand solve the--
and move toward this equation.
I should have said that's afundamental equation of
engineering.
m stands for some mass.
Oh yeah, let me draw a picture,and you'll see why I
chose to choose t rather thanx, because things are
happening in time.
And what is happening?
Let me show you.
What's happening in time istypically this would be a
problem with us some kind of aspring hanging down, and on
that spring is a mass m.
OK, so what happens if I--
I've pulled that mass down, soI've stretched the spring, and
then I let go.
Then what does the spring do?
Well, the spring will pull themass back upwards, and it will
pull it back up to the pointwhere it squeezes, compresses
the spring.
The spring will be--
like instead of beingstretched out,
it'll be the opposite.
It'll be compressed in.
And then when compressed in,it'll push the mass.
Being compressed, thespring will push.
It'll push the mass down againand up again, and I get
oscillation.
Oscillation is whatI'm seeing here.
And what are examples ofoscillation in real life?
The spring or a clock,especially a grandfather clock
that's swinging back and forth,back and forth, so I'll
just put a clock.
Music, a violin stringis oscillating.
That's where the beautifulsound comes from.
Our heart is in and out,in and out, a regular
oscillation.
I could add molecules.
They oscillate extremelyquickly.
So this equation that I'maiming for comes up in
biology, in chemistry--
for molecules, it's a veryimportant equation--
in physics and mechanics andengineering for springs.
It comes up in economics.
It's everywhere.
And by choosing constantcoefficients, I have the basic
model and the simplest model.
OK, so I'll talk in thislanguage of springs, but it's
all these oscillations that leadto equations like that.
Actually, this model oftenwould have r equals 0.
So let me take that caser equals 0 again.
So where does the equationcome from?
Can I do two cents worth ofphysics and then go back to
the math, solvingthe equation.
The physics is just rememberingNewton's
Law: f equals ma.
So there is the m, the mass.
The a is the acceleration.
That's the second derivative,right?
You don't mind if I write thatas second derivative.
Acceleration, the massis constant.
We're not going at the speed oflight here so we can assume
that mass is not beingconverted to energy.
It's mass.
And then what's the force?
Well, for this springforce, for this
spring, what did we say?
So y is going this way.
It's the disposition, thedisplacement of the spring.
When it's down like that, wheny is positive, the spring is
pulling back.
The force from the springis pulling back.
And the force from the springis proportional to y.
And the proportionality constantis my number k.
That fact that Ijust said is--
and I guess it's pullingopposite to a positive y.
When y is positive, and thisspring is way down, the force
is pulling it up,pulling in the
negative direction, upwards.
So I need that minus sign.
So that k is the stiffnessof the spring.
This is Hooke's Law, that theforce coming from a spring is
proportional to the stretch.
And the constant in there isHooke's constant, the spring
constant k.
So now that if I put the minusky over there as plus ky, you
see my equation again.
But this is the one that we wereable to solve right here.
Do you see that this is thecase where r is 0 in this
first model?
r is 0 because r involvesresistance: r for resistance,
air resistance, damping.
And right now, I don'thave that.
I just have a little springthat'll oscillate forever.
It'll oscillate foreverfollowing sine and cosine.
That's exactly what thespring will do.
It will just go on forever,and the c and the d, their
constants, will dependon how it started.
Did it start from rest?
If it started from rest, therewould be no sine term.
It's easy to findc and d later.
The real problem is to solve theequation, and we've done
it for this equation.
OK, and let's justremember this.
Let me repeat that when I putthat onto the other side and
divide by k, then I see the--oh, divided by m, sorry--
then I see the omega squared.
So omega squared is k/m.
Right.
Oh, it is k/m, right.
OK, that's the simple case,pure sines and cosines.
Now I'm letting insome resistance.
So now I'm coming backto my equation.
Let me write it again.
m y double prime--
second derivative--
plus 2r y prime--
first derivative--
plus ky--
0-th derivative equals 0.
I want to solve that equationnow for any
numbers m and r and k.
OK, well, the nice thing is thatthe exponential function
takes us right to the answer,the best plan here.
So this is the most importantequation you would see in a
differential equations course.
And then the course kind of goespast, and then you easily
forget this is the mostimportant and the simplest.
Why is it simple?
Because if the key idea--
this is the key idea: tryy equals e to the--
an exponential e to thesomething times t.
Let me call that somethinglambda.
You might have preferred c.
I'm happy with c or anyother number there.
Yeah, OK, I'll call that lambda,just because it gives
it a little Greek importance.
All right, so I try this.
I substitute that into theequation, and I'm going to
choose lambda to makethings work.
OK, but here's the key.
The key idea is so easy.
Now, put it into the equation.
So what happens when I put--
when this is y, taketwo derivatives.
Well, let me start withtaking no derivatives.
So I have down here the ke to the lambda t, and
over here is a 0.
And now let me back up tothe first derivative.
So that's 2r timesthe derivative
of this guy y prime.
I'm just substituting thisinto the equation.
So what's the derivative?
We know that the derivative ofthis brings down the lambda.
We already did it.
lambda e to the lambdat, right?
That's the derivative.
And what about this one?
This one is going to bean m y double prime.
What happens withtwo derivatives?
Bring down lambda twice, twotimes, so I have lambda
squared e to the lambda t.
And then in a minute, you knowwhat I'm going to do.
I'm going to cancel that commonfactor e to the lambda
t, which is never 0 so I cansafely divide it out, and then
write the equation we get.
OK, let me write that outmore with more space.
m lambda squared plus2r lambda--
taking that--
plus k is 0.
This is the equation.
It's just an ordinaryquadratic equation.
It's a high schoolalgebra equation.
Lambda appears squared becausewe had two derivatives.
We had a second derivative, andso I need the quadratic
formula to know--
I expect two answers,two lambdas.
And that's normal for a secondorder equation, and I'll get
two solutions: e to the lambda1t and e to the lambda 2t.
Two different exponentials willboth solve the problem.
All right, what's the lambda?
Well, can I just recallthe quadratic formula?
Well, it's a little messy, butit's not too bad here, just to
show that I remember it.
And the 2 there is kind ofhandy with the quadratic
formula because then I just getminus an r plus or minus
the square root of r squared.
And it's not minus 4km, butbecause of the 2 there, it's
just minus km.
And then I divide by m.
OK, well, big deal.
I get two roots.
Let me use numbers.
So what you see thereis like solving the
differential equation.
Not too bad.
Now let me put in numbers toshow what's typical, and, of
course, as those numberschange, we'll
see different lambdas.
And actually, as the numberschange, that will take us
between the exponential stuffand the oscillating stuff.
All right, let me take onewhere I think it start--
I think this will be-- sothis is example one.
I'll choose m equal 1 ydouble prime plus--
let me take r to be 3, sothen I have 6y prime.
And let me choose kto be 8y equals 0.
All right, now we'vegot numbers.
So the numbers are m equals1, r equals 3, k equals 8.
And I claim we can write thesolution to that equation, or
the two solutions, because therewill be two lambdas.
OK, so when I try e to thelambda t, plug it in, I'll get
lambda twice, and then I'll get6 lambda once, and then
I'll get 8 without a lambdacoming down, all multiplied by
e to the lambda t, which I'mcanceling, equals 0.
So I solve that equation eitherdirectly by recognizing
that it factors into lambdaplus 2 times lambda plus 4
equals 0 or by pluggingin r and k and m in
the quadratic formula.
Either way, I'm learning thatlambda is minus 2 or minus 4.
Those are the two solutions.
The two decay rates, you couldcall them, because they're up
in the exponent.
So what's the solution?
y of t, the solution to thatequation, the general solution
with a constant c and a constantd is an e to the
minus 2t and an eto the minus 4t.
The two lambdas are in theexponent, and we've solved it.
So that's the point.
We have the ability to solvedifferential equations based
on the three most importantderivatives we know:
exponential, sines-cosines,powers of t.
OK, ready for example two?
Example two, I'm just going tochange that 8 to a 10, so
you're going to seea 10 show up here.
All right, but that willmake a difference.
It won't just be somenew numbers.
There'll be a definitedifference here.
OK, let me go over acrosshere to the one with 10.
OK, so now my equation is 1ydouble prime, 6y prime still,
and now 10y is equals to 0,remembering prime means
derivative.
OK, so again, I try y ise to the lambda t.
I plug it in.
When I have two derivatives,bring down lambda squared.
One derivative bringsdown lambda.
No derivatives leavesthe 10, equals 0.
That's my equation for lambda.
Ha!
I don't know how tofactor that one.
And in fact, I better use thequadratic formula just to show
what happens here.
So the quadratic formula willbe the two roots lambda.
Can I remember thatdumb formula?
Minus r plus or minus the squareroot of r squared minus
km, all divided by m.
I got the 2's and the4's out of it by
taking r to be 3 here.
OK, so it's minus 3 plus orminus the square root of r
squared is 9 minus 1 times 10.
k and m is 10 divided by 1.
Ha!
You see something different'sgoing on here.
I have the square rootof a negative number.
Over there, if I wrote out thatsquare root, you would
have seen the squareroot of plus 1.
That gave me minus 3 plus1 or minus 3 minus 1.
That was the minus2 and minus 4.
Now I'm different.
Now seeing the square root ofminus 1, so this is minus 3
plus or minus i.
So I see the solution y of t.
You see, this is i here, thesquare root of minus 1.
We can deal with that.
It's a complex number,an imaginary number.
And the combination minus 3 plusi is a complex number,
and we have to accept thatthat's our lambda.
So I have any multiple of c,and the lambda here is
minus 3 plus i t.
And the second solution ise minus 3 minus i t.
I found the general solution.
We could say done, except youmight feel, well, how did
imaginary--
what are we going to do withthese imaginary numbers here?
How did they get in thisperfectly real
differential equation?
Well, they slipped in becausethe solutions
were not real numbers.
The solutions were minus3 plus or minus i.
But we can get real again.
So this is one way to write theanswer, but I just want to
show you using the earlierlecture, using the beautiful
fact that Euler discovered.
So now let me complete thisexample by remembering Euler's
great formula for e to the it.
Because you see we have an eto the minus 3t, perfectly
real, decaying.
The spring is slowing downbecause of air resistance.
But we also havean e to the it.
That's what Euler's formulasabout and Euler's formula says
that e to the it is thecosine of t plus i
times the sine of t.
So it's through Euler'sformula that these
oscillations are coming in.
The direct method ledto an e to the it.
But the next day, Eulerrealized that e
to the minus it--
or probably being Euler, itdidn't take till next day--
will be minus i sine t.
So both e to the it and e tothe minus it, they both can
get replaced by sinesand cosines.
So in place of e to theit, I'll put that.
In place of e to the minusit, I put that one.
The final result is--
can I just jump to that?
The final result is that withsome different constants, we
have the cosine--
oh!
let me not forget eto the minus 3t.
That's part of this answer.
I'm damping this out by e to theminus 3t, this resistance
r, times cosine of t and the eto the minus 3t sine of t.
OK, that's good.
General solution, backto a real numbers.
It describes a dampedoscillation.
It's damped out.
It's slowing down.
Rather, it's decaying.
The amplitude is-- thespring is like--
it's like having a shockabsorber or something.
It's settling down to the centerpoint pretty fast. But
as it settles, it's goes backacross that center point,
oscillates across.
OK, now you might finally ask,the last step of this lecture,
where do powers of t come in?
Where does t come in?
So far we've seen exponentialscome in.
We've seen sines andcosines come in.
Can I do a last example justhere in the corner, which will
be y double prime, 6 y prime,and now this time instead of 8
or 10, I'm going totake 9y equals 0.
OK, can we use this as example3, which we can solve?
You know that I'm going totry y equals to lambda t.
Let me substitute that.
I'll get lambda squared comingfrom two derivatives, lambda
coming from one derivative, 9coming from no derivatives.
I've got my quadratic equationthat's supposed
to give me two lambdas.
Little problem here.
When I factor this, it factorsinto lambda plus 3
squared equals 0.
So the answer, the lambda,is minus 3 twice.
Twice!
The two lambdas happen to hitthe same value: minus 3.
OK, we don't have anycomplex stuff here.
It's two real values thathappen to coincide.
And when that happens, well,minus 3 tells us that a
solution e to theminus 3t works.
Where do we get theother solution?
We want two solutions to asecond order equation.
I can't just use e tothe minus 3t again.
I need a second solution, andit shows up at this--
it's typical of maththat it shows--
something special happens atthis special situation of a
double root, and the solutionswill be e to the minus 3t and
t e to the minus 3t.
That's the last step, andmaybe I just put it--
well, where am I goingto put it?
I'll bring this down andjust put it here.
So now I'm solving thisparticular problem y is a
multiple of e to the minus 3t.
Good, but I can't just repeatit for the second one.
So the second one, it just turnsout that then is when a
little factor t appears.
You might like to substitutethat for practice with the
product rule.
If you substitute that in thedifferential equation, you'll
find everything cancels,and it works.
So the conclusion is linearconstant coefficient
differential equations arecompletely solved by trying e
to the lambda t and findingthat number lambda.
If it's a real number,we have exponentials.
If it's an imaginary number,we have sines and cosines.
If it's a repeated number,we have an extra
factor t showing up.
That's the exceptional eventin that particular case.
So there you go.
Differential equationswith constant
coefficients we can handle.
You can handle.
Thank you.
This has been a productionof MIT
OpenCourseWare and Gilbert Strang.
Funding for this video wasprovided by the Lord
Foundation.
To help OCW continue to providefree and open access
to MIT courses, pleasemake a donation at
ocw.mit.edu/donate.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979align:start position:0% today's subject is uh momentum space
align:start position:0%today's subject is uh momentum space
align:start position:0%today's subject is uh momentum spacewe're going to kind of discover the
align:start position:0%we're going to kind of discover the
align:start position:0%we're going to kind of discover therelevance of momentum space um we've
align:start position:0%relevance of momentum space um we've
align:start position:0%relevance of momentum space um we'vebeen working with wave functions that
align:start position:0%been working with wave functions that
align:start position:0%been working with wave functions thattell you the probabilities for finding a
align:start position:0%tell you the probabilities for finding a
align:start position:0%tell you the probabilities for finding aparticle in a given position and that's
align:start position:0%particle in a given position and that's
align:start position:0%particle in a given position and that'ssometimes called coordinate space or
align:start position:0%sometimes called coordinate space or
align:start position:0%sometimes called coordinate space orposition space representation of quantum
align:start position:0%position space representation of quantum
align:start position:0%position space representation of quantummechanics in which you talk about wave
align:start position:0%mechanics in which you talk about wave
align:start position:0%mechanics in which you talk about wavefunctions that tell you about
align:start position:0%functions that tell you about
align:start position:0%functions that tell you aboutprobabilities to find a particle in a
align:start position:0%probabilities to find a particle in a
align:start position:0%probabilities to find a particle in agiven position but uh as you've been
align:start position:0%given position but uh as you've been
align:start position:0%given position but uh as you've beenseeing with momentum there's a very
align:start position:0%seeing with momentum there's a very
align:start position:0%seeing with momentum there's a veryintimate relation between momentum and
align:start position:0%intimate relation between momentum and
align:start position:0%intimate relation between momentum andposition and uh today we're going to
align:start position:0%position and uh today we're going to
align:start position:0%position and uh today we're going todevelop the ideas that lead you to think
align:start position:0%develop the ideas that lead you to think
align:start position:0%develop the ideas that lead you to thinkabout momentum space in a way that is
align:start position:0%about momentum space in a way that is
align:start position:0%about momentum space in a way that isquite complementary to coordinate
align:start position:0%quite complementary to coordinate
align:start position:0%quite complementary to coordinatespace um then we will be able to talk
align:start position:0%space um then we will be able to talk
align:start position:0%space um then we will be able to talkabout expectation values of operators
align:start position:0%about expectation values of operators
align:start position:0%about expectation values of operatorsand we're going to be move some steps
align:start position:0%and we're going to be move some steps
align:start position:0%and we're going to be move some stepsinto what is called interpretation of
align:start position:0%into what is called interpretation of
align:start position:0%into what is called interpretation ofquantum
align:start position:0%quantum
align:start position:0%quantummechanics so
align:start position:0%mechanics so
align:start position:0%mechanics souh operators have expectation values in
align:start position:0%uh operators have expectation values in
align:start position:0%uh operators have expectation values inquantum mechanics they are defined a
align:start position:0%quantum mechanics they are defined a
align:start position:0%quantum mechanics they are defined aparticular way and that will be U
align:start position:0%particular way and that will be U
align:start position:0%particular way and that will be Usomething we're going to be doing the
align:start position:0%something we're going to be doing the
align:start position:0%something we're going to be doing thesecond part of the
align:start position:0%second part of the
align:start position:0%second part of thelecture uh in the final part of the
align:start position:0%lecture uh in the final part of the
align:start position:0%lecture uh in the final part of thelecture we will consider the time
align:start position:0%lecture we will consider the time
align:start position:0%lecture we will consider the timedependence of those expectation values
align:start position:0%dependence of those expectation values
align:start position:0%dependence of those expectation valueswhich is again the idea of Dynamics if
align:start position:0%which is again the idea of Dynamics if
align:start position:0%which is again the idea of Dynamics ifyou want to understand how your system
align:start position:0%you want to understand how your system
align:start position:0%you want to understand how your systemevolves in time the expectation values
align:start position:0%evolves in time the expectation values
align:start position:0%evolves in time the expectation valuesthe things that you measure may change
align:start position:0%the things that you measure may change
align:start position:0%the things that you measure may changein time and uh that's part of the
align:start position:0%in time and uh that's part of the
align:start position:0%in time and uh that's part of thephysics of the problem so this will tie
align:start position:0%physics of the problem so this will tie
align:start position:0%physics of the problem so this will tieinto the shinger equation so we're going
align:start position:0%into the shinger equation so we're going
align:start position:0%into the shinger equation so we're goingto begin with the momentum space so
align:start position:0%to begin with the momentum space so
align:start position:0%to begin with the momentum space sowe'll call this
align:start position:0%we'll call this
align:start position:0%we'll call thisuncovering
align:start position:0%
align:start position:0% momentum
align:start position:0%
align:start position:0% space
align:start position:0%
align:start position:0% space and for much of what I will be
align:start position:0%space and for much of what I will be
align:start position:0%space and for much of what I will betalking about in the first half of the
align:start position:0%talking about in the first half of the
align:start position:0%talking about in the first half of thelecture uh time will not be relevant so
align:start position:0%lecture uh time will not be relevant so
align:start position:0%lecture uh time will not be relevant sotime will become relevant later so I
align:start position:0%time will become relevant later so I
align:start position:0%time will become relevant later so Iwill be writing wave functions that
align:start position:0%will be writing wave functions that
align:start position:0%will be writing wave functions thatdon't show the time but the time could
align:start position:0%don't show the time but the time could
align:start position:0%don't show the time but the time couldbe put there everywhere and uh would
align:start position:0%be put there everywhere and uh would
align:start position:0%be put there everywhere and uh wouldmake no difference whatsoever so you
align:start position:0%make no difference whatsoever so you
align:start position:0%make no difference whatsoever so youremember these F transform statements
align:start position:0%remember these F transform statements
align:start position:0%remember these F transform statementsthat we had that the wave function of X
align:start position:0%that we had that the wave function of X
align:start position:0%that we had that the wave function of Xwe could put time but I said let's
align:start position:0%we could put time but I said let's
align:start position:0%we could put time but I said let'ssuppress
align:start position:0%suppress
align:start position:0%suppresstime is a
align:start position:0%
align:start position:0% superposition of plain
align:start position:0%
align:start position:0% waves I'll write a littleit 5
align:start position:0%waves I'll write a littleit 5
align:start position:0%waves I'll write a littleit 5K
align:start position:0%K
align:start position:0%Kk
align:start position:0%k
align:start position:0%kx v
align:start position:0%x v
align:start position:0%x vk so there is a superposition of plain
align:start position:0%k so there is a superposition of plain
align:start position:0%k so there is a superposition of plainwaves and we used it last time to evolve
align:start position:0%waves and we used it last time to evolve
align:start position:0%waves and we used it last time to evolvewave packets and things like that and
align:start position:0%wave packets and things like that and
align:start position:0%wave packets and things like that andthe other side of furious theorem is
align:start position:0%the other side of furious theorem is
align:start position:0%the other side of furious theorem isthat 5 of K can be written by a pretty
align:start position:0%that 5 of K can be written by a pretty
align:start position:0%that 5 of K can be written by a prettysimilar
align:start position:0%similar
align:start position:0%similarintegral in which you put P of X you
align:start position:0%integral in which you put P of X you
align:start position:0%integral in which you put P of X youchange the sign in the
align:start position:0%change the sign in the
align:start position:0%change the sign in theexponential and of course integrate now
align:start position:0%exponential and of course integrate now
align:start position:0%exponential and of course integrate nowover
align:start position:0%
align:start position:0% X
align:start position:0%X
align:start position:0%Xnow this is the wave function you've
align:start position:0%now this is the wave function you've
align:start position:0%now this is the wave function you'vealways uh you learned about first and uh
align:start position:0%always uh you learned about first and uh
align:start position:0%always uh you learned about first and uhthis wave function as you can see is
align:start position:0%this wave function as you can see is
align:start position:0%this wave function as you can see isencoded by F of K as well if you know F
align:start position:0%encoded by F of K as well if you know F
align:start position:0%encoded by F of K as well if you know Fof K you know of X and uh so this 5 of K
align:start position:0%of K you know of X and uh so this 5 of K
align:start position:0%of K you know of X and uh so this 5 of Khas the same information in Principle as
align:start position:0%has the same information in Principle as
align:start position:0%has the same information in Principle asP of X it tells you everything that you
align:start position:0%P of X it tells you everything that you
align:start position:0%P of X it tells you everything that youneed to know uh we think of it as saying
align:start position:0%need to know uh we think of it as saying
align:start position:0%need to know uh we think of it as sayingwell 5
align:start position:0%well 5
align:start position:0%well 5K has the
align:start position:0%K has the
align:start position:0%K has thesame
align:start position:0%
align:start position:0% information as P of
align:start position:0%information as P of
align:start position:0%information as P ofX and the other thing we've said about
align:start position:0%X and the other thing we've said about
align:start position:0%X and the other thing we've said aboutfive of K is that it's the weight with
align:start position:0%five of K is that it's the weight with
align:start position:0%five of K is that it's the weight withwhich you're
align:start position:0%which you're
align:start position:0%which you'resuperposing plane waves to reconstruct s
align:start position:0%superposing plane waves to reconstruct s
align:start position:0%superposing plane waves to reconstruct sof X the for transform theorem is a
align:start position:0%of X the for transform theorem is a
align:start position:0%of X the for transform theorem is arepresentation of the wave function in
align:start position:0%representation of the wave function in
align:start position:0%representation of the wave function interms of a superposition of plane waves
align:start position:0%terms of a superposition of plane waves
align:start position:0%terms of a superposition of plane wavesand here it's the coefficient of the
align:start position:0%and here it's the coefficient of the
align:start position:0%and here it's the coefficient of theweight that accompanies each exponential
align:start position:0%weight that accompanies each exponential
align:start position:0%weight that accompanies each exponentialso 5 K is the
align:start position:0%so 5 K is the
align:start position:0%so 5 K is theweight of of the plane
align:start position:0%
align:start position:0% waves in the
align:start position:0%
align:start position:0% superposition
align:start position:0%
align:start position:0% position so one thing we want to do is
align:start position:0%position so one thing we want to do is
align:start position:0%position so one thing we want to do isto understand even deeper what F of K
align:start position:0%to understand even deeper what F of K
align:start position:0%to understand even deeper what F of Kcan
align:start position:0%can
align:start position:0%canmean and uh in order to do that we need
align:start position:0%mean and uh in order to do that we need
align:start position:0%mean and uh in order to do that we needto technical um
align:start position:0%to technical um
align:start position:0%to technical umtool based on this equations one can
align:start position:0%tool based on this equations one can
align:start position:0%tool based on this equations one canderive a way of representing this object
align:start position:0%derive a way of representing this object
align:start position:0%derive a way of representing this objectthat we call the Delta function Delta
align:start position:0%that we call the Delta function Delta
align:start position:0%that we call the Delta function Deltafunctions are pretty useful for uh
align:start position:0%functions are pretty useful for uh
align:start position:0%functions are pretty useful for uhmanipulating objects and FY transform so
align:start position:0%manipulating objects and FY transform so
align:start position:0%manipulating objects and FY transform sowe need them so uh let's try to obtain
align:start position:0%we need them so uh let's try to obtain
align:start position:0%we need them so uh let's try to obtainwhat is called a Delta function
align:start position:0%what is called a Delta function
align:start position:0%what is called a Delta functionstatement and uh this is done by
align:start position:0%statement and uh this is done by
align:start position:0%statement and uh this is done bytrying to apply these two equations
align:start position:0%trying to apply these two equations
align:start position:0%trying to apply these two equationssimultaneously like you start with s of
align:start position:0%simultaneously like you start with s of
align:start position:0%simultaneously like you start with s ofX is written in terms of 5 of K but then
align:start position:0%X is written in terms of 5 of K but then
align:start position:0%X is written in terms of 5 of K but thenwhat would happen if you would
align:start position:0%what would happen if you would
align:start position:0%what would happen if you wouldsubstitute the value of 5 of K in here
align:start position:0%substitute the value of 5 of K in here
align:start position:0%substitute the value of 5 of K in herewhat kind of equation you get um what
align:start position:0%what kind of equation you get um what
align:start position:0%what kind of equation you get um whatyou get
align:start position:0%you get
align:start position:0%you getis an equation
align:start position:0%is an equation
align:start position:0%is an equationfor a Delta
align:start position:0%for a Delta
align:start position:0%for a Deltafunction so you begin with SI of
align:start position:0%
align:start position:0% x 1 / Square < TK 2
align:start position:0%x 1 / Square < TK 2
align:start position:0%x 1 / Square < TK 2pi and I'll write it
align:start position:0%pi and I'll write it
align:start position:0%pi and I'll write itDK e to the I
align:start position:0%DK e to the I
align:start position:0%DK e to the IKX and now I want to write 5 of
align:start position:0%KX and now I want to write 5 of
align:start position:0%KX and now I want to write 5 ofK so I put 5 of K 1/ < TK of 2 pi
align:start position:0%K so I put 5 of K 1/ < TK of 2 pi
align:start position:0%K so I put 5 of K 1/ < TK of 2 piintegral p and now I have to be a little
align:start position:0%integral p and now I have to be a little
align:start position:0%integral p and now I have to be a littlecareful
align:start position:0%careful
align:start position:0%carefulin here in the second
align:start position:0%in here in the second
align:start position:0%in here in the secondintegral X is a variable of integration
align:start position:0%integral X is a variable of integration
align:start position:0%integral X is a variable of integrationit's a dummy variable um it doesn't have
align:start position:0%it's a dummy variable um it doesn't have
align:start position:0%it's a dummy variable um it doesn't haveany physical meaning per se it
align:start position:0%any physical meaning per se it
align:start position:0%any physical meaning per se itdisappears after the integration here x
align:start position:0%disappears after the integration here x
align:start position:0%disappears after the integration here xrepresents the point where we're
align:start position:0%represents the point where we're
align:start position:0%represents the point where we'reevaluating the wave function so I just
align:start position:0%evaluating the wave function so I just
align:start position:0%evaluating the wave function so I justcannot copy the same formula here
align:start position:0%cannot copy the same formula here
align:start position:0%cannot copy the same formula herebecause it would be confusing it should
align:start position:0%because it would be confusing it should
align:start position:0%because it would be confusing it shouldbe written with a different X
align:start position:0%
align:start position:0% and X
align:start position:0%
align:start position:0% Prime because that X certainly has
align:start position:0%Prime because that X certainly has
align:start position:0%Prime because that X certainly hasnothing to do with the X we're writing
align:start position:0%nothing to do with the X we're writing
align:start position:0%nothing to do with the X we're writinghere so here it is we've
align:start position:0%here so here it is we've
align:start position:0%here so here it is we'vewritten now this integral and
align:start position:0%written now this integral and
align:start position:0%written now this integral andlet's rewrite it still differently we'll
align:start position:0%let's rewrite it still differently we'll
align:start position:0%let's rewrite it still differently we'llwrite as integral DX Prime with change
align:start position:0%write as integral DX Prime with change
align:start position:0%write as integral DX Prime with changethe orders of integration with
align:start position:0%the orders of integration with
align:start position:0%the orders of integration withimpunity um if you're trying to be very
align:start position:0%impunity um if you're trying to be very
align:start position:0%impunity um if you're trying to be veryrigorous mathematically this is
align:start position:0%rigorous mathematically this is
align:start position:0%rigorous mathematically this issomething you worry about in physics
align:start position:0%something you worry about in physics
align:start position:0%something you worry about in physicsproblems that we deal with uh it doesn't
align:start position:0%problems that we deal with uh it doesn't
align:start position:0%problems that we deal with uh it doesn'tmake a difference so here we have DX
align:start position:0%make a difference so here we have DX
align:start position:0%make a difference so here we have DXPrime s of X Prime then a 1 / 2
align:start position:0%Prime s of X Prime then a 1 / 2
align:start position:0%Prime s of X Prime then a 1 / 2pi integral
align:start position:0%pi integral
align:start position:0%pi integralDK e to the i
align:start position:0%DK e to the i
align:start position:0%DK e to the ik
align:start position:0%k
align:start position:0%kx - x
align:start position:0%
align:start position:0% Prime so this is what the integral
align:start position:0%Prime so this is what the integral
align:start position:0%Prime so this is what the integralbecame and you look at it and you say
align:start position:0%became and you look at it and you say
align:start position:0%became and you look at it and you saywell here is s of X and is equal to the
align:start position:0%well here is s of X and is equal to the
align:start position:0%well here is s of X and is equal to theintegral over X Prime of s of X Prime
align:start position:0%integral over X Prime of s of X Prime
align:start position:0%integral over X Prime of s of X PrimeTime some other function of X and X
align:start position:0%Time some other function of X and X
align:start position:0%Time some other function of X and XPrime this is a
align:start position:0%Prime this is a
align:start position:0%Prime this is afunction of x x - x prime or x and x
align:start position:0%function of x x - x prime or x and x
align:start position:0%function of x x - x prime or x and xPrime if you wish it doesn't depend on k
align:start position:0%Prime if you wish it doesn't depend on k
align:start position:0%Prime if you wish it doesn't depend on kk is
align:start position:0%
align:start position:0% integrated and this function if you
align:start position:0%integrated and this function if you
align:start position:0%integrated and this function if yourecognize it is what we call a Delta
align:start position:0%recognize it is what we call a Delta
align:start position:0%recognize it is what we call a Deltafunction it's a function that multiplied
align:start position:0%function it's a function that multiplied
align:start position:0%function it's a function that multipliedwith an integral evaluates the integrant
align:start position:0%with an integral evaluates the integrant
align:start position:0%with an integral evaluates the integrantat a particular point so this is the
align:start position:0%at a particular point so this is the
align:start position:0%at a particular point so this is theDelta function Delta of X Prime - x
align:start position:0%
align:start position:0% X that is the way this integrals then
align:start position:0%X that is the way this integrals then
align:start position:0%X that is the way this integrals thenwould work that that is when you
align:start position:0%would work that that is when you
align:start position:0%would work that that is when youintegrate over X Prime X Prime and you
align:start position:0%integrate over X Prime X Prime and you
align:start position:0%integrate over X Prime X Prime and youhave X Prime minus something then the
align:start position:0%have X Prime minus something then the
align:start position:0%have X Prime minus something then thewhole integral is the integrant
align:start position:0%whole integral is the integrant
align:start position:0%whole integral is the integrantevaluated at the point where we say the
align:start position:0%evaluated at the point where we say the
align:start position:0%evaluated at the point where we say theDelta function
align:start position:0%Delta function
align:start position:0%Delta functionfires
align:start position:0%fires
align:start position:0%firesso the consistency of these two
align:start position:0%so the consistency of these two
align:start position:0%so the consistency of these twoequations s means that for all intents
align:start position:0%equations s means that for all intents
align:start position:0%equations s means that for all intentsand purposes
align:start position:0%and purposes
align:start position:0%and purposesthis strange integral is a
align:start position:0%this strange integral is a
align:start position:0%this strange integral is arepresentation of a Delta function so we
align:start position:0%representation of a Delta function so we
align:start position:0%representation of a Delta function so wewill write it down
align:start position:0%will write it down
align:start position:0%will write it downum I can do one thing here of that it it
align:start position:0%um I can do one thing here of that it it
align:start position:0%um I can do one thing here of that it itkind of here you see the sign X Prime -
align:start position:0%kind of here you see the sign X Prime -
align:start position:0%kind of here you see the sign X Prime -x but here you see x - x Prime but that
align:start position:0%x but here you see x - x Prime but that
align:start position:0%x but here you see x - x Prime but thatsign in fact doesn't matter it it's not
align:start position:0%sign in fact doesn't matter it it's not
align:start position:0%sign in fact doesn't matter it it's notthere it it you can get rid of it
align:start position:0%there it it you can get rid of it
align:start position:0%there it it you can get rid of itbecause if in this
align:start position:0%because if in this
align:start position:0%because if in thisintegral you can let K goes to minus
align:start position:0%integral you can let K goes to minus
align:start position:0%integral you can let K goes to minusK and
align:start position:0%
align:start position:0% then the DK changes sign the order of
align:start position:0%then the DK changes sign the order of
align:start position:0%then the DK changes sign the order ofintegration changes sign and they cancel
align:start position:0%integration changes sign and they cancel
align:start position:0%integration changes sign and they canceleach other and the effect is that you
align:start position:0%each other and the effect is that you
align:start position:0%each other and the effect is that youchange the sign in the exponent so if
align:start position:0%change the sign in the exponent so if
align:start position:0%change the sign in the exponent so ifyou let K goes to minus K the integral
align:start position:0%you let K goes to minus K the integral
align:start position:0%you let K goes to minus K the integraljust becomes 1 / 2 pi integral d k e to
align:start position:0%just becomes 1 / 2 pi integral d k e to
align:start position:0%just becomes 1 / 2 pi integral d k e tothe i k x Prime -
align:start position:0%the i k x Prime -
align:start position:0%the i k x Prime -x so we'll say that this Delta function
align:start position:0%x so we'll say that this Delta function
align:start position:0%x so we'll say that this Delta functionis equal to this
align:start position:0%is equal to this
align:start position:0%is equal to thisthing exploiting this sign
align:start position:0%thing exploiting this sign
align:start position:0%thing exploiting this signum ambiguity that you can always have so
align:start position:0%um ambiguity that you can always have so
align:start position:0%um ambiguity that you can always have soI'll write it again um in the way most
align:start position:0%I'll write it again um in the way most
align:start position:0%I'll write it again um in the way mostpeople write the formula which is at
align:start position:0%people write the formula which is at
align:start position:0%people write the formula which is atthis moment switching x and x Prime so
align:start position:0%this moment switching x and x Prime so
align:start position:0%this moment switching x and x Prime soyou will write it as Delta of x - x
align:start position:0%you will write it as Delta of x - x
align:start position:0%you will write it as Delta of x - xPrime is 1 / 2
align:start position:0%Prime is 1 / 2
align:start position:0%Prime is 1 / 2piun integral from Infinity to minus
align:start position:0%piun integral from Infinity to minus
align:start position:0%piun integral from Infinity to minusinfinity
align:start position:0%infinity
align:start position:0%infinityDK e to the i k x - x
align:start position:0%
align:start position:0% Prime
align:start position:0%Prime
align:start position:0%Primeso this is a pretty useful
align:start position:0%so this is a pretty useful
align:start position:0%so this is a pretty usefulformula and we need it all the time that
align:start position:0%formula and we need it all the time that
align:start position:0%formula and we need it all the time thatwe do Fury transforms as you will see
align:start position:0%we do Fury transforms as you will see
align:start position:0%we do Fury transforms as you will seevery soon
align:start position:0%very soon
align:start position:0%very soonum it's a strange integral though
align:start position:0%um it's a strange integral though
align:start position:0%um it's a strange integral thoughum
align:start position:0%um
align:start position:0%umit's if you have x equal to X Prime this
align:start position:0%it's if you have x equal to X Prime this
align:start position:0%it's if you have x equal to X Prime thisis zero and you get infinity so it's
align:start position:0%is zero and you get infinity so it's
align:start position:0%is zero and you get infinity so it'sit's a function they s of zero when x -
align:start position:0%it's a function they s of zero when x -
align:start position:0%it's a function they s of zero when x -x Prime is different from0
align:start position:0%x Prime is different from0
align:start position:0%x Prime is different from0somehow all this wave superimposed to
align:start position:0%somehow all this wave superimposed to
align:start position:0%somehow all this wave superimposed tozero but when X is equal to X prime it
align:start position:0%zero but when X is equal to X prime it
align:start position:0%zero but when X is equal to X prime itblows up so it's it does the right thing
align:start position:0%blows up so it's it does the right thing
align:start position:0%blows up so it's it does the right thingit morally does the right thing but it's
align:start position:0%it morally does the right thing but it's
align:start position:0%it morally does the right thing but it'sa singular kind of expression and uh we
align:start position:0%a singular kind of expression and uh we
align:start position:0%a singular kind of expression and uh wetherefore manipulate it with care and
align:start position:0%therefore manipulate it with care and
align:start position:0%therefore manipulate it with care andtypically we use it inside of integrals
align:start position:0%typically we use it inside of integrals
align:start position:0%typically we use it inside of integralsso it's a very nice formula we're going
align:start position:0%so it's a very nice formula we're going
align:start position:0%so it's a very nice formula we're goingto need it and uh it brings here for the
align:start position:0%to need it and uh it brings here for the
align:start position:0%to need it and uh it brings here for thefirst time in our course I guess uh the
align:start position:0%first time in our course I guess uh the
align:start position:0%first time in our course I guess uh theDelta functions and uh this is something
align:start position:0%Delta functions and uh this is something
align:start position:0%Delta functions and uh this is somethingyou should if you have not ever played
align:start position:0%you should if you have not ever played
align:start position:0%you should if you have not ever playedwith Delta functions this may be
align:start position:0%with Delta functions this may be
align:start position:0%with Delta functions this may besomething interesting to ask in
align:start position:0%something interesting to ask in
align:start position:0%something interesting to ask inrecitation or you can try to prove for
align:start position:0%recitation or you can try to prove for
align:start position:0%recitation or you can try to prove forexample just like we show that Delta of
align:start position:0%example just like we show that Delta of
align:start position:0%example just like we show that Delta ofMin - x is the same as Delta of X the
align:start position:0%Min - x is the same as Delta of X the
align:start position:0%Min - x is the same as Delta of X thedelta of a being a number time x is 1/
align:start position:0%delta of a being a number time x is 1/
align:start position:0%delta of a being a number time x is 1/absolute value of a * Delta of
align:start position:0%absolute value of a * Delta of
align:start position:0%absolute value of a * Delta ofx uh those are two simple properties of
align:start position:0%x uh those are two simple properties of
align:start position:0%x uh those are two simple properties ofDelta functions and uh you
align:start position:0%Delta functions and uh you
align:start position:0%Delta functions and uh youcould uh practice
align:start position:0%could uh practice
align:start position:0%could uh practiceuh by just trying to prove them for
align:start position:0%uh by just trying to prove them for
align:start position:0%uh by just trying to prove them forexample use this integral representation
align:start position:0%example use this integral representation
align:start position:0%example use this integral representationto show them123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571align:start position:0% for one-dimensional collisions let's
align:start position:0%for one-dimensional collisions let's
align:start position:0%for one-dimensional collisions let'stalk about two objects one and object
align:start position:0%talk about two objects one and object
align:start position:0%talk about two objects one and objecttwo moving with velocity v1 and another
align:start position:0%two moving with velocity v1 and another
align:start position:0%two moving with velocity v1 and anotherobject v2 moving with velocity v2 let's
align:start position:0%object v2 moving with velocity v2 let's
align:start position:0%object v2 moving with velocity v2 let'ssay they're moving on the ground now I'd
align:start position:0%say they're moving on the ground now I'd
align:start position:0%say they're moving on the ground now I'dlike to introduce the concept of
align:start position:0%like to introduce the concept of
align:start position:0%like to introduce the concept ofrelative velocity concept that we
align:start position:0%relative velocity concept that we
align:start position:0%relative velocity concept that weexperience all the time in our lives but
align:start position:0%experience all the time in our lives but
align:start position:0%experience all the time in our lives butlet's see what it actually means so V
align:start position:0%let's see what it actually means so V
align:start position:0%let's see what it actually means so Vrelative I'm going to define this to be
align:start position:0%relative I'm going to define this to be
align:start position:0%relative I'm going to define this to bethe velocity of one minus the velocity
align:start position:0%the velocity of one minus the velocity
align:start position:0%the velocity of one minus the velocityof two now because of this minus sign
align:start position:0%of two now because of this minus sign
align:start position:0%of two now because of this minus signthat seems a little bit of that abstract
align:start position:0%that seems a little bit of that abstract
align:start position:0%that seems a little bit of that abstractbut one typical example where we see
align:start position:0%but one typical example where we see
align:start position:0%but one typical example where we seethis all the time is four people
align:start position:0%this all the time is four people
align:start position:0%this all the time is four peopletraveling on highways you might have two
align:start position:0%traveling on highways you might have two
align:start position:0%traveling on highways you might have twocars one car overtaking the other car
align:start position:0%cars one car overtaking the other car
align:start position:0%cars one car overtaking the other carbut if you're sitting in car one it
align:start position:0%but if you're sitting in car one it
align:start position:0%but if you're sitting in car one itlooks like car two is going quite slow
align:start position:0%looks like car two is going quite slow
align:start position:0%looks like car two is going quite slowso let's just take typical highway
align:start position:0%so let's just take typical highway
align:start position:0%so let's just take typical highwayexample so you might have V one and
align:start position:0%example so you might have V one and
align:start position:0%example so you might have V one andwe'll give this some speed so we'll make
align:start position:0%we'll give this some speed so we'll make
align:start position:0%we'll give this some speed so we'll makeit 60 miles per hour
align:start position:0%it 60 miles per hour
align:start position:0%it 60 miles per hourand we just call this a one dimensional
align:start position:0%and we just call this a one dimensional
align:start position:0%and we just call this a one dimensionalproblem I had and V two notice we're not
align:start position:0%problem I had and V two notice we're not
align:start position:0%problem I had and V two notice we're notspeeding on a highway v2 is going at 50
align:start position:0%speeding on a highway v2 is going at 50
align:start position:0%speeding on a highway v2 is going at 50miles per hour I had very slow and the
align:start position:0%miles per hour I had very slow and the
align:start position:0%miles per hour I had very slow and therelative velocity v1 minus v2 so that's
align:start position:0%relative velocity v1 minus v2 so that's
align:start position:0%relative velocity v1 minus v2 so that'swhat we're calling the relative that's
align:start position:0%what we're calling the relative that's
align:start position:0%what we're calling the relative that's60 miles per hour minus 50 miles per
align:start position:0%60 miles per hour minus 50 miles per
align:start position:0%60 miles per hour minus 50 miles perhour I had and that's just ten miles per
align:start position:0%hour I had and that's just ten miles per
align:start position:0%hour I had and that's just ten miles perhour and that's what people experienced
align:start position:0%hour and that's what people experienced
align:start position:0%hour and that's what people experiencedwhen one car is approaching another car
align:start position:0%when one car is approaching another car
align:start position:0%when one car is approaching another carif you're in car to car one seems like
align:start position:0%if you're in car to car one seems like
align:start position:0%if you're in car to car one seems likeit's coming at you at 10 miles per hour
align:start position:0%it's coming at you at 10 miles per hour
align:start position:0%it's coming at you at 10 miles per hourthis is what we mean by relative
align:start position:0%this is what we mean by relative
align:start position:0%this is what we mean by relativevelocity there's another important
align:start position:0%velocity there's another important
align:start position:0%velocity there's another importantexample so that's example one the other
align:start position:0%example so that's example one the other
align:start position:0%example so that's example one the otherimportant example to look at example two
align:start position:0%important example to look at example two
align:start position:0%important example to look at example twois when two objects are moving in
align:start position:0%is when two objects are moving in
align:start position:0%is when two objects are moving inopposite directions so let's just write
align:start position:0%opposite directions so let's just write
align:start position:0%opposite directions so let's just writehere a let's write them terms of
align:start position:0%here a let's write them terms of
align:start position:0%here a let's write them terms ofcomponents this time so we have V 1 X 1
align:start position:0%components this time so we have V 1 X 1
align:start position:0%components this time so we have V 1 X 1and we have B 2 and let's make V 1 X
align:start position:0%and we have B 2 and let's make V 1 X
align:start position:0%and we have B 2 and let's make V 1 Xpositive so object 1 is moving in
align:start position:0%positive so object 1 is moving in
align:start position:0%positive so object 1 is moving indirection and let's write this one is
align:start position:0%direction and let's write this one is
align:start position:0%direction and let's write this one isv2x
align:start position:0%v2x
align:start position:0%v2xwe don't have to call this initial we
align:start position:0%we don't have to call this initial we
align:start position:0%we don't have to call this initial wejust call it B 2x I hat and here v 2x is
align:start position:0%just call it B 2x I hat and here v 2x is
align:start position:0%just call it B 2x I hat and here v 2x isequal to minus V 1 X so it's component
align:start position:0%equal to minus V 1 X so it's component
align:start position:0%equal to minus V 1 X so it's componentis negative and even though we drew an
align:start position:0%is negative and even though we drew an
align:start position:0%is negative and even though we drew anarrow in this picture the picture is
align:start position:0%arrow in this picture the picture is
align:start position:0%arrow in this picture the picture isstill fine because if the component is
align:start position:0%still fine because if the component is
align:start position:0%still fine because if the component isnegative it means it's moving in the
align:start position:0%negative it means it's moving in the
align:start position:0%negative it means it's moving in theopposite direction the key arrow is the
align:start position:0%opposite direction the key arrow is the
align:start position:0%opposite direction the key arrow is theunit vector when we're writing
align:start position:0%unit vector when we're writing
align:start position:0%unit vector when we're writingcomponents and now the relative in this
align:start position:0%components and now the relative in this
align:start position:0%components and now the relative in thiscase is V 1 X I hat minus V 2 X I hat
align:start position:0%case is V 1 X I hat minus V 2 X I hat
align:start position:0%case is V 1 X I hat minus V 2 X I hatthat's V 1 X I had - - so there's
align:start position:0%that's V 1 X I had - - so there's
align:start position:0%that's V 1 X I had - - so there'sanother V 1 X I hat so the relative
align:start position:0%another V 1 X I hat so the relative
align:start position:0%another V 1 X I hat so the relativespeed velocity in this case has a
align:start position:0%speed velocity in this case has a
align:start position:0%speed velocity in this case has acomponent that's twice the speed of the
align:start position:0%component that's twice the speed of the
align:start position:0%component that's twice the speed of theone if two objects are moving together
align:start position:0%one if two objects are moving together
align:start position:0%one if two objects are moving togetherat the same speed the relative velocity
align:start position:0%at the same speed the relative velocity
align:start position:0%at the same speed the relative velocitythe way we've defined it has twice the
align:start position:0%the way we've defined it has twice the
align:start position:0%the way we've defined it has twice themagnitude of either velocity and this is
align:start position:0%magnitude of either velocity and this is
align:start position:0%magnitude of either velocity and this isimportant example to consider in
align:start position:0%important example to consider in
align:start position:0%important example to consider incollisions now
align:start position:0%collisions now
align:start position:0%collisions nowthis relative velocity concept we'll see
align:start position:0%this relative velocity concept we'll see
align:start position:0%this relative velocity concept we'll seewill add a new way of thinking about
align:start position:0%will add a new way of thinking about
align:start position:0%will add a new way of thinking aboutelastic collisions with no external
align:start position:0%elastic collisions with no external
align:start position:0%elastic collisions with no externalforces in one dimension123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731align:start position:0% okay that is the first step but to make
align:start position:0%okay that is the first step but to make
align:start position:0%okay that is the first step but to makethings really clear we have to do the
align:start position:0%things really clear we have to do the
align:start position:0%things really clear we have to do thesecond step that it involves the BI
align:start position:0%second step that it involves the BI
align:start position:0%second step that it involves the BIsolution so let me say something about
align:start position:0%solution so let me say something about
align:start position:0%solution so let me say something aboutbi as well will be so bi has similar
align:start position:0%bi as well will be so bi has similar
align:start position:0%bi as well will be so bi has similarasymptotic expansions a bi solution if
align:start position:0%asymptotic expansions a bi solution if
align:start position:0%asymptotic expansions a bi solution ifSai you have an example B I solution
align:start position:0%
align:start position:0% then Sai on the left would behave as
align:start position:0%then Sai on the left would behave as
align:start position:0%then Sai on the left would behave asminus one over pi this is for you
align:start position:0%minus one over pi this is for you
align:start position:0%minus one over pi this is for younegative one over u to the 1/4 sine of
align:start position:0%negative one over u to the 1/4 sine of
align:start position:0%negative one over u to the 1/4 sine oftwo-thirds u to the three-halves minus
align:start position:0%two-thirds u to the three-halves minus
align:start position:0%two-thirds u to the three-halves minusPI over four
align:start position:0%PI over four
align:start position:0%PI over fourI'm shy on the right of X would behave
align:start position:0%I'm shy on the right of X would behave
align:start position:0%I'm shy on the right of X would behaveas 1 over square root of pi 1 over u to
align:start position:0%as 1 over square root of pi 1 over u to
align:start position:0%as 1 over square root of pi 1 over u tothe 1/4 e to the 2/3 you over
align:start position:0%the 1/4 e to the 2/3 you over
align:start position:0%the 1/4 e to the 2/3 you overthree-halves okay this is the asymptotic
align:start position:0%three-halves okay this is the asymptotic
align:start position:0%three-halves okay this is the asymptoticbehavior of B so what's noteworthy about
align:start position:0%behavior of B so what's noteworthy about
align:start position:0%behavior of B so what's noteworthy aboutit first that it oscillates for you
align:start position:0%it first that it oscillates for you
align:start position:0%it first that it oscillates for younegative that's to the left it
align:start position:0%negative that's to the left it
align:start position:0%negative that's to the left itoscillates instead of a closed and
align:start position:0%oscillates instead of a closed and
align:start position:0%oscillates instead of a closed andassign the same phase shift and then
align:start position:0%assign the same phase shift and then
align:start position:0%assign the same phase shift and thenthat on the other side for you positive
align:start position:0%that on the other side for you positive
align:start position:0%that on the other side for you positiveif it blows up so it uses the other
align:start position:0%if it blows up so it uses the other
align:start position:0%if it blows up so it uses the otherexponential and this all is reasonable
align:start position:0%exponential and this all is reasonable
align:start position:0%exponential and this all is reasonableand in fact it allows you to connect as
align:start position:0%and in fact it allows you to connect as
align:start position:0%and in fact it allows you to connect aswell so in this case we would have this
align:start position:0%well so in this case we would have this
align:start position:0%well so in this case we would have thisterm looks like this one
align:start position:0%
align:start position:0% and left one looks like so indeed if you
align:start position:0%and left one looks like so indeed if you
align:start position:0%and left one looks like so indeed if youhad a bi solution the matching requires
align:start position:0%had a bi solution the matching requires
align:start position:0%had a bi solution the matching requiresthat the D term over there is much to
align:start position:0%that the D term over there is much to
align:start position:0%that the D term over there is much tothe B term over here because that's how
align:start position:0%the B term over here because that's how
align:start position:0%the B term over here because that's howthe bi solution is connected so we now
align:start position:0%the bi solution is connected so we now
align:start position:0%the bi solution is connected so we nowneed to relate the B to the D so I will
align:start position:0%need to relate the B to the D so I will
align:start position:0%need to relate the B to the D so I willwrite down the relation fear so in this
align:start position:0%write down the relation fear so in this
align:start position:0%write down the relation fear so in thiscase there's no factor of two but there
align:start position:0%case there's no factor of two but there
align:start position:0%case there's no factor of two but thereis a minus sign so we have B must be
align:start position:0%is a minus sign so we have B must be
align:start position:0%is a minus sign so we have B must beequal to minus D so you can take B
align:start position:0%equal to minus D so you can take B
align:start position:0%equal to minus D so you can take Bequals 2 minus 1 and D equals to 1 and
align:start position:0%equals 2 minus 1 and D equals to 1 and
align:start position:0%equals 2 minus 1 and D equals to 1 andwe get 1 over square root of K of X sine
align:start position:0%we get 1 over square root of K of X sine
align:start position:0%we get 1 over square root of K of X sineX to a K of X Prime the X prime minus PI
align:start position:0%X to a K of X Prime the X prime minus PI
align:start position:0%X to a K of X Prime the X prime minus PIover 4 connects in principle to minus 1
align:start position:0%over 4 connects in principle to minus 1
align:start position:0%over 4 connects in principle to minus 1over square root of Kappa of X e to the
align:start position:0%over square root of Kappa of X e to the
align:start position:0%over square root of Kappa of X e to theintegral from a to X cap of X Prime the
align:start position:0%integral from a to X cap of X Prime the
align:start position:0%integral from a to X cap of X Prime theX bar I think I have it all right B is
align:start position:0%X bar I think I have it all right B is
align:start position:0%X bar I think I have it all right B isthere B's minus 1 it's over there D is
align:start position:0%there B's minus 1 it's over there D is
align:start position:0%there B's minus 1 it's over there D isequal to 1 that's the D term that's the
align:start position:0%equal to 1 that's the D term that's the
align:start position:0%equal to 1 that's the D term that's theother connection condition
align:start position:0%
align:start position:0% okay so the technicalities are gone but
align:start position:0%okay so the technicalities are gone but
align:start position:0%okay so the technicalities are gone butthe concept now requires a a serious
align:start position:0%the concept now requires a a serious
align:start position:0%the concept now requires a a seriousdiscussion I'll give you a little time
align:start position:0%discussion I'll give you a little time
align:start position:0%discussion I'll give you a little timeto take it in we've connected Airy
align:start position:0%to take it in we've connected Airy
align:start position:0%to take it in we've connected Airyfunctions that was the first work we did
align:start position:0%functions that was the first work we did
align:start position:0%functions that was the first work we didat the beginning of this lecture we did
align:start position:0%at the beginning of this lecture we did
align:start position:0%at the beginning of this lecture we didin the top blackboard justify these
align:start position:0%in the top blackboard justify these
align:start position:0%in the top blackboard justify theseexpansions we discuss how the BI
align:start position:0%expansions we discuss how the BI
align:start position:0%expansions we discuss how the BIfunction would originate from a contour
align:start position:0%function would originate from a contour
align:start position:0%function would originate from a contourintegral as well and we didn't derive
align:start position:0%integral as well and we didn't derive
align:start position:0%integral as well and we didn't derivethe BI asymptotic expansions but they're
align:start position:0%the BI asymptotic expansions but they're
align:start position:0%the BI asymptotic expansions but they'resimilarly derived and then we use those
align:start position:0%similarly derived and then we use those
align:start position:0%similarly derived and then we use thoseto connect things and now the question
align:start position:0%to connect things and now the question
align:start position:0%to connect things and now the questionis whether these equations can be used
align:start position:0%is whether these equations can be used
align:start position:0%is whether these equations can be usedif I know the solution on the left is
align:start position:0%if I know the solution on the left is
align:start position:0%if I know the solution on the left islike that can I say the solution on the
align:start position:0%like that can I say the solution on the
align:start position:0%like that can I say the solution on theright is like that
align:start position:0%right is like that
align:start position:0%right is like thator if I know the solution on the right
align:start position:0%or if I know the solution on the right
align:start position:0%or if I know the solution on the rightis like that can I say the equation is
align:start position:0%is like that can I say the equation is
align:start position:0%is like that can I say the equation ison the left and the same thing here if I
align:start position:0%on the left and the same thing here if I
align:start position:0%on the left and the same thing here if Iknow the solution on the left do I know
align:start position:0%know the solution on the left do I know
align:start position:0%know the solution on the left do I knowthis solution on the right and if I know
align:start position:0%this solution on the right and if I know
align:start position:0%this solution on the right and if I knowthe solution on the right do I know the
align:start position:0%the solution on the right do I know the
align:start position:0%the solution on the right do I know thesolution on the left now it looks that
align:start position:0%solution on the left now it looks that
align:start position:0%solution on the left now it looks thatyes that's what you derive but remember
align:start position:0%yes that's what you derive but remember
align:start position:0%yes that's what you derive but rememberit's not quite simple because our whole
align:start position:0%it's not quite simple because our whole
align:start position:0%it's not quite simple because our wholediscussion assume that okay the
align:start position:0%discussion assume that okay the
align:start position:0%discussion assume that okay thepotential is strictly linear but in
align:start position:0%potential is strictly linear but in
align:start position:0%potential is strictly linear but inreality the potential starts to deviate
align:start position:0%reality the potential starts to deviate
align:start position:0%reality the potential starts to deviateso these things that we're right here
align:start position:0%so these things that we're right here
align:start position:0%so these things that we're right hereare not exact asymptotic expansions that
align:start position:0%are not exact asymptotic expansions that
align:start position:0%are not exact asymptotic expansions thatis the exact dominant term of the
align:start position:0%is the exact dominant term of the
align:start position:0%is the exact dominant term of theasymptotic expansions but here there may
align:start position:0%asymptotic expansions but here there may
align:start position:0%asymptotic expansions but here there maybe extra terms because the solution does
align:start position:0%be extra terms because the solution does
align:start position:0%be extra terms because the solution doesnot correspond to a potential is exactly
align:start position:0%not correspond to a potential is exactly
align:start position:0%not correspond to a potential is exactlylinear and anyway this is not an exact
align:start position:0%linear and anyway this is not an exact
align:start position:0%linear and anyway this is not an exactsolution of the differential equation so
align:start position:0%solution of the differential equation so
align:start position:0%solution of the differential equation sothere's a possibility of ambiguities
align:start position:0%there's a possibility of ambiguities
align:start position:0%there's a possibility of ambiguitieshere
align:start position:0%here
align:start position:0%herethat actually indicate the follow I
align:start position:0%that actually indicate the follow I
align:start position:0%that actually indicate the follow Iclaim this connection can only be done
align:start position:0%claim this connection can only be done
align:start position:0%claim this connection can only be donein this way you can only take this
align:start position:0%in this way you can only take this
align:start position:0%in this way you can only take thisequality from the right to the left that
align:start position:0%equality from the right to the left that
align:start position:0%equality from the right to the left thatis if you know that you just have a
align:start position:0%is if you know that you just have a
align:start position:0%is if you know that you just have adecaying exponential you know it
align:start position:0%decaying exponential you know it
align:start position:0%decaying exponential you know itconnects to this function why because if
align:start position:0%connects to this function why because if
align:start position:0%connects to this function why because ifyou know you have a decaying exponential
align:start position:0%you know you have a decaying exponential
align:start position:0%you know you have a decaying exponentialthere's zero chance there is a growing
align:start position:0%there's zero chance there is a growing
align:start position:0%there's zero chance there is a growingexponential on the right you may have a
align:start position:0%exponential on the right you may have a
align:start position:0%exponential on the right you may have abarrier that extends forever and there's
align:start position:0%barrier that extends forever and there's
align:start position:0%barrier that extends forever and there'sdefinitely only a decaying exponential
align:start position:0%definitely only a decaying exponential
align:start position:0%definitely only a decaying exponentialhowever the barrier looks if there's
align:start position:0%however the barrier looks if there's
align:start position:0%however the barrier looks if there'sonly a decaying exponential you know
align:start position:0%only a decaying exponential you know
align:start position:0%only a decaying exponential you knowthat this growing exponential is just
align:start position:0%that this growing exponential is just
align:start position:0%that this growing exponential is justnot there the coefficient here is zero
align:start position:0%not there the coefficient here is zero
align:start position:0%not there the coefficient here is zeroso you don't have the ambiguity that
align:start position:0%so you don't have the ambiguity that
align:start position:0%so you don't have the ambiguity thatmaybe you have a little bit of a growing
align:start position:0%maybe you have a little bit of a growing
align:start position:0%maybe you have a little bit of a growingexponential that connects to this so you
align:start position:0%exponential that connects to this so you
align:start position:0%exponential that connects to this so youcan go from here to there on the other
align:start position:0%can go from here to there on the other
align:start position:0%can go from here to there on the otherhand you cannot quite go from the left
align:start position:0%hand you cannot quite go from the left
align:start position:0%hand you cannot quite go from the leftto the right why is that the reason is
align:start position:0%to the right why is that the reason is
align:start position:0%to the right why is that the reason isthe following
align:start position:0%the following
align:start position:0%the followingif you just know this is on the left you
align:start position:0%if you just know this is on the left you
align:start position:0%if you just know this is on the left youwould say okay now I predict a became
align:start position:0%would say okay now I predict a became
align:start position:0%would say okay now I predict a becameexponential there but your calculation
align:start position:0%exponential there but your calculation
align:start position:0%exponential there but your calculationis not totally exact so there could be
align:start position:0%is not totally exact so there could be
align:start position:0%is not totally exact so there could bean infinitesimal wave of the other type
align:start position:0%an infinitesimal wave of the other type
align:start position:0%an infinitesimal wave of the other typeon the left an infinitesimal wave of
align:start position:0%on the left an infinitesimal wave of
align:start position:0%on the left an infinitesimal wave ofthis time but that infinitesimal wave of
align:start position:0%this time but that infinitesimal wave of
align:start position:0%this time but that infinitesimal wave ofthis kind goes into a growing
align:start position:0%this kind goes into a growing
align:start position:0%this kind goes into a growingexponential and a growing exponential
align:start position:0%exponential and a growing exponential
align:start position:0%exponential and a growing exponentialeventually overtakes this one and ruins
align:start position:0%eventually overtakes this one and ruins
align:start position:0%eventually overtakes this one and ruinsyour solution so you cannot really use
align:start position:0%your solution so you cannot really use
align:start position:0%your solution so you cannot really usethis equation
align:start position:0%this equation
align:start position:0%this equationright to left the small possibility of
align:start position:0%right to left the small possibility of
align:start position:0%right to left the small possibility oferror on the left side because you don't
align:start position:0%error on the left side because you don't
align:start position:0%error on the left side because you don'thave exact solutions translates into an
align:start position:0%have exact solutions translates into an
align:start position:0%have exact solutions translates into anambiguity concerning a positively
align:start position:0%ambiguity concerning a positively
align:start position:0%ambiguity concerning a positivelygrowing exponential and it would
align:start position:0%growing exponential and it would
align:start position:0%growing exponential and it wouldovertake this so if you say oh I have
align:start position:0%overtake this so if you say oh I have
align:start position:0%overtake this so if you say oh I havethis therefore I have this became
align:start position:0%this therefore I have this became
align:start position:0%this therefore I have this becameexponential this may be a very
align:start position:0%exponential this may be a very
align:start position:0%exponential this may be a veryinaccurate thing because maybe you have
align:start position:0%inaccurate thing because maybe you have
align:start position:0%inaccurate thing because maybe you havea little bit of the sign that you didn't
align:start position:0%a little bit of the sign that you didn't
align:start position:0%a little bit of the sign that you didn'tsee because it was much smaller than
align:start position:0%see because it was much smaller than
align:start position:0%see because it was much smaller thanthis term but that would give you a
align:start position:0%this term but that would give you a
align:start position:0%this term but that would give you agrowing exponential so you cannot use
align:start position:0%growing exponential so you cannot use
align:start position:0%growing exponential so you cannot usethat equation in that direction
align:start position:0%that equation in that direction
align:start position:0%that equation in that directionsimilarly here you have another
align:start position:0%similarly here you have another
align:start position:0%similarly here you have anotherdirection the direction is this one it's
align:start position:0%direction the direction is this one it's
align:start position:0%direction the direction is this one it'scrucial you can go that way
align:start position:0%crucial you can go that way
align:start position:0%crucial you can go that waybut you cannot go the other direction as
align:start position:0%but you cannot go the other direction as
align:start position:0%but you cannot go the other direction aswell and the reason is kind of similar
align:start position:0%well and the reason is kind of similar
align:start position:0%well and the reason is kind of similarsuppose you have here you say okay I
align:start position:0%suppose you have here you say okay I
align:start position:0%suppose you have here you say okay Ihave this growing exponential you say
align:start position:0%have this growing exponential you say
align:start position:0%have this growing exponential you saysomebody comes in oh there's a little
align:start position:0%somebody comes in oh there's a little
align:start position:0%somebody comes in oh there's a littlebit of cosine here and you say well but
align:start position:0%bit of cosine here and you say well but
align:start position:0%bit of cosine here and you say well buta little bit of course and gives me a
align:start position:0%a little bit of course and gives me a
align:start position:0%a little bit of course and gives me adecaying exponential this irrelevant
align:start position:0%decaying exponential this irrelevant
align:start position:0%decaying exponential this irrelevantcompared to this one so you are safe in
align:start position:0%compared to this one so you are safe in
align:start position:0%compared to this one so you are safe ingoing from this side to that side you're
align:start position:0%going from this side to that side you're
align:start position:0%going from this side to that side you'regoing into growing exponential any error
align:start position:0%going into growing exponential any error
align:start position:0%going into growing exponential any erroron the left will produce a small error
align:start position:0%on the left will produce a small error
align:start position:0%on the left will produce a small erroron the right on the other hand you
align:start position:0%on the right on the other hand you
align:start position:0%on the right on the other hand youcannot go honestly from right to left
align:start position:0%cannot go honestly from right to left
align:start position:0%cannot go honestly from right to leftbecause if you had a decaying
align:start position:0%because if you had a decaying
align:start position:0%because if you had a decayingexponential this is a growing
align:start position:0%exponential this is a growing
align:start position:0%exponential this is a growingexponential if you had a decaying
align:start position:0%exponential if you had a decaying
align:start position:0%exponential if you had a decayingexponential you wouldn't see it here
align:start position:0%exponential you wouldn't see it here
align:start position:0%exponential you wouldn't see it herethis one takes over but the decaying
align:start position:0%this one takes over but the decaying
align:start position:0%this one takes over but the decayingexponential produces a nice cosine that
align:start position:0%exponential produces a nice cosine that
align:start position:0%exponential produces a nice cosine thatis quite comparable to this one so a
align:start position:0%is quite comparable to this one so a
align:start position:0%is quite comparable to this one so adecaying exponential that you don't see
align:start position:0%decaying exponential that you don't see
align:start position:0%decaying exponential that you don't seehere produces on this side
align:start position:0%here produces on this side
align:start position:0%here produces on this sideturn that is comparable to this one so
align:start position:0%turn that is comparable to this one so
align:start position:0%turn that is comparable to this one soyou also cannot go from this direction
align:start position:0%you also cannot go from this direction
align:start position:0%you also cannot go from this directionto that direction so of these are the
align:start position:0%to that direction so of these are the
align:start position:0%to that direction so of these are theconnection formulas and these are the
align:start position:0%connection formulas and these are the
align:start position:0%connection formulas and these are thedirections we've done this for this
align:start position:0%directions we've done this for this
align:start position:0%directions we've done this for thisconfiguration in which we have a turning
align:start position:0%configuration in which we have a turning
align:start position:0%configuration in which we have a turningpoint of this form at the point a in
align:start position:0%point of this form at the point a in
align:start position:0%point of this form at the point a inwhich you're allowed to the left and
align:start position:0%which you're allowed to the left and
align:start position:0%which you're allowed to the left andforbidden to the right for convenience
align:start position:0%forbidden to the right for convenience
align:start position:0%forbidden to the right for convenienceit's useful to have a formula let's go
align:start position:0%it's useful to have a formula let's go
align:start position:0%it's useful to have a formula let's gohere where you have the opposite
align:start position:0%here where you have the opposite
align:start position:0%here where you have the oppositedirection in which you have a be here
align:start position:0%direction in which you have a be here
align:start position:0%direction in which you have a be hereand you have allowed to the right and
align:start position:0%and you have allowed to the right and
align:start position:0%and you have allowed to the right andforbidden to the left I will write those
align:start position:0%forbidden to the left I will write those
align:start position:0%forbidden to the left I will write thoseformulas because they are many times
align:start position:0%formulas because they are many times
align:start position:0%formulas because they are many timesused and you will need them in general
align:start position:0%used and you will need them in general
align:start position:0%used and you will need them in generaland Griffiths and other books don't have
align:start position:0%and Griffiths and other books don't have
align:start position:0%and Griffiths and other books don't havethe patience to give you all the
align:start position:0%the patience to give you all the
align:start position:0%the patience to give you all theformulas this is Kappa X prime VX prime
align:start position:0%formulas this is Kappa X prime VX prime
align:start position:0%formulas this is Kappa X prime VX primethis is growing or decaying exponential
align:start position:0%this is growing or decaying exponential
align:start position:0%this is growing or decaying exponentialthis should be called the growing
align:start position:0%this should be called the growing
align:start position:0%this should be called the growingexponential on the left this is the
align:start position:0%exponential on the left this is the
align:start position:0%exponential on the left this is theforbidden region as X becomes more and
align:start position:0%forbidden region as X becomes more and
align:start position:0%forbidden region as X becomes more andmore left the interval is bigger so this
align:start position:0%more left the interval is bigger so this
align:start position:0%more left the interval is bigger so thisis a growing exponential on the left one
align:start position:0%is a growing exponential on the left one
align:start position:0%is a growing exponential on the left oneover K of X summing b2x
align:start position:0%over K of X summing b2x
align:start position:0%over K of X summing b2xK of X Prime the X prime minus pi over
align:start position:0%K of X Prime the X prime minus pi over
align:start position:0%K of X Prime the X prime minus pi overfour and this one again just like that
align:start position:0%four and this one again just like that
align:start position:0%four and this one again just like thatwhen you go into the growing exponential
align:start position:0%when you go into the growing exponential
align:start position:0%when you go into the growing exponentialso that's that relation and I kind
align:start position:0%so that's that relation and I kind
align:start position:0%so that's that relation and I kindright these things following this
align:start position:0%right these things following this
align:start position:0%right these things following thispicture so you're allowed to the right
align:start position:0%picture so you're allowed to the right
align:start position:0%picture so you're allowed to the rightand forbidden on the left so I write the
align:start position:0%and forbidden on the left so I write the
align:start position:0%and forbidden on the left so I write theallowed wave function to write the
align:start position:0%allowed wave function to write the
align:start position:0%allowed wave function to write theforbidden wave function to the left one
align:start position:0%forbidden wave function to the left one
align:start position:0%forbidden wave function to the left oneover Kappa of X exponential of minus x
align:start position:0%over Kappa of X exponential of minus x
align:start position:0%over Kappa of X exponential of minus xto be cup of X prime VX prime goes into
align:start position:0%to be cup of X prime VX prime goes into
align:start position:0%to be cup of X prime VX prime goes intoa decaying exponential you can follow
align:start position:0%a decaying exponential you can follow
align:start position:0%a decaying exponential you can followinto the other region and that's what we
align:start position:0%into the other region and that's what we
align:start position:0%into the other region and that's what wedo here as before they became
align:start position:0%do here as before they became
align:start position:0%do here as before they becameexponential is safe because if you know
align:start position:0%exponential is safe because if you know
align:start position:0%exponential is safe because if you knowit's there's just a decaying exponential
align:start position:0%it's there's just a decaying exponential
align:start position:0%it's there's just a decaying exponentialthere's no possibility of having the
align:start position:0%there's no possibility of having the
align:start position:0%there's no possibility of having thegrowing exponential so these are your
align:start position:0%growing exponential so these are your
align:start position:0%growing exponential so these are yourconditions for that turning point and
align:start position:0%conditions for that turning point and
align:start position:0%conditions for that turning point andthat's how you use them so one example
align:start position:0%that's how you use them so one example
align:start position:0%that's how you use them so one examplethat we will not get to discuss now but
align:start position:0%that we will not get to discuss now but
align:start position:0%that we will not get to discuss now butwill be in the notes is tunneling across
align:start position:0%will be in the notes is tunneling across
align:start position:0%will be in the notes is tunneling acrossa barrier and you will use the
align:start position:0%a barrier and you will use the
align:start position:0%a barrier and you will use theconnection conditions in this case here
align:start position:0%connection conditions in this case here
align:start position:0%connection conditions in this case hereand for this case the other ones that
align:start position:0%and for this case the other ones that
align:start position:0%and for this case the other ones thatwe've done so you need for tunneling
align:start position:0%we've done so you need for tunneling
align:start position:0%we've done so you need for tunnelingboth connection conditions it's a very
align:start position:0%both connection conditions it's a very
align:start position:0%both connection conditions it's a verynice exercise I recommend that you play
align:start position:0%nice exercise I recommend that you play
align:start position:0%nice exercise I recommend that you playwith it and we'll well put it in the
align:start position:0%with it and we'll well put it in the
align:start position:0%with it and we'll well put it in thenotes as well so let's stop here1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890The following content isprovided under a Creative
Commons license.
Your support will help MITOpenCourseWare continue to
offer high quality educationalresources for free.
To make a donation, or viewadditional materials from
hundreds of MIT courses, visitMIT OpenCourseWare at
ocw.mit.edu.
PROFESSOR: OK.
You can probably figure out,I'm not Professor Guttag.
He's away today.
And so he's asked me to coverthis lecture, which
I'm happy to do.
I'm asked to remind youthat there is no
recitation on Friday.
I was expecting at least asmile or a small cheer.
Early lead into spring break.
This ought to be good.
So my understanding is thatat the end of last class,
Professor Guttag was walking youthrough a set of classes.
And I want to remind youof where you were.
I want to look at one of thoseclasses in a bit more detail,
because we're going toshow you one new
piece of the language.
And then we're going to turn toa different topic, which is
going to be the subject forthe next several lectures.
So just to remind you whereyou were, Professor Guttag
showed you a set of classeswhich started off with a
person class.
There's a definition I'llput up on the screen.
This was just something thatcreated a kind of object.
I'm not going to go through thedetails, but you had the
standard things you'd expect.
You had a way of initializingit.
So you'd make each instance.
And it had a way of pullingout the name, so you could
have a full name anda last name.
You could get out pieces of it,it set birthday, it had
age, it had a bunch of stuff.
And that's fine.
The second thing that he didthat we do in a lot of dealing
with classes is he createdspecialization of that, a
thing called an MIT person.
And you all know thatMIT people are
special people, right?
And what did an MIT person do?
Well, again, youcan look at it.
It had, again, an init method.
But one of the things that wasa little different here-- you
may have seen it in some otherplaces-- is that we can
create, inside of that class
definition, an internal variable.
In this case, it wasthe ID number.
So that every time we created aninstance of this class, we
could give that instancea special number
and a unique number.
And that was exactly whatwe did here, right?
If you're going to create oneof these things, you set the
ID number to be thenext number.
And then you would incrementthat, so that you'd be able
to, next time you createdan instance,
give it a unique number.
And that let you do things likeput things out in order,
and things of that sort.
There was also a method in thisclass that we're going to
use in a second, which issomething that would say, is
this person a student?
I'll just highlight for youthere the definition of it,
which said you'd look at thetype of the instance and say,
is it undergrad or grad?
And that was the other twospecializations we had here.
We had undergraduates andwe had graduates.
And again, I'm not going toworry about the details.
You saw this last time.
Undergrads, they have somemethods like you could create
an instance of it -- you'dhave its year.
You could give backwhat the year was.
And for the graduate students,we didn't even bother with
putting details in.
It could be anything you want.
Now these are things that youought to be getting used to
looking at.
So this is creating someclass definitions.
I can make some instances.
There are a couple of nicevariations like, for the MIT
people, each one has a uniqueidentifier, which lets us keep
track of them.
I think where Professor Guttagended up last time was
actually creatinga course list.
So a list of students ina class, like 6.00.
So I want to show you that, andI want to show you some
highlights of that.
So there's the definition.
It's on your handout as well.
So what does a course list do?
Well, the idea should be, it'sa way of collecting together
all the students in 6.00.
So if you look at our initfunction up here, when we
create an instance of a courselist, what does it do?
Well, we give it a number,like 6.00.
And it's going to bind thatlocally inside of a
definition.
And it's going to createa collection, a list.
It's going to be a listof all the students.
Now if I'm going to do that, Ineed to have a way of putting
students into the class.
And I know nobody drops 6.00,but just in case-- drop date's
coming up-- we have to have someway of removing a student
from a class.
So I'm going to have amethod right here--
oops, sorry, I'm going toget it from the right
place, right there--
that would add a student in.
Now take a look at thatfor a second.
It's not just putting thestudent into the list.
The very bottom down here,that last line,
self.students.append().
What's that doing?
Well, self, remember, refersto the instance.
.students will get me thatlist for that instance.
And then .append says, add onto the end of that list the
person that I just addedin, the person
that is bound to who.
The things above itare being careful.
They're defensive programming.
They're ways of saying, look,make sure that the person is
actually a student.
Huh.
Wait a minute, where'dthat come from?
isStudent.
Oh, yeah, that was uphere in MIT person.
So we're making an assumptionhere that says, we're only
adding in students.
No post-docs are welcome.
We're going to onlyadd in students.
So we're taking instances of oneof these two classes, and
checking using the inheritedmethod to make sure that this
person is actually a student.
And we're doing this in acareful way, which is we're
going to raise an error if, infact, it's not a student.
And then the second thing,notice, that we're going to do
here is we're going to say, gee,make sure that we're not
adding you twice.
So we're going to do what?
We're going to say, getout the list of
students right there.
and I begin.
self is pointing to theinstance.students gives me the
list of students currentlyin that instance.
And I'm basically saying, isthis person in that list?
And if they are, again, I'mgoing to raise an error
saying, wait a minute, you'realready in the class.
So these are things I'm sureyou've seen before.
But they're ways of being alittle careful about the
programming.
The removeStudent isroughly the same.
So let's just look atsome examples here.
I've created a set of people.
And just to show you what theylook like, let's go down here.
So I've created m1.
Let me do that again,sorry about that.
I'm going to run this.
All right.
So if I look at m1--
it's not liking me, is it?
We'll try it one more time.
I'm going to look at m1.
It gives me back an instanceof an object.
[UNINTELLIGIBLE]
if I actually say a print of m1,it'll print out the name.
And the same thing for theundergraduates here.
So I've made a couple ofundergraduates, I've made a
couple of graduate students.
And notice what I'vedone down here.
I've created a course,SixHundred, by calling
CourseList.
So CourseList is going to makean instance of that.
I gave it the name.
So we can go back over here.
Let's look at whatSixHundred says.
OK.
I'm sure you're used to readingthat gobbledygook.
It says, ah, it's an instance,and it's an instance of a
CourseList.
And it gives me a pointerto where it is.
Now what if I want to see thestudents inside this course?
I'd like to see, who areall the students there?
So printing SixHundred--
let's see if that doesthe right thing.
Oops, no.
That kind of makessense, right?
SixHundred is just pointingto an instance.
So where are the students?
They're sitting down inside ofan internal variable, which
is, in fact, in this case,the list of students.
So one way I could do this is Icould say, take SixHundred,
which is an instance, andgo into that frame that
corresponds to thatand look up the
local variable, students.
And if I do that, oh,I've got a bunch of
students named Main.
Now this shouldn't surpriseyou, right?
This is doing what?
It's giving me back thatinstance of the list.
If I actually want to print outthe names of the students,
I have to do something alittle more careful.
So here's one wayI could do it.
I could say, for every studentin that list, let's print out
their name.
Oh, good.
You're wondering, whyam I doing this?
Well, I want to show you what'sgoing on in this class.
And then I want to highlightsomething for you.
So let's think aboutwhat I just said.
I want to get the names of allthe students in the class.
So I took the instance, I wentin and pulled out an internal
variable, and then I did a forloop that walked along it,
printing those out.
Is that a good idea?
Is that a not-so-good idea?
Is that a really bad idea?
Don't you hate professors whoask questions at 10 o'clock in
the morning?
Well, I'm going to suggest thatit's not a great idea.
And here's why.
I'm reaching into an instanceand pulling out an internal
variable and doing somethingwith it.
A much cleaner way of dealingwith that is to build an
interface, to build a function,a method, that
belongs to that instance,that would give me back
the pieces I want.
And the reason I'd like that isthen I don't have to worry
about, if I change my mind interms of how I represent
things internally, all I haveto do is think about that
interface function.
Right
So the last thing I want to showyou here in this example
is let's look, in fact,right here.
I've added a method calledallStudents.
But it's a little different,I think, than things you've
probably seen before.
So what's the idea?
I want allStudents.
To be a function, or a method.
When I call that, Iwant it to give me
back all of the students.
Now, I could have had it justgive me back the list, but I
might want to have the methodgive me back not just all the
students, but maybe somestudents, like only the
undergraduates in the class.
And in fact, right belowthere, I've got a
method that does that.
Let's look at this one.
It says, I want to get back the
undergraduates in the class.
And what's it do?
It's going to do alittle counting.
It's going to set index to 0.
And then it's going to runthrough a while loop where it
basically takes each studentand checks its type.
This is something you've seenbefore, taking a loop and
walking along, taking eachelement of that list and
saying, if it's anundergraduate, I'm going to
give you back that student, andI'm incrementing index at
the bottom.
Here's the funky thing.
I've used a word called yield.
And that's different thanyou've seen before.
I'm not directly accumulatinga list.
You don't see anywhere where I'mbuilding up a list here.
So yield is an example of a formthat you're going to want
to use called a generator.
Now a generator is a little bitlike a return, but with
one big exception.
If I had a return in that methodsomewhere, when it
found the first thing, it'sgoing to give me back the
value and it's done.
And so any information it storedabout where it was in
that computation--
the phrase we use is it getspopped off the stack frame.
Yield is a little different.
And it's different becausea generator--
I'm going to write thisdown carefully.
A generator is a function thatremembers the point in the
body where it was.
It remembers the point in thefunction body where it last
returned, plus all thelocal variables.
So what does this mean?
It says, it's going to keeptrack of what was the state
when I did the computation, sothat if I call it a second
time, it goes right back to thatstate and continues the
computation.
If I called it a third time,it goes right back to that
state and gives you acontinuation on the
computation.
So in fact, what yield does,what a generator does, is what
you would do what you normallywalk through a list.
But it gives you some control.
So it gives you a way ofactually deciding, how do I
want to create something Icould use in a for list.
And if we go back andlook at it, you can
see it right there.
The method definition forUGs, undergraduates--
if I call it, it is basicallygoing to walk through, one at
a time, each element in theunderlying representation and
generate for me the nextelement of the
thing I want to use.
So let me show you a coupleof examples of using it.
In this case, I've buried insideof a for or a while
loop, but if I go over here, Ishould be able to do things
like, are all the studentsin SixHundred?
And notice the open/closeparen,
because that's a method.
I need to call it.
Now you're going, whoop-de-do.
That's just like the printthing I did before.
But the difference here is I'mcontrolling now how I get
access to those.
And to show you just a slightlydifferent way of
doing this, I could now dothings like say the following.
For all the students inSixHundred, and I'm going to
take all the studentsagain in SixHundred.
So notice what I'mdoing, two loops.
And I'm going to createsomething that basically keeps
track of where I am in each oneof those loops using that
yield function.
So take a look at whatit printed out.
That outer loop is using thegenerator to generate each
element of the list.
It hangs onto that, so thatthe inner loop can walk
through again, a generatorgoing through each
element of that list.
And I'm printing outstudents squared --
first student times all otherstudents, second student times
all other students,third student
times all other students.
And of course the otherthing I can do is I
can do the same thing--
sorry about that-- for s inSixHundred undergrads.
And in this case, it's walkingthrough that internal
representation, generating eachelement that satisfies
the constraints.
OK.
It's a little esoteric,but you're going to
find it really useful.
And it's the last piece, Ithink, of syntax you're going
to see for a while in termsof the language.
You could do this by just
manipulating the list directly.
But the idea of a generatoryou're going to find really
useful when you want tocontrol access to a
collection.
Really think of the generator assomething that keeps track
of the state of the computation,so it can go back
and pick it up wheneverit needs it.
OK.
That wraps up thatpiece of what
Professor Guttag was doing.
So I want to now switch to acompletely different topic,
which we're going to do today,we're going to do Thursday,
and it may well carry intoafter spring break.
The second topic deals with,how do we go about building
computational models tosolve real problems.
And I want to start by puttingup here a comparison.
For much of the history ofscience, people focused on
trying to find analyticmethods.
Big word, what does it mean?
Well, an analytic model issomething that lets you
precisely predict the behaviorof a system, just based on
some initial conditions anda set of parameters.
So this is a mathematicalfunction, if you like.
You can predict behavior givensome initial conditions and
some parameters.
Newtonian physics, 8.01--
analytic models.
Spring constants--analytic models.
They're things that letyou predict what a
system's going to do.
For, I don't know, severalcenturies, this was basically
what science did.
It was really useful.
It lead to things like calculusand to things like
probability theory.
It lead to basicallyunderstanding the macroscopic
physical world.
So it's the stuff yousaw in high school.
That's nice.
But it doesn't always work.
And indeed, as the 20th centuryprogressed, one of the
things we saw was that there areplaces where this doesn't
really satisfy what you need,and you're better off with
simulation methods, whichis what we're going
to talk about here.
So what do I mean bysimulation methods?
First of all, let me talk aboutwhy do we want to get a
simulation method.
The idea was that there aregoing to be some places where
it's really hard tobuild a model.
So in fact, places wherethis comes up--
sometimes we have systemsthat are not
mathematically tractable.
Again, a highfalutin word.
What does it mean?
It says, there are some systemswhere it's really hard
to build a physical modelthat exactly predicts
what's going to happen.
Think weather forecasting.
It doesn't work well.
Actually, in Boston,it's easy.
Just assume it's going tosnow, and you're fine.
All right.
That's one reason whywe want to move
towards simulation models.
Here's a second reason whywe'd like to move towards
simulation models.
There's times when, in fact,as things get more complex,
we're better off justsuccessively refining a series
of simulations.
In other words, rather thanspending the effort trying to
build a very detailed predictivemodel, analytic
model, just run a simulationthat gives us an insight to
what the problem's doing.
We'll refine the simulation,and we can keep
going on like that.
The third reason you might liketo do it is it's often
easier to extract usefulintermediate results from a
simulation than it isto try and build a
detailed analytic model.
And of course, the lastone is pretty obvious.
The advent of computersmade this possible.
I want to just give youan example of this.
Put yourself back in the 1700sand think about how you would
do a computation.
You have two choices.
You can crank it out by hand.
Good luck.
Imagine how detaileda model you could
actually do that way.
Or you could buildreally precise,
detailed mechanical models.
And in fact, there are wonderfulcollections of these
from people like Leonardo.
For example, people that wantedto understand the solar
system built what were calledmechanical orreries, which
were these very complex piecesof clockwork that allowed you
to try and predict the motionsof the planets.
That's a really expensive wayto try and do a simulation.
So computation suddenly makesthings change a lot.
Now just to give you a sense ofthis, I did the following
experiment this morning,to see how
important simulation is.
And I haven't really saidwhat simulation means.
So simulation means giving mean estimate, rather than a
prediction.
Giving me a sense of what mighthappen to a system under
certain conditions and doingthat multiple times, actually
running, if you like, a modelof the system rather than
trying to predict exactlywhat's going to happen.
So I did the followingexperiment this morning.
I went to Google--
I could have gone to Bing--
and I typed in "financesimulation." I got 5 million
hits, most of them probablywrong by the
way, but that's OK.
I typed in "biologysimulation." I
got 11 million hits.
I typed in "physicssimulation." I
got 15 million hits.
And then finally, I typed in"game simulation." How many
hits do you figure I got?
North or south of 15 million?
North.
Yeah.
50 million hits.
OK, so why should you care?
A, it's fun to do.
B, it's really a common toolthat we want to use here.
So let's think about what asimulation would look like,
and then we're going tostart building one.
So the idea of a simulation,then, is-- what we're trying
to do is we want tobuild a model with
the following property.
It's going to give usefulinformation about the behavior
of a system.
Boy, there's a statement thathas no content to it, right?
Let me tell you whatI mean by that.
I'm going to compare thisto an analytic model.
An analytic model would exactlypredict what this
system's going to do.
With a simulation, we want tobuild a model that says, if I
give you some sense of the stateof the system, it will
give me some informationabout how that
system is going to behave.
It may not be exactly right, Butit's going to give me some
simulation of it.
Another way of thinking about itis it's going to give me an
approximation to reality.
And another way of saying itis simulation models are
descriptive, not prescriptive.
So what does that mean?
An analytic modelis prescriptive.
You're doing 8.01 problems.
You type in the definition ofthe parameters of the problem,
and it would tell you, at leastto the accuracy of the
computer, exactly what'sgoing to happen.
With the simulation, it says,given a particular scenario, I
can give you a good guess ofwhat's going to happen.
But it might actually be thecase, by the way, that for
exactly the same scenario, Irun the simulation multiple
times and I might get slightlydifferent answers.
Because maybe the world, as wesaid over here, is something
that we can't model exactlymathematically.
So we want to be able to havethat ability, to sort of go
back and forth.
Now probably the easiest way tothink about this is let's
look at a model anda simulation.
So the idea here is I wantto build simulations.
I want to control thefact then I may not
get a precise answer.
I might not get the sameanswer every time.
But if I do enough simulationsof a circumstance, I can get
some good sense which I canrefine of how this object's
actually going to behave.
So here's the example I'mgoing to start with.
I'm going to go back, again,a couple hundred years.
In 1827, a Scottish botanistnamed Robert Brown observed
that a pollen particle suspendedin water seemed to
just float at random.
You've probably heardthis term.
It's called Brownian motion,named after Robert Brown.
He had no plausibleexplanation for
this, by the way.
He just observed it.
And he made no attempt to modelit mathematically, which
kind of makes sense.
That's 1827.
The first really clearmathematical model of Brownian
motion didn't come arounduntil 1900.
A guy named Louis Bachelier hada doctoral thesis called
"The Theory of Speculation."Part of the problem for
Bachelier, though, was that hedidn't model Brownian in
pollen particles.
He did it in finance markets.
And that was considered, atleast at the time, completely
disreputable.
And so nobody paid any attentionto his thesis.
That's not going to happento your thesis.
Your thesis is going to bereputable when you get done
with this place.
So it took eighty yearsto get to that point.
Unfortunately for poorBachelier, five years later,
another person came along andactually built the kind of
model that introduced thissort of-- what's called
stochastic thinking intothe world of physics.
This was a model that was almostexactly the same as
Bachelier's, but it wasused to confirm the
existence of atoms.
Anybody know who didthat model in 1905?
No physics buffs here.
If I told you he was born inSwitzerland, would that help?
A minor guy namedAlbert Einstein.
So that was one of the firstthings Einstein did, was he
actually built thefirst really good
model of Brownian motion.
And that allowed, in fact, thiskind of thinking to go
into real-world problems.
So Brownian motion is an exampleof a tool we're going
to use a lot.
I'm probably hiding thatbelow the screen where
you can't see it.
It's an example of whatwe call a random walk.
Random walks you're going tosee all over the place.
They're an incredibly useful wayof building a simulation.
And the essential idea of arandom walk is, if I've got a
system of interactingobjects--
could be pollen particles--
I want to model what happensin that system under the
assumption that each one ofthose things is going to move
at each time step under somerandom distribution.
It's going to move in aparticular direction.
I want to model what theoverall system does.
OK, let me give you someexamples of where this is
really useful.
It's really useful in modelingphysical processes.
Well, we're going to start withpollen particles in air.
But you could think about anykind of particle in water.
You could think aboutany kind of air
particle in a larger fluid.
Ah, weather.
Modeling weather-- if we couldreally model the motion of all
those molecules-- is just areally large random walk.
Random walks are reallyuseful in
understanding biological processes.
For example, the kinetics ofdisplacement of RNA from
heteroduplexes ofDNA is a great
example of a random walk.
And in fact, people interestedin bioinformatics or
computational biology will seerandom walks used all the time
to try and to understand thedisplacements of things.
It's really useful insocial processes.
Movement of the stock market isdefinitely a random walk,
except for the day when themarkets are all crashing for
unfortunate reasons.
So it's something wewant to use a lot.
In the example I'm going to useto motivate a random walk,
we're going to builda simulation.
Here is what wasthe traditional
view of a random walk.
So here's the motivation.
Excuse me a second.
Let's take a drunkenuniversity student.
Not an Institute student,a University student.
So this is a Harvard student,not an MIT student, because I
know you're all well-behaved.
At least smile at me whenI make these bad jokes.
Thank you.
All right.
You've got a drunken student.
They're out on a big field.
And they start off in the middleof the field, and every
second, this student can takeone step in one of the four
cardinal directions.
So north, south, east, west.
After 1,000 seconds--after 1,000 steps--
how far away is that studentfrom where he
or she started out?
So I need some help here.
Guesses.
1,000 steps.
How far away after 1,000steps is that student--
we'll make it a he.
From where he started out.
Yeah.
AUDIENCE: It depends on theprobability of what direction
you're going.
PROFESSOR: OK, so let'sassume that the steps
were equally likely.
The four steps-- north, south,east, west-- they're all
equally probable.
AUDIENCE: [INTERPOSING VOICES]
PROFESSOR: OK.
So the suggestion over hereis, where he started.
So 0 distance away.
That's not a bad guess, right?
You're just going in differentdirections.
It's equally likely you endup where you started.
So one possibility is 0.
You end up back whereyou started.
Yeah.
AUDIENCE: Maybe 150 or so?
PROFESSOR: Well, I'm goingto take bets here.
I've got 150.
It's an interesting number.
Not bad.
Any other guesses.
This side of the crowd.
I don't want to justdo the right side.
I'm very liberal.
I want the left side ofthe crowd over here.
Somebody over on this side.
Help me out.
Any other guesses?
I've got 0, and I'vegot 150 steps.
Boy, I get no eye contactwhen I do this.
This is great.
Yes, please.
AUDIENCE: 500 root 2 steps?
PROFESSOR: 500 root 2.
Can I drop the root2 for second?
The 500 is not a badguess, right?
Because you're about halfthe distance away.
The root 2 we'll comeback to in a second.
Keep that in mind.
All right.
500.
So we've got 0, we've got150, we've got 500.
Well, gee, that's the wholepoint of building the
simulation.
Let's see if we can figure outwhat might happen here.
Ok.
And I'm going to build thesimulation in a second.
But before I do that, one ofthe good things to do is to
try and build a simple modelthat we could use to get an
intuition about what'sgoing to happen.
So I'm going to start witha very simple model here.
There's my field.
The guys who mow the lawn atFenway have been over and very
nicely put x- and y-axesonto this field.
And let's assume the studentsstarts off there.
We'll just call thatthe origin.
It doesn't matter what it is,but that's where the students
starts off.
And what I want to do is I wantto get a very rough sense
of how far away the studentmight go after a few steps.
We won't be able to go very far,but enough steps that we
can start estimating this.
So they start there.
After one step, thereare the places the
student could end up.
Equally likely.
So after one step, if I want tobuild a distance associated
probability, there's probability1 they're 1 unit
away, no matter whichdirection they went.
OK, let's take this one here.
Let's assume the studentwent east.
In fact, they're all goingto be roughly the same.
And the second step, wherecan the student go?
He can go there, he can gothere, he can go there, or he
could go there.
Right?
So what are the distanceshere?
Well, in one out of four cases,he's at a distance 0,
which would be back to wherewe started, which is that
original pretty good guess.
If he goes there or he goesthere, those are both what
distance away?
Root 2, right?
So it could be root 2 away,2 out of 4 times.
And if we went east again,we're 2 units away.
Again, with probability1 in 4.
I'm cheating slightly here, inthe sense that I should do the
same things if the first stepwas north, south, or west, but
they're all symmetric to this.
So it'll all come outthe same way.
So there is what happensafter two steps.
Now let's do one more step.
It's going to get alittle messy here.
But suppose I want togo three steps.
About three possibilities.
Well, I've got threepossibilities.
If I'm in this case, which isthe 0 case, I'm here, in which
case no matter which stepI take, I'm 1 unit away.
So this will say, distance 1.
And the probability of beinghere was 1/4, so the
probability again is still1/4 that one unit away.
Let's take one of these,the root 2 ones.
That says I'm eitherhere or I'm there.
They're going to be symmetric.
If I'm here, where can I go?
I've got possibilitiesgoing to those.
So these two are 1 unit away.
So half the time I'm 1unit away, and it was
1/2 that got me there.
Did I do that right?
Yes.
That's also with 1/4.
That was getting if I wenthere or I went there.
If I'm up here or I'm overthere, that's root 5 away.
So let me put that over here.
So I've got a probability of1/2 getting there, and a
probability of 1/2 from hereof getting that, so that's
also with probability of 1/4.
And then what's the onecase I have left?
The case I have left is I wentall the way over to here, two
steps over, in which caseI'm going to go what?
There, there, there, or there.
If I just pull thesetogether--
I'm just going todo them for you.
That says, I have a probabilityof being 1 away
with probability 1/16, root 5away with probability 1/8 --
and I'm running out of room here-- and 3 units away with
probability of 1/16.
Don't sweat the details.
What you can see is I'mjust building this up.
What I want you to see is whatdo the distances look like?
After one step, I'mone unit away.
After two steps,that was this.
You can kind of do themath in your head.
What's the expecteddistance away?
What's the average distanceI'd be away?
Well, it's 0 times 1/4,plus root 2 times 1/2,
plus 2 times 1/4.
So that's 1.4, that's 2.8, andthat's 4.8 divided by 4.
So it's about 1.2.
Now I'm sure you can do the mathfor three steps in your
head, right?
Yeah, right.
But if I do that, if I add thosethings up-- you can go
do this yourself-- what you'llfind is that this is
about 1.4 or 1.5.
Let me make it 1.4.
It's probably a littlebit closer.
All right.
Why was I doing that?
This is something you want todo as you start building a
simulation, which is do a littlebit of a calculation to
get a sense of what youexpect to happen here.
So what conclusion couldI draw from that?
Admittedly on very smallnumbers, it looks like the
more steps the Harvard studenttakes, on average the further
away they are from thestarting point.
So your 0 was a great guess,but it's probably not
going to work here.
And we want to see why.
On the other hand, 500that looks-- well,
maybe we're still OK.
Three steps, half of 3would be 1 and 1/2.
So maybe the 500's OK.
Let's see what happensif we do this.
So what I want to do is seehow I could build a set of
classes that would let mebuild this simulation.
And part of the design processhere is I want to try and
invent classes that correspondto the types of things I
expect to see happening.
So in this case,what do I have?
I need to model a drunk, I needto model a field, which
is where the drunk's wanderingaround in.
And I'll need a third thing,which may not be obvious
immediately.
But the third thing I'm goingto need-- so let me just put
the pieces up.
I need a drunk, I need a field,and I need to keep
track of where the drunkis in the field.
So I'm going to pull out anotherclass I'm going to
call a location, that's goingto tell me where the drunk
actually is.
OK.
With that in mind, I'm goingto show you some code.
I'm going to walk through itreasonably carefully, just to
let you see whatit looks like.
So there is my class definitionfor a location.
Now at this stage in the course,hopefully you can look
at that and already seethe main pieces of it.
So what do we have in here?
Well, we going to havean initialization.
You can kind of seethat right there.
When I create a Location, I'mgiving it an x and y.
I'm going to makean assumption,
which is they're floats.
I'll come back to thatin a second.
And that's just going tostore them away in
some internal variables.
That's things you'vedone before.
So self.x gets that value,self.y gets that value.
And of course, I could get outthe values right there.
I need to know wherethe drunk goes.
So one of the things I'd liketo do is to say, given the
current location of the drunk,I might like to know how far
away is that from some otherlocation, like the place the
drunk started.
So that last method downhere, distance from--
notice what it's going to do.
It says, if you giveme another,
which is another location--
remember, self will pointto my instance--
what can I do?
Well, I can just do Pythagoras'stheorem to figure
out how far away am I. I getthe x- and y-coordinates of
the other location.
I get my own x- andy-coordinates.
And then I just take thosedistances squared and take the
square root of them.
So it's just givingme distance away,
which is pretty nice.
There's one other method herewhich is a little funky.
This is a design choice.
And that method is the oneup here called move.
So the background to thisis going to have
a drunk at a location.
one of the things Iwill want is to be
able to change location.
So move says, if you giveme a change in x
and a change in y--
I'm going to assumethey're floats--
I will give you back the newlocation, which is to go from
my x and y by some amount.
It could be in theeast direction.
It could be in thenorth direction.
But notice what it returns.
It returns a new instanceof a Location.
OK.
I made a couple of assumptionswhich are worth
thinking about here.
So one assumption isI'm assuming that
this is a 2D world.
You can't elevate.
You can't rise up.
There's no change in altitude.
That kind of makes sense.
The second assumption I made wasI said, I want to build it
in so that things like delta-xand delta-y are floats.
What is that doing?
Well, that's saying, I don'twant to restrict myself to
just moves that are only inthe cardinal directions.
I'm going to start there, butinitially, I'd like to have
the ability that the move couldbe along a diagonal, or
it could be some partial step.
So notice I'm making a choicethere that is kind of nice.
All right.
That gives me locations.
And that's a prettystraightforward class.
So I've got locations.
That's always a good start.
I have this.
Now again, I wantto model a drunk
wandering around in a field.
So the second thing I need is Ineed to say, what's a field
going to be?
And I want to show youthat definition,
which is right here.
And a field is basically goingto be something that maps
drunks to locations.
So a field is just going tobe a collection of drunks,
keeping track ofwhere they are.
So let's look at what thatdefinition says.
When I create a field, right uphere at the top it sets up
a variable inside of thatinstance, just called drunks.
And we're going touse a dictionary.
We could use other choices, butthe dictionary is going to
be nice, because it'sgoing to let us keep
track of the drunks.
I can add a drunkto the field.
So notice what it says.
It says, given I've got a field,I'm assuming I have a
drunk and a location, becausethe drunk's got to be in a
particular location.
Notice what it does.
First of all, it checks to makesure that I don't already
have this person inmy collection.
So that first check there says,if this particular drunk
is already in my dictionary,I complain.
You can be drunk enough to seedouble, but you can't be drunk
enough to be double.
Another bad joke rightoff the back wall.
Great.
OK, so what else do I want?
Otherwise, notice whatI'm going to do here.
I want to make sureyou can see these
things fairly cleanly.
If I'm going to add adrunk, what do I do?
Into the dictionary, under thatlabel of drunk, I'm going
to insert a value correspondingwith that label.
And the values goingto be the location.
So my representation here is nowa dictionary of drunks and
where they are.
And that's going to be handyas I want to use this.
And again, if I want to get outthe location, well, I just
return exactly that.
The final piece is, when I goto move the drunk, I've got
some tests here to make surethat I actually have a drunk.
But otherwise, I'm going to askthe drunk to take a step
right there.
We have to say whata drunk does.
That's going to give me back achange in x and a change in y.
And then notice the funkylittle call below here.
This says what?
The right-hand side says, I getthe dictionary of drunks.
I go in and index into it toget out the actual drunk.
That's this firstpart right here.
That gives me back what?
It gives me an instance.
So the dot says, for thatparticular drunk, get its move
method, which was thatcall, and have it
move by that amount.
And that returns for me then alocation which I can store
back into the list.
All right.
I made some assumptionsabout Field.
They're worth pointing out.
No constraints on locations.
How big is this field?
As big as you want.
So I didn't build in a realphysical representation of the
limits of the field with everylocation represented.
I just said, it's just acollection of drunks.
So there's no limits on howfar the drunk can go.
The second assumptionI made here is I can
have multiple drunks.
And we're going to have asimulation of that in a while.
You can imagine it's going tobe fun watching them collide
with each other.
All right.
And the third thing is, itsays nothing about the
patterns in whichthe drunk moves.
So this is a design tokeep this clean.
It says nothing abouthow the drunks move.
It simply says, give mea change in x and y.
I'll change the location.
The last piece is we're going tocapture how the drunk moves
in a drunk.
And there's the definitionof the drunk.
What does that say to do?
Well, we're going to give ita name, to start it off.
And the only method it has isthat thing that's going to do
a takeStep.
And here's where we're going tobuild in the choices about
how they can move, what youasked about earlier.
Notice what I've done there.
In this case, I've said, I'mgoing to pick at random from
this set, stepChoices.
And that's where I'm buildingin the idea that it's only
going to move plus or minus 1in the x and y direction--
north, south, east, west.
I could clearly change that.
I'm also building in here thatit's equally likely, because
random picks one of thoseequally likely.
I might decide to change that.
And I can certainly do thatif I want to move to other
directions.
But right now, that's whereI'm going to build it in.
OK.
So now we're ready totry the simulation.
We've got what?
We've got location.
That's just representinga place.
We've got fields.
That just lets us mapdrunks to locations.
And then we've got the abilityto move the drunk around.
So I can now thinkabout making this
actually move around.
So let me show youa quick example.
Let's create a drunk.
I'm picking the obviousperson.
I'm going to createa location.
We'll call the origin justthe spot at 0, 0.
And I need to create afield which I can do.
And then I'm going toadd Homer to this
field at the origin.
And now the last thing I want todo is I want to have Homer
wander around.
I want to see how far he goes.
So I'm going to build a littlefunction over here-- you can
see right there-- called walk,which takes the field, takes a
drunk in the field, and says howmany steps do I want him
to stagger around with?
And what's it going to do?
I'm going to set the startlocation to be where the drunk
was initially.
It might be at the origin orit might be somewhere else.
And then I'm just going to runthrough that number of steps.
So range is just saying, takethe number of steps, just
moving the drunk.
And then I'll returnhow far away he is.
So if I do that here, I can dowalk with that field, with my
drunk, Homer.
And let's take 10 steps.
Hmm.
That's interesting.
Let's try it again.
I was getting worriedthere for second.
So we're getting an interestingrange of values.
So here's the last thingI'd like to do.
Let's actually do a simulationof this.
And I'm going to do thisreasonably quickly. simWalks
right here is simply going todo what I just did, but
multiple times.
That is, it's going to take adrunk, a field, some number of
steps, and it's going to run abunch of trials, however many
trials I want to get.
So I do what I justdid over here, and
collect those together.
And then I can just print outsome statistics about how far
away did the drunkget as I do that.
And that's what drunktest is going to do.
We're going to do it for 10steps, 100 steps, 1,000
steps, and so on.
So let me simply run that.
I run drunkTest.
And we'll do it with10 trials each.
OK.
Does that look right?
Does that look good?
You can tell this isa trick question.
So what should you belooking for there?
Look at it.
It says, if I take 10 steps, onaverage I'm about 2 and 1/2
steps away.
If I take 100 steps, on averageI'm less than two
steps away.
1,000 steps, I'm abouttwo steps away.
10,000 steps, I'm abouttwo steps away.
100,000 steps, on average I'mabout two steps away.
Wait a minute.
Didn't we say that it lookedlike, over on that board
there, that as I increased thenumber of steps, I got a
little bit further away?
Hmm.
So I've done thisdeliberately.
This suggests what?
The first key point, think aboutwhat your simulation
should return.
What are good examplesto think about?
Because this doesn'tlook right.
OK.
So here's how I could test it.
Why don't I try a simulationon values for
which I know the answer?
So I'm going to go back inhere, and right here, I'm
going to replace this with--
we're either going to takezero steps or one step.
Let's run that.
Oh, don't do that to me.
Oh, yes, I do have an error.
Thank you.
Get rid of it right there.
Almost out of time, sothis is perfect.
And now let's trydrunkStep again.
Wow.
If I take a random walk takingno steps, on average I end up
2 and 1/2 units away.
I teleported.
That's pretty amazing.
And with perfect timing, we'llfigure out what's wrong with
my simulation next time.
Thanks.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558The following content isprovided under a creative
commons license.
Your support will help MITOpenCourseWare continue to
offer high quality educationalresources for free.
To make a donation or viewadditional materials from
hundreds of MIT courses, visitMIT OpenCourseWare at
ocw.mit.edu.
JOCELYN: Hi.
Jocelyn here and today we'regoing to go over fall 2009
exam three problemnumber four.
Starting with part A--
let's read the problem.
In the 1920s, Jack Breitbart ofRevlon laboratories found
that acne could be treated bythe use of benzoyl peroxide.
The oxygen-oxygen bond inperoxide is weak and under the
influence of modest heating,benzoyl peroxide readily
decompose to form free radicalsaccording to the
reaction given.
The rate of decomposition ismeasured at 92 degrees C at
various concentrationsand found to be--
and you're given two differentconcentrations and two
different rates.
So part A asks, determine theorder of reaction for the
decomposition of benzoylperoxide.
The first thing to do is, whenasked for the order of the
decomposition reaction, wewant to think about the
general rate loss, right?
We're given concentrations.
We're given rates.
We're asked for the order.
Something you might want tohave written down on your
equation sheet or look up is thegeneral rate law equation.
Remember that students takingthese exams did have an
equation sheet so they couldhave this ready.
The important part is thatyou know when to use this
equation, what eachof the terms mean.
So r is the rate.
k is a rate constant.
It is a function of temperature,but if you're at
the same temperature, that rateconstant will not change.
It's constant.
c is your concentration.
And n is your reaction order.
So this would be the place tostart for this question.
And now we know that we'resolving for n.
So what is n in this case?
Looking at what we'regiven, we can write
two different equations.
The first line gives us aspecific rate for a specific
concentration.
The second line gives us anotherrate for a second
concentration.
So now we have two equationsand two unknowns.
That means we can solve for oneof the unknowns and then
could solve for the other oneif we wanted to, but here we
only care about n.
So how I'm going to choose tosolve this and you may choose
to do it differently--
I'm going to divide the firstline by the second line and I
get rate one over rate twoequals c1 divided by c2 all to
the n power.
So that made the k drop out,which is one of the unknowns
that I don't care about becausethe problem isn't
asking for that.
Now all we need to dois solve for n.
So if we remember algebra, we'regoing to take the log of
both sides.
Because of the propertiesof the log, we can
bring the n out front.
So n equals--
and plugging in the numbersgiven in the problem--
they're given in the sameunits so everything will
cancel out and that's good--
we get that the n equals one.
So this is a firstorder reaction.
Now you could've probably donethat by inspection if you're
familiar with the rate law andhow to determine that by just
seeing that as the concentrationwent down by a
fourth, the rate also wentdown by a fourth.
However, the question asks foryou to determine the order of
reaction and so we werelooking for more of a
derivation of the probleminstead of just an inspection
because that shows that you havea familiarity with the
general rate law equation.
So now moving to part B--
we are asked, on the plot below,sketch the variation in
energy with extent of reactionfor the decomposition of
benzoyl peroxide.
Assume that the ratio ofactivation energy to--
delta e, which is the energyof the reaction--
equals -2.5.
Label the energy states andlabel the delta e of reaction,
the activation energy for theforward reaction and the
activation energy for thebackward reaction.
So that's askingus to do a lot.
So first we're going to writedown, what are we actually
asked to do?
So the main thing is that we'reasked for the variation
in energy with the extentof reaction.
So as the reaction progresses,what's the
energy of the molecule?
The energy state thatit's going through?
In that plot, we're asked tolabel the energy states of the
reactant and product andwe're asked to label
the delta e of reaction.
So what's the net change inenergy as well as the
activation, both forwardand backward?
I would always write this tothe side or scrap piece of
paper or something because thisis a lot of things to put
on one plot and this will be anice reference to help us to
make sure we answered all thethings the question is asking.
So on the plot given, which I'llreproduce here, it has
axes of extent of reactionand energy.
The first thing to do would beto label the beginning and
start energy states.
So because we know at92 degrees C, this--
the benzoyl peroxide--
decomposes readily, we canassume that there's
a decrease in energy.
So we'll have our productsstart at a
higher energy than our--
sorry-- our reactantstart at a higher
energy than our products.
And because the question asks usto label that, we're going
to put in the actual labels.
And so that's your reactantand then we
have the radical product.
Now that we have our beginningand end energy states, we need
to think about what's happeningin the middle.
A clue is that he talks aboutthe activation energy, right?
And we know that most processesthat we talk about
have a certain activationenergy.
You can't just go straightfrom the
molecule to the radical.
You have to have a littlebit of energy cuffed.
And so we know we're going tohave some type of hill that we
have to go over.
Furthermore, in the problem hestates that the activation
energy divided by thedelta e is -2.5.
So we know that because thisis a negative delta e--
so this is our delta e hereand it's negative--
our activation energy is two anda half times as large as
that net change in energy.
So we want to kind of justeyeball that in here.
You didn't have to be exact,but relatively--
it's going to be largerthan twice the
distance between here.
And remember that activationenergy is the hill, the energy
costs that you have to gothrough to get to your lower
energy state in theproduct size.
So now that we have all of ourenergy states, we want to draw
a smooth curve to showthe variation of
energy with the reaction.
So connecting all these points,we get two valleys and
a hill, right?
We have two stable energystates and we have an
activated complex correspondingto the
activation energy there.
So we have our energy diagram,but we need to go back to what
the question is asking and seethat we've labeled the energy
states, we've labeled the deltae of reaction, but we
need to label boththe forward and
backwards activation energy.
And this is one of the thingspeople had issues with--
the backward activation.
So forward activationis pretty self
explanatory, right?
It's the energy we need toovercome the activation of
this process and so this isthe Ea of the forward.
Now the activation energy of thebackward reaction is just
the same concept, butgoing backwards.
So if we started down here, whatis the energy we need to
get over this activationbarrier?
And so that's this full energy,this full amount of
energy here.
And so we can see that it'sbigger than the activation
energy for the forwardreaction by the
delta e of the reaction.
So going back to our checklisthere, we've answered all over
the questions and so wecan move to part C.
So part C asks us, on thesame plot above--
which we have over hereto the right--
sketch the variation in energywith extent of reaction for
the decomposition of benzoylperoxide under the influence
of a catalyst.
So with a catalyst--
first to answer this question,we need to know what a
catalyst does.
And in class, we learned thata catalyst will lower the
activation barrier, thusallowing for the reaction to
proceed faster.
You don't necessarily get moreproduct because that's
governed by a different set oflaws, but you do get the
product faster.
And so the way we can changethis is that instead of having
our activation barrier up there,we can say it's going
to be somewhere here.
It's going to be lowered by thepresence of the catalyst.
So we want to make a smoothcurve again and connect this
lower activation barrier.
And you'd want to label this--
I'll label it in white--
this is the catalyzedcurve there.
As long as you've showed thatthe activation barrier was
lowered by the presence ofa catalyst, that's fine.
That was what the questionwas asking for.
So we've labeled everything,answered all the questions and
we're done with this problem.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857The following content isprovided under a Creative
Commons license.
Your support will help MITOpenCourseWare continue to
offer high-quality educationalresources for free.
To make a donation or viewadditional materials from
hundreds of MIT courses, visitMIT OpenCourseWare at
ocw.mit.edu.
GREG HUTKO: Today we're goingto do Fall 2010, P Set Six,
Problem Number Four.
And for this problem we're goingto shift away from what
we've usually been talkingabout, where we're dealing
with a straight equilibrium,setting the demand curve equal
to the supply curve.
And now we're going to thinkabout what happens when the
supplier has market power.
When they're the only competitorin the market, and
they can decide how muchquantity they want to produce.
And they don't have to worryabout other producers coming
in and producing.
Problem Number Four--
I'll read through Part A--
states, "A monopolistfirm faces the
following cost curve.
The cost equal Q squared plus15, where Q is the output
produced, the demand for itsproduct is given by P equals
24 minus Q. We need to calculatethe non-price
discriminating consumer surplus,the producer surplus,
and the deadweight lossassociated with the monopoly."
Now, what this problem's reallygoing to look like-- we
can think about it startingwith this graph.
Is, instead of producing outputto the point of the
equilibrium right here, thesupplier can actually make
more money by saying I'm onlygoing to produce to a point
right here, so this is whatwe're looking for.
We're wondering how much is thesupplier actually going to
constrict the supplyin the market.
And when they constrict thissupply, what happens is this
small triangle right herebecomes the deadweight loss.
This is potential surplus thatwould have existed when this
whole big triangle wasthe consumer surplus
plus producer surplus.
So now nobody's gettingthat triangle.
But the producer surplus is muchbigger than it would have
been when it was just the spacebelow the price level to
the supply curve.
So the producersare better off.
The consumers are goingto be worse off.
And society as a whole-- addingtogether the producers'
and the consumers' surplus--
is going to be worse off.
Now, the way the producersactually make their decision
on how much to produce is, whenthey're moving this line
back and forth deciding how muchthey want to constrict
the quantity that they're goingto supply, and when
they're supplying more, thequantity they're supplying is
going to be increasing.
But as they supply more--
since the demand curveis downward sloping--
the price is goingto be going down.
And now the way the produceractually makes their
production decision is to say,OK, I know I'm going to lose
some money if I'm producingmore, because the price is
going to be falling.
What I want to know is I want toproduce as much as I can so
that, at the margin, the costof producing that one
additional unit is the same asthe revenue that I'm going to
be taking in for thatadditional unit.
The point where I'm producing,and the additional cost of
that unit is more than theadditional money that I'm
taking in, I'm going to stopassuming that there's no
competition.
So the monopolist firm is goingto set the marginal cost
equal to the marginal revenue.
So we have a total costfunction, so calculating the
marginal cost is prettystraightforward.
I'm just going to take thederivative with respect to Q,
and the marginal cost fora monopolist firm
is going to be 2Q.
Now, it's tempting when welook at this revenue
function-- revenue just beingthe total quantity I'm
producing times the priceI'm receiving.
It's tempting to just take thederivative here with respect
to Q, and say that marginalrevenue is going
to be equal to price.
But that's not what themonopolist does.
Because in a competitivesituation, we were setting
marginal cost equal to P.
In the monopolist situation,the monopolist is going to
look at this P right here, andthey're going to say I know
how the consumers are going torespond based on my decision
to produce.
So I'm going to replace thisP with the demand curve, 24
minus Q. So I can plan how muchI'm producing based on
what I know the consumer'sresponse to my production
choice is going to be.
So instead of taking thederivative of this function,
I'm going to plug-in 24 minus Qand we're going to find the
marginal revenue usingthis function.
When we do this, we find thatthe marginal revenue is equal
to 24 minus 2Q.
And all we have to do now iswe have to set the marginal
revenue and the marginal costequal, and we can find the
quantity that's goingto be produced at
the monopolist outcome.
Solving for Q, you find thatthe quantity is going to be
equal to 6.
And then we can solve for theprice just by going back to
the demand curve that'sgiven on our graph.
The price here in themonopolist case
is going to be 18.
So now we can come backto our graph.
We know that the monopolistlevel of output is going to be
6, so we can label this 0.6.
We know the price that'sgoing to be charged--
which is not the intersectionwith the supply curve, it's
going to be the intersectionwith the demand curve--
this price is going to be 18.
And on our graph it's going toalso be useful to label two
more points.
That'll just make it easier forus to calculate consumer
surplus, producer surplus,and deadweight loss.
We're going to want to labelthis point right here so the
equilibrium quantity is 8-- andyou'll see in a second why
I'm labeling that.
And you're also going to wantto label where, when the
quantity is 6, the intersection
with the supply curve.
So when the quantity is 6, youknow that the marginal cost
curve is given here.
So that means the intersectionright here is going to be 12.
And this is going to make ourcalculations of the area of
PS, the area of CS, andthe area of DWL just
a little bit easier.
Now, to calculate consumersurplus, I'm just going to
multiply the height of thistriangle right here by the
length of the triangle,and I'm going to
take one half of that.
So consumer surplus inthis situation is
going to equal 18.
And now we're going todo the same thing
for producer surplus.
We're going to add the area ofthis rectangle to the area of
this triangle at thebottom as well.
So the first term here that'sgiven is the area of the
rectangle, and the term here isthe area of the triangle.
Adding these together, we'regoing to find that the
producer surplus is 72.
And now, to calculate thedeadweight loss you really
have two options.
One, you could find the totalproducer and consumer surplus
at equilibrium--
so the area of this largetriangle right here.
And you could subtract out thenew consumer surplus and the
new producer surplus, and you'llbe left with only the
deadweight loss.
For our purposes, it's going tobe a little bit easier to
just take the height of thetriangle and the length of the
base, and to multiply through.
When we do that, we're goingto find that the deadweight
loss is going tobe equal to 6.
And so you can see that theproducer surplus is pretty
high in this situation.
And so the government's goingto come in in our next
problem, and they're going tosay we have an intervention
that might be able to correctthis problem that we see in
the market.
Part B says, "How does chargingthe monopolist a
specific tax of $8 per unitaffect the monopoly optimum,
and the welfare of consumers,the monopoly, and society,
where society's welfare orsurplus includes the tax
revenue?"
So, what's basically happeningin this new case is we're
going to start off with the samesort of problem where the
monopolist gets to decide howmuch they're going to output.
And we're interested inthe marginal cost and
the marginal revenue.
Now, the marginal revenue isgoing to be represented by the
same equation, and we're goingto substitute in for price the
demand curve again.
And when we solve through,substituting in for the demand
curve and taking the derivative,we're going to
find that the marginal revenueis again going to be equal to
24 minus 2Q.
So the marginal revenuehasn't changed at all.
What is going to change is goingto be the total cost
curve for the monopolist. Sothis was the cost curve that
we started off with, but nowfor each unit Q that the
monopolist produces, it'sgoing to be taxed
at a rate of t.
So we can add in thecost of the tax.
And in the next step, I'm goingto take the derivative
with respect to Q, and I'm goingto substitute in for t
the price of the tax, or 8.
So now our new marginal costis equal to 2Q plus 8.
And to solve for our newequilibrium, we're just going
to set marginal cost andmarginal revenue equal.
And when we do that, we'regoing to find that
Q is equal to 4.
And plugging into the demandcurve, you're going to find
that the price is equal to 20.
Now in this problem, you couldgo through and you could go
ahead and you could calculatethe consumer surplus, the
producer surplus, the deadweightloss and the tax
revenue, and you could figureout quantitatively how much
they've changed.
But we're just going to draw anew graph, and we're going to
look at the changes in consumersurplus, producer
surplus, and deadweight loss,and make a qualitative
assessment of how thosequantities have changed.
So on a new axes, I'm going todraw the old supply curve and
the demand curve.
Now, what's essentiallyhappening is, since the
suppliers know for each unitthey're producing they're
going to have to pay a taxof 8, the supply curve is
essentially shiftingup by 8 units.
And I'm representing the newsupply curve with an s prime.
So now, instead of the suppliersmaking their
monopolist decision based onthis supply curve and the
demand curve, they're nowmaking it over here.
And so what's going to happen isthey're going to have some
new monopolist output.
And in this case, we know thenew monopolist output is 4.
We know that the newmonopolist price
is going to be 20.
And so we can see on this graphthat producer surplus is
going to be representedby this four-sided
figure right here.
We know that the tax revenueis going to be-- since the
distance from this point to thispoint is 8, from 0 to 4--
this is going to represent thetax, this box right here.
And we know that the consumersurplus is going to be this
small triangle up top.
Meanwhile, the dead weight lossis anything that's not
represented that would have beenin our original producer
surplus, plus consumersurplus.
So the deadweight loss is thislarge triangle over here.
So basically what's happenedis, compared to our initial
case, the government's comein and for society--
since there's lessbeing produced--
we've basically shiftedthe monopolist
quantity over to the left.
This means that, overall, thedeadweight loss, this triangle
over here, has increasedin size.
So if the deadweight loss isincreasing, we can say that
society is going to be worseoff in this situation.
In another case, it's also clearto see that the consumer
surplus, since the consumers arepaying a higher price for
a lower quantity, we can alsosay that the consumer surplus
is going to decrease.
So we can safely say that theconsumers are going to be
worse off as well.
And then the last interpretationis knowing that
in the first case the producerswere allowed to make
their production decision justgiven the demand curve and
their original supply curve.
Now their production decisionalso has to take into account
the government taking awaysome of their profits.
If the government is takingsome away some of their
profits, the producersare necessarily going
to have less surplus.
So the producers are goingto be worse off as well.
So overall, the only personwho might possibly benefit
from this policy wouldbe the government.
But overall, the producers, theconsumers, and society are
going to be worse off.
Now, the last part of thisproblem is part C. And instead
of implementing a tax on the perunit production decision
for the producers, now thegovernment's going to consider
a different tax policy.
Part C says "How does imposinga tax on profits--
profit after tax equals1 minus t--
affect the monopoly optimum, andthe welfare of consumers,
the monopoly, and society?"
Now basically, what's happeningin this situation is
the government's goingto come in.
And they're going to say allright, after you've made your
decision on how much to produce,we're going to take a
set percentage of theproducer's surplus.
So if you get a producer'ssurplus of this amount, then a
certain chunk of it is goingto go to Uncle Sam at a tax
percentage which we cansay is just x percent.
Now that percentage of tax, itdoesn't change the fact that
the producers want to have asmuch surplus as possible.
Just because they're going tolose, say, 10% of it because
of Uncle Sam, it's not actuallygoing to affect the
fact that they want theirproducer surplus to be as big
as possible.
So what happens in thissituation is that this after
profit tax will not affectthe equilibrium at all.
And we're going tobe left with the
same consumer surplus.
Producer surplus is going to belower because of the tax,
but overall, society is goingto be left with the same
social welfare.
So really what this problem islooking at through its three
parts, we look at the monopolistsituation, and we
look at how the government cantry to adjust with tax policy
what's happeningin the market.
And what we saw in our secondscenario is that when they
charge a per unit tax on theproducers, societal welfare is
going to go down.
But in the third case, whenthey're just taking a set
percentage from the producersurplus, the overall welfare
for the society is goingto stay the same.
So bundled in this problem wehad the monopolist situation,
setting marginal cost equalto marginal revenue.
And we also looked at taximplications on a per unit
basis, and on a profit basiswith a set tax after the
production decision is made.
I hope you found thisproblem helpful.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211align:start position:0% you should have already downloaded and
align:start position:0%you should have already downloaded and
align:start position:0%you should have already downloaded andinstalled our on your computer if you
align:start position:0%installed our on your computer if you
align:start position:0%installed our on your computer if youhave not downloaded and installed our
align:start position:0%have not downloaded and installed our
align:start position:0%have not downloaded and installed ouryet please follow the instructions on
align:start position:0%yet please follow the instructions on
align:start position:0%yet please follow the instructions onthe course website before continuing
align:start position:0%the course website before continuing
align:start position:0%the course website before continuingwith this lecture once you've installed
align:start position:0%with this lecture once you've installed
align:start position:0%with this lecture once you've installedour go ahead and start it you should see
align:start position:0%our go ahead and start it you should see
align:start position:0%our go ahead and start it you should seethe our console like we see here this is
align:start position:0%the our console like we see here this is
align:start position:0%the our console like we see here this iswhere we'll type commands and perform
align:start position:0%where we'll type commands and perform
align:start position:0%where we'll type commands and performdata analysis in this course will mostly
align:start position:0%data analysis in this course will mostly
align:start position:0%data analysis in this course will mostlybe working in the our console but
align:start position:0%be working in the our console but
align:start position:0%be working in the our console butsometimes you'll also want to use what
align:start position:0%sometimes you'll also want to use what
align:start position:0%sometimes you'll also want to use whatare known as script files we'll see an
align:start position:0%are known as script files we'll see an
align:start position:0%are known as script files we'll see anexample of how to use a script file at
align:start position:0%example of how to use a script file at
align:start position:0%example of how to use a script file atthe end of this lecture in your AR
align:start position:0%the end of this lecture in your AR
align:start position:0%the end of this lecture in your ARconsole you'll always type commands
align:start position:0%console you'll always type commands
align:start position:0%console you'll always type commandsafter the arrow or greater than sign
align:start position:0%after the arrow or greater than sign
align:start position:0%after the arrow or greater than signlet's start with some basic calculations
align:start position:0%let's start with some basic calculations
align:start position:0%let's start with some basic calculationsso with your cursor at the arrow let's
align:start position:0%so with your cursor at the arrow let's
align:start position:0%so with your cursor at the arrow let'stype 8 and then the star symbol 4 times
align:start position:0%type 8 and then the star symbol 4 times
align:start position:0%type 8 and then the star symbol 4 timesthe number 6 and hit enter you should
align:start position:0%the number 6 and hit enter you should
align:start position:0%the number 6 and hit enter you shouldsee the result 48 or 8 times 6 in this
align:start position:0%see the result 48 or 8 times 6 in this
align:start position:0%see the result 48 or 8 times 6 in thisway R can be used as a basic calculator
align:start position:0%way R can be used as a basic calculator
align:start position:0%way R can be used as a basic calculatorwe can perform many other basic
align:start position:0%we can perform many other basic
align:start position:0%we can perform many other basiccalculations like 2 raised to the power
align:start position:0%calculations like 2 raised to the power
align:start position:0%calculations like 2 raised to the powerby typing the caret symbol and then the
align:start position:0%by typing the caret symbol and then the
align:start position:0%by typing the caret symbol and then thenumber 16 and hitting Enter you should
align:start position:0%number 16 and hitting Enter you should
align:start position:0%number 16 and hitting Enter you shouldsee the result 65,536 or 2 to the power
align:start position:0%see the result 65,536 or 2 to the power
align:start position:0%see the result 65,536 or 2 to the power16 note that each of the results here
align:start position:0%16 note that each of the results here
align:start position:0%16 note that each of the results hereare labeled with a 1 in brackets this is
align:start position:0%are labeled with a 1 in brackets this is
align:start position:0%are labeled with a 1 in brackets this isjust ours way of labeling the output and
align:start position:0%just ours way of labeling the output and
align:start position:0%just ours way of labeling the output andwe can safely ignore it if you type
align:start position:0%we can safely ignore it if you type
align:start position:0%we can safely ignore it if you typesomething in your AR console but don't
align:start position:0%something in your AR console but don't
align:start position:0%something in your AR console but don'tfinish it properly for example try
align:start position:0%finish it properly for example try
align:start position:0%finish it properly for example trytyping 2 and the caret symbol and
align:start position:0%typing 2 and the caret symbol and
align:start position:0%typing 2 and the caret symbol andhitting Enter r will show you a plus
align:start position:0%hitting Enter r will show you a plus
align:start position:0%hitting Enter r will show you a plussign and we'll wait for you to finish
align:start position:0%sign and we'll wait for you to finish
align:start position:0%sign and we'll wait for you to finishthe command you can either finish the
align:start position:0%the command you can either finish the
align:start position:0%the command you can either finish thecommand in this case by typing a number
align:start position:0%command in this case by typing a number
align:start position:0%command in this case by typing a numberor you can hit escape and R will take
align:start position:0%or you can hit escape and R will take
align:start position:0%or you can hit escape and R will takeyou back to the arrow sign so if you
align:start position:0%you back to the arrow sign so if you
align:start position:0%you back to the arrow sign so if youever see a plus sign while working in
align:start position:0%ever see a plus sign while working in
align:start position:0%ever see a plus sign while working inour
align:start position:0%our
align:start position:0%ourit means that our is waiting for you to
align:start position:0%it means that our is waiting for you to
align:start position:0%it means that our is waiting for you tofinish the line if you're not sure how
align:start position:0%finish the line if you're not sure how
align:start position:0%finish the line if you're not sure howto finish it you can always just hit
align:start position:0%to finish it you can always just hit
align:start position:0%to finish it you can always just hitescape a nice feature of the art console
align:start position:0%escape a nice feature of the art console
align:start position:0%escape a nice feature of the art consoleis that you can scroll through your
align:start position:0%is that you can scroll through your
align:start position:0%is that you can scroll through yourprevious commands by using the up and
align:start position:0%previous commands by using the up and
align:start position:0%previous commands by using the up anddown arrows on your keyboard if you hit
align:start position:0%down arrows on your keyboard if you hit
align:start position:0%down arrows on your keyboard if you hitthe up arrow three times you should go
align:start position:0%the up arrow three times you should go
align:start position:0%the up arrow three times you should goback to the eight times six command if
align:start position:0%back to the eight times six command if
align:start position:0%back to the eight times six command ifyou hit Enter you can run this command
align:start position:0%you hit Enter you can run this command
align:start position:0%you hit Enter you can run this commandagain you could also adjust previous
align:start position:0%again you could also adjust previous
align:start position:0%again you could also adjust previouscommands hit the up arrow again to go
align:start position:0%commands hit the up arrow again to go
align:start position:0%commands hit the up arrow again to goback to the eight times six command this
align:start position:0%back to the eight times six command this
align:start position:0%back to the eight times six command thistime delete the six type a ten and hit
align:start position:0%time delete the six type a ten and hit
align:start position:0%time delete the six type a ten and hitenter we'll use this approach to rerun
align:start position:0%enter we'll use this approach to rerun
align:start position:0%enter we'll use this approach to rerunor just commands many times in this
align:start position:0%or just commands many times in this
align:start position:0%or just commands many times in thisclass generally our works in terms of
align:start position:0%class generally our works in terms of
align:start position:0%class generally our works in terms offunctions and variables a function can
align:start position:0%functions and variables a function can
align:start position:0%functions and variables a function cantake in several arguments or inputs and
align:start position:0%take in several arguments or inputs and
align:start position:0%take in several arguments or inputs andreturns an output value an example is
align:start position:0%returns an output value an example is
align:start position:0%returns an output value an example isthe square root or sq RT function in
align:start position:0%the square root or sq RT function in
align:start position:0%the square root or sq RT function inyour AR console type sq RT and then in
align:start position:0%your AR console type sq RT and then in
align:start position:0%your AR console type sq RT and then inparentheses the number two and hit enter
align:start position:0%parentheses the number two and hit enter
align:start position:0%parentheses the number two and hit enterthe function is s qrt the input or
align:start position:0%the function is s qrt the input or
align:start position:0%the function is s qrt the input orargument is the number two and the
align:start position:0%argument is the number two and the
align:start position:0%argument is the number two and theoutput is 1.4142 one for there are
align:start position:0%output is 1.4142 one for there are
align:start position:0%output is 1.4142 one for there arethousands of functions in are some of
align:start position:0%thousands of functions in are some of
align:start position:0%thousands of functions in are some ofthem are built into are like this one
align:start position:0%them are built into are like this one
align:start position:0%them are built into are like this oneand some can be added in by installing
align:start position:0%and some can be added in by installing
align:start position:0%and some can be added in by installingpackages which will do several times in
align:start position:0%packages which will do several times in
align:start position:0%packages which will do several times inthis class another example of a function
align:start position:0%this class another example of a function
align:start position:0%this class another example of a functionis the ABS or absolute value function
align:start position:0%is the ABS or absolute value function
align:start position:0%is the ABS or absolute value functionwhich returns the absolute value of a
align:start position:0%which returns the absolute value of a
align:start position:0%which returns the absolute value of anumber so if we type ABS and then in
align:start position:0%number so if we type ABS and then in
align:start position:0%number so if we type ABS and then inparentheses negative 65 and hit enter we
align:start position:0%parentheses negative 65 and hit enter we
align:start position:0%parentheses negative 65 and hit enter weshould get the result 65 as our output
align:start position:0%should get the result 65 as our output
align:start position:0%should get the result 65 as our outputyou can get help on any function in R by
align:start position:0%you can get help on any function in R by
align:start position:0%you can get help on any function in R bytyping a question mark
align:start position:0%typing a question mark
align:start position:0%typing a question markand then the function name so if we type
align:start position:0%and then the function name so if we type
align:start position:0%and then the function name so if we typequestion mark s QR T and hit enter you
align:start position:0%question mark s QR T and hit enter you
align:start position:0%question mark s QR T and hit enter youshould see the our help page for the S
align:start position:0%should see the our help page for the S
align:start position:0%should see the our help page for the SQR t function the help pages are often
align:start position:0%QR t function the help pages are often
align:start position:0%QR t function the help pages are oftenvery useful and if you want to learn
align:start position:0%very useful and if you want to learn
align:start position:0%very useful and if you want to learnmore about a function you should refer
align:start position:0%more about a function you should refer
align:start position:0%more about a function you should referto the help page in R now get rid of the
align:start position:0%to the help page in R now get rid of the
align:start position:0%to the help page in R now get rid of thehelp page and go back to your are
align:start position:0%help page and go back to your are
align:start position:0%help page and go back to your areconsole suppose we now want to save the
align:start position:0%console suppose we now want to save the
align:start position:0%console suppose we now want to save theoutput of a function we can do this by
align:start position:0%output of a function we can do this by
align:start position:0%output of a function we can do this bysaving it to a variable in your our
align:start position:0%saving it to a variable in your our
align:start position:0%saving it to a variable in your ourconsole type square root 2 and then an
align:start position:0%console type square root 2 and then an
align:start position:0%console type square root 2 and then anequal sign and then s QR t and in
align:start position:0%equal sign and then s QR t and in
align:start position:0%equal sign and then s QR t and inparentheses the number 2 and hit enter
align:start position:0%parentheses the number 2 and hit enter
align:start position:0%parentheses the number 2 and hit enternow you don't see the output of s QR T
align:start position:0%now you don't see the output of s QR T
align:start position:0%now you don't see the output of s QR Tof 2 because we saved it to the variable
align:start position:0%of 2 because we saved it to the variable
align:start position:0%of 2 because we saved it to the variablenamed square root 2 you can see the
align:start position:0%named square root 2 you can see the
align:start position:0%named square root 2 you can see thevalue of a variable by typing its name
align:start position:0%value of a variable by typing its name
align:start position:0%value of a variable by typing its nameand hitting Enter
align:start position:0%and hitting Enter
align:start position:0%and hitting Enterso type square root 2 exactly how you
align:start position:0%so type square root 2 exactly how you
align:start position:0%so type square root 2 exactly how youtyped it before and hit enter you should
align:start position:0%typed it before and hit enter you should
align:start position:0%typed it before and hit enter you shouldsee that it takes the value 1 point 4 1
align:start position:0%see that it takes the value 1 point 4 1
align:start position:0%see that it takes the value 1 point 4 14 2 1 4 square root 2 is a name that we
align:start position:0%4 2 1 4 square root 2 is a name that we
align:start position:0%4 2 1 4 square root 2 is a name that wecreated and we could have named it many
align:start position:0%created and we could have named it many
align:start position:0%created and we could have named it manyother things generally you have a lot of
align:start position:0%other things generally you have a lot of
align:start position:0%other things generally you have a lot offreedom in naming your variables but
align:start position:0%freedom in naming your variables but
align:start position:0%freedom in naming your variables butthere are a couple basic rules one is
align:start position:0%there are a couple basic rules one is
align:start position:0%there are a couple basic rules one isthat you should not use spaces in
align:start position:0%that you should not use spaces in
align:start position:0%that you should not use spaces invariable names if you want to easily
align:start position:0%variable names if you want to easily
align:start position:0%variable names if you want to easilyseparate words in a variable name
align:start position:0%separate words in a variable name
align:start position:0%separate words in a variable namepopular strategies are using a mix of
align:start position:0%popular strategies are using a mix of
align:start position:0%popular strategies are using a mix ofcapital and lowercase letters as we did
align:start position:0%capital and lowercase letters as we did
align:start position:0%capital and lowercase letters as we didhere or to separate the words using
align:start position:0%here or to separate the words using
align:start position:0%here or to separate the words usingperiods another basic rule is that you
align:start position:0%periods another basic rule is that you
align:start position:0%periods another basic rule is that youshould not start variable names with a
align:start position:0%should not start variable names with a
align:start position:0%should not start variable names with anumber keep in mind that variable names
align:start position:0%number keep in mind that variable names
align:start position:0%number keep in mind that variable namesin our are case-sensitive capital and
align:start position:0%in our are case-sensitive capital and
align:start position:0%in our are case-sensitive capital andlowercase letters are seen differently
align:start position:0%lowercase letters are seen differently
align:start position:0%lowercase letters are seen differentlyby our when we created our variable
align:start position:0%by our when we created our variable
align:start position:0%by our when we created our variablesquare root 2 we use the equals sign for
align:start position:0%square root 2 we use the equals sign for
align:start position:0%square root 2 we use the equals sign forassignment or to assign the value of s
align:start position:0%assignment or to assign the value of s
align:start position:0%assignment or to assign the value of sqrt of 2 to the variable named square
align:start position:0%qrt of 2 to the variable named square
align:start position:0%qrt of 2 to the variable named squareroot 2
align:start position:0%root 2
align:start position:0%root 2you could instead use a less than sign
align:start position:0%you could instead use a less than sign
align:start position:0%you could instead use a less than signwith a dash for example let's create a
align:start position:0%with a dash for example let's create a
align:start position:0%with a dash for example let's create anew variable called hours year and then
align:start position:0%new variable called hours year and then
align:start position:0%new variable called hours year and thentype the less than sign and a dash
align:start position:0%type the less than sign and a dash
align:start position:0%type the less than sign and a dashfollowed by 365 times 24
align:start position:0%followed by 365 times 24
align:start position:0%followed by 365 times 24if you hit enter and then type hours
align:start position:0%if you hit enter and then type hours
align:start position:0%if you hit enter and then type hoursyears to look at its value you should
align:start position:0%years to look at its value you should
align:start position:0%years to look at its value you shouldsee 8760 or the number of hours in a
align:start position:0%see 8760 or the number of hours in a
align:start position:0%see 8760 or the number of hours in ayear by doing this the less than sign in
align:start position:0%year by doing this the less than sign in
align:start position:0%year by doing this the less than sign inthe dash did the exact same thing as it
align:start position:0%the dash did the exact same thing as it
align:start position:0%the dash did the exact same thing as itwould have done if we use the equal sign
align:start position:0%would have done if we use the equal sign
align:start position:0%would have done if we use the equal signin this course we'll typically use the
align:start position:0%in this course we'll typically use the
align:start position:0%in this course we'll typically use theequal sign but if you see this less than
align:start position:0%equal sign but if you see this less than
align:start position:0%equal sign but if you see this less thansign and a dash used keep in mind that
align:start position:0%sign and a dash used keep in mind that
align:start position:0%sign and a dash used keep in mind thatit means the same thing as an equal sign
align:start position:0%it means the same thing as an equal sign
align:start position:0%it means the same thing as an equal signlastly if you type LS and then empty
align:start position:0%lastly if you type LS and then empty
align:start position:0%lastly if you type LS and then emptyparentheses in your R console and hit
align:start position:0%parentheses in your R console and hit
align:start position:0%parentheses in your R console and hitenter you should see a list of all of
align:start position:0%enter you should see a list of all of
align:start position:0%enter you should see a list of all ofthe variables that you've created in
align:start position:0%the variables that you've created in
align:start position:0%the variables that you've created inyour current our session here we've
align:start position:0%your current our session here we've
align:start position:0%your current our session here we'vecreated two variables hours year and
align:start position:0%created two variables hours year and
align:start position:0%created two variables hours year andsquare root two this can be useful if
align:start position:0%square root two this can be useful if
align:start position:0%square root two this can be useful ifyou forget exactly how you typed a
align:start position:0%you forget exactly how you typed a
align:start position:0%you forget exactly how you typed avariable name these are our basic
align:start position:0%variable name these are our basic
align:start position:0%variable name these are our basicbuilding blocks in our functions like
align:start position:0%building blocks in our functions like
align:start position:0%building blocks in our functions likesquare root and absolute value and
align:start position:0%square root and absolute value and
align:start position:0%square root and absolute value andvariables like hours year and square
align:start position:0%variables like hours year and square
align:start position:0%variables like hours year and squareroot two12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539align:start position:0% the following content is provided under
align:start position:0%the following content is provided under
align:start position:0%the following content is provided undera Creative Commons license your support
align:start position:0%a Creative Commons license your support
align:start position:0%a Creative Commons license your supportwill help MIT open courseware continue
align:start position:0%will help MIT open courseware continue
align:start position:0%will help MIT open courseware continueto offer highquality educational
align:start position:0%to offer highquality educational
align:start position:0%to offer highquality educationalresources for free to make a donation or
align:start position:0%resources for free to make a donation or
align:start position:0%resources for free to make a donation orview additional materials from hundreds
align:start position:0%view additional materials from hundreds
align:start position:0%view additional materials from hundredsof MIT courses visit mitop courseware at
align:start position:0%
align:start position:0% ocw.mit.edu so um with the real time R
align:start position:0%ocw.mit.edu so um with the real time R
align:start position:0%ocw.mit.edu so um with the real time Rtracing group and as we like to call
align:start position:0%tracing group and as we like to call
align:start position:0%tracing group and as we like to callourselves blue steel so one thing you
align:start position:0%ourselves blue steel so one thing you
align:start position:0%ourselves blue steel so one thing youmight be uh asking yourselves and
align:start position:0%might be uh asking yourselves and
align:start position:0%might be uh asking yourselves andwondering from us is where did we get
align:start position:0%wondering from us is where did we get
align:start position:0%wondering from us is where did we getthe name blue steel what does it have to
align:start position:0%the name blue steel what does it have to
align:start position:0%the name blue steel what does it have todo with this thing we call Ray tracing
align:start position:0%do with this thing we call Ray tracing
align:start position:0%do with this thing we call Ray tracingand um this morning when I was sitting
align:start position:0%and um this morning when I was sitting
align:start position:0%and um this morning when I was sittingup and finishing up the project I was
align:start position:0%up and finishing up the project I was
align:start position:0%up and finishing up the project I wasasking myself the same thing we're doing
align:start position:0%asking myself the same thing we're doing
align:start position:0%asking myself the same thing we're doingRay tracing where did we come up with
align:start position:0%Ray tracing where did we come up with
align:start position:0%Ray tracing where did we come up withthis name so I'm going to give you a
align:start position:0%this name so I'm going to give you a
align:start position:0%this name so I'm going to give you alittle background on what blue steel is
align:start position:0%little background on what blue steel is
align:start position:0%little background on what blue steel iscan
align:start position:0%
align:start position:0% you the name the name came from the
align:start position:0%you the name the name came from the
align:start position:0%you the name the name came from thefirst day we got access to our PS3 we
align:start position:0%first day we got access to our PS3 we
align:start position:0%first day we got access to our PS3 wewent to the Student Center like a bunch
align:start position:0%went to the Student Center like a bunch
align:start position:0%went to the Student Center like a bunchof excited kids on Christmas and what
align:start position:0%of excited kids on Christmas and what
align:start position:0%of excited kids on Christmas and whatdid we do we created a mailing list for
align:start position:0%did we do we created a mailing list for
align:start position:0%did we do we created a mailing list forour
align:start position:0%our
align:start position:0%ourgroup didn't even mess with the PS3 just
align:start position:0%group didn't even mess with the PS3 just
align:start position:0%group didn't even mess with the PS3 justcreated the mailing list and took sit
align:start position:0%created the mailing list and took sit
align:start position:0%created the mailing list and took sitsat there for about an hour and a half
align:start position:0%sat there for about an hour and a half
align:start position:0%sat there for about an hour and a halfthinking of a name and somehow we
align:start position:0%thinking of a name and somehow we
align:start position:0%thinking of a name and somehow wedecided on zoolander's famous face blue
align:start position:0%decided on zoolander's famous face blue
align:start position:0%decided on zoolander's famous face bluesteel and
align:start position:0%steel and
align:start position:0%steel andit's didn't have particular significance
align:start position:0%it's didn't have particular significance
align:start position:0%it's didn't have particular significanceto us before but as you'll see it has a
align:start position:0%to us before but as you'll see it has a
align:start position:0%to us before but as you'll see it has alot of historical value
align:start position:0%
align:start position:0% blue steel is also an alloy a ferris
align:start position:0%blue steel is also an alloy a ferris
align:start position:0%blue steel is also an alloy a ferrisalloy as you could see it's uh we have
align:start position:0%alloy as you could see it's uh we have
align:start position:0%alloy as you could see it's uh we haveblue tempered spring steel that uh many
align:start position:0%blue tempered spring steel that uh many
align:start position:0%blue tempered spring steel that uh manycompanies industries use and blue steel
align:start position:0%companies industries use and blue steel
align:start position:0%companies industries use and blue steelis
align:start position:0%is
align:start position:0%isalso uh a warhead made in the Cold War
align:start position:0%also uh a warhead made in the Cold War
align:start position:0%also uh a warhead made in the Cold Warbut these have nothing to do with our
align:start position:0%but these have nothing to do with our
align:start position:0%but these have nothing to do with ourwith our project to us and for the
align:start position:0%with our project to us and for the
align:start position:0%with our project to us and for thepurpose of this project blue steel is a
align:start position:0%purpose of this project blue steel is a
align:start position:0%purpose of this project blue steel is adistributed realtime rate Tracer and uh
align:start position:0%distributed realtime rate Tracer and uh
align:start position:0%distributed realtime rate Tracer and uhNatalia is going to give you a little
align:start position:0%Natalia is going to give you a little
align:start position:0%Natalia is going to give you a littlebackground on what rate tracing really
align:start position:0%background on what rate tracing really
align:start position:0%background on what rate tracing reallyis thank
align:start position:0%
align:start position:0% you so rate tracing um there are two
align:start position:0%you so rate tracing um there are two
align:start position:0%you so rate tracing um there are twotypes of uh two terms that you would
align:start position:0%types of uh two terms that you would
align:start position:0%types of uh two terms that you wouldgenerally here uh raid tracing and raid
align:start position:0%generally here uh raid tracing and raid
align:start position:0%generally here uh raid tracing and raidcasting um
align:start position:0%casting um
align:start position:0%casting umbasically the idea is uh the camera is
align:start position:0%basically the idea is uh the camera is
align:start position:0%basically the idea is uh the camera islike the eye and from the camera um rays
align:start position:0%like the eye and from the camera um rays
align:start position:0%like the eye and from the camera um raysare cast for each pixel in a
align:start position:0%are cast for each pixel in a
align:start position:0%are cast for each pixel in apicture and um these Rays they intersect
align:start position:0%picture and um these Rays they intersect
align:start position:0%picture and um these Rays they intersectwith all the virtual objects in the
align:start position:0%with all the virtual objects in the
align:start position:0%with all the virtual objects in thescene when an object is hit
align:start position:0%scene when an object is hit
align:start position:0%scene when an object is hitum the the color of it is
align:start position:0%um the the color of it is
align:start position:0%um the the color of it iscomputed um the closest object that is
align:start position:0%computed um the closest object that is
align:start position:0%computed um the closest object that isintersected is the object uh that shows
align:start position:0%intersected is the object uh that shows
align:start position:0%intersected is the object uh that showsup on the
align:start position:0%up on the
align:start position:0%up on thescreen now we should credit these slides
align:start position:0%screen now we should credit these slides
align:start position:0%screen now we should credit these slidesthey 6
align:start position:0%they 6
align:start position:0%they 6through and Ray tracing uh is
align:start position:0%through and Ray tracing uh is
align:start position:0%through and Ray tracing uh isrecursive uh it accounts for Shadows uh
align:start position:0%recursive uh it accounts for Shadows uh
align:start position:0%recursive uh it accounts for Shadows uhpositions of um other objects in the
align:start position:0%positions of um other objects in the
align:start position:0%positions of um other objects in thescene there's reflection and refraction
align:start position:0%scene there's reflection and refraction
align:start position:0%scene there's reflection and refractionum for example if this Ray were to hit
align:start position:0%um for example if this Ray were to hit
align:start position:0%um for example if this Ray were to hitthat object and it is reflected then
align:start position:0%that object and it is reflected then
align:start position:0%that object and it is reflected thenanother ray is cast from that object
align:start position:0%another ray is cast from that object
align:start position:0%another ray is cast from that objectin the reflecting Direction and this can
align:start position:0%in the reflecting Direction and this can
align:start position:0%in the reflecting Direction and this cango on for an indefinite number of
align:start position:0%go on for an indefinite number of
align:start position:0%go on for an indefinite number ofReflections um these are normally
align:start position:0%Reflections um these are normally
align:start position:0%Reflections um these are normallyspecified in the
align:start position:0%
align:start position:0% program here's an example of the
align:start position:0%program here's an example of the
align:start position:0%program here's an example of therecursion so the three um planes are
align:start position:0%recursion so the three um planes are
align:start position:0%recursion so the three um planes arereflective they're like mirrors and
align:start position:0%reflective they're like mirrors and
align:start position:0%reflective they're like mirrors andthere are three spheres are in between
align:start position:0%there are three spheres are in between
align:start position:0%there are three spheres are in betweenthem with no recursion you can see there
align:start position:0%them with no recursion you can see there
align:start position:0%them with no recursion you can see thereis no reflection at all with one
align:start position:0%is no reflection at all with one
align:start position:0%is no reflection at all with onerecursion you can see the um the rays
align:start position:0%recursion you can see the um the rays
align:start position:0%recursion you can see the um the raysare reflecting just off the side meters
align:start position:0%are reflecting just off the side meters
align:start position:0%are reflecting just off the side metersat the end with two recursions there's
align:start position:0%at the end with two recursions there's
align:start position:0%at the end with two recursions there'salso reflection at the bottom so it is a
align:start position:0%also reflection at the bottom so it is a
align:start position:0%also reflection at the bottom so it is areflection of one of the
align:start position:0%
align:start position:0% reflections and this is uh very
align:start position:0%reflections and this is uh very
align:start position:0%reflections and this is uh verycomputationally intensive because um for
align:start position:0%computationally intensive because um for
align:start position:0%computationally intensive because um forevery pixel you're casting a ray and for
align:start position:0%every pixel you're casting a ray and for
align:start position:0%every pixel you're casting a ray and forevery object in the scene you're
align:start position:0%every object in the scene you're
align:start position:0%every object in the scene you'reintersecting that Ray with the object
align:start position:0%intersecting that Ray with the object
align:start position:0%intersecting that Ray with the objectobject and seeing if it's hit and then
align:start position:0%object and seeing if it's hit and then
align:start position:0%object and seeing if it's hit and thenif it is hit and it is reflective or
align:start position:0%if it is hit and it is reflective or
align:start position:0%if it is hit and it is reflective orrefractive um so transparent then um
align:start position:0%refractive um so transparent then um
align:start position:0%refractive um so transparent then umanother ray is cast uh this seam here is
align:start position:0%another ray is cast uh this seam here is
align:start position:0%another ray is cast uh this seam here isuh a resolution 1024x
align:start position:0%uh a resolution 1024x
align:start position:0%uh a resolution 1024x1024 and recursion depth is 100 and the
align:start position:0%1024 and recursion depth is 100 and the
align:start position:0%1024 and recursion depth is 100 and therendering time in our program was 2.6
align:start position:0%rendering time in our program was 2.6
align:start position:0%rendering time in our program was 2.6seconds um the rendering time for uh 20
align:start position:0%seconds um the rendering time for uh 20
align:start position:0%seconds um the rendering time for uh 20depth recursion was uh 600 milliseconds
align:start position:0%depth recursion was uh 600 milliseconds
align:start position:0%depth recursion was uh 600 millisecondsand uh for 10 was uh 300
align:start position:0%and uh for 10 was uh 300
align:start position:0%and uh for 10 was uh 300milliseconds
align:start position:0%
align:start position:0% um uh many of us have taken 6837 and in
align:start position:0%um uh many of us have taken 6837 and in
align:start position:0%um uh many of us have taken 6837 and inthat class we we all built R tracers um
align:start position:0%that class we we all built R tracers um
align:start position:0%that class we we all built R tracers umand uh a typical scene like the one that
align:start position:0%and uh a typical scene like the one that
align:start position:0%and uh a typical scene like the one thatis on the on the PowerPoint right now
align:start position:0%is on the on the PowerPoint right now
align:start position:0%is on the on the PowerPoint right nowcould take up to a minute or more uh
align:start position:0%could take up to a minute or more uh
align:start position:0%could take up to a minute or more uhoften if you include
align:start position:0%often if you include
align:start position:0%often if you includeif you were to do 100 bounces I think
align:start position:0%if you were to do 100 bounces I think
align:start position:0%if you were to do 100 bounces I thinkmine would probably have taken over 10
align:start position:0%mine would probably have taken over 10
align:start position:0%mine would probably have taken over 10minutes
align:start position:0%minutes
align:start position:0%minutes[Music]
align:start position:0%[Music]
align:start position:0%[Music]you we did try different spus uh this
align:start position:0%you we did try different spus uh this
align:start position:0%you we did try different spus uh thispicture we didn't try with uh different
align:start position:0%picture we didn't try with uh different
align:start position:0%picture we didn't try with uh differentspus but um we have tried other scenes
align:start position:0%spus but um we have tried other scenes
align:start position:0%spus but um we have tried other sceneswith various numbers and we did get uh
align:start position:0%with various numbers and we did get uh
align:start position:0%with various numbers and we did get uhexact linear speed up so if there were
align:start position:0%exact linear speed up so if there were
align:start position:0%exact linear speed up so if there weretwice as many spus it would be um twice
align:start position:0%twice as many spus it would be um twice
align:start position:0%twice as many spus it would be um twiceas fast
align:start position:0%
align:start position:0% and okay so uh yeah I'm going to talk to
align:start position:0%and okay so uh yeah I'm going to talk to
align:start position:0%and okay so uh yeah I'm going to talk toyou about optimizations that we did uh
align:start position:0%you about optimizations that we did uh
align:start position:0%you about optimizations that we did uhNatalia has told you about R tracing and
align:start position:0%Natalia has told you about R tracing and
align:start position:0%Natalia has told you about R tracing andthat's only half of our project um the
align:start position:0%that's only half of our project um the
align:start position:0%that's only half of our project um thepart that we have to focus on is
align:start position:0%part that we have to focus on is
align:start position:0%part that we have to focus on isoptimizing and uh meeting that goal of
align:start position:0%optimizing and uh meeting that goal of
align:start position:0%optimizing and uh meeting that goal ofbeing real time and uh for us real time
align:start position:0%being real time and uh for us real time
align:start position:0%being real time and uh for us real timeum you have to you have to ask what is
align:start position:0%um you have to you have to ask what is
align:start position:0%um you have to you have to ask what isreal time uh if we go off of like uh of
align:start position:0%real time uh if we go off of like uh of
align:start position:0%real time uh if we go off of like uh ofthe uh American video standard ntsc they
align:start position:0%the uh American video standard ntsc they
align:start position:0%the uh American video standard ntsc theyDefine it to be around 27 30 frames a
align:start position:0%Define it to be around 27 30 frames a
align:start position:0%Define it to be around 27 30 frames asecond uh so that was pretty much the
align:start position:0%second uh so that was pretty much the
align:start position:0%second uh so that was pretty much thegoal that we set when we set out to do
align:start position:0%goal that we set when we set out to do
align:start position:0%goal that we set when we set out to dothis and so we took the code and we
align:start position:0%this and so we took the code and we
align:start position:0%this and so we took the code and wethink okay we can split this this task
align:start position:0%think okay we can split this this task
align:start position:0%think okay we can split this this taskis easily paralyzable but we're going to
align:start position:0%is easily paralyzable but we're going to
align:start position:0%is easily paralyzable but we're going tohave to do a lot more than that if we
align:start position:0%have to do a lot more than that if we
align:start position:0%have to do a lot more than that if wewant to get it uh better if we want to
align:start position:0%want to get it uh better if we want to
align:start position:0%want to get it uh better if we want toget better rates so we took advantage of
align:start position:0%get better rates so we took advantage of
align:start position:0%get better rates so we took advantage ofthe hardware that we were on and one
align:start position:0%the hardware that we were on and one
align:start position:0%the hardware that we were on and onething that we that uh on the r tracing
align:start position:0%thing that we that uh on the r tracing
align:start position:0%thing that we that uh on the r tracingend we had to go crazy with was simy
align:start position:0%end we had to go crazy with was simy
align:start position:0%end we had to go crazy with was simythere pretty much the entire Ray Tracer
align:start position:0%there pretty much the entire Ray Tracer
align:start position:0%there pretty much the entire Ray Tracernever deals with a scalar
align:start position:0%never deals with a scalar
align:start position:0%never deals with a scalarvalue we use simdi for everything and in
align:start position:0%value we use simdi for everything and in
align:start position:0%value we use simdi for everything and inthe core of it there are we we we do
align:start position:0%the core of it there are we we we do
align:start position:0%the core of it there are we we we doBranch avoidance so we we really try not
align:start position:0%Branch avoidance so we we really try not
align:start position:0%Branch avoidance so we we really try notnot to take branches because Branch
align:start position:0%not to take branches because Branch
align:start position:0%not to take branches because Branchmisses are very costly on the cell so uh
align:start position:0%misses are very costly on the cell so uh
align:start position:0%misses are very costly on the cell so uhI believe there's something like three
align:start position:0%I believe there's something like three
align:start position:0%I believe there's something like threeif
align:start position:0%if
align:start position:0%ifstatements spread across 4,000 lines of
align:start position:0%statements spread across 4,000 lines of
align:start position:0%statements spread across 4,000 lines ofcode for the ray Tracer we really took
align:start position:0%code for the ray Tracer we really took
align:start position:0%code for the ray Tracer we really tooksimd to heart in this we we should so uh
align:start position:0%simd to heart in this we we should so uh
align:start position:0%simd to heart in this we we should so uhthe representing using simd you can uh
align:start position:0%the representing using simd you can uh
align:start position:0%the representing using simd you can uhprocess you know arrays of structures so
align:start position:0%process you know arrays of structures so
align:start position:0%process you know arrays of structures sowe uh we
align:start position:0%we uh we
align:start position:0%we uh wetook okay we uh we took we traced we we
align:start position:0%took okay we uh we took we traced we we
align:start position:0%took okay we uh we took we traced we wetraced Ray packets of of four Rays at a
align:start position:0%traced Ray packets of of four Rays at a
align:start position:0%traced Ray packets of of four Rays at atime and from those Ray packets we would
align:start position:0%time and from those Ray packets we would
align:start position:0%time and from those Ray packets we wouldgenerate hit packets and then Sly as you
align:start position:0%generate hit packets and then Sly as you
align:start position:0%generate hit packets and then Sly as yougo down the line we would produce an RGB
align:start position:0%go down the line we would produce an RGB
align:start position:0%go down the line we would produce an RGBpacket which is a color you know four
align:start position:0%packet which is a color you know four
align:start position:0%packet which is a color you know fourcolor values tied into one so at every
align:start position:0%color values tied into one so at every
align:start position:0%color values tied into one so at everystep we would uh use simd to our
align:start position:0%step we would uh use simd to our
align:start position:0%step we would uh use simd to ouradvantage now Brian's going to talk to
align:start position:0%advantage now Brian's going to talk to
align:start position:0%advantage now Brian's going to talk toyou about
align:start position:0%
align:start position:0% pipelining so of particular importance
align:start position:0%pipelining so of particular importance
align:start position:0%pipelining so of particular importanceon the cell is not only what
align:start position:0%on the cell is not only what
align:start position:0%on the cell is not only whatinstructions you execute but the order
align:start position:0%instructions you execute but the order
align:start position:0%instructions you execute but the orderthat you execute them and because there
align:start position:0%that you execute them and because there
align:start position:0%that you execute them and because thereis no reorder buffer on the Cale there's
align:start position:0%is no reorder buffer on the Cale there's
align:start position:0%is no reorder buffer on the Cale there'sno out ex execution and despite the fact
align:start position:0%no out ex execution and despite the fact
align:start position:0%no out ex execution and despite the factthat compiler technology is very good
align:start position:0%that compiler technology is very good
align:start position:0%that compiler technology is very goodhand optimization and pipelining
align:start position:0%hand optimization and pipelining
align:start position:0%hand optimization and pipelininginstructions is still always better for
align:start position:0%instructions is still always better for
align:start position:0%instructions is still always better forinstance with our triangle intersection
align:start position:0%instance with our triangle intersection
align:start position:0%instance with our triangle intersectionroutine uh we we
align:start position:0%routine uh we we
align:start position:0%routine uh we wegained on the order of hundreds of
align:start position:0%gained on the order of hundreds of
align:start position:0%gained on the order of hundreds ofmilliseconds of render
align:start position:0%milliseconds of render
align:start position:0%milliseconds of rendertime we shaved hundreds of millisecs of
align:start position:0%time we shaved hundreds of millisecs of
align:start position:0%time we shaved hundreds of millisecs ofrender time off of our render time for
align:start position:0%render time off of our render time for
align:start position:0%render time off of our render time forsome scenes you will see later just by
align:start position:0%some scenes you will see later just by
align:start position:0%some scenes you will see later just byuh reordering our calculations in the
align:start position:0%uh reordering our calculations in the
align:start position:0%uh reordering our calculations in theintersection code so it's very important
align:start position:0%intersection code so it's very important
align:start position:0%intersection code so it's very importantespecially on the spes and um one other
align:start position:0%especially on the spes and um one other
align:start position:0%especially on the spes and um one otheroptimization we made was the fact that
align:start position:0%optimization we made was the fact that
align:start position:0%optimization we made was the fact thatwe didn't we coded basically everything
align:start position:0%we didn't we coded basically everything
align:start position:0%we didn't we coded basically everythingon the spes anything running on the SPs
align:start position:0%on the spes anything running on the SPs
align:start position:0%on the spes anything running on the SPsis coded in C not in C++ and we're not
align:start position:0%is coded in C not in C++ and we're not
align:start position:0%is coded in C not in C++ and we're notusing inheritance when we do use C++
align:start position:0%using inheritance when we do use C++
align:start position:0%using inheritance when we do use C++because virtual functions have more
align:start position:0%because virtual functions have more
align:start position:0%because virtual functions have moreoverhead with respect to memory the V
align:start position:0%overhead with respect to memory the V
align:start position:0%overhead with respect to memory the Vtable and also looking up the function
align:start position:0%table and also looking up the function
align:start position:0%table and also looking up the functionpointers from the V table so these are
align:start position:0%pointers from the V table so these are
align:start position:0%pointers from the V table so these arejust a couple of the optimizations we
align:start position:0%just a couple of the optimizations we
align:start position:0%just a couple of the optimizations wemade we'll talk about more later just
align:start position:0%made we'll talk about more later just
align:start position:0%made we'll talk about more later justquick question so for the pipeline you
align:start position:0%quick question so for the pipeline you
align:start position:0%quick question so for the pipeline youactually reordered instruction
align:start position:0%actually reordered instruction
align:start position:0%actually reordered instructionstatements not the compiler didn't
align:start position:0%statements not the compiler didn't
align:start position:0%statements not the compiler didn'twasn't very helpful in that respect yeah
align:start position:0%wasn't very helpful in that respect yeah
align:start position:0%wasn't very helpful in that respect yeahso I
align:start position:0%so I
align:start position:0%so Ium on that scene 1024 x 1024 with the
align:start position:0%um on that scene 1024 x 1024 with the
align:start position:0%um on that scene 1024 x 1024 with theSpheres we were getting Natalia
align:start position:0%Spheres we were getting Natalia
align:start position:0%Spheres we were getting Nataliamentioned with a depth of recur of
align:start position:0%mentioned with a depth of recur of
align:start position:0%mentioned with a depth of recur ofrecursion of 10 we were getting 300
align:start position:0%recursion of 10 we were getting 300
align:start position:0%recursion of 10 we were getting 300milliseconds that's with optimized
align:start position:0%milliseconds that's with optimized
align:start position:0%milliseconds that's with optimizedwithout the optimizations we were
align:start position:0%without the optimizations we were
align:start position:0%without the optimizations we weregetting closer to 500 with a depth of
align:start position:0%getting closer to 500 with a depth of
align:start position:0%getting closer to 500 with a depth ofrecursion and this with a depth of
align:start position:0%recursion and this with a depth of
align:start position:0%recursion and this with a depth ofrecursion of 10 and this we gain that
align:start position:0%recursion of 10 and this we gain that
align:start position:0%recursion of 10 and this we gain thatextra 200 milliseconds just by
align:start position:0%extra 200 milliseconds just by
align:start position:0%extra 200 milliseconds just byreordering instructions in the
align:start position:0%reordering instructions in the
align:start position:0%reordering instructions in theintersection with optimization level 03
align:start position:0%intersection with optimization level 03
align:start position:0%intersection with optimization level 03in
align:start position:0%in
align:start position:0%inxlc so Hand optimization like Mike Acton
align:start position:0%xlc so Hand optimization like Mike Acton
align:start position:0%xlc so Hand optimization like Mike Actonsaid in class is still very
align:start position:0%
align:start position:0% important and I'm going to hand you off
align:start position:0%important and I'm going to hand you off
align:start position:0%important and I'm going to hand you offthe Mikey now to discuss the regular
align:start position:0%
align:start position:0% grid all right so um one of the problems
align:start position:0%grid all right so um one of the problems
align:start position:0%grid all right so um one of the problemsI guess with rate tracing is that
align:start position:0%I guess with rate tracing is that
align:start position:0%I guess with rate tracing is thatintersections are very expensive and
align:start position:0%intersections are very expensive and
align:start position:0%intersections are very expensive andwhen you have you know scenes with uh n
align:start position:0%when you have you know scenes with uh n
align:start position:0%when you have you know scenes with uh nrays and N perimeters well you have to
align:start position:0%rays and N perimeters well you have to
align:start position:0%rays and N perimeters well you have togenerate n * n intersections so one uh
align:start position:0%generate n * n intersections so one uh
align:start position:0%generate n * n intersections so one uhcommon acceleration structure is a grip
align:start position:0%common acceleration structure is a grip
align:start position:0%common acceleration structure is a gripand the concept is very simple as the
align:start position:0%and the concept is very simple as the
align:start position:0%and the concept is very simple as thepicture deps you just take your screen
align:start position:0%picture deps you just take your screen
align:start position:0%picture deps you just take your screensplit it up into a number of evenly
align:start position:0%split it up into a number of evenly
align:start position:0%split it up into a number of evenlysized boxal place your Primitives in
align:start position:0%sized boxal place your Primitives in
align:start position:0%sized boxal place your Primitives inthem and then you march your ray through
align:start position:0%them and then you march your ray through
align:start position:0%them and then you march your ray throughand you only intersect the ray with um
align:start position:0%and you only intersect the ray with um
align:start position:0%and you only intersect the ray with umwith Primitives that are around the area
align:start position:0%with Primitives that are around the area
align:start position:0%with Primitives that are around the areaand the good thing about a grid is that
align:start position:0%and the good thing about a grid is that
align:start position:0%and the good thing about a grid is thatit's very easy to construct as opposed
align:start position:0%it's very easy to construct as opposed
align:start position:0%it's very easy to construct as opposedto like say a KD tree or tree those um
align:start position:0%to like say a KD tree or tree those um
align:start position:0%to like say a KD tree or tree those umtake on the order of n log n where n is
align:start position:0%take on the order of n log n where n is
align:start position:0%take on the order of n log n where n isthe number of Primitives um Regular grid
align:start position:0%the number of Primitives um Regular grid
align:start position:0%the number of Primitives um Regular gridis order n where n is number of
align:start position:0%is order n where n is number of
align:start position:0%is order n where n is number ofPrimitives and the reason why we did
align:start position:0%Primitives and the reason why we did
align:start position:0%Primitives and the reason why we didthis is because with an interactive
align:start position:0%this is because with an interactive
align:start position:0%this is because with an interactivescene you need to uh where things are
align:start position:0%scene you need to uh where things are
align:start position:0%scene you need to uh where things aremoving around you need to rebuild the
align:start position:0%moving around you need to rebuild the
align:start position:0%moving around you need to rebuild thegrid every frame or whenever something
align:start position:0%grid every frame or whenever something
align:start position:0%grid every frame or whenever somethingmoves so we favored this um this choice
align:start position:0%moves so we favored this um this choice
align:start position:0%moves so we favored this um this choiceof acceleration structure because it was
align:start position:0%of acceleration structure because it was
align:start position:0%of acceleration structure because it wasquick to build and easy to Traverse
align:start position:0%quick to build and easy to Traverse
align:start position:0%quick to build and easy to Traverseokay and now
align:start position:0%okay and now
align:start position:0%okay and nowum fish tell you about the uh the fun
align:start position:0%um fish tell you about the uh the fun
align:start position:0%um fish tell you about the uh the funpart of our
align:start position:0%
align:start position:0% project um all right um I was in charge
align:start position:0%project um all right um I was in charge
align:start position:0%project um all right um I was in chargeof uh building the actual phys physics
align:start position:0%of uh building the actual phys physics
align:start position:0%of uh building the actual phys physicsengine our original plan was to do the
align:start position:0%engine our original plan was to do the
align:start position:0%engine our original plan was to do the6170 well-known uh Gizmo ball uh in 3D
align:start position:0%6170 well-known uh Gizmo ball uh in 3D
align:start position:0%6170 well-known uh Gizmo ball uh in 3Dand R traced um and I guess we want
align:start position:0%and R traced um and I guess we want
align:start position:0%and R traced um and I guess we wantto want to show okay I have it running
align:start position:0%to want to show okay I have it running
align:start position:0%to want to show okay I have it runningon this laptop uh uh we didn't quite get
align:start position:0%on this laptop uh uh we didn't quite get
align:start position:0%on this laptop uh uh we didn't quite getit uh retraced but uh I'm just going to
align:start position:0%it uh retraced but uh I'm just going to
align:start position:0%it uh retraced but uh I'm just going toshow you a little bit of what I did as a
align:start position:0%show you a little bit of what I did as a
align:start position:0%show you a little bit of what I did as aphysics
align:start position:0%
align:start position:0% engine maybe
align:start position:0%
align:start position:0% not okay um anyway
align:start position:0%
align:start position:0% we'll get the demo and people use it
align:start position:0%we'll get the demo and people use it
align:start position:0%we'll get the demo and people use itlater anyway it was basically a 2 and
align:start position:0%later anyway it was basically a 2 and
align:start position:0%later anyway it was basically a 2 and12d version of the example that was just
align:start position:0%12d version of the example that was just
align:start position:0%12d version of the example that was justup on the screen um flippers work
align:start position:0%up on the screen um flippers work
align:start position:0%up on the screen um flippers workabsorbers work um and uh due to
align:start position:0%absorbers work um and uh due to
align:start position:0%absorbers work um and uh due tocomplications we never did get it fully
align:start position:0%complications we never did get it fully
align:start position:0%complications we never did get it fullyretraced and uh I guess
align:start position:0%retraced and uh I guess
align:start position:0%retraced and uh I guessuh we'll go ahead and give you the real
align:start position:0%uh we'll go ahead and give you the real
align:start position:0%uh we'll go ahead and give you the realR Trace demos which we do have a couple
align:start position:0%R Trace demos which we do have a couple
align:start position:0%R Trace demos which we do have a coupleof those
align:start position:0%
align:start position:0% okay so their actual demo will be on a
align:start position:0%okay so their actual demo will be on a
align:start position:0%okay so their actual demo will be on alittle LCD screen here hopefully
align:start position:0%little LCD screen here hopefully
align:start position:0%little LCD screen here hopefullyeverybody can see on
align:start position:0%everybody can see on
align:start position:0%everybody can see onscre fortunately PS3 needs a specific
align:start position:0%scre fortunately PS3 needs a specific
align:start position:0%scre fortunately PS3 needs a specifickind of digital connection to display
align:start position:0%kind of digital connection to display
align:start position:0%kind of digital connection to displaythings in the right resolution when
align:start position:0%things in the right resolution when
align:start position:0%things in the right resolution whenyou're writing through frame buffer so
align:start position:0%you're writing through frame buffer so
align:start position:0%you're writing through frame buffer sowe can't project it
align:start position:0%
align:start position:0% onto uh turn can I do it from here
align:start position:0%
align:start position:0% now you
align:start position:0%
align:start position:0% got oh no wrong
align:start position:0%got oh no wrong
align:start position:0%got oh no wrongway ready way he's still adjusting
align:start position:0%way ready way he's still adjusting
align:start position:0%way ready way he's still adjustingit uh
align:start position:0%
align:start position:0% oh oh
align:start position:0%oh oh
align:start position:0%oh ohno okay we prepared a we prepared a few
align:start position:0%no okay we prepared a we prepared a few
align:start position:0%no okay we prepared a we prepared a fewdemos for you um and these are uh really
align:start position:0%demos for you um and these are uh really
align:start position:0%demos for you um and these are uh reallyjust going to show off the ray tracing
align:start position:0%just going to show off the ray tracing
align:start position:0%just going to show off the ray tracingpart of it and uh the sort of you know
align:start position:0%part of it and uh the sort of you know
align:start position:0%part of it and uh the sort of you knowrates that we got in terms of our the
align:start position:0%rates that we got in terms of our the
align:start position:0%rates that we got in terms of our theafter we applied our speed
align:start position:0%after we applied our speed
align:start position:0%after we applied our speedUPS here is a
align:start position:0%UPS here is a
align:start position:0%UPS here is auh thank you here we see you know both
align:start position:0%uh thank you here we see you know both
align:start position:0%uh thank you here we see you know boththe camera is moving and we have uh we
align:start position:0%the camera is moving and we have uh we
align:start position:0%the camera is moving and we have uh weimplemented full scene um functional
align:start position:0%implemented full scene um functional
align:start position:0%implemented full scene um functionaltextures so you see the checkerboard
align:start position:0%textures so you see the checkerboard
align:start position:0%textures so you see the checkerboardit's uh generated every frame uh it's
align:start position:0%it's uh generated every frame uh it's
align:start position:0%it's uh generated every frame uh it'syou know we we use no texture Maps this
align:start position:0%you know we we use no texture Maps this
align:start position:0%you know we we use no texture Maps thisis completely generated functionally um
align:start position:0%is completely generated functionally um
align:start position:0%is completely generated functionally umbump mapping as you can see in the large
align:start position:0%bump mapping as you can see in the large
align:start position:0%bump mapping as you can see in the largeorange sphere
align:start position:0%orange sphere
align:start position:0%orange sphereuh is also done on the fly as well as uh
align:start position:0%uh is also done on the fly as well as uh
align:start position:0%uh is also done on the fly as well as uhblending uh between two two textures
align:start position:0%blending uh between two two textures
align:start position:0%blending uh between two two texturesusing pearlin noise uh is done on the
align:start position:0%using pearlin noise uh is done on the
align:start position:0%using pearlin noise uh is done on theFly also showcased in the center sphere
align:start position:0%Fly also showcased in the center sphere
align:start position:0%Fly also showcased in the center sphereright here you can see both reflection
align:start position:0%right here you can see both reflection
align:start position:0%right here you can see both reflectionand refraction uh the sphere is
align:start position:0%and refraction uh the sphere is
align:start position:0%and refraction uh the sphere istransparent it acts as a glass sphere so
align:start position:0%transparent it acts as a glass sphere so
align:start position:0%transparent it acts as a glass sphere soyou can see
align:start position:0%you can see
align:start position:0%you can seeum the reflection of the orange in it
align:start position:0%um the reflection of the orange in it
align:start position:0%um the reflection of the orange in itbut also the warping of the checker
align:start position:0%but also the warping of the checker
align:start position:0%but also the warping of the checkerboard as it goes through this is one of
align:start position:0%board as it goes through this is one of
align:start position:0%board as it goes through this is one ofthe advantages of well spheres are part
align:start position:0%the advantages of well spheres are part
align:start position:0%the advantages of well spheres are partof the one of the advantages of Ray
align:start position:0%of the one of the advantages of Ray
align:start position:0%of the one of the advantages of Raytracing because you get you can use uh
align:start position:0%tracing because you get you can use uh
align:start position:0%tracing because you get you can use uhgeometrical equations to uh Define your
align:start position:0%geometrical equations to uh Define your
align:start position:0%geometrical equations to uh Define yourgeometry versus uh in using
align:start position:0%geometry versus uh in using
align:start position:0%geometry versus uh in usingrasterization methods you have to
align:start position:0%rasterization methods you have to
align:start position:0%rasterization methods you have toactually Define the geometry in some
align:start position:0%actually Define the geometry in some
align:start position:0%actually Define the geometry in somesort of concrete numerical way I'm going
align:start position:0%sort of concrete numerical way I'm going
align:start position:0%sort of concrete numerical way I'm goingto go to the next demo um this should
align:start position:0%to go to the next demo um this should
align:start position:0%to go to the next demo um this shouldshowcase some of the lights that we
align:start position:0%showcase some of the lights that we
align:start position:0%showcase some of the lights that weimplemented so how many frames per
align:start position:0%implemented so how many frames per
align:start position:0%implemented so how many frames persecond is this like this is uh this
align:start position:0%second is this like this is uh this
align:start position:0%second is this like this is uh thisshould be 15 frames a second and uh this
align:start position:0%should be 15 frames a second and uh this
align:start position:0%should be 15 frames a second and uh thislet me reiterate this is with the the
align:start position:0%let me reiterate this is with the the
align:start position:0%let me reiterate this is with the therefraction step requires at least two
align:start position:0%refraction step requires at least two
align:start position:0%refraction step requires at least twobounces so two steps of recursion um if
align:start position:0%bounces so two steps of recursion um if
align:start position:0%bounces so two steps of recursion um ifwe were to turn off uh this recur if we
align:start position:0%we were to turn off uh this recur if we
align:start position:0%we were to turn off uh this recur if wewere to turn that off we would be
align:start position:0%were to turn that off we would be
align:start position:0%were to turn that off we would beachieving um I would estimate 27 frames
align:start position:0%achieving um I would estimate 27 frames
align:start position:0%achieving um I would estimate 27 framesa second 28 um but then it doesn't look
align:start position:0%a second 28 um but then it doesn't look
align:start position:0%a second 28 um but then it doesn't lookas pretty so you know what's the point
align:start position:0%as pretty so you know what's the point
align:start position:0%as pretty so you know what's the pointuh you can see kind of uh this will be
align:start position:0%uh you can see kind of uh this will be
align:start position:0%uh you can see kind of uh this will beshowcased later but you can see the
align:start position:0%showcased later but you can see the
align:start position:0%showcased later but you can see thespotlight uh it's kind of moving it's
align:start position:0%spotlight uh it's kind of moving it's
align:start position:0%spotlight uh it's kind of moving it'swaving back and forth um Illuminating
align:start position:0%waving back and forth um Illuminating
align:start position:0%waving back and forth um Illuminatingparts of the scene there's also a Point
align:start position:0%parts of the scene there's also a Point
align:start position:0%parts of the scene there's also a Pointlight at some distance around here
align:start position:0%light at some distance around here
align:start position:0%light at some distance around herethat's Illuminating everything but it's
align:start position:0%that's Illuminating everything but it's
align:start position:0%that's Illuminating everything but it'sbasically the same set of
align:start position:0%basically the same set of
align:start position:0%basically the same set ofPrimitives if you were closer you could
align:start position:0%Primitives if you were closer you could
align:start position:0%Primitives if you were closer you couldprobably notice that the checkerboard is
align:start position:0%probably notice that the checkerboard is
align:start position:0%probably notice that the checkerboard isfully reflective you can view the scene
align:start position:0%fully reflective you can view the scene
align:start position:0%fully reflective you can view the scenethis far wall you can view the entire
align:start position:0%this far wall you can view the entire
align:start position:0%this far wall you can view the entirescene in it going to go to the next
align:start position:0%
align:start position:0% demo this is with the lights off um so
align:start position:0%demo this is with the lights off um so
align:start position:0%demo this is with the lights off um soyou can get a better better sense of
align:start position:0%you can get a better better sense of
align:start position:0%you can get a better better sense ofwhat the spotlight is actually doing
align:start position:0%what the spotlight is actually doing
align:start position:0%what the spotlight is actually doingum if if you notice on this uh orange
align:start position:0%um if if you notice on this uh orange
align:start position:0%um if if you notice on this uh orangesphere we implemented uh very two
align:start position:0%sphere we implemented uh very two
align:start position:0%sphere we implemented uh very twodifferent forms of um brdfs one was
align:start position:0%different forms of um brdfs one was
align:start position:0%different forms of um brdfs one wasgeneric Fong shading and then the other
align:start position:0%generic Fong shading and then the other
align:start position:0%generic Fong shading and then the otherwas uh cook Torrance which is uh helps
align:start position:0%was uh cook Torrance which is uh helps
align:start position:0%was uh cook Torrance which is uh helpsusing particularly with metals and uh
align:start position:0%using particularly with metals and uh
align:start position:0%using particularly with metals and uhother materials like that it helps uh
align:start position:0%other materials like that it helps uh
align:start position:0%other materials like that it helps uhhave a very bright you know specular
align:start position:0%have a very bright you know specular
align:start position:0%have a very bright you know specularhighlight and you'll notice as the as
align:start position:0%highlight and you'll notice as the as
align:start position:0%highlight and you'll notice as the asthe camera is panning back and forth the
align:start position:0%the camera is panning back and forth the
align:start position:0%the camera is panning back and forth thesort of speedups um that we get from uh
align:start position:0%sort of speedups um that we get from uh
align:start position:0%sort of speedups um that we get from uhas as the uh we took advantage of
align:start position:0%as as the uh we took advantage of
align:start position:0%as as the uh we took advantage ofcertain we we used uh little tricks to
align:start position:0%certain we we used uh little tricks to
align:start position:0%certain we we used uh little tricks toto you know glean speed here and there
align:start position:0%to you know glean speed here and there
align:start position:0%to you know glean speed here and therelike you know when when it's when it's
align:start position:0%like you know when when it's when it's
align:start position:0%like you know when when it's when it'sso dark or it's very far away we we stop
align:start position:0%so dark or it's very far away we we stop
align:start position:0%so dark or it's very far away we we stoprecursing we're over so we are okay yeah
align:start position:0%recursing we're over so we are okay yeah
align:start position:0%recursing we're over so we are okay yeahso if there's uh let's see do the um
align:start position:0%so if there's uh let's see do the um
align:start position:0%so if there's uh let's see do the umspus from one okay I can demonstrate the
align:start position:0%spus from one okay I can demonstrate the
align:start position:0%spus from one okay I can demonstrate theuh we actually um enabled it so that you
align:start position:0%uh we actually um enabled it so that you
align:start position:0%uh we actually um enabled it so that youcan turn it on either you know 1 through
align:start position:0%can turn it on either you know 1 through
align:start position:0%can turn it on either you know 1 throughsix SPS using command line arguments so
align:start position:0%six SPS using command line arguments so
align:start position:0%six SPS using command line arguments soif I
align:start position:0%if I
align:start position:0%if Iuh let's go to the back the first demo
align:start position:0%uh let's go to the back the first demo
align:start position:0%uh let's go to the back the first demoif I say just use one SP we can watch it
align:start position:0%if I say just use one SP we can watch it
align:start position:0%if I say just use one SP we can watch ityou know slowly TRW it along and uh if I
align:start position:0%you know slowly TRW it along and uh if I
align:start position:0%you know slowly TRW it along and uh if Iwere sshed in it would be giving me you
align:start position:0%were sshed in it would be giving me you
align:start position:0%were sshed in it would be giving me youknow timing information so I could tell
align:start position:0%know timing information so I could tell
align:start position:0%know timing information so I could tellyou exactly um it's really unfortunate
align:start position:0%you exactly um it's really unfortunate
align:start position:0%you exactly um it's really unfortunatethat it's not because it's very linear
align:start position:0%that it's not because it's very linear
align:start position:0%that it's not because it's very linearand it speed up right now it'll be it
align:start position:0%and it speed up right now it'll be it
align:start position:0%and it speed up right now it'll be itsays you know 500
align:start position:0%says you know 500
align:start position:0%says you know 500milliseconds but if I turn it on two it
align:start position:0%milliseconds but if I turn it on two it
align:start position:0%milliseconds but if I turn it on two itdrops literally in half to
align:start position:0%drops literally in half to
align:start position:0%drops literally in half to250 you can get a sense of that from
align:start position:0%250 you can get a sense of that from
align:start position:0%250 you can get a sense of that fromthat it's moving like tick tick tick
align:start position:0%that it's moving like tick tick tick
align:start position:0%that it's moving like tick tick ticktick versus tick tick
align:start position:0%tick versus tick tick
align:start position:0%tick versus tick ticktick and then
align:start position:0%tick and then
align:start position:0%tick and thenthree it's a similar speed
align:start position:0%three it's a similar speed
align:start position:0%three it's a similar speedup and then I'll jump to five it's
align:start position:0%up and then I'll jump to five it's
align:start position:0%up and then I'll jump to five it'sgetting closer and then when we turn on
align:start position:0%getting closer and then when we turn on
align:start position:0%getting closer and then when we turn onthe
align:start position:0%
align:start position:0% sixth it's uh this is this should be
align:start position:0%sixth it's uh this is this should be
align:start position:0%sixth it's uh this is this should beabout 12 15 frames a
align:start position:0%about 12 15 frames a
align:start position:0%about 12 15 frames asecond so you estimate if you had a
align:start position:0%second so you estimate if you had a
align:start position:0%second so you estimate if you had adozen spus you go you actually it's
align:start position:0%dozen spus you go you actually it's
align:start position:0%dozen spus you go you actually it'sfunny you mentioned that the uh I think
align:start position:0%funny you mentioned that the uh I think
align:start position:0%funny you mentioned that the uh I thinkit was it the uh Julia R Tracer or the
align:start position:0%it was it the uh Julia R Tracer or the
align:start position:0%it was it the uh Julia R Tracer or theIRT that both of them use two cell
align:start position:0%IRT that both of them use two cell
align:start position:0%IRT that both of them use two cellblades which is a full eight
align:start position:0%blades which is a full eight
align:start position:0%blades which is a full eightit's times two so they use 16 spus the
align:start position:0%it's times two so they use 16 spus the
align:start position:0%it's times two so they use 16 spus thePlayStation 3 due to certain factors
align:start position:0%PlayStation 3 due to certain factors
align:start position:0%PlayStation 3 due to certain factorswe're only limited to six
align:start position:0%we're only limited to six
align:start position:0%we're only limited to sixmhm
align:start position:0%mhm
align:start position:0%mhmis the way you're dividing up the work
align:start position:0%is the way you're dividing up the work
align:start position:0%is the way you're dividing up the workof you know each spu taking one you know
align:start position:0%of you know each spu taking one you know
align:start position:0%of you know each spu taking one you knowevery sixth raster line basically that
align:start position:0%every sixth raster line basically that
align:start position:0%every sixth raster line basically thatthat sounds like could you improve on
align:start position:0%that sounds like could you improve on
align:start position:0%that sounds like could you improve onthe performance by U by allocating the
align:start position:0%the performance by U by allocating the
align:start position:0%the performance by U by allocating theraise there's a whole the the issue
align:start position:0%raise there's a whole the the issue
align:start position:0%raise there's a whole the the issuethere is one of uh granularity of our of
align:start position:0%there is one of uh granularity of our of
align:start position:0%there is one of uh granularity of our ofour distribution um and and also
align:start position:0%our distribution um and and also
align:start position:0%our distribution um and and alsocommunication time on the bus um we can
align:start position:0%communication time on the bus um we can
align:start position:0%communication time on the bus um we candefinitely we can we we've designed it
align:start position:0%definitely we can we we've designed it
align:start position:0%definitely we can we we've designed itsuch that we can fine-tune it in any way
align:start position:0%such that we can fine-tune it in any way
align:start position:0%such that we can fine-tune it in any waywe want but it seems to me that if you
align:start position:0%we want but it seems to me that if you
align:start position:0%we want but it seems to me that if youhad a you know kind of a localized
align:start position:0%had a you know kind of a localized
align:start position:0%had a you know kind of a localizedbundle of rays you
align:start position:0%bundle of rays you
align:start position:0%bundle of rays youknow on a single spu you might be able
align:start position:0%know on a single spu you might be able
align:start position:0%know on a single spu you might be ableto do some optimizations like you know
align:start position:0%to do some optimizations like you know
align:start position:0%to do some optimizations like you knowtreat them as fat Rays know nearby rays
align:start position:0%treat them as fat Rays know nearby rays
align:start position:0%treat them as fat Rays know nearby raysare likely to intersect the same
align:start position:0%are likely to intersect the same
align:start position:0%are likely to intersect the sametriangles the uh the entire material
align:start position:0%triangles the uh the entire material
align:start position:0%triangles the uh the entire materialsystem works very much like that it it
align:start position:0%system works very much like that it it
align:start position:0%system works very much like that it ituh actually saves on computation based
align:start position:0%uh actually saves on computation based
align:start position:0%uh actually saves on computation basedon um which rays of the of the in a
align:start position:0%on um which rays of the of the in a
align:start position:0%on um which rays of the of the in apacket of four have hit have collided
align:start position:0%packet of four have hit have collided
align:start position:0%packet of four have hit have collidedwith the same element um and you know if
align:start position:0%with the same element um and you know if
align:start position:0%with the same element um and you know ifit does then it takes full advantage of
align:start position:0%it does then it takes full advantage of
align:start position:0%it does then it takes full advantage ofCD to quickly you know chug through
align:start position:0%CD to quickly you know chug through
align:start position:0%CD to quickly you know chug throughthose those rays that are the same and
align:start position:0%those those rays that are the same and
align:start position:0%those those rays that are the same andthen never call that particular Shader
align:start position:0%then never call that particular Shader
align:start position:0%then never call that particular Shaderagain because it's already done the work
align:start position:0%again because it's already done the work
align:start position:0%again because it's already done the workfor
align:start position:0%for
align:start position:0%foranother issue I think is sorry we should
align:start position:0%another issue I think is sorry we should
align:start position:0%another issue I think is sorry we shouldtry to wrap up so we can get through the
align:start position:0%try to wrap up so we can get through the
align:start position:0%try to wrap up so we can get through theothers any more very short
align:start position:0%others any more very short
align:start position:0%others any more very shortquestions all right did you guys have
align:start position:0%questions all right did you guys have
align:start position:0%questions all right did you guys haveany last concluding
align:start position:0%any last concluding
align:start position:0%any last concludingstatements
align:start position:0%statements
align:start position:0%statementsmaybe go through the rest like
align:start position:0%maybe go through the rest like
align:start position:0%maybe go through the rest likeFast all right point was we had two
align:start position:0%Fast all right point was we had two
align:start position:0%Fast all right point was we had twopieces thank speaker1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659align:start position:0% okay uh this is a good time to do 2 by
align:start position:0%okay uh this is a good time to do 2 by
align:start position:0%okay uh this is a good time to do 2 bytwo matrices their igen values and their
align:start position:0%two matrices their igen values and their
align:start position:0%two matrices their igen values and theirstability uh 2 by two Ian values are
align:start position:0%stability uh 2 by two Ian values are
align:start position:0%stability uh 2 by two Ian values areeasy the easiest to do easiest to
align:start position:0%easy the easiest to do easiest to
align:start position:0%easy the easiest to do easiest tounderstand good to separate out the 2 by
align:start position:0%understand good to separate out the 2 by
align:start position:0%understand good to separate out the 2 bytwo case from the later n byn igen value
align:start position:0%two case from the later n byn igen value
align:start position:0%two case from the later n byn igen valueproblem okay so here and of course uh
align:start position:0%problem okay so here and of course uh
align:start position:0%problem okay so here and of course uhlet let me remember the basic dogma of
align:start position:0%let let me remember the basic dogma of
align:start position:0%let let me remember the basic dogma ofigen
align:start position:0%igen
align:start position:0%igenvalues and ion vectors we're looking for
align:start position:0%values and ion vectors we're looking for
align:start position:0%values and ion vectors we're looking fora vector
align:start position:0%a vector
align:start position:0%a vectorX and a number Lambda the I value so
align:start position:0%X and a number Lambda the I value so
align:start position:0%X and a number Lambda the I value sothat ax is Lambda X in other words when
align:start position:0%that ax is Lambda X in other words when
align:start position:0%that ax is Lambda X in other words whenI multiply by
align:start position:0%I multiply by
align:start position:0%I multiply bya that special Vector X does not change
align:start position:0%a that special Vector X does not change
align:start position:0%a that special Vector X does not changedirection it just changes length by a
align:start position:0%direction it just changes length by a
align:start position:0%direction it just changes length by afactor Lambda which could be positive it
align:start position:0%factor Lambda which could be positive it
align:start position:0%factor Lambda which could be positive itcould be zero could be negative could be
align:start position:0%could be zero could be negative could be
align:start position:0%could be zero could be negative could becomplex number it's a number though so
align:start position:0%complex number it's a number though so
align:start position:0%complex number it's a number though sothat's uh that's the key
align:start position:0%that's uh that's the key
align:start position:0%that's uh that's the keyequation let me go toward its solution
align:start position:0%equation let me go toward its solution
align:start position:0%equation let me go toward its solutionso I'm I want to move that onto the left
align:start position:0%so I'm I want to move that onto the left
align:start position:0%so I'm I want to move that onto the lefthand side so I just write the same
align:start position:0%hand side so I just write the same
align:start position:0%hand side so I just write the sameequation this way and now I see that
align:start position:0%equation this way and now I see that
align:start position:0%equation this way and now I see thatthis Matrix times the vector gives me
align:start position:0%this Matrix times the vector gives me
align:start position:0%this Matrix times the vector gives mezero now when is that
align:start position:0%zero now when is that
align:start position:0%zero now when is thatpossible that Matrix can't be invertible
align:start position:0%possible that Matrix can't be invertible
align:start position:0%possible that Matrix can't be invertibleif it was invertible the only solution
align:start position:0%if it was invertible the only solution
align:start position:0%if it was invertible the only solutionwould be xals 0 no good so this Matrix
align:start position:0%would be xals 0 no good so this Matrix
align:start position:0%would be xals 0 no good so this Matrixmust be singular its determinant must be
align:start position:0%must be singular its determinant must be
align:start position:0%must be singular its determinant must bezero and now we have an equation for the
align:start position:0%zero and now we have an equation for the
align:start position:0%zero and now we have an equation for theion value Lambda so Lambda is how much
align:start position:0%ion value Lambda so Lambda is how much
align:start position:0%ion value Lambda so Lambda is how muchwe shift The Matrix
align:start position:0%we shift The Matrix
align:start position:0%we shift The Matrixto make the determinant zero we shift by
align:start position:0%to make the determinant zero we shift by
align:start position:0%to make the determinant zero we shift byLambda time the
align:start position:0%Lambda time the
align:start position:0%Lambda time theidentity just subtract that from the
align:start position:0%identity just subtract that from the
align:start position:0%identity just subtract that from thediagonal okay so can I begin with very
align:start position:0%diagonal okay so can I begin with very
align:start position:0%diagonal okay so can I begin with veryeasy 2x two Matrix the kind that we met
align:start position:0%easy 2x two Matrix the kind that we met
align:start position:0%easy 2x two Matrix the kind that we metfirst called the companion Matrix so we
align:start position:0%first called the companion Matrix so we
align:start position:0%first called the companion Matrix so wemet this Matrix when we had a second
align:start position:0%met this Matrix when we had a second
align:start position:0%met this Matrix when we had a secondorder equation so I started with the
align:start position:0%order equation so I started with the
align:start position:0%order equation so I started with theequation y Prime + b y Prime + c y
align:start position:0%equation y Prime + b y Prime + c y
align:start position:0%equation y Prime + b y Prime + c yequals say Z so I started with one
align:start position:0%equals say Z so I started with one
align:start position:0%equals say Z so I started with onesecond order equation and then I
align:start position:0%second order equation and then I
align:start position:0%second order equation and then Iintroduced y Prime as a second unknown
align:start position:0%introduced y Prime as a second unknown
align:start position:0%introduced y Prime as a second unknownso I now I have a vector unknown Y and Y
align:start position:0%so I now I have a vector unknown Y and Y
align:start position:0%so I now I have a vector unknown Y and YPrime and then it if when I wrote the
align:start position:0%Prime and then it if when I wrote the
align:start position:0%Prime and then it if when I wrote theequation down I won't repeat that it led
align:start position:0%equation down I won't repeat that it led
align:start position:0%equation down I won't repeat that it ledus to a 2x two Matrix two equations for
align:start position:0%us to a 2x two Matrix two equations for
align:start position:0%us to a 2x two Matrix two equations fortwo unknowns Y and Y Prime so there is a
align:start position:0%two unknowns Y and Y Prime so there is a
align:start position:0%two unknowns Y and Y Prime so there is a2X two Matrix that we're interested in
align:start position:0%2X two Matrix that we're interested in
align:start position:0%2X two Matrix that we're interested inbut we really are going to be interested
align:start position:0%but we really are going to be interested
align:start position:0%but we really are going to be interestedin all 2 by tws okay so let me take that
align:start position:0%in all 2 by tws okay so let me take that
align:start position:0%in all 2 by tws okay so let me take thatto be my Matrix a my companion Matrix so
align:start position:0%to be my Matrix a my companion Matrix so
align:start position:0%to be my Matrix a my companion Matrix soI just want to go through the steps of
align:start position:0%I just want to go through the steps of
align:start position:0%I just want to go through the steps ofcom finding its igen values what are the
align:start position:0%com finding its igen values what are the
align:start position:0%com finding its igen values what are theigen values of that
align:start position:0%igen values of that
align:start position:0%igen values of thatMatrix we just take the Matrix subtract
align:start position:0%Matrix we just take the Matrix subtract
align:start position:0%Matrix we just take the Matrix subtractLambda from the
align:start position:0%Lambda from the
align:start position:0%Lambda from thediagonal and take the
align:start position:0%diagonal and take the
align:start position:0%diagonal and take thedeterminant and when I take the
align:start position:0%determinant and when I take the
align:start position:0%determinant and when I take thedeterminant of a 2X two matrix it's just
align:start position:0%determinant of a 2X two matrix it's just
align:start position:0%determinant of a 2X two matrix it's justthat times that which is minus Lambda *
align:start position:0%that times that which is minus Lambda *
align:start position:0%that times that which is minus Lambda *minus Lambda is Lambda squar this gives
align:start position:0%minus Lambda is Lambda squar this gives
align:start position:0%minus Lambda is Lambda squar this givesme a b Lambda and the other part of the
align:start position:0%me a b Lambda and the other part of the
align:start position:0%me a b Lambda and the other part of thedeterminant is this product minus C but
align:start position:0%determinant is this product minus C but
align:start position:0%determinant is this product minus C butit comes with a minus sign so it's plus
align:start position:0%it comes with a minus sign so it's plus
align:start position:0%it comes with a minus sign so it's plusC so there's my equation for the igen
align:start position:0%C so there's my equation for the igen
align:start position:0%C so there's my equation for the igenvalues of a companion Matrix companion
align:start position:0%values of a companion Matrix companion
align:start position:0%values of a companion Matrix companionMatrix and of course you see that's
align:start position:0%Matrix and of course you see that's
align:start position:0%Matrix and of course you see that'sexactly the same equation that we had
align:start position:0%exactly the same equation that we had
align:start position:0%exactly the same equation that we hadfor the exponent s so Lambda for the
align:start position:0%for the exponent s so Lambda for the
align:start position:0%for the exponent s so Lambda for theMatrix case is the same as s S1 and S2
align:start position:0%Matrix case is the same as s S1 and S2
align:start position:0%Matrix case is the same as s S1 and S2for
align:start position:0%for
align:start position:0%forthe for the uh
align:start position:0%the for the uh
align:start position:0%the for the uhsingle uh second order equation so that
align:start position:0%single uh second order equation so that
align:start position:0%single uh second order equation so thatthis equation has Solutions e to the St
align:start position:0%this equation has Solutions e to the St
align:start position:0%this equation has Solutions e to the Stwhen the Matrix has the igen values
align:start position:0%when the Matrix has the igen values
align:start position:0%when the Matrix has the igen valuesLambda equal s those same S1 and S2 all
align:start position:0%Lambda equal s those same S1 and S2 all
align:start position:0%Lambda equal s those same S1 and S2 allright but
align:start position:0%right but
align:start position:0%right butnow I move
align:start position:0%now I move
align:start position:0%now I moveon to a general 2x2 matrix what are its
align:start position:0%on to a general 2x2 matrix what are its
align:start position:0%on to a general 2x2 matrix what are itsigen values what do they what does that
align:start position:0%igen values what do they what does that
align:start position:0%igen values what do they what does thatequation look like for its two IG values
align:start position:0%equation look like for its two IG values
align:start position:0%equation look like for its two IG valuesso this will be a special case of
align:start position:0%so this will be a special case of
align:start position:0%so this will be a special case ofthis here I have a general Matrix a b c
align:start position:0%this here I have a general Matrix a b c
align:start position:0%this here I have a general Matrix a b cd I've subtracted Lambda from the
align:start position:0%d I've subtracted Lambda from the
align:start position:0%d I've subtracted Lambda from thediagonal I'm taking the determinant that
align:start position:0%diagonal I'm taking the determinant that
align:start position:0%diagonal I'm taking the determinant thatwill give me the two I values okay let's
align:start position:0%will give me the two I values okay let's
align:start position:0%will give me the two I values okay let'sdo
align:start position:0%do
align:start position:0%doit l minus Lambda * minus Lambda is
align:start position:0%it l minus Lambda * minus Lambda is
align:start position:0%it l minus Lambda * minus Lambda isLambda squar then I have a minus Lambda
align:start position:0%Lambda squar then I have a minus Lambda
align:start position:0%Lambda squar then I have a minus LambdaD and A minus Lambda a
align:start position:0%D and A minus Lambda a
align:start position:0%D and A minus Lambda aso I have an A plus a d Lambda and then
align:start position:0%so I have an A plus a d Lambda and then
align:start position:0%so I have an A plus a d Lambda and thenI have the part that doesn't involve
align:start position:0%I have the part that doesn't involve
align:start position:0%I have the part that doesn't involveLambda the part that doesn't involve
align:start position:0%Lambda the part that doesn't involve
align:start position:0%Lambda the part that doesn't involveLambda is just the determinant of a b c
align:start position:0%Lambda is just the determinant of a b c
align:start position:0%Lambda is just the determinant of a b cd it's just the a d and the minus BC so
align:start position:0%d it's just the a d and the minus BC so
align:start position:0%d it's just the a d and the minus BC sothere's an A D and A minus BC and all
align:start position:0%there's an A D and A minus BC and all
align:start position:0%there's an A D and A minus BC and allthat is
align:start position:0%that is
align:start position:0%that iszero okay it's a quadratic equation
align:start position:0%zero okay it's a quadratic equation
align:start position:0%zero okay it's a quadratic equationsecond degree a 2x two Matrix has two
align:start position:0%second degree a 2x two Matrix has two
align:start position:0%second degree a 2x two Matrix has twoigen values the two roots of that
align:start position:0%igen values the two roots of that
align:start position:0%igen values the two roots of thatequation okay I just want to understand
align:start position:0%equation okay I just want to understand
align:start position:0%equation okay I just want to understandhow the more and more and more about the
align:start position:0%how the more and more and more about the
align:start position:0%how the more and more and more about theconnection of the roots Lambda 1 and
align:start position:0%connection of the roots Lambda 1 and
align:start position:0%connection of the roots Lambda 1 andLambda 2 to the Matrix AB c
align:start position:0%Lambda 2 to the Matrix AB c
align:start position:0%Lambda 2 to the Matrix AB cd if I know the 2x two Matrix this tells
align:start position:0%d if I know the 2x two Matrix this tells
align:start position:0%d if I know the 2x two Matrix this tellsme the igen values okay so how can I so
align:start position:0%me the igen values okay so how can I so
align:start position:0%me the igen values okay so how can I sothis will being a quadratic equation
align:start position:0%this will being a quadratic equation
align:start position:0%this will being a quadratic equationit'll have two roots and I can write the
align:start position:0%it'll have two roots and I can write the
align:start position:0%it'll have two roots and I can write theso when I if I factor this this will
align:start position:0%so when I if I factor this this will
align:start position:0%so when I if I factor this this willfactor into Lambda minus Lambda 1 *
align:start position:0%factor into Lambda minus Lambda 1 *
align:start position:0%factor into Lambda minus Lambda 1 *Lambda minus Lambda
align:start position:0%Lambda minus Lambda
align:start position:0%Lambda minus Lambda2 and of course if the numbers are nice
align:start position:0%2 and of course if the numbers are nice
align:start position:0%2 and of course if the numbers are nicethen I can see what Lambda one and
align:start position:0%then I can see what Lambda one and
align:start position:0%then I can see what Lambda one andLambda 2
align:start position:0%Lambda 2
align:start position:0%Lambda 2are in that case uh I I I find the igen
align:start position:0%are in that case uh I I I find the igen
align:start position:0%are in that case uh I I I find the igenvalues if the numbers are not nice then
align:start position:0%values if the numbers are not nice then
align:start position:0%values if the numbers are not nice thenLambda 1 and Lambda 2 come from the
align:start position:0%Lambda 1 and Lambda 2 come from the
align:start position:0%Lambda 1 and Lambda 2 come from thequadratic formula the - B plus or minus
align:start position:0%quadratic formula the - B plus or minus
align:start position:0%quadratic formula the - B plus or minusSquare < TK of b^ 2 - 4 a c the the
align:start position:0%Square < TK of b^ 2 - 4 a c the the
align:start position:0%Square < TK of b^ 2 - 4 a c the thequadratic formula will solve this
align:start position:0%quadratic formula will solve this
align:start position:0%quadratic formula will solve thisequation will tell me these two numbers
align:start position:0%equation will tell me these two numbers
align:start position:0%equation will tell me these two numbersand If I multiply it out this way I see
align:start position:0%and If I multiply it out this way I see
align:start position:0%and If I multiply it out this way I seeLambda 2ar I see
align:start position:0%Lambda 2ar I see
align:start position:0%Lambda 2ar I seeminus Lambda time Lambda 1 and Lambda
align:start position:0%
align:start position:0% 2 and then I see Plus
align:start position:0%2 and then I see Plus
align:start position:0%2 and then I see PlusLambda 1 * Lambda 2 equal Z I've here
align:start position:0%Lambda 1 * Lambda 2 equal Z I've here
align:start position:0%Lambda 1 * Lambda 2 equal Z I've hereI've written the equation for the two
align:start position:0%I've written the equation for the two
align:start position:0%I've written the equation for the twolambdas here I've written the equation
align:start position:0%lambdas here I've written the equation
align:start position:0%lambdas here I've written the equationwhen I know the two lambdas why did I do
align:start position:0%when I know the two lambdas why did I do
align:start position:0%when I know the two lambdas why did I dothis I want to match this with this and
align:start position:0%this I want to match this with this and
align:start position:0%this I want to match this with this andsee that this number whatever it is is
align:start position:0%see that this number whatever it is is
align:start position:0%see that this number whatever it is isthe same as that
align:start position:0%the same as that
align:start position:0%the same as thatnumber they they show up they're the
align:start position:0%number they they show up they're the
align:start position:0%number they they show up they're thecoefficient minus Lambda so that's the
align:start position:0%coefficient minus Lambda so that's the
align:start position:0%coefficient minus Lambda so that's thefirst step uh that
align:start position:0%first step uh that
align:start position:0%first step uh thatLambda 1 + Lambda
align:start position:0%Lambda 1 + Lambda
align:start position:0%Lambda 1 + Lambda2 is the same as a +
align:start position:0%
align:start position:0% D just matching those two equations I'm
align:start position:0%D just matching those two equations I'm
align:start position:0%D just matching those two equations I'mI'm just this is just like a general
align:start position:0%I'm just this is just like a general
align:start position:0%I'm just this is just like a generalfact about a quadratic equation the sum
align:start position:0%fact about a quadratic equation the sum
align:start position:0%fact about a quadratic equation the sumof the roots is the the minus
align:start position:0%of the roots is the the minus
align:start position:0%of the roots is the the minuscoefficient of Lambda
align:start position:0%coefficient of Lambda
align:start position:0%coefficient of Lambdaand then the constant term is the
align:start position:0%and then the constant term is the
align:start position:0%and then the constant term is theconstant term so Lambda 1 * Lambda 2 is
align:start position:0%constant term so Lambda 1 * Lambda 2 is
align:start position:0%constant term so Lambda 1 * Lambda 2 isa D minus b
align:start position:0%a D minus b
align:start position:0%a D minus bc
align:start position:0%c
align:start position:0%cokay this is these are facts about a 2X
align:start position:0%okay this is these are facts about a 2X
align:start position:0%okay this is these are facts about a 2Xtwo
align:start position:0%two
align:start position:0%twoMatrix uh a b c d the sum of the IG Val
align:start position:0%Matrix uh a b c d the sum of the IG Val
align:start position:0%Matrix uh a b c d the sum of the IG Valso this is the sum of the igen values so
align:start position:0%so this is the sum of the igen values so
align:start position:0%so this is the sum of the igen values soI'll put s m to indicate I'm looking at
align:start position:0%I'll put s m to indicate I'm looking at
align:start position:0%I'll put s m to indicate I'm looking atthe sum is that a + D A plus d are the
align:start position:0%the sum is that a + D A plus d are the
align:start position:0%the sum is that a + D A plus d are thenumbers on the diagonal so that's a
align:start position:0%numbers on the diagonal so that's a
align:start position:0%numbers on the diagonal so that's alittle special when I add the diagonal
align:start position:0%little special when I add the diagonal
align:start position:0%little special when I add the diagonalnumbers I get something called the
align:start position:0%numbers I get something called the
align:start position:0%numbers I get something called thetrace of the
align:start position:0%
align:start position:0% Matrix I'm introducing a word Trace
align:start position:0%Matrix I'm introducing a word Trace
align:start position:0%Matrix I'm introducing a word TraceTrace is the add up down the diagonal
align:start position:0%Trace is the add up down the diagonal
align:start position:0%Trace is the add up down the diagonaland that matches a plus d and this this
align:start position:0%and that matches a plus d and this this
align:start position:0%and that matches a plus d and this thisone is the
align:start position:0%one is the
align:start position:0%one is theproduct of the igen values Lambda 1 *
align:start position:0%product of the igen values Lambda 1 *
align:start position:0%product of the igen values Lambda 1 *Lambda 2 so that's the product and
align:start position:0%Lambda 2 so that's the product and
align:start position:0%Lambda 2 so that's the product andthat's equal to the
align:start position:0%that's equal to the
align:start position:0%that's equal to thedeterminant of
align:start position:0%
align:start position:0% a I I I just making all the neat
align:start position:0%a I I I just making all the neat
align:start position:0%a I I I just making all the neatconnections that are sort of special for
align:start position:0%connections that are sort of special for
align:start position:0%connections that are sort of special for2x two right so that if I write down
align:start position:0%2x two right so that if I write down
align:start position:0%2x two right so that if I write downsome
align:start position:0%some
align:start position:0%somematrices we could look at them
align:start position:0%matrices we could look at them
align:start position:0%matrices we could look at themimmediately let let me write down a
align:start position:0%immediately let let me write down a
align:start position:0%immediately let let me write down amatrix suppose I write down that
align:start position:0%
align:start position:0% Matrix
align:start position:0%Matrix
align:start position:0%Matrixsay how how about oh I'll make them let
align:start position:0%say how how about oh I'll make them let
align:start position:0%say how how about oh I'll make them letme make them uh zero
align:start position:0%me make them uh zero
align:start position:0%me make them uh zeroone well
align:start position:0%one well
align:start position:0%one wellzero four ah let me let me improve this
align:start position:0%zero four ah let me let me improve this
align:start position:0%zero four ah let me let me improve thisa little 2 449
align:start position:0%a little 2 449
align:start position:0%a little 2 449do 442 it'd be even easier sorry
align:start position:0%do 442 it'd be even easier sorry
align:start position:0%do 442 it'd be even easier sorryokay I look at that
align:start position:0%okay I look at that
align:start position:0%okay I look at thatMatrix I see immediately that two I
align:start position:0%Matrix I see immediately that two I
align:start position:0%Matrix I see immediately that two Ivalues of that Matrix add to four 2 +
align:start position:0%values of that Matrix add to four 2 +
align:start position:0%values of that Matrix add to four 2 +two is four I to took the trace the two
align:start position:0%two is four I to took the trace the two
align:start position:0%two is four I to took the trace the twoI values of that Matrix multiply to the
align:start position:0%I values of that Matrix multiply to the
align:start position:0%I values of that Matrix multiply to thedeterminant which is 2 * 2 is 4 - 16 -
align:start position:0%determinant which is 2 * 2 is 4 - 16 -
align:start position:0%determinant which is 2 * 2 is 4 - 16 -12 so the so the sum here for that
align:start position:0%12 so the so the sum here for that
align:start position:0%12 so the so the sum here for thatMatrix would be
align:start position:0%Matrix would be
align:start position:0%Matrix would befour the determinant of that Matrix
align:start position:0%four the determinant of that Matrix
align:start position:0%four the determinant of that Matrixwould be 4 - 16 is
align:start position:0%would be 4 - 16 is
align:start position:0%would be 4 - 16 is-2 and maybe I can come up with the two
align:start position:0%-2 and maybe I can come up with the two
align:start position:0%-2 and maybe I can come up with the twonumbers that have add to four and
align:start position:0%numbers that have add to four and
align:start position:0%numbers that have add to four andmultiply to Min -12 I think actually I
align:start position:0%multiply to Min -12 I think actually I
align:start position:0%multiply to Min -12 I think actually Ithink that they are six and min-2 I
align:start position:0%think that they are six and min-2 I
align:start position:0%think that they are six and min-2 Ithink that the igen values here are 6
align:start position:0%think that the igen values here are 6
align:start position:0%think that the igen values here are 6and minus 2 because those up to four the
align:start position:0%and minus 2 because those up to four the
align:start position:0%and minus 2 because those up to four thetrace and they multiply 6 * -2 is -12
align:start position:0%trace and they multiply 6 * -2 is -12
align:start position:0%trace and they multiply 6 * -2 is -12that's the
align:start position:0%that's the
align:start position:0%that's thedeterminant 2 by two matrices you can
align:start position:0%determinant 2 by two matrices you can
align:start position:0%determinant 2 by two matrices you canyou have a good sh chance at sort of
align:start position:0%you have a good sh chance at sort of
align:start position:0%you have a good sh chance at sort ofseeing exactly what happens
align:start position:0%seeing exactly what happens
align:start position:0%seeing exactly what happensnow my
align:start position:0%now my
align:start position:0%now myinterest today for this video is to use
align:start position:0%interest today for this video is to use
align:start position:0%interest today for this video is to useall this use the igen values to decide
align:start position:0%all this use the igen values to decide
align:start position:0%all this use the igen values to decidestability stability means means that the
align:start position:0%stability stability means means that the
align:start position:0%stability stability means means that thedifferential
align:start position:0%differential
align:start position:0%differentialequation has solutions that go to
align:start position:0%equation has solutions that go to
align:start position:0%equation has solutions that go tozero and you we remember the
align:start position:0%zero and you we remember the
align:start position:0%zero and you we remember thesolutions are e to the St which is the
align:start position:0%solutions are e to the St which is the
align:start position:0%solutions are e to the St which is thesame as e to the Lambda T the S and the
align:start position:0%same as e to the Lambda T the S and the
align:start position:0%same as e to the Lambda T the S and theLambda both come from that same equation
align:start position:0%Lambda both come from that same equation
align:start position:0%Lambda both come from that same equationin the in the case of a second order
align:start position:0%in the in the case of a second order
align:start position:0%in the in the case of a second orderequation reduced to a companion Matrix
align:start position:0%equation reduced to a companion Matrix
align:start position:0%equation reduced to a companion Matrixso I'm interested
align:start position:0%so I'm interested
align:start position:0%so I'm interestedin when do the igen values when are the
align:start position:0%in when do the igen values when are the
align:start position:0%in when do the igen values when are theigen values negative when are the IG
align:start position:0%igen values negative when are the IG
align:start position:0%igen values negative when are the IGvalues negative or if they're complex
align:start position:0%values negative or if they're complex
align:start position:0%values negative or if they're complexnumbers when are their real Parts
align:start position:0%numbers when are their real Parts
align:start position:0%numbers when are their real Partsnegative so can we remember tra trace
align:start position:0%negative so can we remember tra trace
align:start position:0%negative so can we remember tra tracethe sum product the determinant and
align:start position:0%the sum product the determinant and
align:start position:0%the sum product the determinant andanswer the stability questions so I'm
align:start position:0%answer the stability questions so I'm
align:start position:0%answer the stability questions so I'mready for stability
align:start position:0%
align:start position:0% so stability
align:start position:0%so stability
align:start position:0%so stabilitymeans either Lambda 1 negative and
align:start position:0%means either Lambda 1 negative and
align:start position:0%means either Lambda 1 negative andLambda 2
align:start position:0%Lambda 2
align:start position:0%Lambda 2negative or this is in the real
align:start position:0%negative or this is in the real
align:start position:0%negative or this is in the realcase or in the complex
align:start position:0%
align:start position:0% case Lambda equals some real part plus
align:start position:0%case Lambda equals some real part plus
align:start position:0%case Lambda equals some real part plusand minus some imaginary
align:start position:0%and minus some imaginary
align:start position:0%and minus some imaginarypart then we want the real part to be
align:start position:0%part then we want the real part to be
align:start position:0%part then we want the real part to benegative real part of Lambda which is a
align:start position:0%negative real part of Lambda which is a
align:start position:0%negative real part of Lambda which is ashould be zero so that's our requirement
align:start position:0%should be zero so that's our requirement
align:start position:0%should be zero so that's our requirementif the I values are complex we get a
align:start position:0%if the I values are complex we get a
align:start position:0%if the I values are complex we get apair of them and we the real part should
align:start position:0%pair of them and we the real part should
align:start position:0%pair of them and we the real part shouldbe zero so that e to the the point about
align:start position:0%be zero so that e to the the point about
align:start position:0%be zero so that e to the the point aboutthis negative a was that e to the a t
align:start position:0%this negative a was that e to the a t
align:start position:0%this negative a was that e to the a twill go to
align:start position:0%will go to
align:start position:0%will go tozero the point about these negative
align:start position:0%zero the point about these negative
align:start position:0%zero the point about these negativelambdas is the e to the Lambda T will go
align:start position:0%lambdas is the e to the Lambda T will go
align:start position:0%lambdas is the e to the Lambda T will goto zero this is
align:start position:0%to zero this is
align:start position:0%to zero this isstability so my question
align:start position:0%stability so my question
align:start position:0%stability so my questionis what's the
align:start position:0%is what's the
align:start position:0%is what's thetest on The Matrix that decides this
align:start position:0%test on The Matrix that decides this
align:start position:0%test on The Matrix that decides thisabout the I values what do we what do we
align:start position:0%about the I values what do we what do we
align:start position:0%about the I values what do we what do wecan we look at the Matrix maybe we don't
align:start position:0%can we look at the Matrix maybe we don't
align:start position:0%can we look at the Matrix maybe we don'thave to find those igen values maybe we
align:start position:0%have to find those igen values maybe we
align:start position:0%have to find those igen values maybe wecan use the fact again the fact is that
align:start position:0%can use the fact again the fact is that
align:start position:0%can use the fact again the fact is thatLambda 1 + Lambda 2 is the trace
align:start position:0%Lambda 1 + Lambda 2 is the trace
align:start position:0%Lambda 1 + Lambda 2 is the traceand Lambda 1 * Lambda 2 is the
align:start position:0%and Lambda 1 * Lambda 2 is the
align:start position:0%and Lambda 1 * Lambda 2 is thedeterminant and we can read those
align:start position:0%determinant and we can read those
align:start position:0%determinant and we can read thosenumbers off from the
align:start position:0%numbers off from the
align:start position:0%numbers off from theMatrix then there's a quadratic equation
align:start position:0%Matrix then there's a quadratic equation
align:start position:0%Matrix then there's a quadratic equationbut if we only want to
align:start position:0%but if we only want to
align:start position:0%but if we only want toknow information like are the igen
align:start position:0%know information like are the igen
align:start position:0%know information like are the igenvalues negative are their real Parts
align:start position:0%values negative are their real Parts
align:start position:0%values negative are their real Partsnegative we can get that information
align:start position:0%negative we can get that information
align:start position:0%negative we can get that informationfrom these numbers without going
align:start position:0%from these numbers without going
align:start position:0%from these numbers without goingto the finding the igen values from that
align:start position:0%to the finding the igen values from that
align:start position:0%to the finding the igen values from thatquadratic equation wouldn't be that hard
align:start position:0%quadratic equation wouldn't be that hard
align:start position:0%quadratic equation wouldn't be that hardto do but we don't have to do it okay so
align:start position:0%to do but we don't have to do it okay so
align:start position:0%to do but we don't have to do it okay sosuppose we have two negative I values
align:start position:0%suppose we have two negative I values
align:start position:0%suppose we have two negative I valuesthen
align:start position:0%then
align:start position:0%thencertainly this would mean the
align:start position:0%certainly this would mean the
align:start position:0%certainly this would mean thetrace would be
align:start position:0%trace would be
align:start position:0%trace would benegative because the trace is the sum of
align:start position:0%negative because the trace is the sum of
align:start position:0%negative because the trace is the sum ofthe I values if those are both negative
align:start position:0%the I values if those are both negative
align:start position:0%the I values if those are both negativeTrace is negative
align:start position:0%Trace is negative
align:start position:0%Trace is negativeso we can check about the trace just
align:start position:0%so we can check about the trace just
align:start position:0%so we can check about the trace justright away what about the determinant if
align:start position:0%right away what about the determinant if
align:start position:0%right away what about the determinant ifthat's negative and that's negative then
align:start position:0%that's negative and that's negative then
align:start position:0%that's negative and that's negative thenthe multiplying those will give a
align:start position:0%the multiplying those will give a
align:start position:0%the multiplying those will give apositive number so the determinant
align:start position:0%positive number so the determinant
align:start position:0%positive number so the determinantshould be positive
align:start position:0%should be positive
align:start position:0%should be positivesoace less than zero
align:start position:0%soace less than zero
align:start position:0%soace less than zerodeterminant greater than zero that is
align:start position:0%determinant greater than zero that is
align:start position:0%determinant greater than zero that isthe stability test that's the stability
align:start position:0%
align:start position:0% test stable
align:start position:0%
align:start position:0% the 2x two Matrix a b c d if its Trace
align:start position:0%the 2x two Matrix a b c d if its Trace
align:start position:0%the 2x two Matrix a b c d if its Traceis negative and it's determined is
align:start position:0%is negative and it's determined is
align:start position:0%is negative and it's determined ispositive is stable that's the test and
align:start position:0%positive is stable that's the test and
align:start position:0%positive is stable that's the test andactually it works also if Lambda comes
align:start position:0%actually it works also if Lambda comes
align:start position:0%actually it works also if Lambda comesout complex because Lambda 1 + Lambda
align:start position:0%out complex because Lambda 1 + Lambda
align:start position:0%out complex because Lambda 1 + Lambda2 Lambda 1 is a plus I Omega Lambda 2 is
align:start position:0%2 Lambda 1 is a plus I Omega Lambda 2 is
align:start position:0%2 Lambda 1 is a plus I Omega Lambda 2 isa minus Omega the sum is just 2 a
align:start position:0%a minus Omega the sum is just 2 a
align:start position:0%a minus Omega the sum is just 2 aand we want that to be negative so again
align:start position:0%and we want that to be negative so again
align:start position:0%and we want that to be negative so againTrace
align:start position:0%Trace
align:start position:0%Tracenegative Trace negative even whe if if
align:start position:0%negative Trace negative even whe if if
align:start position:0%negative Trace negative even whe if ifthe roots are real or if they're complex
align:start position:0%the roots are real or if they're complex
align:start position:0%the roots are real or if they're complexthat still tells us that the sum of the
align:start position:0%that still tells us that the sum of the
align:start position:0%that still tells us that the sum of theroots is negative and the determinant
align:start position:0%roots is negative and the determinant
align:start position:0%roots is negative and the determinantalso works if A+ I I Omega * a minus I
align:start position:0%also works if A+ I I Omega * a minus I
align:start position:0%also works if A+ I I Omega * a minus IOmega in this case Lambda 1 * Lambda 2
align:start position:0%Omega in this case Lambda 1 * Lambda 2
align:start position:0%Omega in this case Lambda 1 * Lambda 2If I multiply those numbers I get a 2 +
align:start position:0%If I multiply those numbers I get a 2 +
align:start position:0%If I multiply those numbers I get a 2 +Omega
align:start position:0%Omega
align:start position:0%Omegas with a plus so that would be positive
align:start position:0%s with a plus so that would be positive
align:start position:0%s with a plus so that would be positiveand we're good okay so my conclusion
align:start position:0%and we're good okay so my conclusion
align:start position:0%and we're good okay so my conclusionis this is the test for stability and I
align:start position:0%is this is the test for stability and I
align:start position:0%is this is the test for stability and Ican apply it to a few matrices I wrote
align:start position:0%can apply it to a few matrices I wrote
align:start position:0%can apply it to a few matrices I wrotedown a few matrices uh can I
align:start position:0%down a few matrices uh can I
align:start position:0%down a few matrices uh can Ijust look at that test can you look at
align:start position:0%just look at that test can you look at
align:start position:0%just look at that test can you look atthat test and just apply it to see
align:start position:0%
align:start position:0% uh so here's an example uh say
align:start position:0%uh so here's an example uh say
align:start position:0%uh so here's an example uh say-2 -1 3 and 4 is that any good the trace
align:start position:0%-2 -1 3 and 4 is that any good the trace
align:start position:0%-2 -1 3 and 4 is that any good the traceis min -3 that's good the determinant is
align:start position:0%is min -3 that's good the determinant is
align:start position:0%is min -3 that's good the determinant is2 - 12 - 10 that's bad that's bad so I
align:start position:0%2 - 12 - 10 that's bad that's bad so I
align:start position:0%2 - 12 - 10 that's bad that's bad so Ibetter if I so that would be unstable
align:start position:0%better if I so that would be unstable
align:start position:0%better if I so that would be unstablethe determinant that that has a negative
align:start position:0%the determinant that that has a negative
align:start position:0%the determinant that that has a negativedeterminant unstable so so I'll put an X
align:start position:0%determinant unstable so so I'll put an X
align:start position:0%determinant unstable so so I'll put an Xthrough that unstable let me take a
align:start position:0%through that unstable let me take a
align:start position:0%through that unstable let me take astable one stable one I'm going to want
align:start position:0%stable one stable one I'm going to want
align:start position:0%stable one stable one I'm going to wantlike Min
align:start position:0%like Min
align:start position:0%like Min-5 and one let's say that's okay the
align:start position:0%-5 and one let's say that's okay the
align:start position:0%-5 and one let's say that's okay thetrace is negative minus 4 and now I want
align:start position:0%trace is negative minus 4 and now I want
align:start position:0%trace is negative minus 4 and now I wantto keep make the determinant positive so
align:start position:0%to keep make the determinant positive so
align:start position:0%to keep make the determinant positive somaybe I better put like 6 and -
align:start position:0%maybe I better put like 6 and -
align:start position:0%maybe I better put like 6 and -7 just picking numbers so now the
align:start position:0%7 just picking numbers so now the
align:start position:0%7 just picking numbers so now thedeterminant is min
align:start position:0%determinant is min
align:start position:0%determinant is min-5
align:start position:0%-5
align:start position:0%-5plus
align:start position:0%plus
align:start position:0%plus42 a big positive number and the
align:start position:0%42 a big positive number and the
align:start position:0%42 a big positive number and thedeterminant test is passed so that is
align:start position:0%determinant test is passed so that is
align:start position:0%determinant test is passed so that isokay that one would be stable The
align:start position:0%okay that one would be stable The
align:start position:0%okay that one would be stable TheMatrix if if this was my Matrix a then
align:start position:0%Matrix if if this was my Matrix a then
align:start position:0%Matrix if if this was my Matrix a thenthe solutions to Dy dtal a y y Prime
align:start position:0%the solutions to Dy dtal a y y Prime
align:start position:0%the solutions to Dy dtal a y y Primeequal a y is my differential equation
align:start position:0%equal a y is my differential equation
align:start position:0%equal a y is my differential equationthe two solutions which would track the
align:start position:0%the two solutions which would track the
align:start position:0%the two solutions which would track theigen vectors would have negative
align:start position:0%igen vectors would have negative
align:start position:0%igen vectors would have negativelambdas negative lambdas because the
align:start position:0%lambdas negative lambdas because the
align:start position:0%lambdas negative lambdas because thetrace is negative and the determinant is
align:start position:0%trace is negative and the determinant is
align:start position:0%trace is negative and the determinant ispositive passes the stability test and
align:start position:0%positive passes the stability test and
align:start position:0%positive passes the stability test andthe solutions would go to minus
align:start position:0%the solutions would go to minus
align:start position:0%the solutions would go to minusinfinity okay that's 2 by tws thank you123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619align:start position:0% in this segment we want to reinforce the
align:start position:0%in this segment we want to reinforce the
align:start position:0%in this segment we want to reinforce themessage that how you choose to sample
align:start position:0%message that how you choose to sample
align:start position:0%message that how you choose to samplecan give different results and the
align:start position:0%can give different results and the
align:start position:0%can give different results and thechoice of sampling is important suppose
align:start position:0%choice of sampling is important suppose
align:start position:0%choice of sampling is important supposeyou're interested in measuring the
align:start position:0%you're interested in measuring the
align:start position:0%you're interested in measuring theaverage family size in some population
align:start position:0%average family size in some population
align:start position:0%average family size in some populationsuppose that there are families that are
align:start position:0%suppose that there are families that are
align:start position:0%suppose that there are families that aresmall and have just one person in them
align:start position:0%small and have just one person in them
align:start position:0%small and have just one person in themand there's also a family that has many
align:start position:0%and there's also a family that has many
align:start position:0%and there's also a family that has manypeople in it what does it mean to
align:start position:0%people in it what does it mean to
align:start position:0%people in it what does it mean tomeasure the average family size one
align:start position:0%measure the average family size one
align:start position:0%measure the average family size onepossibility is to pick at random a
align:start position:0%possibility is to pick at random a
align:start position:0%possibility is to pick at random afamily each family being chosen with
align:start position:0%family each family being chosen with
align:start position:0%family each family being chosen withequal probability and talk about the
align:start position:0%equal probability and talk about the
align:start position:0%equal probability and talk about theexpected value that you get or the
align:start position:0%expected value that you get or the
align:start position:0%expected value that you get or theaverage value if you sample that way in
align:start position:0%average value if you sample that way in
align:start position:0%average value if you sample that way inthis particular example with probability
align:start position:0%this particular example with probability
align:start position:0%this particular example with probability1/4 you get the one with revealty 1/4
align:start position:0%1/4 you get the one with revealty 1/4
align:start position:0%1/4 you get the one with revealty 1/4you get the one with probability 1/4 you
align:start position:0%you get the one with probability 1/4 you
align:start position:0%you get the one with probability 1/4 youget a 1 so the answer would be with
align:start position:0%get a 1 so the answer would be with
align:start position:0%get a 1 so the answer would be withprobability 3/4 you get a 1 and with
align:start position:0%probability 3/4 you get a 1 and with
align:start position:0%probability 3/4 you get a 1 and withprobability 1/4 you get a 6 but suppose
align:start position:0%probability 1/4 you get a 6 but suppose
align:start position:0%probability 1/4 you get a 6 but supposethat instead you pick a person at random
align:start position:0%that instead you pick a person at random
align:start position:0%that instead you pick a person at randomand you ask that person how big is your
align:start position:0%and you ask that person how big is your
align:start position:0%and you ask that person how big is yourfamily what's the expected value of the
align:start position:0%family what's the expected value of the
align:start position:0%family what's the expected value of theanswer you are going to get here we have
align:start position:0%answer you are going to get here we have
align:start position:0%answer you are going to get here we have9 people out of those nine people three
align:start position:0%9 people out of those nine people three
align:start position:0%9 people out of those nine people threeof them will give you an answer my
align:start position:0%of them will give you an answer my
align:start position:0%of them will give you an answer myfamily has size 1 and 6 of those people
align:start position:0%family has size 1 and 6 of those people
align:start position:0%family has size 1 and 6 of those peoplewill give you an answer my family has a
align:start position:0%will give you an answer my family has a
align:start position:0%will give you an answer my family has asize of 6 and this number is going to be
align:start position:0%size of 6 and this number is going to be
align:start position:0%size of 6 and this number is going to belarger than the previous number you're
align:start position:0%larger than the previous number you're
align:start position:0%larger than the previous number you'regoing to get different answers so it is
align:start position:0%going to get different answers so it is
align:start position:0%going to get different answers so it ispossible to have a situation where you
align:start position:0%possible to have a situation where you
align:start position:0%possible to have a situation where youcan make a statement such as the
align:start position:0%can make a statement such as the
align:start position:0%can make a statement such as thefollowing the average family size is 3
align:start position:0%following the average family size is 3
align:start position:0%following the average family size is 3but the average person lives in a family
align:start position:0%but the average person lives in a family
align:start position:0%but the average person lives in a familyof size 4 there is no contradiction
align:start position:0%of size 4 there is no contradiction
align:start position:0%of size 4 there is no contradictionbetween these two statements because
align:start position:0%between these two statements because
align:start position:0%between these two statements becausewe're measuring different things another
align:start position:0%we're measuring different things another
align:start position:0%we're measuring different things anotherexample of the same flavor you're
align:start position:0%example of the same flavor you're
align:start position:0%example of the same flavor you'reinterested in the average bus occupancy
align:start position:0%interested in the average bus occupancy
align:start position:0%interested in the average bus occupancyyou're
align:start position:0%you're
align:start position:0%you'reinterested in whether buses are crowded
align:start position:0%interested in whether buses are crowded
align:start position:0%interested in whether buses are crowdedor not in your city one way of carrying
align:start position:0%or not in your city one way of carrying
align:start position:0%or not in your city one way of carryingout this calculation is to pick buses at
align:start position:0%out this calculation is to pick buses at
align:start position:0%out this calculation is to pick buses atrandom each bus is equally likely to be
align:start position:0%random each bus is equally likely to be
align:start position:0%random each bus is equally likely to bepicked and see how many people are
align:start position:0%picked and see how many people are
align:start position:0%picked and see how many people areriding this bus another possibility is
align:start position:0%riding this bus another possibility is
align:start position:0%riding this bus another possibility isto take a typical passenger a random
align:start position:0%to take a typical passenger a random
align:start position:0%to take a typical passenger a randompassenger and ask them how crowded was
align:start position:0%passenger and ask them how crowded was
align:start position:0%passenger and ask them how crowded wasyour bus take an extreme case suppose
align:start position:0%your bus take an extreme case suppose
align:start position:0%your bus take an extreme case supposethat half of the buses have zero people
align:start position:0%that half of the buses have zero people
align:start position:0%that half of the buses have zero peoplein them and half of the buses have 50
align:start position:0%in them and half of the buses have 50
align:start position:0%in them and half of the buses have 50people in them if you look at random
align:start position:0%people in them if you look at random
align:start position:0%people in them if you look at randombuses then the average occupancy would
align:start position:0%buses then the average occupancy would
align:start position:0%buses then the average occupancy wouldbe 25 but if you ask passengers all of
align:start position:0%be 25 but if you ask passengers all of
align:start position:0%be 25 but if you ask passengers all ofthe passengers would report 50 and it
align:start position:0%the passengers would report 50 and it
align:start position:0%the passengers would report 50 and itwould be again a different answer
align:start position:0%would be again a different answer
align:start position:0%would be again a different answera similar situation is if you are
align:start position:0%a similar situation is if you are
align:start position:0%a similar situation is if you aretalking about average class sizes one
align:start position:0%talking about average class sizes one
align:start position:0%talking about average class sizes onemethod is to look at all the classes see
align:start position:0%method is to look at all the classes see
align:start position:0%method is to look at all the classes seehow many students there are in each
align:start position:0%how many students there are in each
align:start position:0%how many students there are in eachclass and take the average another
align:start position:0%class and take the average another
align:start position:0%class and take the average anothermethod would be to ask a typical student
align:start position:0%method would be to ask a typical student
align:start position:0%method would be to ask a typical studenthow large is your class because more
align:start position:0%how large is your class because more
align:start position:0%how large is your class because morestudents are in large classes when you
align:start position:0%students are in large classes when you
align:start position:0%students are in large classes when youpick a student at random you are likely
align:start position:0%pick a student at random you are likely
align:start position:0%pick a student at random you are likelyto get a higher answer as opposed to
align:start position:0%to get a higher answer as opposed to
align:start position:0%to get a higher answer as opposed towhen you look at a random class the
align:start position:0%when you look at a random class the
align:start position:0%when you look at a random class themoral from all these examples is that it
align:start position:0%moral from all these examples is that it
align:start position:0%moral from all these examples is that itis very important to be careful about
align:start position:0%is very important to be careful about
align:start position:0%is very important to be careful aboutwhat you choose to sample when you pick
align:start position:0%what you choose to sample when you pick
align:start position:0%what you choose to sample when you pickat random what exactly are you picking
align:start position:0%at random what exactly are you picking
align:start position:0%at random what exactly are you pickingat random and you need to be aware that
align:start position:0%at random and you need to be aware that
align:start position:0%at random and you need to be aware thatdifferent sampling methods measure
align:start position:0%different sampling methods measure
align:start position:0%different sampling methods measuredifferent things and will generally give
align:start position:0%different things and will generally give
align:start position:0%different things and will generally giveyou different results123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995align:start position:0% levenson's
align:start position:0%levenson's
align:start position:0%levenson'stheorem um in terms of
align:start position:0%theorem um in terms of
align:start position:0%theorem um in terms ofderivations that we do in this course in
align:start position:0%derivations that we do in this course in
align:start position:0%derivations that we do in this course inone of me this is probably the most
align:start position:0%one of me this is probably the most
align:start position:0%one of me this is probably the mostsubtle derivation of the
align:start position:0%subtle derivation of the
align:start position:0%subtle derivation of thesemester uh it's not difficult but it's
align:start position:0%semester uh it's not difficult but it's
align:start position:0%semester uh it's not difficult but it'skind of uh interesting and a little
align:start position:0%kind of uh interesting and a little
align:start position:0%kind of uh interesting and a littlesubtle and um it's
align:start position:0%subtle and um it's
align:start position:0%subtle and um it'svery curious because it relates two
align:start position:0%very curious because it relates two
align:start position:0%very curious because it relates twothings that seem to be fairly
align:start position:0%things that seem to be fairly
align:start position:0%things that seem to be fairlyunrelated but uh the key thing that one
align:start position:0%unrelated but uh the key thing that one
align:start position:0%unrelated but uh the key thing that onehas to use you have to use something how
align:start position:0%has to use you have to use something how
align:start position:0%has to use you have to use something howall of the sudden you're going to relate
align:start position:0%all of the sudden you're going to relate
align:start position:0%all of the sudden you're going to relatephase shifts to bound
align:start position:0%phase shifts to bound
align:start position:0%phase shifts to boundStates the one thing you have to imagine
align:start position:0%States the one thing you have to imagine
align:start position:0%States the one thing you have to imagineis that if you have a
align:start position:0%is that if you have a
align:start position:0%is that if you have apotential and you
align:start position:0%potential and you
align:start position:0%potential and youhave states of a potential if the
align:start position:0%have states of a potential if the
align:start position:0%have states of a potential if thepotential
align:start position:0%potential
align:start position:0%potentialchanges the states change
align:start position:0%changes the states change
align:start position:0%changes the states changeBut Here Comes something very
align:start position:0%But Here Comes something very
align:start position:0%But Here Comes something verynice they never appear or
align:start position:0%nice they never appear or
align:start position:0%nice they never appear ordisappear and this is something probably
align:start position:0%disappear and this is something probably
align:start position:0%disappear and this is something probablyyou haven't thought about this all that
align:start position:0%you haven't thought about this all that
align:start position:0%you haven't thought about this all thatmuch because you had for
align:start position:0%much because you had for
align:start position:0%much because you had forexample a square finite Square
align:start position:0%example a square finite Square
align:start position:0%example a square finite Squarewell if you made it more deep you got
align:start position:0%well if you made it more deep you got
align:start position:0%well if you made it more deep you gotmore bound States if you made it less
align:start position:0%more bound States if you made it less
align:start position:0%more bound States if you made it lessdeep the boun St disappear what does it
align:start position:0%deep the boun St disappear what does it
align:start position:0%deep the boun St disappear what does itmean the boun St disappear
align:start position:0%mean the boun St disappear
align:start position:0%mean the boun St disappearnothing really can disappear what really
align:start position:0%nothing really can disappear what really
align:start position:0%nothing really can disappear what reallyis happening if you have the bound the
align:start position:0%is happening if you have the bound the
align:start position:0%is happening if you have the bound thesquare well you have a couple of bound
align:start position:0%square well you have a couple of bound
align:start position:0%square well you have a couple of boundStates
align:start position:0%States
align:start position:0%Statessay but then you have an
align:start position:0%say but then you have an
align:start position:0%say but then you have anInfinity of scattering
align:start position:0%
align:start position:0% States and as you make this potential
align:start position:0%States and as you make this potential
align:start position:0%States and as you make this potentialless
align:start position:0%less
align:start position:0%lessshallow the last bound state is
align:start position:0%shallow the last bound state is
align:start position:0%shallow the last bound state isapproaching here and at one stage
align:start position:0%approaching here and at one stage
align:start position:0%approaching here and at one stagechanges identity and becomes a
align:start position:0%changes identity and becomes a
align:start position:0%changes identity and becomes ascattering
align:start position:0%scattering
align:start position:0%scatteringstate but it never gets lost and how
align:start position:0%state but it never gets lost and how
align:start position:0%state but it never gets lost and howwhen you make this deeper and deeper you
align:start position:0%when you make this deeper and deeper you
align:start position:0%when you make this deeper and deeper youget more States is the scattering State
align:start position:0%get more States is the scattering State
align:start position:0%get more States is the scattering Statesuddenly borrowing lend in you estate
align:start position:0%suddenly borrowing lend in you estate
align:start position:0%suddenly borrowing lend in you estatethat goes
align:start position:0%that goes
align:start position:0%that goesdown the states never get lost or
align:start position:0%down the states never get lost or
align:start position:0%down the states never get lost ordisappear and you would say how could
align:start position:0%disappear and you would say how could
align:start position:0%disappear and you would say how couldyou demonstrate that that sounds like
align:start position:0%you demonstrate that that sounds like
align:start position:0%you demonstrate that that sounds likescience fiction because there's
align:start position:0%science fiction because there's
align:start position:0%science fiction because there'sinfinitely many states here how do you
align:start position:0%infinitely many states here how do you
align:start position:0%infinitely many states here how do youknow it borrowed one well you can do it
align:start position:0%know it borrowed one well you can do it
align:start position:0%know it borrowed one well you can do itby putting it in a very large box and
align:start position:0%by putting it in a very large box and
align:start position:0%by putting it in a very large box andthen the states here are going to be
align:start position:0%then the states here are going to be
align:start position:0%then the states here are going to befinitely countable and discrete and then
align:start position:0%finitely countable and discrete and then
align:start position:0%finitely countable and discrete and thenyou can track and see indeed how the
align:start position:0%you can track and see indeed how the
align:start position:0%you can track and see indeed how thestates become bound so you never lose or
align:start position:0%states become bound so you never lose or
align:start position:0%states become bound so you never lose orgain
align:start position:0%gain
align:start position:0%gainStates and that's a very very powerful
align:start position:0%States and that's a very very powerful
align:start position:0%States and that's a very very powerfulstatement about Quantum States in a
align:start position:0%statement about Quantum States in a
align:start position:0%statement about Quantum States in asystem so this is what we're going to
align:start position:0%system so this is what we're going to
align:start position:0%system so this is what we're going toneed to prove levenson's
align:start position:0%
align:start position:0% theorem so levenson's
align:start position:0%
align:start position:0% theorem
align:start position:0%
align:start position:0% theorem so it relates the number of
align:start position:0%theorem so it relates the number of
align:start position:0%theorem so it relates the number ofbound states of the potential to the
align:start position:0%bound states of the potential to the
align:start position:0%bound states of the potential to theexcur
align:start position:0%excur
align:start position:0%excurof the phase
align:start position:0%of the phase
align:start position:0%of the phaseshift um so let's state it
align:start position:0%shift um so let's state it
align:start position:0%shift um so let's state itum
align:start position:0%
align:start position:0% completely it
align:start position:0%
align:start position:0% relates the
align:start position:0%relates the
align:start position:0%relates thenumber n of bound
align:start position:0%
align:start position:0% states of the potential
align:start position:0%
align:start position:0% to the
align:start position:0%to the
align:start position:0%to theExcursion
align:start position:0%Excursion
align:start position:0%Excursion[Music]
align:start position:0%[Music]
align:start position:0%[Music]excur of the
align:start position:0%excur of the
align:start position:0%excur of theface
align:start position:0%face
align:start position:0%facefrom E = 0 to eal Infinity so in other
align:start position:0%from E = 0 to eal Infinity so in other
align:start position:0%from E = 0 to eal Infinity so in otherwords it says that n is 1 / piun Delta
align:start position:0%words it says that n is 1 / piun Delta
align:start position:0%words it says that n is 1 / piun Deltaof 0- Delta of INF
align:start position:0%of 0- Delta of INF
align:start position:0%of 0- Delta of INFInfinity the number of bound states of
align:start position:0%Infinity the number of bound states of
align:start position:0%Infinity the number of bound states ofyour
align:start position:0%your
align:start position:0%yourpotential
align:start position:0%potential
align:start position:0%potentialis predicted by the behavior of the
align:start position:0%is predicted by the behavior of the
align:start position:0%is predicted by the behavior of thephase shift of
align:start position:0%phase shift of
align:start position:0%phase shift ofscattering so how do we do
align:start position:0%scattering so how do we do
align:start position:0%scattering so how do we dothis this is what we want to
align:start position:0%this this is what we want to
align:start position:0%this this is what we want toprove so consider again our
align:start position:0%
align:start position:0% potential of range
align:start position:0%potential of range
align:start position:0%potential of ranger and zero here and here is
align:start position:0%
align:start position:0% X
align:start position:0%X
align:start position:0%Xand I want you to be able to count
align:start position:0%and I want you to be able to count
align:start position:0%and I want you to be able to countStates but the scattering states are a
align:start position:0%States but the scattering states are a
align:start position:0%States but the scattering states are acontinuous set of States so in order to
align:start position:0%continuous set of States so in order to
align:start position:0%continuous set of States so in order tocount
align:start position:0%
align:start position:0% States we're going to put a wall here as
align:start position:0%States we're going to put a wall here as
align:start position:0%States we're going to put a wall here aswell at some big distance L much bigger
align:start position:0%well at some big distance L much bigger
align:start position:0%well at some big distance L much biggerthan a than r
align:start position:0%
align:start position:0% and we're going to therefore now the
align:start position:0%and we're going to therefore now the
align:start position:0%and we're going to therefore now thestates are going to be quantized they're
align:start position:0%states are going to be quantized they're
align:start position:0%states are going to be quantized they'renot going to be quite scattering States
align:start position:0%not going to be quite scattering States
align:start position:0%not going to be quite scattering Statesthey're going to look like scattering
align:start position:0%they're going to look like scattering
align:start position:0%they're going to look like scatteringStates but they're precisely in a way
align:start position:0%States but they're precisely in a way
align:start position:0%States but they're precisely in a waythat they vanish at this
align:start position:0%that they vanish at this
align:start position:0%that they vanish at thispoint now you would say okay that's
align:start position:0%point now you would say okay that's
align:start position:0%point now you would say okay that'salready a little dangerous to be or
align:start position:0%already a little dangerous to be or
align:start position:0%already a little dangerous to be oryou've change the problem a little yes
align:start position:0%you've change the problem a little yes
align:start position:0%you've change the problem a little yesbut we're going to do the analysis and
align:start position:0%but we're going to do the analysis and
align:start position:0%but we're going to do the analysis andsee if the result depends on L if it
align:start position:0%see if the result depends on L if it
align:start position:0%see if the result depends on L if itdoesn't depend on L and L is very large
align:start position:0%doesn't depend on L and L is very large
align:start position:0%doesn't depend on L and L is very largewe'll take the limit as L goes to
align:start position:0%we'll take the limit as L goes to
align:start position:0%we'll take the limit as L goes toinfinity and we claim we have an
align:start position:0%infinity and we claim we have an
align:start position:0%infinity and we claim we have ananswer so um so we add the L is a
align:start position:0%answer so um so we add the L is a
align:start position:0%answer so um so we add the L is aregulator
align:start position:0%regulator
align:start position:0%regulatorregulator to
align:start position:0%regulator to
align:start position:0%regulator toavoid a
align:start position:0%avoid a
align:start position:0%avoid aContinuum continuum
align:start position:0%
align:start position:0% of
align:start position:0%
align:start position:0% states to avoid a Continuum of
align:start position:0%states to avoid a Continuum of
align:start position:0%states to avoid a Continuum ofStates
align:start position:0%
align:start position:0% so all right so let's begin to
align:start position:0%so all right so let's begin to
align:start position:0%so all right so let's begin tocount to count this thing we start with
align:start position:0%count to count this thing we start with
align:start position:0%count to count this thing we start withthe case where there's no
align:start position:0%the case where there's no
align:start position:0%the case where there's nopotential again
align:start position:0%
align:start position:0% and why is that because we're going to
align:start position:0%and why is that because we're going to
align:start position:0%and why is that because we're going totry to compare the situation with no
align:start position:0%try to compare the situation with no
align:start position:0%try to compare the situation with nopotential to the situation with
align:start position:0%potential to the situation with
align:start position:0%potential to the situation withpotential so imagine
align:start position:0%potential so imagine
align:start position:0%potential so imaginelet V identically zero no
align:start position:0%let V identically zero no
align:start position:0%let V identically zero nopotential and
align:start position:0%potential and
align:start position:0%potential andconsider
align:start position:0%consider
align:start position:0%considerpositive
align:start position:0%positive
align:start position:0%positiveenergy states these are the only states
align:start position:0%energy states these are the only states
align:start position:0%energy states these are the only statesthat exist there are no bound States
align:start position:0%that exist there are no bound States
align:start position:0%that exist there are no bound Statesbecause the
align:start position:0%because the
align:start position:0%because thepotential is
align:start position:0%potential is
align:start position:0%potential iszero well the solutions were found
align:start position:0%zero well the solutions were found
align:start position:0%zero well the solutions were foundbefore we mentioned that these are what
align:start position:0%before we mentioned that these are what
align:start position:0%before we mentioned that these are whatwe call 5 of X or sine of
align:start position:0%we call 5 of X or sine of
align:start position:0%we call 5 of X or sine ofKX but now we require that F of L is
align:start position:0%KX but now we require that F of L is
align:start position:0%KX but now we require that F of L isequal to zero because we do have the
align:start position:0%equal to zero because we do have the
align:start position:0%equal to zero because we do have thewall there and therefore
align:start position:0%
align:start position:0% s of KL must be zero and K
align:start position:0%
align:start position:0% L must be n pi and N is from one 2 to
align:start position:0%L must be n pi and N is from one 2 to
align:start position:0%L must be n pi and N is from one 2 toInfinity you know we manage with the
align:start position:0%Infinity you know we manage with the
align:start position:0%Infinity you know we manage with thewall to discretize the
align:start position:0%wall to discretize the
align:start position:0%wall to discretize thestate because the whole world is now an
align:start position:0%state because the whole world is now an
align:start position:0%state because the whole world is now aninfinite a very big box not infinite but
align:start position:0%infinite a very big box not infinite but
align:start position:0%infinite a very big box not infinite butvery big so you discrete the state the
align:start position:0%very big so you discrete the state the
align:start position:0%very big so you discrete the state theseparations are microelectron volt but
align:start position:0%separations are microelectron volt but
align:start position:0%separations are microelectron volt butthey are discrete you can count
align:start position:0%they are discrete you can count
align:start position:0%they are discrete you can countthem and then uh with this States over
align:start position:0%them and then uh with this States over
align:start position:0%them and then uh with this States overhere um we think of counting them and
align:start position:0%here um we think of counting them and
align:start position:0%here um we think of counting them andyou say well I can count them with n so
align:start position:0%you say well I can count them with n so
align:start position:0%you say well I can count them with n soif I imagine the K
align:start position:0%if I imagine the K
align:start position:0%if I imagine the Kline from zero to INF well there States
align:start position:0%line from zero to INF well there States
align:start position:0%line from zero to INF well there Statesall over
align:start position:0%
align:start position:0% all the values of K and I could say well
align:start position:0%all the values of K and I could say well
align:start position:0%all the values of K and I could say wellI even want to see how many states there
align:start position:0%I even want to see how many states there
align:start position:0%I even want to see how many states thereare in a little element
align:start position:0%
align:start position:0% DK and for that uh you would have the DK
align:start position:0%DK and for that uh you would have the DK
align:start position:0%DK and for that uh you would have the DKtaking differential here is
align:start position:0%taking differential here is
align:start position:0%taking differential here isDN time Pi so uh the number of states
align:start position:0%DN time Pi so uh the number of states
align:start position:0%DN time Pi so uh the number of statesthat there are in DK DN let me write it
align:start position:0%that there are in DK DN let me write it
align:start position:0%that there are in DK DN let me write ithere d n equals L over Pi
align:start position:0%here d n equals L over Pi
align:start position:0%here d n equals L over PiDK is the
align:start position:0%DK is the
align:start position:0%DK is thenumber of
align:start position:0%number of
align:start position:0%number ofpositive
align:start position:0%positive
align:start position:0%positiveenergy
align:start position:0%energy
align:start position:0%energystates
align:start position:0%states
align:start position:0%statesin
align:start position:0%
align:start position:0% DC in the range DC in the range of
align:start position:0%DC in the range DC in the range of
align:start position:0%DC in the range DC in the range ofmomentum decay in that little interval
align:start position:0%momentum decay in that little interval
align:start position:0%momentum decay in that little intervalthere are that many positive energy
align:start position:0%
align:start position:0% state so far so
align:start position:0%
align:start position:0% good let
align:start position:0%
align:start position:0% me all right so now let's
align:start position:0%me all right so now let's
align:start position:0%me all right so now let'sconsider the real case repeat for
align:start position:0%consider the real case repeat for
align:start position:0%consider the real case repeat forthe case there is a
align:start position:0%
align:start position:0% [Applause]
align:start position:0%
align:start position:0% potential well you would say well I
align:start position:0%potential well you would say well I
align:start position:0%potential well you would say well Idon't know how to count I have to solve
align:start position:0%don't know how to count I have to solve
align:start position:0%don't know how to count I have to solvethe problem of the potential makes a
align:start position:0%the problem of the potential makes a
align:start position:0%the problem of the potential makes adifference but no you do know how to
align:start position:0%difference but no you do know how to
align:start position:0%difference but no you do know how tocount so
align:start position:0%
align:start position:0% repeat
align:start position:0%repeat
align:start position:0%repeatfor be different from
align:start position:0%for be different from
align:start position:0%for be different fromzero this time we have a solution for X
align:start position:0%zero this time we have a solution for X
align:start position:0%zero this time we have a solution for Xgreater than R we know the solution this
align:start position:0%greater than R we know the solution this
align:start position:0%greater than R we know the solution thisis our Universal solution with the face
align:start position:0%is our Universal solution with the face
align:start position:0%is our Universal solution with the faceshift so there you have that s of X is e
align:start position:0%shift so there you have that s of X is e
align:start position:0%shift so there you have that s of X is eto the I Delta sin
align:start position:0%to the I Delta sin
align:start position:0%to the I Delta sinkx+ Delta of
align:start position:0%kx+ Delta of
align:start position:0%kx+ Delta ofK that's the
align:start position:0%
align:start position:0% solution yes you have the solution
align:start position:0%solution yes you have the solution
align:start position:0%solution yes you have the solutionalways you just don't know what Delta is
align:start position:0%always you just don't know what Delta is
align:start position:0%always you just don't know what Delta isbut you don't know what Delta you don't
align:start position:0%but you don't know what Delta you don't
align:start position:0%but you don't know what Delta you don'tneed to know what Delta is to prove the
align:start position:0%need to know what Delta is to prove the
align:start position:0%need to know what Delta is to prove thetheorem you just need to know it's
align:start position:0%theorem you just need to know it's
align:start position:0%theorem you just need to know it'sthere
align:start position:0%there
align:start position:0%thereso here it goes and this time the wall
align:start position:0%so here it goes and this time the wall
align:start position:0%so here it goes and this time the wallwill also do the same thing will demand
align:start position:0%will also do the same thing will demand
align:start position:0%will also do the same thing will demandthat s of
align:start position:0%that s of
align:start position:0%that s ofX vanishes for xal
align:start position:0%X vanishes for xal
align:start position:0%X vanishes for xall so this time we get that k x no k x
align:start position:0%l so this time we get that k x no k x
align:start position:0%l so this time we get that k x no k xL plus Delta of
align:start position:0%L plus Delta of
align:start position:0%L plus Delta ofK is equal to some other number n Prime
align:start position:0%K is equal to some other number n Prime
align:start position:0%K is equal to some other number n Prime*
align:start position:0%*
align:start position:0%*pi multiple of
align:start position:0%pi multiple of
align:start position:0%pi multiple ofPi this
align:start position:0%Pi this
align:start position:0%Pi thisface its total face has to be a multiple
align:start position:0%face its total face has to be a multiple
align:start position:0%face its total face has to be a multipleof
align:start position:0%of
align:start position:0%ofPi and what is n Prime well I don't know
align:start position:0%Pi and what is n Prime well I don't know
align:start position:0%Pi and what is n Prime well I don't knowwhat is n Prime is some integers uh I
align:start position:0%what is n Prime is some integers uh I
align:start position:0%what is n Prime is some integers uh Idon't know whether it starts from one 2
align:start position:0%don't know whether it starts from one 2
align:start position:0%don't know whether it starts from one 2three or from 100 or
align:start position:0%three or from 100 or
align:start position:0%three or from 100 orwhatever the only thing we care is that
align:start position:0%whatever the only thing we care is that
align:start position:0%whatever the only thing we care is thatagain taking a little differential you
align:start position:0%again taking a little differential you
align:start position:0%again taking a little differential youhave DK * L plus d Delta
align:start position:0%have DK * L plus d Delta
align:start position:0%have DK * L plus d DeltaDK *
align:start position:0%DK *
align:start position:0%DK *DK is equal to DN Prime *
align:start position:0%
align:start position:0% pi we take an infinite decimal version
align:start position:0%pi we take an infinite decimal version
align:start position:0%pi we take an infinite decimal versionof this equation which again tells me
align:start position:0%of this equation which again tells me
align:start position:0%of this equation which again tells mehow many positive all these states are
align:start position:0%how many positive all these states are
align:start position:0%how many positive all these states arepositive energy states they have K so
align:start position:0%positive energy states they have K so
align:start position:0%positive energy states they have K soall these are
align:start position:0%all these are
align:start position:0%all these arepositive
align:start position:0%positive
align:start position:0%positiveenergy
align:start position:0%energy
align:start position:0%energystates so from this equation we
align:start position:0%states so from this equation we
align:start position:0%states so from this equation weget that DN Prime is
align:start position:0%get that DN Prime is
align:start position:0%get that DN Prime isequal to l over pi
align:start position:0%equal to l over pi
align:start position:0%equal to l over piI
align:start position:0%
align:start position:0% DK plus 1 over Pi D Delta d k *
align:start position:0%
align:start position:0% DK which gives me if I know
align:start position:0%DK which gives me if I know
align:start position:0%DK which gives me if I knowDK again the number of states that you
align:start position:0%DK again the number of states that you
align:start position:0%DK again the number of states that youhave in that range of K you see it's
align:start position:0%have in that range of K you see it's
align:start position:0%have in that range of K you see it'slike momentum is now quantized so for
align:start position:0%like momentum is now quantized so for
align:start position:0%like momentum is now quantized so forany little range of momentum you can
align:start position:0%any little range of momentum you can
align:start position:0%any little range of momentum you cantell how many states there are and here
align:start position:0%tell how many states there are and here
align:start position:0%tell how many states there are and hereit is how many states there
align:start position:0%it is how many states there
align:start position:0%it is how many states thereare positive energy states
align:start position:0%are positive energy states
align:start position:0%are positive energy statespositive this is the
align:start position:0%positive this is the
align:start position:0%positive this is thenumber of positive
align:start position:0%number of positive
align:start position:0%number of positiveenergy
align:start position:0%
align:start position:0% states in thec
align:start position:0%
align:start position:0% with v different from zero here is with
align:start position:0%with v different from zero here is with
align:start position:0%with v different from zero here is withv equal Z12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691align:start position:0% what a busy week we had because we
align:start position:0%what a busy week we had because we
align:start position:0%what a busy week we had because wecovered so much ground this past week
align:start position:0%covered so much ground this past week
align:start position:0%covered so much ground this past weekand because we're almost at the midpoint
align:start position:0%and because we're almost at the midpoint
align:start position:0%and because we're almost at the midpointof this course I thought it would be
align:start position:0%of this course I thought it would be
align:start position:0%of this course I thought it would beuseful to summarize some of the key
align:start position:0%useful to summarize some of the key
align:start position:0%useful to summarize some of the keylessons from the week and really one of
align:start position:0%lessons from the week and really one of
align:start position:0%lessons from the week and really one ofthe key lessons from this course that
align:start position:0%the key lessons from this course that
align:start position:0%the key lessons from this course thatlesson is very simple it is that our
align:start position:0%lesson is very simple it is that our
align:start position:0%lesson is very simple it is that oureconomies need to continue to encourage
align:start position:0%economies need to continue to encourage
align:start position:0%economies need to continue to encourageand grow what we call High Road firms
align:start position:0%and grow what we call High Road firms
align:start position:0%and grow what we call High Road firmsthat are both good for shareholders and
align:start position:0%that are both good for shareholders and
align:start position:0%that are both good for shareholders andfor employees if we are really to shape
align:start position:0%for employees if we are really to shape
align:start position:0%for employees if we are really to shapethe future of work that works for all
align:start position:0%the future of work that works for all
align:start position:0%the future of work that works for allthe stakeholders in our economy how can
align:start position:0%the stakeholders in our economy how can
align:start position:0%the stakeholders in our economy how canorganizations do this well it starts by
align:start position:0%organizations do this well it starts by
align:start position:0%organizations do this well it starts byhaving a debate over the basic values of
align:start position:0%having a debate over the basic values of
align:start position:0%having a debate over the basic values ofthe firm and you did that this week you
align:start position:0%the firm and you did that this week you
align:start position:0%the firm and you did that this week youtook on the question of whether this
align:start position:0%took on the question of whether this
align:start position:0%took on the question of whether thisemphasis on shareholder value or what we
align:start position:0%emphasis on shareholder value or what we
align:start position:0%emphasis on shareholder value or what wecalled financialization view of the firm
align:start position:0%called financialization view of the firm
align:start position:0%called financialization view of the firmis really the only way in which firms
align:start position:0%is really the only way in which firms
align:start position:0%is really the only way in which firmscan compete and you answered it very
align:start position:0%can compete and you answered it very
align:start position:0%can compete and you answered it veryclearly you endorsed firms that should
align:start position:0%clearly you endorsed firms that should
align:start position:0%clearly you endorsed firms that shouldbe accountable to multiple stakeholders
align:start position:0%be accountable to multiple stakeholders
align:start position:0%be accountable to multiple stakeholdersto employees to societies as well as to
align:start position:0%to employees to societies as well as to
align:start position:0%to employees to societies as well as totheir investors and their owners and you
align:start position:0%their investors and their owners and you
align:start position:0%their investors and their owners and younotice that uh there's a wide variety of
align:start position:0%notice that uh there's a wide variety of
align:start position:0%notice that uh there's a wide variety ofdifferent forms that organizations take
align:start position:0%different forms that organizations take
align:start position:0%different forms that organizations takeboth here in the United States and
align:start position:0%both here in the United States and
align:start position:0%both here in the United States andaround the world and in fact the US is
align:start position:0%around the world and in fact the US is
align:start position:0%around the world and in fact the US isone of the few countries that emphasizes
align:start position:0%one of the few countries that emphasizes
align:start position:0%one of the few countries that emphasizesshareholder value so heavily you also
align:start position:0%shareholder value so heavily you also
align:start position:0%shareholder value so heavily you alsonoted that uh it not only varies across
align:start position:0%noted that uh it not only varies across
align:start position:0%noted that uh it not only varies acrosscountries but even in the US we didn't
align:start position:0%countries but even in the US we didn't
align:start position:0%countries but even in the US we didn'talways put such a heavy emphasis on
align:start position:0%always put such a heavy emphasis on
align:start position:0%always put such a heavy emphasis onshareholder value there was a point in
align:start position:0%shareholder value there was a point in
align:start position:0%shareholder value there was a point intime when we recognized then that CEOs
align:start position:0%time when we recognized then that CEOs
align:start position:0%time when we recognized then that CEOsrecognized that they need to
align:start position:0%recognized that they need to
align:start position:0%recognized that they need tohave organizations that address both the
align:start position:0%have organizations that address both the
align:start position:0%have organizations that address both theinterests of the people who invest in
align:start position:0%interests of the people who invest in
align:start position:0%interests of the people who invest inthem who own them but also they were
align:start position:0%them who own them but also they were
align:start position:0%them who own them but also they wereheld accountable to their employees to
align:start position:0%held accountable to their employees to
align:start position:0%held accountable to their employees totheir communities and societies so we
align:start position:0%their communities and societies so we
align:start position:0%their communities and societies so wehad this debate we have to keep that
align:start position:0%had this debate we have to keep that
align:start position:0%had this debate we have to keep thatdebate going in the poll that you
align:start position:0%debate going in the poll that you
align:start position:0%debate going in the poll that youanswered a vast majority you endorsed
align:start position:0%answered a vast majority you endorsed
align:start position:0%answered a vast majority you endorsedthe the stakeholder view of the firm so
align:start position:0%the the stakeholder view of the firm so
align:start position:0%the the stakeholder view of the firm solet's get on with it but you also noted
align:start position:0%let's get on with it but you also noted
align:start position:0%let's get on with it but you also notedthat there's no magic bullet there's no
align:start position:0%that there's no magic bullet there's no
align:start position:0%that there's no magic bullet there's nosingle practice that high road firms can
align:start position:0%single practice that high road firms can
align:start position:0%single practice that high road firms canfollow to achieve these outcomes instead
align:start position:0%follow to achieve these outcomes instead
align:start position:0%follow to achieve these outcomes insteadwhat we saw is that there's a bundle of
align:start position:0%what we saw is that there's a bundle of
align:start position:0%what we saw is that there's a bundle ofpractices or what we call a system of
align:start position:0%practices or what we call a system of
align:start position:0%practices or what we call a system ofpractices of employment practices
align:start position:0%practices of employment practices
align:start position:0%practices of employment practicesoperational features of the organization
align:start position:0%operational features of the organization
align:start position:0%operational features of the organizationbusiness practices that have to fit
align:start position:0%business practices that have to fit
align:start position:0%business practices that have to fittogether and be fitted to the particular
align:start position:0%together and be fitted to the particular
align:start position:0%together and be fitted to the particularIndustries and particular organizational
align:start position:0%Industries and particular organizational
align:start position:0%Industries and particular organizationalsettings particular cultures and
align:start position:0%settings particular cultures and
align:start position:0%settings particular cultures andcountries in which they are embedded and
align:start position:0%countries in which they are embedded and
align:start position:0%countries in which they are embedded andthis is just a list of the basic things
align:start position:0%this is just a list of the basic things
align:start position:0%this is just a list of the basic thingsthat we discussed that yes it starts by
align:start position:0%that we discussed that yes it starts by
align:start position:0%that we discussed that yes it starts byhiring good strong employees who have
align:start position:0%hiring good strong employees who have
align:start position:0%hiring good strong employees who havegood technical skills and good people in
align:start position:0%good technical skills and good people in
align:start position:0%good technical skills and good people inorganizational skills so they can work
align:start position:0%organizational skills so they can work
align:start position:0%organizational skills so they can worktogether in teams and communicate with
align:start position:0%together in teams and communicate with
align:start position:0%together in teams and communicate witheach other each other then we invest in
align:start position:0%each other each other then we invest in
align:start position:0%each other each other then we invest intraining and development and make sure
align:start position:0%training and development and make sure
align:start position:0%training and development and make surethat we create a a culture of respect
align:start position:0%that we create a a culture of respect
align:start position:0%that we create a a culture of respectand Trust at the workplace provide
align:start position:0%and Trust at the workplace provide
align:start position:0%and Trust at the workplace provideemployees with a good opportunity to
align:start position:0%employees with a good opportunity to
align:start position:0%employees with a good opportunity toimprove operations in the organization
align:start position:0%improve operations in the organization
align:start position:0%improve operations in the organizationto bring their voice into the discussion
align:start position:0%to bring their voice into the discussion
align:start position:0%to bring their voice into the discussionso that their interests are reflected in
align:start position:0%so that their interests are reflected in
align:start position:0%so that their interests are reflected inorganizational practices themselves and
align:start position:0%organizational practices themselves and
align:start position:0%organizational practices themselves andthen recognize that you all want good
align:start position:0%then recognize that you all want good
align:start position:0%then recognize that you all want goodflexible organizational Arrangements
align:start position:0%flexible organizational Arrangements
align:start position:0%flexible organizational Arrangementsthat allow you to mix your personal and
align:start position:0%that allow you to mix your personal and
align:start position:0%that allow you to mix your personal andyour family and work lives but to do it
align:start position:0%your family and work lives but to do it
align:start position:0%your family and work lives but to do itin creative ways with modern technology
align:start position:0%in creative ways with modern technology
align:start position:0%in creative ways with modern technologywith Fair wages that are linked in some
align:start position:0%with Fair wages that are linked in some
align:start position:0%with Fair wages that are linked in someways to productivity to Performance of
align:start position:0%ways to productivity to Performance of
align:start position:0%ways to productivity to Performance ofthe economy of your organizations and
align:start position:0%the economy of your organizations and
align:start position:0%the economy of your organizations andwhere there are unions involved we need
align:start position:0%where there are unions involved we need
align:start position:0%where there are unions involved we needto have strong Partnerships between
align:start position:0%to have strong Partnerships between
align:start position:0%to have strong Partnerships betweenlabor and management not the traditional
align:start position:0%labor and management not the traditional
align:start position:0%labor and management not the traditionaladversarial relations when we do those
align:start position:0%adversarial relations when we do those
align:start position:0%adversarial relations when we do thosethings we get this bundle we get this
align:start position:0%things we get this bundle we get this
align:start position:0%things we get this bundle we get thissystem of reinforcing practices between
align:start position:0%system of reinforcing practices between
align:start position:0%system of reinforcing practices betweenthe business strategies that are
align:start position:0%the business strategies that are
align:start position:0%the business strategies that arefollowed to create High Road uh
align:start position:0%followed to create High Road uh
align:start position:0%followed to create High Road uhorganizations the employment systems the
align:start position:0%organizations the employment systems the
align:start position:0%organizations the employment systems theoperational practices and the workforce
align:start position:0%operational practices and the workforce
align:start position:0%operational practices and the workforceculture so we know something about how
align:start position:0%culture so we know something about how
align:start position:0%culture so we know something about howto do this and we know that uh this can
align:start position:0%to do this and we know that uh this can
align:start position:0%to do this and we know that uh this canhappen not only in uh traditional profit
align:start position:0%happen not only in uh traditional profit
align:start position:0%happen not only in uh traditional profitmaking firms or public corporations but
align:start position:0%making firms or public corporations but
align:start position:0%making firms or public corporations butwe discussed a whole range of different
align:start position:0%we discussed a whole range of different
align:start position:0%we discussed a whole range of differentorganizational forms family businesses
align:start position:0%organizational forms family businesses
align:start position:0%organizational forms family businesseslike Market Basket public corporations
align:start position:0%like Market Basket public corporations
align:start position:0%like Market Basket public corporationsas we
align:start position:0%as we
align:start position:0%as wementioned benefit corporations like
align:start position:0%mentioned benefit corporations like
align:start position:0%mentioned benefit corporations likePatagonia employee owned firms like my
align:start position:0%Patagonia employee owned firms like my
align:start position:0%Patagonia employee owned firms like mytwo favorite breweries New Belgium and
align:start position:0%two favorite breweries New Belgium and
align:start position:0%two favorite breweries New Belgium andHarpoon or in other countries Ido and
align:start position:0%Harpoon or in other countries Ido and
align:start position:0%Harpoon or in other countries Ido andSweden and and around the world there
align:start position:0%Sweden and and around the world there
align:start position:0%Sweden and and around the world thereare examples of employee owned firms
align:start position:0%are examples of employee owned firms
align:start position:0%are examples of employee owned firmsCommunity ownership mandron in Spain and
align:start position:0%Community ownership mandron in Spain and
align:start position:0%Community ownership mandron in Spain andother countries and then my favorite
align:start position:0%other countries and then my favorite
align:start position:0%other countries and then my favoritefootball team the Green Bay Packers
align:start position:0%football team the Green Bay Packers
align:start position:0%football team the Green Bay Packersowned by the community and maintaining
align:start position:0%owned by the community and maintaining
align:start position:0%owned by the community and maintaininglong-standing good relationships with
align:start position:0%long-standing good relationships with
align:start position:0%long-standing good relationships withtheir stakeholders and their
align:start position:0%their stakeholders and their
align:start position:0%their stakeholders and theirenvironments we also discussed whether
align:start position:0%environments we also discussed whether
align:start position:0%environments we also discussed whetherit's possible for Global corporations to
align:start position:0%it's possible for Global corporations to
align:start position:0%it's possible for Global corporations tohold to High Road standards in their
align:start position:0%hold to High Road standards in their
align:start position:0%hold to High Road standards in theirsupply chains we've got a lot of work to
align:start position:0%supply chains we've got a lot of work to
align:start position:0%supply chains we've got a lot of work todo in this area it's clear that we have
align:start position:0%do in this area it's clear that we have
align:start position:0%do in this area it's clear that we havea long way to go but companies and their
align:start position:0%a long way to go but companies and their
align:start position:0%a long way to go but companies and theirsuppliers and NOS are all working on it
align:start position:0%suppliers and NOS are all working on it
align:start position:0%suppliers and NOS are all working on itso we recognize we can do this in a
align:start position:0%so we recognize we can do this in a
align:start position:0%so we recognize we can do this in avariety of ways but I was particularly
align:start position:0%variety of ways but I was particularly
align:start position:0%variety of ways but I was particularlyexcited and pleased with the examples of
align:start position:0%excited and pleased with the examples of
align:start position:0%excited and pleased with the examples ofhigh road and low road firms that you
align:start position:0%high road and low road firms that you
align:start position:0%high road and low road firms that youtalked about in your own assignments
align:start position:0%talked about in your own assignments
align:start position:0%talked about in your own assignmentsthis week and you you brought your own
align:start position:0%this week and you you brought your own
align:start position:0%this week and you you brought your ownpersonal experiences as employees and
align:start position:0%personal experiences as employees and
align:start position:0%personal experiences as employees andsometimes as customers into this process
align:start position:0%sometimes as customers into this process
align:start position:0%sometimes as customers into this processand here's just an example of of firms
align:start position:0%and here's just an example of of firms
align:start position:0%and here's just an example of of firmsin the retail industry uh a family-owned
align:start position:0%in the retail industry uh a family-owned
align:start position:0%in the retail industry uh a family-ownedfirm Wagman's that's a local one here in
align:start position:0%firm Wagman's that's a local one here in
align:start position:0%firm Wagman's that's a local one here inthe United States Whole Foods which is
align:start position:0%the United States Whole Foods which is
align:start position:0%the United States Whole Foods which isknown very well was used as an example
align:start position:0%known very well was used as an example
align:start position:0%known very well was used as an exampleand compared with some other
align:start position:0%and compared with some other
align:start position:0%and compared with some otherorganizations one well known and another
align:start position:0%organizations one well known and another
align:start position:0%organizations one well known and anotherone where we just disguised the name a
align:start position:0%one where we just disguised the name a
align:start position:0%one where we just disguised the name abit in another country that talked about
align:start position:0%bit in another country that talked about
align:start position:0%bit in another country that talked aboutthe low rate low wages lack of a living
align:start position:0%the low rate low wages lack of a living
align:start position:0%the low rate low wages lack of a livingwage not particularly paying attention
align:start position:0%wage not particularly paying attention
align:start position:0%wage not particularly paying attentionto employee training and development but
align:start position:0%to employee training and development but
align:start position:0%to employee training and development butalso noting that even in government
align:start position:0%also noting that even in government
align:start position:0%also noting that even in governmentagencies you had some very low road
align:start position:0%agencies you had some very low road
align:start position:0%agencies you had some very low roadfirms or organizations that favored
align:start position:0%firms or organizations that favored
align:start position:0%firms or organizations that favoredtheir uh certain employees and didn't
align:start position:0%their uh certain employees and didn't
align:start position:0%their uh certain employees and didn'tprovide the kind of feedback and
align:start position:0%provide the kind of feedback and
align:start position:0%provide the kind of feedback andopportunities for growth but then there
align:start position:0%opportunities for growth but then there
align:start position:0%opportunities for growth but then therewere some libraries hospitals government
align:start position:0%were some libraries hospitals government
align:start position:0%were some libraries hospitals governmentagencies that you rated as high road
align:start position:0%agencies that you rated as high road
align:start position:0%agencies that you rated as high roadfirms the key Point here is there's no
align:start position:0%firms the key Point here is there's no
align:start position:0%firms the key Point here is there's nosingle organizational form and there's
align:start position:0%single organizational form and there's
align:start position:0%single organizational form and there'sno single model that says you can only
align:start position:0%no single model that says you can only
align:start position:0%no single model that says you can onlydo this in some sectors of the economy
align:start position:0%do this in some sectors of the economy
align:start position:0%do this in some sectors of the economyand not others so I think we have
align:start position:0%and not others so I think we have
align:start position:0%and not others so I think we havebrought home this very key lesson about
align:start position:0%brought home this very key lesson about
align:start position:0%brought home this very key lesson aboutthe importance of high road firms our
align:start position:0%the importance of high road firms our
align:start position:0%the importance of high road firms ourchallenge now is to make sure that we
align:start position:0%challenge now is to make sure that we
align:start position:0%challenge now is to make sure that wefigure out how to spread them to larger
align:start position:0%figure out how to spread them to larger
align:start position:0%figure out how to spread them to largernumbers so this next week it's time to
align:start position:0%numbers so this next week it's time to
align:start position:0%numbers so this next week it's time togo on to the next subject we're going to
align:start position:0%go on to the next subject we're going to
align:start position:0%go on to the next subject we're going totake up two critical issues
align:start position:0%take up two critical issues
align:start position:0%take up two critical issuesentrepreneurship
align:start position:0%entrepreneurship
align:start position:0%entrepreneurshipand the role of technology and you've
align:start position:0%and the role of technology and you've
align:start position:0%and the role of technology and you'vealready started those conversations on
align:start position:0%already started those conversations on
align:start position:0%already started those conversations onthe discussion forum so we'll continue
align:start position:0%the discussion forum so we'll continue
align:start position:0%the discussion forum so we'll continuethem with some really good videos and
align:start position:0%them with some really good videos and
align:start position:0%them with some really good videos andguest interviews and material from
align:start position:0%guest interviews and material from
align:start position:0%guest interviews and material frompeople all over the world talking about
align:start position:0%people all over the world talking about
align:start position:0%people all over the world talking abouthow we can use technology to augment
align:start position:0%how we can use technology to augment
align:start position:0%how we can use technology to augmentwork not just to substitute for work or
align:start position:0%work not just to substitute for work or
align:start position:0%work not just to substitute for work ordisplace work yes that's going to go on
align:start position:0%displace work yes that's going to go on
align:start position:0%displace work yes that's going to go onbut pay particular attention to what our
align:start position:0%but pay particular attention to what our
align:start position:0%but pay particular attention to what ourexperts say we can do to use technology
align:start position:0%experts say we can do to use technology
align:start position:0%experts say we can do to use technologyto good advantage to augment and to
align:start position:0%to good advantage to augment and to
align:start position:0%to good advantage to augment and tosupport good work in the future and then
align:start position:0%support good work in the future and then
align:start position:0%support good work in the future and thenlet's also discuss how we can build High
align:start position:0%let's also discuss how we can build High
align:start position:0%let's also discuss how we can build HighRoad firms right from the beginning as
align:start position:0%Road firms right from the beginning as
align:start position:0%Road firms right from the beginning asentrepreneurs what do we need to do to
align:start position:0%entrepreneurs what do we need to do to
align:start position:0%entrepreneurs what do we need to do tomake sure that we understand what it
align:start position:0%make sure that we understand what it
align:start position:0%make sure that we understand what ittakes to have a good business model to
align:start position:0%takes to have a good business model to
align:start position:0%takes to have a good business model tobe responsive to the investors who are
align:start position:0%be responsive to the investors who are
align:start position:0%be responsive to the investors who areproviding the capital for these firms
align:start position:0%providing the capital for these firms
align:start position:0%providing the capital for these firmsbut also to make sure that we make the
align:start position:0%but also to make sure that we make the
align:start position:0%but also to make sure that we make thechoices about how we build good jobs and
align:start position:0%choices about how we build good jobs and
align:start position:0%choices about how we build good jobs andcareers for all of the employees in
align:start position:0%careers for all of the employees in
align:start position:0%careers for all of the employees inthese new
align:start position:0%these new
align:start position:0%these newEnterprises and let me make a final
align:start position:0%Enterprises and let me make a final
align:start position:0%Enterprises and let me make a finaloffer that is we're almost about uh as I
align:start position:0%offer that is we're almost about uh as I
align:start position:0%offer that is we're almost about uh as Isaid at the mid point of the course and
align:start position:0%said at the mid point of the course and
align:start position:0%said at the mid point of the course andI'd like to use this weekend to offer uh
align:start position:0%I'd like to use this weekend to offer uh
align:start position:0%I'd like to use this weekend to offer uhan open Forum uh sort of office hours on
align:start position:0%an open Forum uh sort of office hours on
align:start position:0%an open Forum uh sort of office hours onthe discussion board where my team uh
align:start position:0%the discussion board where my team uh
align:start position:0%the discussion board where my team uhhere uh for the course and I will be
align:start position:0%here uh for the course and I will be
align:start position:0%here uh for the course and I will beavailable to answer questions to engage
align:start position:0%available to answer questions to engage
align:start position:0%available to answer questions to engagein commentary to continue the dialogue
align:start position:0%in commentary to continue the dialogue
align:start position:0%in commentary to continue the dialoguewith you more directly so please take a
align:start position:0%with you more directly so please take a
align:start position:0%with you more directly so please take alook at the discussion board uh
align:start position:0%look at the discussion board uh
align:start position:0%look at the discussion board uhparticipate with us ask us questions
align:start position:0%participate with us ask us questions
align:start position:0%participate with us ask us questionslet's use this as an opportunity to see
align:start position:0%let's use this as an opportunity to see
align:start position:0%let's use this as an opportunity to seewhat we have learned so far to continue
align:start position:0%what we have learned so far to continue
align:start position:0%what we have learned so far to continueto debate even with us if you disagree
align:start position:0%to debate even with us if you disagree
align:start position:0%to debate even with us if you disagreewith us that's fine too let's have a
align:start position:0%with us that's fine too let's have a
align:start position:0%with us that's fine too let's have agood discussion this weekend uh I'll
align:start position:0%good discussion this weekend uh I'll
align:start position:0%good discussion this weekend uh I'llmake sure that I check the discussion
align:start position:0%make sure that I check the discussion
align:start position:0%make sure that I check the discussionboard periodically over the next several
align:start position:0%board periodically over the next several
align:start position:0%board periodically over the next severaldays and see what's on your mind and
align:start position:0%days and see what's on your mind and
align:start position:0%days and see what's on your mind andthen finally this weekend we will give
align:start position:0%then finally this weekend we will give
align:start position:0%then finally this weekend we will giveyou a short evaluation to give do us a
align:start position:0%you a short evaluation to give do us a
align:start position:0%you a short evaluation to give do us afavor and give us a midcourse uh
align:start position:0%favor and give us a midcourse uh
align:start position:0%favor and give us a midcourse uhevaluation on how we are doing in the
align:start position:0%evaluation on how we are doing in the
align:start position:0%evaluation on how we are doing in thecourse so I look forward to continuing
align:start position:0%course so I look forward to continuing
align:start position:0%course so I look forward to continuingthe conversations this weekend and in
align:start position:0%the conversations this weekend and in
align:start position:0%the conversations this weekend and inthe weeks ahead123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382In this lecture, we're going to use the circuitpipelining techniques we learned in Part 1
of the course to improve the performance ofthe 32-bit Beta CPU design we developed in
Part 2 of the course.
This CPU design executes one Beta instructionper clock cycle.
Hopefully you remember the design!
If not, you might find it worthwhile to reviewLecture 13, Building the Beta, from Part 2.
At the beginning of the clock cycle, thiscircuit loads a new value into the program
counter, which is then sent to main memoryas the address of the instruction to be executed
this cycle.
When the 32-bit word containing the binaryencoding of the instruction is returned by
the memory, the opcode field is decoded bythe control logic to determine the control
signals for the rest of the data path.
The operands are read from the register fileand routed to the ALU to perform the desired
operation.
For memory operations, the output of the ALUserves as the memory address and, in the case
of load instructions, the main memory suppliesthe data to be written into the register file
at the end of the cycle.
PC+4 and ALU values can also be written tothe register file.
The clock period of the Beta is determinedby the cumulative delay through all the components
involved in instruction execution.
Today's question is: how can we make thisfaster?
We can characterize the time spent executinga program as the product of three terms.
The first term is the total number of instructionsexecuted.
Since the program usually contains loops andprocedure calls, many of the encoded instructions
will be executed many times.
We want the total count of instructions executed,not the static size of the program as measured
by the number of encoded instructions in memory.
The second term is the average number of clockcycles it takes to execute a single instruction.
And the third term is the duration of a singleclock cycle.
As CPU designers it's the last two terms whichare under our control: the cycles per instruction
(CPI) and the clock period (t_CLK).
To affect the first term, we would need tochange the ISA or write a better compiler!
Our design for the Beta was able to executeevery instruction in a single clock cycle,
so our CPI is 1.
As we discussed in the previous slide, t_CLKis determined by the longest path through
the Beta circuitry.
For example, consider the execution of anOP-class instruction, which involves two register
operands and an ALU operation.
The arrow shows all the components that areinvolved in the execution of the instruction.
Aside from a few muxes, the main memory, registerfile, and ALU must all have time to do their
thing.
The worst-case execution time is for the LDinstruction.
In one clock cycle we need to fetch the instructionfrom main memory (t_IFETCH),
read the operands from the register file (t_RF),perform the address addition in the ALU (t_ALU),
read the requested location from main memory(t_MEM),
and finally write the memory data to the destinationregister (t_WB).
The component delays add up and the resultis a fairly long clock period and hence it
will take a long time to run the program.
And our two example execution paths illustrateanother issue:
we're forced to choose the clock period toaccommodate the worst-case execution time,
even though we may be able to execute someinstructions faster since their execution
path through the circuitry is shorter.
We're making all the instructions slower justbecause there's one instruction that has a
long critical path.
So why not have simple instructions executein one clock cycle and more complex instructions
take multiple cycles instead of forcing allinstructions to execute in a single, long
clock cycle?
As we'll see in the next few slides, we havea good answer to this question, one that will
allow us to execute *all* instructions witha short clock period.
We're going to use pipelining to address theseissues.
We're going to divide the execution of aninstruction into a sequence of steps, where
each step is performed in successive stagesof the pipeline.
So it will take multiple clock cycles to executean instruction as it travels through the stages
of the execution pipeline.
But since there are only one or two componentsin each stage of the pipeline, the clock period
can be much shorter and the throughput ofthe CPU can be much higher.
The increased throughput is the result ofoverlapping the execution of consecutive instructions.
At any given time, there will be multipleinstructions in the CPU, each at a different
stage of its execution.
The time to execute all the steps for a particularinstruction (i.e., the instruction latency)
may be somewhat higher than in our unpipelinedimplementation.
But we will finish the last step of executingsome instruction in each clock cycle, so the
instruction throughput is 1 per clock cycle.
And since the clock cycle of our pipelinedCPU is quite a bit shorter, the instruction
throughput is quite a bit higher.
All this sounds great, but, not surprisingly,there are few issues we'll have to deal with.
There are many ways to pipeline the executionof an instruction.
We're going to look at the design of the classic5-stage instruction execution pipeline, which
was widely used in the integrated circuitCPU designs of the 1980's.
The 5 pipeline stages correspond to the stepsof executing an instruction in a von-Neumann
stored-program architecture.
The first stage (IF) is responsible for fetchingthe binary-encoded instruction from the main
memory location indicated by the program counter.
The 32-bit instruction is passed to the registerfile stage (RF) where the required register
operands are read from the register file.
The operand values are passed to the ALU stage(ALU), which performs the requested operation.
The memory stage (MEM) performs the secondaccess to main memory to read or write the
data for LD, LDR, or ST instructions, usingthe value from the ALU stage as the memory
address.
For load instructions, the output of the MEMstage is the read data from main memory.
For all other instructions, the output ofthe MEM stage is simply the value from the
ALU stage.
In the final write-back stage (WB), the resultfrom the earlier stages is written to the
destination register in the register file.
Looking at the execution path from the previousslide, we see that each of the main components
of the unpipelined design is now in its ownpipeline stage.
So the clock period will now be determinedby the slowest of these components.
Having divided instruction execution intofive stages, would we expect the clock period
to be one fifth of its original value?
Well, that would only happen if we were ableto divide the execution so that each stage
performed exactly one fifth of the total work.
In real life, the major components have somewhatdifferent latencies, so the improvement in
instruction throughput will be a little lessthan the factor of 5 a perfect 5-stage pipeline
could achieve.
If we have a slow component, e.g., the ALU,we might choose to pipeline that component
into further stages, or, interleave multipleALUs to achieve the same effect.
But for this lecture, we'll go with the 5-stagepipeline described above.
So why isn't this a 20-minute lecture?
After all we know how pipeline combinationalcircuits:
We can build a valid k-stage pipeline by drawingk contours across the circuit diagram and
adding a pipeline register wherever a contourcrosses a signal.
What's the big deal here?
Well, is this circuit combinational?
No!
There's state in the registers and memories.
This means that the result of executing agiven instruction may depend on the results
from earlier instructions.
There are loops in the circuit where datafrom later pipeline stages affects the execution
of earlier pipeline stages.
For example, the write to the register fileat the end of the WB stage will change values
read from the register file in the RF stage.
In other words, there are execution dependenciesbetween instructions and these dependencies
will need to be taken into account when we'retrying to pipeline instruction execution.
We'll be addressing these issues as we examinethe operation of our execution pipeline.
Sometimes execution of a given instructionwill depend on the results of executing a
previous instruction.
Two are two types of problematic dependencies.
The first, termed a data hazard, occurs whenthe execution of the current instruction depends
on data produced by an earlier instruction.
For example, an instruction that reads R0will depend on the execution of an earlier
instruction that wrote R0.
The second, termed a control hazard, occurswhen a branch, jump, or exception changes
the order of execution.
For example, the choice of which instructionto execute after a BNE depends on whether
the branch is taken or not.
Instruction execution triggers a hazard whenthe instruction on which it depends is also
in the pipeline, i.e., the earlier instructionhasn't finished execution!
We'll need to adjust execution in our pipelineto avoid these hazards.
Here's our plan of attack:We'll start by designing a 5-stage pipeline
that works with sequences of instructionsthat don't trigger hazards, i.e., where instruction
execution doesn't depend on earlier instructionsstill in the pipeline.
Then we'll fix our pipeline to deal correctlywith data hazards.
And finally, we'll address control hazards.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855The following content isprovided under a Creative
Commons license.
Your support will help MITOpenCourseWare continue to
offer high quality educationalresources for free.
To make a donation or viewadditional materials from
hundreds of MIT courses, visitMIT OpenCourseWare at
ocw.mit.edu.
PROFESSOR: I want to pick upwith a little bit of overlap
just to remind peoplewhere we were.
We had been looking atclustering, and we looked at a
fairly simple example of usingagglomerative hierarchical
clustering to cluster cities,based upon how far apart they
were from each other cities.
So, essentially, using thisdistance matrix, we could do a
clustering that wouldreflect how close
cities were to one another.
And we went through aagglomerative clustering, and
we saw that we would get adifferent answer, depending
upon which linkage criterionwe used.
This is an important issuebecause as one is using
clustering, one what has to beaware that it is related to
these things, and you choose thewrong linkage criterion,
you might get an answer otherthan the most useful.
All right.
I next went on and said, well,this is pretty easy, because
when we're comparing thedistance between two cities or
the two features, we justsubtract one distance from the
other and we get a number.
It's very straightforward.
I then raised the question,suppose when we looked at
cities, we looked at a morecomplicated way of looking at
them than airline distance.
So the first question, I said,well, suppose in addition to
the distance by air, we add thedistance by road, or the
average temperature.
Pick what you will.
What do we do?
Well, the answer was we start bygeneralizing from a feature
being a single number to thenotion of a feature vector,
where the features used todescribe the city are now
represented by a vector,typically of numbers.
If the vectors are all in thesame physical units, we could
easily imagine how we mightcompare two vectors.
So we might, for example, welook at the Euclidean distance
between the two just by,say, subtracting one
vector from the other.
However, if we think aboutthat, it can be pretty
misleading because, for example,when we look at a
city, one element of the vectorrepresents the distance
in miles from another city,or in fact this case, the
distance in milesto each city.
And another representstemperatures.
Well, it's kind of funny tocompare distance, which might
be thousands of miles,with the temperature
which might be 5 degrees.
A 5 degree difference in averagetemperature could be
significant.
Certainly a 20 degree differencein temperature is
very significant, but a 20 miledifference in location
might not be very significant.
And so to equally weight a 20degree temperature difference
and at 20 miles distancedifference might give us a
very peculiar answer.
And so we have to think aboutthe question of, how are we
going to scale the elementsof the vectors?
Even if we're in the sameunits, say inches,
it can be an issue.
So let's look at this example.
Here I've got on the left,before scaling, something
which we can say is in inches,height and width.
This is not from a person, butyou could imagine if you were
trying to cluster people, andyou measured their height in
inches and their width ininches, maybe you don't want
to treat them equally.
Right?
But there's a lot more variancein height than in
width, or maybe there isand maybe there isn't.
So here on the left we don'thave any scaling, and we see a
very natural clustering.
On the other hand, we notice onthe y-axis the values range
from not too far from 0to not too far from 1.
Whereas on the x-axis, thedynamic range is much less,
not too far from 0 to nottoo far from 1/2.
So we have twice the dynamicrange here than we have here.
Therefore, not surprisingly,when we end up doing the
clustering, width playsa very important role.
And we end up clusteringit this way,
dividing it along here.
On the other hand, if I takeexactly the same data and
scale it, and now the x-axisruns from 0 to 1/2 and the
y-axis, roughly again, from 0to 1, we see that suddenly
when we look at itgeometrically, we end up
getting a very differentlook of clustering.
What's the moral?
The moral is you have to thinkhard about how to cluster your
features, about how to scaleyour features, because it can
have a dramatic influenceon your answer.
We'll see some real lifeexamples of this shortly.
But these are all the importantthings to think
about, and they all, in somesense, tie up into the same
major point.
Whenever you're doing any kindof learning, including
clustering, feature, selection,
and scaling is critical.
It is where most of the thinkingends up going.
And then the rest gets tobe fairly mechanical.
How do we decide what featuresto use and how to scale them?
We do that using domainknowledge.
So we actually have to thinkabout the objects that we're
trying to learn about and whatthe objective of the learning
process is.
So continuing, how dowe do the scaling?
Most of the time, it's doneusing some variant of what's
called the Minkowski metric.
It's not nearly as imposingas it looks.
So the distance between twovectors, X1 and X2, and then
we use p to talk about,essentially, the degree we're
going to be using.
So we take the absolutedifference between each
element of X1 and X2, raise itto the p-th power, sum them
and then take the 1 over p.
Not very complicated,so let's say p is 2.
That's the one you peopleare most familiar with.
Effectively, all we'redoing is getting
the Euclidean distance.
What we looked at when we lookedat the mean squared
distance between two things,between our errors and our
measured data, between ourmeasured data and our
predicted data.
We used the mean square error.
That's essentially in Minkowskidistance with p
equal to 2.
That's probably the mostcommonly used, but an almost
equally commonly used setsp equal to 1, and that's
something called theManhattan distance.
I suspect at least some of youhave spent time walking around
Manhattan, a small but denselypopulated island in New York.
And midtown Manhattan hasthe feature that it's
laid out in a grid.
So what you have is a grid,and you have the avenues
running north-south and thestreets running east-west.
And if you want to walk from,say, here to here or drive
from here to here, you cannottake the diagonal because
there are a bunch of buildingsin the way.
And so you have to move eitherleft or right, or up, or down.
That's the Manhattan distancebetween two points.
This is used, in fact, for alot of problems, typically
when somebody is comparing thedistance between two genes,
for example, they use aManhattan metric rather than a
Euclidean metric to say howsimilar two things are.
Just wanted to show that becauseit is something that
you will run across in theliterature when you read about
these kinds of things.
All right.
So far, we've talked aboutissues where things are
comparable.
And we've been doing that byrepresenting each element of
the feature vector as afloating point number.
So we can run a formula likethat by subtracting
one from the other.
But we often, in fact, have todeal with nominal categories,
things that have namesrather than numbers.
So for clustering people, maybewe care about eye color,
blue, brown, gray, green.
Hair color.
Well, how do you compareblue to green?
Do you subtract onefrom the other?
Kind of hard to do.
What does it mean to subtractgreen from blue?
Well, I guess we could talkabout it in the frequency
domain, enlighten things.
Typically, what we have to doin that case is, we convert
them to a number andthen have some ways
to relate the numbers.
Again, this is a place wheredomain knowledge is critical.
So, for example, we mightconvert blue to 0, green to
0.5, and brown to 1, thusindicating that we think blue
eyes are closer to green eyesthan they are to brown eyes.
I don't know why we think thatbut maybe we think that.
Red hair is closer to blondehair than it is to black hair.
I don't know.
These are the sorts of thingsthat are not mathematical
questions, typically,but judgments that
people have to make.
Once we've converted things tonumbers, we then have to go
back to our old friend ofscaling, which is often called
normalization.
Very often we try and contriveto have every feature range
between 0 and 1, for example,so that everything is
normalized to the samedynamic range,
and then we can compare.
Is that the right thing to do?
Not necessarily, because youmight consider some features
more important than othersand want to give
them a greater weight.
And, again, that's somethingwe'll come
back to and look at.
All this is a bit abstract.
I now want to lookat an example.
Let's look at the exampleof clustering mammals.
There are, essentially, anunbounded number of features
you could use, size at birth,gestation period, lifespan,
length of tail, speed,eating habits.
You name it.
The choice of features andweighting will, of course,
have an enormous impact onwhat clusters you get.
If you choose size, humans mightappear in one cluster.
If you choose eating habits,they might appear in another.
How should you choose whichfeatures you want?
You have to begin by choosing,thinking about the reason
you're doing the clusteringin the first place.
What is it you're trying tolearn about the mammals?
As an example, I'm goingto choose the
objective of eating habits.
I want to cluster mammalssomehow based
upon what they eat.
But I want to do that, andhere's a very important thing
about what we often see inlearning without any direct
information aboutwhat they eat.
Typically, when we're usingmachine learning, we're trying
to learn about somethingfor which we have
limited or no data.
Remember when we talked aboutlearning, I talked about
learning in which it wassupervised, and which we had
some data, and unsupervised,in which, essentially, we
don't have any labels.
So let's say we don't have anylabels about what mammals eat,
but we do know a lot aboutthe mammals themselves.
And, in fact, the hypothesis I'mgoing to start with here
is that you can infer people'sor creatures' eating habits
from their dental records,or their dentitian.
But over time, we have evolved,all creatures have
evolved, to have teeth that arerelated to what they eat,
we can see.
So I managed to procure adatabase of dentitian for
various mammals.
There's the laser pointer.
So what I've got hereis the number of
different kinds of teeth.
So the right top incisors, theright bottom incisors, molars,
et cetera, pre-molars.
Don't worry if you don't knowabout teeth very much.
I don't know very much.
And then for each animal,I have the number of
each kind of tooth.
Actually, I don't have it forthis particular mammal, but
these two I do.
I don't even rememberwhat they are.
They're cute.
All right.
So I've got that database, andnow I want to try and see what
happens when I cluster them.
The code to do this is not verycomplicated, but I should
make a confession about it.
Last night, I won'tsay I learned it.
I was reminded of a lesson thatI've often preached in
6.00, is that it's not good toget your programming done at
the last minute.
So as I was debugging this codeat 2:00 and 3:00 in the
morning today, I was realizinghow inefficient I am at
debugging at that hour.
Maybe for you guys that'sthe shank of the day.
For me, it's too late.
I think it all works, but I wascertainly not at my best
as I was debugging last night.
All right.
But at the moment, I don't wantyou to spend time working
on the code itself.
I would like you to think alittle bit about the overall
class structure of the code,which I've got on the first
page of the handout.
So at the bottom of myhierarchy, I've got something
called a point, and that's anabstraction of the things to
be clustered.
And I've done it in quite ageneralized way, because, as
you're going to see, the codewe're looking at today, I'm
going to use not only forclustering mammals but for
clustering all sorts ofother things as well.
So I decided to take the troubleof building up a set
of classes that wouldbe useful.
And in this class, I can havethe name of a point, its
original attributes.
That say its original featurevector, an unscaled feature
vector, and then whether or notI choose to normalize it.
I might have normalizedfeatures as well.
Again, I don't want you worrytoo much about the
details of the code.
And then I have a distancemetric, and I'm just for the
moment using simple Euclideandistance.
The next element in myhierarchy, not yet a
hierarchy--
it's still flat--
is a cluster.
And so what a cluster is, youcan think of it as, at some
abstract level, it's just goingto be a set of points,
the points that arein the cluster.
But I've got some otheroperations on it
that will be useful.
I can compute the distancebetween two clusters, and as
you'll see, I have singlelinkage, Mac Link, max ,
average, the three I talkedabout last week.
And also this notionof a centroid.
We'll come back to that when weget to k-means clustering.
We don't need to worry rightnow about what that is.
Then I'm going to havea cluster set.
That's another usefuldata abstraction.
And that's what you might guessfrom its name, just a
set of clusters.
The most interesting operationthere is merge.
As you saw, when we looked athierarchical clustering last
week, the key step there ismerging two clusters.
And in doing that, I'm going tohave a function called Find
Closest, which given a metricand a cluster, finds the
cluster that is most similar tothat, to self, because as
you, again, will recall fromhierarchical clustering,
that's what I merged ateach step is the two
most similar clusters.
And then there's some detailsabout how it works, which
again, we don't need to worryabout at the moment.
And then I'm going to have asubclass of point called
Mammal, in which I willrepresent each mammal by the
dentitian as we'velooked at before.
Then pretty simply, we can doa bunch of things with it.
Before we look at the otherdetails of the code, I want to
now run it and seewhat we get.
So I'm just going to usehierarchical clustering now to
cluster the mammals based uponthis feature vector, which
will be a list of numbersshowing how many of each kind
of tooth the mammals have.
Let's see what we get.
So it's doing the merging.
So we can see the first step, itmerged beavers with ground
hogs and it merged greysquirrels with porcupines,
wolves and bears.
Various other kinds of things,like jaguars and cougars, were
a lot alike.
Eventually, it starts doingmore complicated merges.
It merges a cluster containingonly the river otter with one
containing a Martin and awolverine, beavers and ground
hogs with squirrels andporcupines, et cetera.
And at the end, I had itstop with two clusters.
It came up with theseclusters.
Now we can look at theseclusters and say, all right.
What do we think?
Have we learned anythinginteresting?
Do we see anythingin any of these--
do we think it makes sense?
Remember, our goal was tocluster mammals based upon
what they might eat.
And we can ask, do we thinkthis corresponds to that?
No.
All right.
Who-- somebody said--
Now, why no?
Go ahead.
AUDIENCE: We've got-- like adeer doesn't eat similar
things as a dog.
And we've got one type on thetop cluster and a different
kind of bat in thebottom cluster.
Seems like they would beeven closer together.
PROFESSOR: Well, sorry.
Yeah.
A deer doesn't eat what a dogeats, and for that matter, we
have humans here, and whilesome human are by choice
vegetarians, genetically,humans are essentially
carnivores.
We know that.
We eat meat.
And here we are with a bunchof herbivores, typically.
Things are strange.
By the way, bats might end upbeing in ones, because some
bats eat fruit, other bat eatinsects, but who knows?
So I'm not very happy.
Why do you think we got thisclustering that maybe isn't
helping us very much?
Well, let's go look atwhat we did here.
Let's look at test 0.
So I said I wantedtwo clusters.
I don't want it to print allthe steps along the way.
I'm going to print thehistory at the end.
And scaling is identity.
Well, let's go back and lookat some of the data here.
What we can see is--
or maybe we can't see tooquickly, looking at all this--
is some kinds of teeth havea relatively small range.
Other kinds of teethhave a big range.
And so, at the moment, we're notdoing any normalization,
and maybe what we're doing isgetting something distorted
where we're only looking at acertain kind of tooth because
it has a larger dynamic range.
And in fact, if we look at thecode, we can go back up and
let's look at Build MammalPoints and Read Mammal Data.
So Build Mammal Points callsRead Mammal Data, and then
builds the points.
So Read Mammal Data is theinteresting piece.
And what we can see hereis, as we read it in--
this is just simply readingthings in, ignoring comments,
keeping track of things--
and then we come down here,I might do some scaling.
So Point.Scale feature is usingthe scaling argument.
Where's that coming from?
If we look at Mammal Teeth, herefrom the mammal class, we
see that there are two ways toscale it, identity, where we
just multiply every elementin the vector by 1.
That doesn't change anything.
Or what I've called1 over max.
And here, I've looked at themaximum number of each kind of
tooth and I'm dividing1 by that.
So here we could have upto three of those.
Here we could havefour of those.
We could have six of this kindof tooth, whatever it is.
And so we can see, by dividingby the max, I'm now putting
all of the different kinds ofteeth on the same scale.
I'm normalizing.
And now we'll see, does thatmake a difference?
Well, since we're dividingby 6 here and 3 here, it
certainly could makea difference.
It's a significant scalingfactor, 2X.
So let's go and change thecode, or change the test.
And let's look at Test 0--
0, not "O"--
with scale set to 1 over max.
You'll notice, by the way, thatrather than using some
obscure code, like scale equals12, I use strings so I
remember what they are.
It's, I think, a pretty usefulprogramming trick.
Whoops.
Did I use the wrongname for this?
Should be scaling?
So off it's going.
Now we get a different set ofthings, and as far as I know,
once we've scaled things, weget what I think is a much
more sensible pair, where Ithink what we essentially have
is the herbivores down here,and the carnivores up here.
Ok.
I don't care how much youknow about teeth.
The point is scalingcan really matter.
You have to look at it, and youhave to think about what
you're doing.
And the interesting thing hereis that without any direct
evidence about what mammalseat, we are able to use
machine learning, clustering inthis case, to infer a new
fact that we have some mammalsthat are similar in what they
eat, and some mammals that arealso similar, some groups.
Now I can't infer from thisherbivores versus carnivores
because I didn't have anylabels to start with.
But what I can infer is that,whatever they eat, there's
something similar about theseanimals, and something similar
about these animals.
And there's a difference betweenthe groups in C1 and
the groups in C0.
I can then go off and look atsome points in each of these
and then try and figure outhow to label them later.
OK, let's look at a differencedata set, a far more
interesting one, a richer one.
Now, let's not look atthat version of it.
That's too hard to read.
Let's look at the Excelspreadsheet.
So this is a database I foundonline of every county in the
United States, and a bunch offeatures about that county.
So for each countyin the United
States, we have its name.
The first part of the nameis the state it's in.
The second part of the name isthe name of the county, and a
bunch of things, like theaverage value of homes, how
much poverty, its populationdensity, its population
change, how many people areover 65, et cetera.
So the thing I want you tonotice, of course, is while
everything is a number, thescales are very different.
It's a big difference betweenthe percent of something,
which will go between 0 and100, and the population
density, which ranges over amuch larger dynamic range.
So we can immediately suspectthat scaling is going to be an
issue here.
So we now have a bunch of codethat we can use that I've
written to process this.
It uses the same clusters thatwe have here, except I've
added a kind of Pointcalled the County.
Looks very different from amammal, but the good news is I
got to reuse a lot of my code.
Now let's run a test.
We'll go down here to Test 3,and we'll see whether we can
do hierarchical clusteringof the counties.
Whoops.
Test 3 wants the nameof what we're doing.
So we'll give it the name.
It's Counties.Text.
I just exported the spreadsheetas a text file.
Well, we can wait a while forthis, but I'm not going to.
Let's think about what we knowthat hierarchical clustering
and how long this islikely to take.
I'll give you a hint.
There are approximately 3,100counties in the United States.
I'll bet none of you couldhave guessed that number.
How many comparisons do we haveto find the two counties
that are most similarto each other?
Comparing each county with everyother county, how many
comparisons is thatgoing to be?
Yeah.
AUDIENCE: It's 3,100 choose 2.
PROFESSOR: Right.
So that will be 3,100 squared.
Thank you.
And that's just the firststep in the cluster.
To perform the next merge, we'llhave to do it again.
So in fact, as we've looked atlast time, it's going to be a
very long and tedious process,and one I'm not
going to wait for.
So I'm going to interrupt andwe're going to look at a
smaller example.
Here I've just got only thecounties in New England, a
much smaller number than3,100, and I'm going to
cluster them using the exactsame clustering code we used
for the mammals.
It's just that thepoints are now
counties instead of mammals.
And we got two clusters.
Middlesex County inMassachusetts happens to be
the county in whichMIT is located.
And all the others--
well, you know, MIT is a prettydistinctive place.
Maybe that's what did it.
I don't quite think so.
Someone got a hypothesis aboutwhy we got this rather strange
clustering?
And is it because Middlesexcontains MIT and Harvard both?
This really surprised me, by theway, when I first ran it.
I said, how can this be?
So I went and I started lookingat the data, and what
I found is that Middlesex Countyhas about 600,000 more
people than any other countyin New England.
Who knew?
I would have guessed Suffolk,where Boston is, was the
biggest county.
But, in fact, Middlesex isenormous relative to every
other county in New England.
And it turns out that differenceof 600,000, when I
didn't scale things, justswamped everything else.
And so all I'm really gettinghere is a clustering that
depends on the population.
Middlesex is big relativeto everything else and,
therefore, that's what I get.
And it ignores things likeeducation level and housing
prices, and all those otherthings because the differences
are small relative to 600,000.
Well, let's turn scaling on.
To do that, I want to show youhow I do this scaling.
I did not, given the numberof features and number of
counties, do what I did formammals and count them by hand
to see what the maximum was.
I decided it would be a lotfaster even at 2:00 in the
morning to writecode to do it.
So I've got some code here.
I've got Build County Points,just like Build Mammal Points
and Read County Data, likeRead Mammal Data.
But the difference here is,along the way, as I'm reading
in each county, I'm keepingtrack of the
maximum for each feature.
And then I'm just goingto just do the scaling
automatically.
So exactly the one over maxscaling I did for mammals'
teeth, I'm going to do it forcounties, but I've just
written some code to automatethat process because I knew I
would never be ableto count them.
All right, so now let'ssee what happens if
we run it that way.
Test 3, New England, andScale equals True.
I'm either scaling it or not,is the way I wrote this one.
And with the scaling onagain, I get a very
different set of clusters.
What have we got?
Where's Middlesex?
It's in one of these2 clusters.
Oh, here it is.
It's C0.
But it's with Fairfield,Connecticut and Hartford,
Connecticut and Providence,Rhode Island.
It's a different answer.
Is it a better answer?
It's not a meaningfulquestion, right?
It depends what I'm trying toinfer, what we hope to learn
from the clustering, and that'sa question we're going
to come back to on Tuesday insome detail with the counties,
and look at how, by usingdifferent kinds of scaling or
different kinds of features, wecan learn different things
about the countiesin this country.
Before I do that, however,I want to move
away from New England.
Remember we're focusing on NewEngland because it took too
long to do hierarchicalclustering of 3,100 counties.
But that's what I want to do.
It's no good to justsay, I'm sorry.
It took too long.
I give up.
Well, the good news is thereare other clustering
mechanisms that are muchmore efficient.
We'll later see they, too,have their own faults.
But we're going to look atk-means clustering, which has
the big advantage of being fastenough that we can run it
on very big data sets.
In fact, it is roughly linearin the number of counties.
And as we've seen before, whenn gets very large, anything
that's worse than linear islikely to be ineffective.
So let's think abouthow k-means works.
Step one, is you choose k.
k is the total number ofclusters you want to have when
you're done.
So you start by saying, I wantto take the counties and split
them into k-clusters.
2 clusters, 20 clusters, a 100clusters, 1,000 clusters.
You have to choose kin the beginning.
And that it's one of the issuesthat you have with
k-means clustering is,how do you choose k?
We can talk about that later.
Once I've chosen k, I choose kpoints as initial centroids.
You may remember earlier todaywe saw this centroid method in
class cluster.
So what's a centroid?
You've got a cluster, and inthe clusters, you've got a
bunch of points scatteredaround.
The centroid you can think ofas, quote, "the average
point," the centerof the cluster.
The centroid need not be any ofthe points in the cluster.
So, again, you needsome metric.
But let's say we'reusing Euclidean.
It's easy to see on the board.
The centroid is kind of there.
Now let's assume that we'regoing to start by choosing
k-point from the initialset and labeling each
of them as a centroid.
We often--
in fact, quite typically--
choose these at random.
So we now have k randomly chosenpoints, each of which
we're going to call centroid.
The next step is toassign each point
to the nearest centroid.
So we've got k-centroids.
We usually choose asmall k, say 50.
And now we have to compare eachof the 3,100 counties to
each of the 50 centroids, andput each one in the correct
thing, in the closest.
So it's 50 times 3,100, whichis a lot smaller number than
3,100 squared.
So now I've got a clustering.
Kind of strange, because what itlooks like depends on this
random choice.
So there's no reason to expectthat the initial assignment
will give me anythingvery useful.
Step (4) is, for eachof the k-clusters,
choose a new centroid.
Now remember, I just choseat random k-centroids.
Now I actually have a clusterwith a bunch of points in it,
so I could, for example, takethe average of those and
compute a centroid.
And I can either take theaverage, or I can take the
point nearest the average.
It doesn't much matter.
And then step (5) is one we'velooked at before, assign each
point to nearest centroid.
So now I'm going to geta new clustering.
And then, (6) is repeat(4) and (5) until
the change is small.
So each time I do step (5), Ican keep track of how many
points I've moved from onecluster to another.
Or each time I do step (4), Ican say how much have I moved
the centroids?
Each of those gives me a measureof how much change the
new iteration has produced.
When I get to the point wherethe iterations are not making
much of a change--
and we'll see what wemight mean by that--
we stop and say, OK, we nowhave a good clustering.
So if we think of the complexityeach iteration is
order k-n, where k is the numberof clusters, and n is
the number of points.
And then we do that step forsome number of iterations.
So if the number of iterationsis small, it will converge
quite quickly.
And as we'll see, typically fork-means, we don't need a
lot of iterations toget an answer.
It's typically not proportionalto n, in
particular, which isvery important.
All right.
Tuesday, we'll go over the codefor k-means clustering,
and then have some fun playingwith counties and see what we
can learn about where we live.
All right.
Thanks a lot.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883align:start position:0% okay so now we're just going to jump
align:start position:0%okay so now we're just going to jump
align:start position:0%okay so now we're just going to jumpdirectly into how to use R for
align:start position:0%directly into how to use R for
align:start position:0%directly into how to use R forstatistics um I'm going to make a very
align:start position:0%statistics um I'm going to make a very
align:start position:0%statistics um I'm going to make a veryquick tutorial about how to apply linear
align:start position:0%quick tutorial about how to apply linear
align:start position:0%quick tutorial about how to apply linearmodels into the data also General linear
align:start position:0%models into the data also General linear
align:start position:0%models into the data also General linearmodels and mix models I'm not going to
align:start position:0%models and mix models I'm not going to
align:start position:0%models and mix models I'm not going tocover the mathematical principle
align:start position:0%cover the mathematical principle
align:start position:0%cover the mathematical principleof that I'm just going to show you how
align:start position:0%of that I'm just going to show you how
align:start position:0%of that I'm just going to show you howto apply those models um with code so
align:start position:0%to apply those models um with code so
align:start position:0%to apply those models um with code sofirst of all I'm just going to start
align:start position:0%first of all I'm just going to start
align:start position:0%first of all I'm just going to startover with all the objects here just
align:start position:0%over with all the objects here just
align:start position:0%over with all the objects here justcleaning a little bit so it's not
align:start position:0%cleaning a little bit so it's not
align:start position:0%cleaning a little bit so it's notdistracting
align:start position:0%distracting
align:start position:0%distractingus um it's just going to charge again
align:start position:0%us um it's just going to charge again
align:start position:0%us um it's just going to charge againthe database we've been working with
align:start position:0%the database we've been working with
align:start position:0%the database we've been working withbased on nitrogen and phosphorus and
align:start position:0%based on nitrogen and phosphorus and
align:start position:0%based on nitrogen and phosphorus andpotassium Fertilization in yields oops
align:start position:0%potassium Fertilization in yields oops
align:start position:0%potassium Fertilization in yields oopssorry um okay so this this is how the
align:start position:0%sorry um okay so this this is how the
align:start position:0%sorry um okay so this this is how thestructure of our linear model should
align:start position:0%structure of our linear model should
align:start position:0%structure of our linear model shouldlook like in first of all we create the
align:start position:0%look like in first of all we create the
align:start position:0%look like in first of all we create thename of the model model number one um we
align:start position:0%name of the model model number one um we
align:start position:0%name of the model model number one um weassign all of this into model number one
align:start position:0%assign all of this into model number one
align:start position:0%assign all of this into model number oneLM which is linear model and here we're
align:start position:0%LM which is linear model and here we're
align:start position:0%LM which is linear model and here we'regoing to have our dependent variable the
align:start position:0%going to have our dependent variable the
align:start position:0%going to have our dependent variable theY which is the yield just to remind you
align:start position:0%Y which is the yield just to remind you
align:start position:0%Y which is the yield just to remind youagain what the database is about here we
align:start position:0%again what the database is about here we
align:start position:0%again what the database is about here wehave how much yield has been produced
align:start position:0%have how much yield has been produced
align:start position:0%have how much yield has been producedafter the different treatments of
align:start position:0%after the different treatments of
align:start position:0%after the different treatments offertilization and we have have the
align:start position:0%fertilization and we have have the
align:start position:0%fertilization and we have have thedifferent experiments set in different
align:start position:0%different experiments set in different
align:start position:0%different experiments set in differentblocks um so and we're going to just to
align:start position:0%blocks um so and we're going to just to
align:start position:0%blocks um so and we're going to just toseparate um dependent and independent
align:start position:0%separate um dependent and independent
align:start position:0%separate um dependent and independentvariables we put this sign in here and
align:start position:0%variables we put this sign in here and
align:start position:0%variables we put this sign in here andthen these are the different variables
align:start position:0%then these are the different variables
align:start position:0%then these are the different variableswe want to explore um coma and then data
align:start position:0%we want to explore um coma and then data
align:start position:0%we want to explore um coma and then dataum we assign the data we want to um
align:start position:0%um we assign the data we want to um
align:start position:0%um we assign the data we want to umexplore which is the
align:start position:0%explore which is the
align:start position:0%explore which is theNPK so let's just run this
align:start position:0%NPK so let's just run this
align:start position:0%NPK so let's just run thisand if we
align:start position:0%and if we
align:start position:0%and if wesee what we have in the
align:start position:0%see what we have in the
align:start position:0%see what we have in theobject this is what we're going to see
align:start position:0%object this is what we're going to see
align:start position:0%object this is what we're going to seewhich is not very informative so what we
align:start position:0%which is not very informative so what we
align:start position:0%which is not very informative so what weneed is to go to the summary of that
align:start position:0%need is to go to the summary of that
align:start position:0%need is to go to the summary of thatmodel that's going to provide us with
align:start position:0%model that's going to provide us with
align:start position:0%model that's going to provide us withthe information that we would need to
align:start position:0%the information that we would need to
align:start position:0%the information that we would need tounderstand what's going on in the model
align:start position:0%understand what's going on in the model
align:start position:0%understand what's going on in the modelso just click on summary M1 and here
align:start position:0%so just click on summary M1 and here
align:start position:0%so just click on summary M1 and herewhat we're going to see just make it
align:start position:0%what we're going to see just make it
align:start position:0%what we're going to see just make itbigger so you see it
align:start position:0%bigger so you see it
align:start position:0%bigger so you see itproperly first of all it's going to
align:start position:0%properly first of all it's going to
align:start position:0%properly first of all it's going todisplay like the formula so what's the
align:start position:0%display like the formula so what's the
align:start position:0%display like the formula so what's thequestion that we've asked to the
align:start position:0%question that we've asked to the
align:start position:0%question that we've asked to thecomputer then we're going to have the
align:start position:0%computer then we're going to have the
align:start position:0%computer then we're going to have thedistribution of the
align:start position:0%distribution of the
align:start position:0%distribution of theresiduals and and here it goes the
align:start position:0%residuals and and here it goes the
align:start position:0%residuals and and here it goes theinteresting part which is the
align:start position:0%interesting part which is the
align:start position:0%interesting part which is thecoefficients um this is the intercept
align:start position:0%coefficients um this is the intercept
align:start position:0%coefficients um this is the interceptand then the different effects of the
align:start position:0%and then the different effects of the
align:start position:0%and then the different effects of thedifferent variables nitrogen phosphorus
align:start position:0%different variables nitrogen phosphorus
align:start position:0%different variables nitrogen phosphorusand potassium so when these are one so
align:start position:0%and potassium so when these are one so
align:start position:0%and potassium so when these are one sowhen there's
align:start position:0%when there's
align:start position:0%when there'sfertilization we see that there's a an
align:start position:0%fertilization we see that there's a an
align:start position:0%fertilization we see that there's a anincrease because it's a positive value
align:start position:0%increase because it's a positive value
align:start position:0%increase because it's a positive valueinto the um the Baseline with phosphorus
align:start position:0%into the um the Baseline with phosphorus
align:start position:0%into the um the Baseline with phosphorusthere's a decrease and with potassium
align:start position:0%there's a decrease and with potassium
align:start position:0%there's a decrease and with potassiumthere's a decrease as well and just to
align:start position:0%there's a decrease as well and just to
align:start position:0%there's a decrease as well and just tosee if those different treatments are
align:start position:0%see if those different treatments are
align:start position:0%see if those different treatments aresignificant or not based on
align:start position:0%significant or not based on
align:start position:0%significant or not based on0.05 um P P value we have the
align:start position:0%0.05 um P P value we have the
align:start position:0%0.05 um P P value we have thedifferent um like the P values here and
align:start position:0%different um like the P values here and
align:start position:0%different um like the P values here andwhen whatever it's um significant we
align:start position:0%when whatever it's um significant we
align:start position:0%when whatever it's um significant wehave one aerisk if it is very
align:start position:0%have one aerisk if it is very
align:start position:0%have one aerisk if it is verysignificant we have three and if it's
align:start position:0%significant we have three and if it's
align:start position:0%significant we have three and if it'smarginal we have this dot here and if
align:start position:0%marginal we have this dot here and if
align:start position:0%marginal we have this dot here and ifthere's nothing it means that it's not
align:start position:0%there's nothing it means that it's not
align:start position:0%there's nothing it means that it's notsign ific enough um also some
align:start position:0%sign ific enough um also some
align:start position:0%sign ific enough um also someinteresting features is like the adjust
align:start position:0%interesting features is like the adjust
align:start position:0%interesting features is like the adjustP R square um just as a reminder the R
align:start position:0%P R square um just as a reminder the R
align:start position:0%P R square um just as a reminder the Rsquare goes between zero and one um in
align:start position:0%square goes between zero and one um in
align:start position:0%square goes between zero and one um inthis case will be
align:start position:0%this case will be
align:start position:0%this case will be0.23 or like 20 23% and also the P value
align:start position:0%0.23 or like 20 23% and also the P value
align:start position:0%0.23 or like 20 23% and also the P valueof the whole model is displ right here
align:start position:0%of the whole model is displ right here
align:start position:0%of the whole model is displ right herejust put this
align:start position:0%just put this
align:start position:0%just put thisback so I think that's also very useful
align:start position:0%back so I think that's also very useful
align:start position:0%back so I think that's also very usefulis to explore how the residual look like
align:start position:0%is to explore how the residual look like
align:start position:0%is to explore how the residual look liketo see if we have uh an appropriate
align:start position:0%to see if we have uh an appropriate
align:start position:0%to see if we have uh an appropriatedistribution of the residuals if it
align:start position:0%distribution of the residuals if it
align:start position:0%distribution of the residuals if itfollows um a normal distribution
align:start position:0%follows um a normal distribution
align:start position:0%follows um a normal distributionso um I create a histogram of what of
align:start position:0%so um I create a histogram of what of
align:start position:0%so um I create a histogram of what ofthe residuals of the model one so that
align:start position:0%the residuals of the model one so that
align:start position:0%the residuals of the model one so thatstands for residuals a coma and
align:start position:0%stands for residuals a coma and
align:start position:0%stands for residuals a coma andpreviously I mentioned that you can
align:start position:0%previously I mentioned that you can
align:start position:0%previously I mentioned that you canchange the number of bars that are
align:start position:0%change the number of bars that are
align:start position:0%change the number of bars that aredisplayed in your histogram in this case
align:start position:0%displayed in your histogram in this case
align:start position:0%displayed in your histogram in this caseI want
align:start position:0%
align:start position:0% 10 here it is I could shorten that
align:start position:0%10 here it is I could shorten that
align:start position:0%10 here it is I could shorten thatnumber and now you'll see that I have
align:start position:0%number and now you'll see that I have
align:start position:0%number and now you'll see that I haveless
align:start position:0%less
align:start position:0%lessbars and so
align:start position:0%bars and so
align:start position:0%bars and soforth something else you could do is a
align:start position:0%forth something else you could do is a
align:start position:0%forth something else you could do is abox plot I want to see what happens when
align:start position:0%box plot I want to see what happens when
align:start position:0%box plot I want to see what happens whenI fertilize with nitrogen um so I can
align:start position:0%I fertilize with nitrogen um so I can
align:start position:0%I fertilize with nitrogen um so I cancreate a box plot just like that um
align:start position:0%create a box plot just like that um
align:start position:0%create a box plot just like that umyield and nitrogen so I'm just going to
align:start position:0%yield and nitrogen so I'm just going to
align:start position:0%yield and nitrogen so I'm just going tofocus on nitrogen right now and again
align:start position:0%focus on nitrogen right now and again
align:start position:0%focus on nitrogen right now and againthe data that we want to explore so just
align:start position:0%the data that we want to explore so just
align:start position:0%the data that we want to explore so justclick on it and we see that the ones
align:start position:0%click on it and we see that the ones
align:start position:0%click on it and we see that the onesthat are not fertilized are lower and
align:start position:0%that are not fertilized are lower and
align:start position:0%that are not fertilized are lower andthe ones that are
align:start position:0%the ones that are
align:start position:0%the ones that arefertilized have higher
align:start position:0%
align:start position:0% yield and we
align:start position:0%yield and we
align:start position:0%yield and wecan save that summary that we created
align:start position:0%can save that summary that we created
align:start position:0%can save that summary that we createdbecause it's where all the important
align:start position:0%because it's where all the important
align:start position:0%because it's where all the importantdata leaves so we have here this result
align:start position:0%data leaves so we have here this result
align:start position:0%data leaves so we have here this resultright here so we can consult the
align:start position:0%right here so we can consult the
align:start position:0%right here so we can consult thedifferent parts that we just um
align:start position:0%different parts that we just um
align:start position:0%different parts that we just umconsulted uh before so everything is
align:start position:0%consulted uh before so everything is
align:start position:0%consulted uh before so everything isstored right here and we could even call
align:start position:0%stored right here and we could even call
align:start position:0%stored right here and we could even callindividually the ones that let's say I'm
align:start position:0%individually the ones that let's say I'm
align:start position:0%individually the ones that let's say I'mjust I just want to store the
align:start position:0%just I just want to store the
align:start position:0%just I just want to store thecoefficients so I'll go the sum like the
align:start position:0%coefficients so I'll go the sum like the
align:start position:0%coefficients so I'll go the sum like thedollar and I go to
align:start position:0%dollar and I go to
align:start position:0%dollar and I go tocoefficients and here I'm just going to
align:start position:0%coefficients and here I'm just going to
align:start position:0%coefficients and here I'm just going tosee the
align:start position:0%
align:start position:0% coefficients which are the same that
align:start position:0%
align:start position:0% before okay now it's the turn of the glm
align:start position:0%before okay now it's the turn of the glm
align:start position:0%before okay now it's the turn of the glmand the generalized linear models they
align:start position:0%and the generalized linear models they
align:start position:0%and the generalized linear models theyare quite similar to linear models but
align:start position:0%are quite similar to linear models but
align:start position:0%are quite similar to linear models butone of the advantages with glms is that
align:start position:0%one of the advantages with glms is that
align:start position:0%one of the advantages with glms is thatwe can provide a distribution of the
align:start position:0%we can provide a distribution of the
align:start position:0%we can provide a distribution of thedata in case the data wouldn't be uh
align:start position:0%data in case the data wouldn't be uh
align:start position:0%data in case the data wouldn't be uhnormal we could apply family links like
align:start position:0%normal we could apply family links like
align:start position:0%normal we could apply family links likeso to say if we want to have an um a
align:start position:0%so to say if we want to have an um a
align:start position:0%so to say if we want to have an um agamma distribution then we can add that
align:start position:0%gamma distribution then we can add that
align:start position:0%gamma distribution then we can add thatto the model so we don't have normal
align:start position:0%to the model so we don't have normal
align:start position:0%to the model so we don't have normalproblems
align:start position:0%problems
align:start position:0%problemsum and so the structure as you can see
align:start position:0%um and so the structure as you can see
align:start position:0%um and so the structure as you can seeis mostly the same as the linear models
align:start position:0%is mostly the same as the linear models
align:start position:0%is mostly the same as the linear modelsjust that we add that so glm uh same um
align:start position:0%just that we add that so glm uh same um
align:start position:0%just that we add that so glm uh same umy variable I'm function of these
align:start position:0%y variable I'm function of these
align:start position:0%y variable I'm function of thesedifferent X variables just go for the
align:start position:0%different X variables just go for the
align:start position:0%different X variables just go for thesame if you wanted to apply the family
align:start position:0%same if you wanted to apply the family
align:start position:0%same if you wanted to apply the familyjust oh let just go back to the help
align:start position:0%just oh let just go back to the help
align:start position:0%just oh let just go back to the helpthing just see how glm
align:start position:0%thing just see how glm
align:start position:0%thing just see how glmworks you see here it contemplates the
align:start position:0%works you see here it contemplates the
align:start position:0%works you see here it contemplates thepossibility of add a family in this case
align:start position:0%possibility of add a family in this case
align:start position:0%possibility of add a family in this caseby default is gaussian so whatever you
align:start position:0%by default is gaussian so whatever you
align:start position:0%by default is gaussian so whatever yousee here initially
align:start position:0%see here initially
align:start position:0%see here initiallyis what is displayed by default but if
align:start position:0%is what is displayed by default but if
align:start position:0%is what is displayed by default but ifyou wanted to change this Gauss into
align:start position:0%you wanted to change this Gauss into
align:start position:0%you wanted to change this Gauss intosomething else then you could you could
align:start position:0%something else then you could you could
align:start position:0%something else then you could you coulddo it so if you scroll down you'll see
align:start position:0%do it so if you scroll down you'll see
align:start position:0%do it so if you scroll down you'll seethe information about the family and if
align:start position:0%the information about the family and if
align:start position:0%the information about the family and ifyou click on family for
align:start position:0%you click on family for
align:start position:0%you click on family fordetails here you see the different
align:start position:0%details here you see the different
align:start position:0%details here you see the differentpossibilities you have so like if you
align:start position:0%possibilities you have so like if you
align:start position:0%possibilities you have so like if youwant to um apply a binomial distribution
align:start position:0%want to um apply a binomial distribution
align:start position:0%want to um apply a binomial distributiongamma and so forth this is what you
align:start position:0%gamma and so forth this is what you
align:start position:0%gamma and so forth this is what youshould um include in your model so I'm
align:start position:0%should um include in your model so I'm
align:start position:0%should um include in your model so I'mjust going to copy that command go right
align:start position:0%just going to copy that command go right
align:start position:0%just going to copy that command go righthere
align:start position:0%here
align:start position:0%heresee that's the function I
align:start position:0%see that's the function I
align:start position:0%see that's the function Iwant I have to put family
align:start position:0%
align:start position:0% first and go ahead and
align:start position:0%first and go ahead and
align:start position:0%first and go ahead andnow it follows my gamma distribution I'm
align:start position:0%now it follows my gamma distribution I'm
align:start position:0%now it follows my gamma distribution I'mnot saying that's mathematically correct
align:start position:0%not saying that's mathematically correct
align:start position:0%not saying that's mathematically corrector not I'm just focusing on the commands
align:start position:0%or not I'm just focusing on the commands
align:start position:0%or not I'm just focusing on the commandsfor you to be able to do it in your
align:start position:0%for you to be able to do it in your
align:start position:0%for you to be able to do it in yourcode okay so now that we've reached this
align:start position:0%code okay so now that we've reached this
align:start position:0%code okay so now that we've reached thispoint I'll challenge you with this
align:start position:0%point I'll challenge you with this
align:start position:0%point I'll challenge you with thisexercise asking the question are there
align:start position:0%exercise asking the question are there
align:start position:0%exercise asking the question are thereany differences in yield due to its
align:start position:0%any differences in yield due to its
align:start position:0%any differences in yield due to itsblock what is the block just it's a
align:start position:0%block what is the block just it's a
align:start position:0%block what is the block just it's aquick reminder that's the
align:start position:0%
align:start position:0% block so you can answer the question
align:start position:0%block so you can answer the question
align:start position:0%block so you can answer the questionboth using linear model all generalized
align:start position:0%both using linear model all generalized
align:start position:0%both using linear model all generalizedlinear model up to
align:start position:0%
align:start position:0% you all right let just enter the
align:start position:0%you all right let just enter the
align:start position:0%you all right let just enter theexercise um to do so I'm just going to
align:start position:0%exercise um to do so I'm just going to
align:start position:0%exercise um to do so I'm just going tocreate a model it's going to be called
align:start position:0%create a model it's going to be called
align:start position:0%create a model it's going to be calledM2 um and the question we had I'm going
align:start position:0%M2 um and the question we had I'm going
align:start position:0%M2 um and the question we had I'm goingto use linear model to answer that the
align:start position:0%to use linear model to answer that the
align:start position:0%to use linear model to answer that thequestion was are there any differences
align:start position:0%question was are there any differences
align:start position:0%question was are there any differencesin yield due to each block so let's just
align:start position:0%in yield due to each block so let's just
align:start position:0%in yield due to each block so let's justsee
align:start position:0%see
align:start position:0%seeyield as
align:start position:0%yield as
align:start position:0%yield asum a
align:start position:0%um a
align:start position:0%um avariable that's a y variable and we want
align:start position:0%variable that's a y variable and we want
align:start position:0%variable that's a y variable and we wantto see if there's any difference due to
align:start position:0%to see if there's any difference due to
align:start position:0%to see if there's any difference due toblock um
align:start position:0%block um
align:start position:0%block umum and then
align:start position:0%um and then
align:start position:0%um and thendata it's
align:start position:0%
align:start position:0% NPK and that should
align:start position:0%NPK and that should
align:start position:0%NPK and that shouldwork let's see what we have in the
align:start position:0%work let's see what we have in the
align:start position:0%work let's see what we have in themodel again I remind you that summary is
align:start position:0%model again I remind you that summary is
align:start position:0%model again I remind you that summary iswhere we want to go in order to see
align:start position:0%where we want to go in order to see
align:start position:0%where we want to go in order to seewhat's going on in the
align:start position:0%what's going on in the
align:start position:0%what's going on in themodel
align:start position:0%model
align:start position:0%modelokay let's
align:start position:0%okay let's
align:start position:0%okay let'ssee well I'd say not really um we don't
align:start position:0%see well I'd say not really um we don't
align:start position:0%see well I'd say not really um we don'thave a lot of significance here there's
align:start position:0%have a lot of significance here there's
align:start position:0%have a lot of significance here there'sonly one that's marginally significant
align:start position:0%only one that's marginally significant
align:start position:0%only one that's marginally significantthis block number three might be a
align:start position:0%this block number three might be a
align:start position:0%this block number three might be alittle bit different than the other
align:start position:0%little bit different than the other
align:start position:0%little bit different than the otherblocks
align:start position:0%blocks
align:start position:0%blocksum the P value of the whole model is not
align:start position:0%um the P value of the whole model is not
align:start position:0%um the P value of the whole model is notvery good so I would say that we don't
align:start position:0%very good so I would say that we don't
align:start position:0%very good so I would say that we don'thave
align:start position:0%have
align:start position:0%havedifferences due
align:start position:0%differences due
align:start position:0%differences dueto the
align:start position:0%
align:start position:0% block okay so before moving forward to
align:start position:0%block okay so before moving forward to
align:start position:0%block okay so before moving forward tothe mix model
align:start position:0%the mix model
align:start position:0%the mix modelI would like to introduce them a little
align:start position:0%I would like to introduce them a little
align:start position:0%I would like to introduce them a littlebit just to go through why um are they
align:start position:0%bit just to go through why um are they
align:start position:0%bit just to go through why um are theyimportant and how can we benefit from
align:start position:0%important and how can we benefit from
align:start position:0%important and how can we benefit fromlinear mix models um so let's imagine
align:start position:0%linear mix models um so let's imagine
align:start position:0%linear mix models um so let's imaginethat we're working in our experiment in
align:start position:0%that we're working in our experiment in
align:start position:0%that we're working in our experiment inthis case um we are applying the
align:start position:0%this case um we are applying the
align:start position:0%this case um we are applying theexperiment that we have in the database
align:start position:0%experiment that we have in the database
align:start position:0%experiment that we have in the databasethe NPK database um there are um
align:start position:0%the NPK database um there are um
align:start position:0%the NPK database um there are umdistributions based on blocks so what
align:start position:0%distributions based on blocks so what
align:start position:0%distributions based on blocks so whatare those blocks so let's just imagine
align:start position:0%are those blocks so let's just imagine
align:start position:0%are those blocks so let's just imaginethat this is our working space this is
align:start position:0%that this is our working space this is
align:start position:0%that this is our working space this isour lab this is where we are performing
align:start position:0%our lab this is where we are performing
align:start position:0%our lab this is where we are performingour experiments and but just because the
align:start position:0%our experiments and but just because the
align:start position:0%our experiments and but just because thedistribution of the lab is like this we
align:start position:0%distribution of the lab is like this we
align:start position:0%distribution of the lab is like this wehave one side where there are windows so
align:start position:0%have one side where there are windows so
align:start position:0%have one side where there are windows sowhere the sun could get into our
align:start position:0%where the sun could get into our
align:start position:0%where the sun could get into ourexperiment and there's the other side of
align:start position:0%experiment and there's the other side of
align:start position:0%experiment and there's the other side ofthe lab where there's no windows so I
align:start position:0%the lab where there's no windows so I
align:start position:0%the lab where there's no windows so Iwould anticipate at the beginning that
align:start position:0%would anticipate at the beginning that
align:start position:0%would anticipate at the beginning thatmaybe the plants that are have more
align:start position:0%maybe the plants that are have more
align:start position:0%maybe the plants that are have morelight so the ones that are closer to the
align:start position:0%light so the ones that are closer to the
align:start position:0%light so the ones that are closer to thewindow um might grow more but this is
align:start position:0%window um might grow more but this is
align:start position:0%window um might grow more but this issomething that I am not interested in
align:start position:0%something that I am not interested in
align:start position:0%something that I am not interested inexploring in my experiment so to do that
align:start position:0%exploring in my experiment so to do that
align:start position:0%exploring in my experiment so to do thatthat's where I introduce blocks so I
align:start position:0%that's where I introduce blocks so I
align:start position:0%that's where I introduce blocks so Iwould record each of these plants that
align:start position:0%would record each of these plants that
align:start position:0%would record each of these plants thatI'm growing into a different block so in
align:start position:0%I'm growing into a different block so in
align:start position:0%I'm growing into a different block so inthis case I would have three blocks and
align:start position:0%this case I would have three blocks and
align:start position:0%this case I would have three blocks andthese are distributed based on how close
align:start position:0%these are distributed based on how close
align:start position:0%these are distributed based on how closethey are from the windows so this
align:start position:0%they are from the windows so this
align:start position:0%they are from the windows so thisapplies also um into other sort of um
align:start position:0%applies also um into other sort of um
align:start position:0%applies also um into other sort of umenvironments so if we move to this other
align:start position:0%environments so if we move to this other
align:start position:0%environments so if we move to this otherdesign we see that could this could
align:start position:0%design we see that could this could
align:start position:0%design we see that could this couldapply in when you go to the field uh if
align:start position:0%apply in when you go to the field uh if
align:start position:0%apply in when you go to the field uh ifyou have the that represents a forest if
align:start position:0%you have the that represents a forest if
align:start position:0%you have the that represents a forest ifyou have a forest in the top of the hill
align:start position:0%you have a forest in the top of the hill
align:start position:0%you have a forest in the top of the hillthat might be differently affected by
align:start position:0%that might be differently affected by
align:start position:0%that might be differently affected bythe forest that that's in the bottom of
align:start position:0%the forest that that's in the bottom of
align:start position:0%the forest that that's in the bottom ofthe hill so this could be block number
align:start position:0%the hill so this could be block number
align:start position:0%the hill so this could be block numberone and this could be block number two
align:start position:0%one and this could be block number two
align:start position:0%one and this could be block number twoand we could use blocks for everything
align:start position:0%and we could use blocks for everything
align:start position:0%and we could use blocks for everythingthat comes into our mind let's say that
align:start position:0%that comes into our mind let's say that
align:start position:0%that comes into our mind let's say thatwe are exploring a variable and we
align:start position:0%we are exploring a variable and we
align:start position:0%we are exploring a variable and weassume that if our um water river is
align:start position:0%assume that if our um water river is
align:start position:0%assume that if our um water river isclose to a city or it's far from a city
align:start position:0%close to a city or it's far from a city
align:start position:0%close to a city or it's far from a citythat could be important that could
align:start position:0%that could be important that could
align:start position:0%that could be important that couldaffect our experiment so here is where
align:start position:0%affect our experiment so here is where
align:start position:0%affect our experiment so here is wherewe think about using linear mix models
align:start position:0%we think about using linear mix models
align:start position:0%we think about using linear mix modelsto take away the error or take away the
align:start position:0%to take away the error or take away the
align:start position:0%to take away the error or take away thevariability that could come from things
align:start position:0%variability that could come from things
align:start position:0%variability that could come from thingsthat are outside of our control so we
align:start position:0%that are outside of our control so we
align:start position:0%that are outside of our control so wedon't have any interest in studying the
align:start position:0%don't have any interest in studying the
align:start position:0%don't have any interest in studying thedifferences in top and bottom of the
align:start position:0%differences in top and bottom of the
align:start position:0%differences in top and bottom of thehill and we don't have any interest in
align:start position:0%hill and we don't have any interest in
align:start position:0%hill and we don't have any interest instudying the differences between the
align:start position:0%studying the differences between the
align:start position:0%studying the differences between theplants that are closed to the window and
align:start position:0%plants that are closed to the window and
align:start position:0%plants that are closed to the window andthe ones that are out of the window so
align:start position:0%the ones that are out of the window so
align:start position:0%the ones that are out of the window solinear mix models are a good way to get
align:start position:0%linear mix models are a good way to get
align:start position:0%linear mix models are a good way to getrid of that variability and just put the
align:start position:0%rid of that variability and just put the
align:start position:0%rid of that variability and just put theemphasis on the experiment that we are
align:start position:0%emphasis on the experiment that we are
align:start position:0%emphasis on the experiment that we arecurrently running
align:start position:0%
align:start position:0% after the quick explanation about the
align:start position:0%after the quick explanation about the
align:start position:0%after the quick explanation about thelinear mix models uh let's just go ahead
align:start position:0%linear mix models uh let's just go ahead
align:start position:0%linear mix models uh let's just go aheadwith a code again um just going to get
align:start position:0%with a code again um just going to get
align:start position:0%with a code again um just going to getrid of
align:start position:0%rid of
align:start position:0%rid ofthis it might be distracting
align:start position:0%this it might be distracting
align:start position:0%this it might be distractingum so linear models and generalized
align:start position:0%um so linear models and generalized
align:start position:0%um so linear models and generalizedlinear models are included in the r
align:start position:0%linear models are included in the r
align:start position:0%linear models are included in the rfunctions but for mix models we have to
align:start position:0%functions but for mix models we have to
align:start position:0%functions but for mix models we have toum install and charge extra packet
align:start position:0%um install and charge extra packet
align:start position:0%um install and charge extra packetum in this case I'm going to use the
align:start position:0%um in this case I'm going to use the
align:start position:0%um in this case I'm going to use thenlme package and also the LMR test so I
align:start position:0%nlme package and also the LMR test so I
align:start position:0%nlme package and also the LMR test so Ialready have them installed but feel
align:start position:0%already have them installed but feel
align:start position:0%already have them installed but feelfree to install them first and
align:start position:0%free to install them first and
align:start position:0%free to install them first andthen charge them in your
align:start position:0%then charge them in your
align:start position:0%then charge them in yoursession um in this case instead of LM or
align:start position:0%session um in this case instead of LM or
align:start position:0%session um in this case instead of LM orglm we have the lme um just a linear mix
align:start position:0%glm we have the lme um just a linear mix
align:start position:0%glm we have the lme um just a linear mixmodels
align:start position:0%models
align:start position:0%modelsand our variable it's still the yield so
align:start position:0%and our variable it's still the yield so
align:start position:0%and our variable it's still the yield sohow much yield is produced after the
align:start position:0%how much yield is produced after the
align:start position:0%how much yield is produced after thefertilization of nitrogen phosphorus and
align:start position:0%fertilization of nitrogen phosphorus and
align:start position:0%fertilization of nitrogen phosphorus andpottassium but now we are adding this
align:start position:0%pottassium but now we are adding this
align:start position:0%pottassium but now we are adding thisrandom Factor um this part of the model
align:start position:0%random Factor um this part of the model
align:start position:0%random Factor um this part of the modelis what we call the fix the fixed part
align:start position:0%is what we call the fix the fixed part
align:start position:0%is what we call the fix the fixed partthe fixed variables or but the ones
align:start position:0%the fixed variables or but the ones
align:start position:0%the fixed variables or but the oneswe're going to include in this section
align:start position:0%we're going to include in this section
align:start position:0%we're going to include in this sectionare the random variables which are the
align:start position:0%are the random variables which are the
align:start position:0%are the random variables which are theones that we are not particularly
align:start position:0%ones that we are not particularly
align:start position:0%ones that we are not particularlyinterested in understanding but we want
align:start position:0%interested in understanding but we want
align:start position:0%interested in understanding but we wantto control so they don't add noise into
align:start position:0%to control so they don't add noise into
align:start position:0%to control so they don't add noise intoour result s so in this case the random
align:start position:0%our result s so in this case the random
align:start position:0%our result s so in this case the randomone is the block which based on the
align:start position:0%one is the block which based on the
align:start position:0%one is the block which based on theexplanation of um the linear mix models
align:start position:0%explanation of um the linear mix models
align:start position:0%explanation of um the linear mix modelsare the different tables the different
align:start position:0%are the different tables the different
align:start position:0%are the different tables the differentblocks um the data and here I added
align:start position:0%blocks um the data and here I added
align:start position:0%blocks um the data and here I addedsomething new that could be used in
align:start position:0%something new that could be used in
align:start position:0%something new that could be used inevery model which is how the model face
align:start position:0%every model which is how the model face
align:start position:0%every model which is how the model facethe nas the nas are empty values um
align:start position:0%the nas the nas are empty values um
align:start position:0%the nas the nas are empty values umwhere R doesn't have information it's
align:start position:0%where R doesn't have information it's
align:start position:0%where R doesn't have information it'slike a a hole in the database so what
align:start position:0%like a a hole in the database so what
align:start position:0%like a a hole in the database so whathappens when R faces um a hole the data
align:start position:0%happens when R faces um a hole the data
align:start position:0%happens when R faces um a hole the datain this case I'm just saying just omit
align:start position:0%in this case I'm just saying just omit
align:start position:0%in this case I'm just saying just omitthat data and just keep going you could
align:start position:0%that data and just keep going you could
align:start position:0%that data and just keep going you couldbe um Na omit na fail so if you want the
align:start position:0%be um Na omit na fail so if you want the
align:start position:0%be um Na omit na fail so if you want thethe code to fail if it encounters an NA
align:start position:0%the code to fail if it encounters an NA
align:start position:0%the code to fail if it encounters an NAum in this case I'm just admitting that
align:start position:0%um in this case I'm just admitting that
align:start position:0%um in this case I'm just admitting thatto just keep going and give me a result
align:start position:0%to just keep going and give me a result
align:start position:0%to just keep going and give me a resultum just going to run
align:start position:0%um just going to run
align:start position:0%um just going to runthat and see how the residuals look
align:start position:0%that and see how the residuals look
align:start position:0%that and see how the residuals looklike again you you can change the number
align:start position:0%like again you you can change the number
align:start position:0%like again you you can change the numberof um of bars right here and I'm going
align:start position:0%of um of bars right here and I'm going
align:start position:0%of um of bars right here and I'm goingto see what's the
align:start position:0%
align:start position:0% result of the
align:start position:0%
align:start position:0% model in this case this um this package
align:start position:0%model in this case this um this package
align:start position:0%model in this case this um this packagedoesn't offer us the symbols next to the
align:start position:0%doesn't offer us the symbols next to the
align:start position:0%doesn't offer us the symbols next to thevariables to see if they are significant
align:start position:0%variables to see if they are significant
align:start position:0%variables to see if they are significantor not but we can still read the P value
align:start position:0%or not but we can still read the P value
align:start position:0%or not but we can still read the P valueum and it but it also give us the value
align:start position:0%um and it but it also give us the value
align:start position:0%um and it but it also give us the valueof The Intercept in this case we have
align:start position:0%of The Intercept in this case we have
align:start position:0%of The Intercept in this case we havemore significant results because of the
align:start position:0%more significant results because of the
align:start position:0%more significant results because of thecontrolling of the noise in the blocks
align:start position:0%controlling of the noise in the blocks
align:start position:0%controlling of the noise in the blocksso controlling that part of the
align:start position:0%so controlling that part of the
align:start position:0%so controlling that part of thevariability allows us to better focus on
align:start position:0%variability allows us to better focus on
align:start position:0%variability allows us to better focus onthe effect of the
align:start position:0%the effect of the
align:start position:0%the effect of thefertilization here we would see that
align:start position:0%fertilization here we would see that
align:start position:0%fertilization here we would see thatfertilization with nitrogen is
align:start position:0%fertilization with nitrogen is
align:start position:0%fertilization with nitrogen issignificantly affecting our results it
align:start position:0%significantly affecting our results it
align:start position:0%significantly affecting our results itis increasing the yield by five
align:start position:0%is increasing the yield by five
align:start position:0%is increasing the yield by fiveand also potassium is significantly
align:start position:0%and also potassium is significantly
align:start position:0%and also potassium is significantlyaffecting our yield production but in
align:start position:0%affecting our yield production but in
align:start position:0%affecting our yield production but inthis case is reducing the
align:start position:0%
align:start position:0% yield also what we can do is again to
align:start position:0%yield also what we can do is again to
align:start position:0%yield also what we can do is again tostore this information into an object
align:start position:0%store this information into an object
align:start position:0%store this information into an objectjust I named it a um you can consult
align:start position:0%just I named it a um you can consult
align:start position:0%just I named it a um you can consultwhatever is inside the summary in this
align:start position:0%whatever is inside the summary in this
align:start position:0%whatever is inside the summary in thiscase I want to see the information about
align:start position:0%case I want to see the information about
align:start position:0%case I want to see the information aboutthe fixed variables which are these ones
align:start position:0%the fixed variables which are these ones
align:start position:0%the fixed variables which are these oneshere and then I can also save this
align:start position:0%here and then I can also save this
align:start position:0%here and then I can also save thisinformation into a file in case I want
align:start position:0%information into a file in case I want
align:start position:0%information into a file in case I wantum just type save and the object you
align:start position:0%um just type save and the object you
align:start position:0%um just type save and the object youwant to save coma and where do you want
align:start position:0%want to save coma and where do you want
align:start position:0%want to save coma and where do you wantto store it here I'm just going to use
align:start position:0%to store it here I'm just going to use
align:start position:0%to store it here I'm just going to usethe r um format that I told you about
align:start position:0%the r um format that I told you about
align:start position:0%the r um format that I told you aboutbut if I want I wanted to store it let's
align:start position:0%but if I want I wanted to store it let's
align:start position:0%but if I want I wanted to store it let'ssay in CSV just write
align:start position:0%say in CSV just write
align:start position:0%say in CSV just writeCSV again the object you want to store
align:start position:0%CSV again the object you want to store
align:start position:0%CSV again the object you want to storeand the route where you want to where
align:start position:0%and the route where you want to where
align:start position:0%and the route where you want to whereyou want to put it in your
align:start position:0%
align:start position:0% computer123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451align:start position:0% welcome back to 8701
align:start position:0%welcome back to 8701
align:start position:0%welcome back to 8701so in this uh video we want to look at
align:start position:0%so in this uh video we want to look at
align:start position:0%so in this uh video we want to look atexperimental studies of neutrino
align:start position:0%experimental studies of neutrino
align:start position:0%experimental studies of neutrinooscillations
align:start position:0%oscillations
align:start position:0%oscillationsthe first question is where do we get
align:start position:0%the first question is where do we get
align:start position:0%the first question is where do we getthe neutrinos how do we produce the
align:start position:0%the neutrinos how do we produce the
align:start position:0%the neutrinos how do we produce theneutrinos the answer is
align:start position:0%neutrinos the answer is
align:start position:0%neutrinos the answer isthere's numerous sources for neutrinos
align:start position:0%there's numerous sources for neutrinos
align:start position:0%there's numerous sources for neutrinosyou might be lucky and
align:start position:0%you might be lucky and
align:start position:0%you might be lucky andfind them in supernova explosions or
align:start position:0%find them in supernova explosions or
align:start position:0%find them in supernova explosions orif you're really trying hard we can
align:start position:0%if you're really trying hard we can
align:start position:0%if you're really trying hard we canobserve them as relics
align:start position:0%observe them as relics
align:start position:0%observe them as relicsof the big bang there is a lot of
align:start position:0%of the big bang there is a lot of
align:start position:0%of the big bang there is a lot ofneutrinos as
align:start position:0%neutrinos as
align:start position:0%neutrinos asas the relic of the big bang um around
align:start position:0%as the relic of the big bang um around
align:start position:0%as the relic of the big bang um aroundus
align:start position:0%us
align:start position:0%usthe problem is that they have very low
align:start position:0%the problem is that they have very low
align:start position:0%the problem is that they have very lowenergies and are difficult to observe
align:start position:0%energies and are difficult to observe
align:start position:0%energies and are difficult to observeum easier so is the use of neutrinos
align:start position:0%um easier so is the use of neutrinos
align:start position:0%um easier so is the use of neutrinoswhen they're
align:start position:0%when they're
align:start position:0%when they'regenerated in cosmic air showers
align:start position:0%generated in cosmic air showers
align:start position:0%generated in cosmic air showersthere's a lot of neutrinos coming from
align:start position:0%there's a lot of neutrinos coming from
align:start position:0%there's a lot of neutrinos coming fromthe sun
align:start position:0%the sun
align:start position:0%the sunbeams beam lines accelerators can be
align:start position:0%beams beam lines accelerators can be
align:start position:0%beams beam lines accelerators can beused
align:start position:0%used
align:start position:0%usedto smash particles into material and
align:start position:0%to smash particles into material and
align:start position:0%to smash particles into material andthen in the decay product produce also
align:start position:0%then in the decay product produce also
align:start position:0%then in the decay product produce alsoneutrinos
align:start position:0%neutrinos
align:start position:0%neutrinosand also reactors nuclear reactors can
align:start position:0%and also reactors nuclear reactors can
align:start position:0%and also reactors nuclear reactors canbe used as neutrino sources
align:start position:0%be used as neutrino sources
align:start position:0%be used as neutrino sourcesby the way neutrinos can also be used in
align:start position:0%by the way neutrinos can also be used in
align:start position:0%by the way neutrinos can also be used inorder to
align:start position:0%order to
align:start position:0%order tomonitor the nuclear activity
align:start position:0%monitor the nuclear activity
align:start position:0%monitor the nuclear activityaround the globe
align:start position:0%
align:start position:0% okay studies of neutrino oscillation so
align:start position:0%okay studies of neutrino oscillation so
align:start position:0%okay studies of neutrino oscillation sowe can make this table here
align:start position:0%we can make this table here
align:start position:0%we can make this table hereand ask ourselves what kind of you know
align:start position:0%and ask ourselves what kind of you know
align:start position:0%and ask ourselves what kind of you knowthe experimental parameters are the
align:start position:0%the experimental parameters are the
align:start position:0%the experimental parameters are thelength the energy
align:start position:0%length the energy
align:start position:0%length the energyand the sensitivity to specific mass
align:start position:0%and the sensitivity to specific mass
align:start position:0%and the sensitivity to specific massrange
align:start position:0%range
align:start position:0%rangeso for the solar neutrinos you know the
align:start position:0%so for the solar neutrinos you know the
align:start position:0%so for the solar neutrinos you know thedistance between the earth and the sun
align:start position:0%distance between the earth and the sun
align:start position:0%distance between the earth and the sunis pretty much fixed
align:start position:0%is pretty much fixed
align:start position:0%is pretty much fixedum to first order the energy of the
align:start position:0%um to first order the energy of the
align:start position:0%um to first order the energy of theneutrinos coming out is in the order of
align:start position:0%neutrinos coming out is in the order of
align:start position:0%neutrinos coming out is in the order ofone mav we are going to look at a table
align:start position:0%one mav we are going to look at a table
align:start position:0%one mav we are going to look at a tableand so the mass range you can probe is
align:start position:0%and so the mass range you can probe is
align:start position:0%and so the mass range you can probe is10 to the minus 10
align:start position:0%10 to the minus 10
align:start position:0%10 to the minus 10in delta m square for atmospheric
align:start position:0%in delta m square for atmospheric
align:start position:0%in delta m square for atmosphericneutrinos they are produced in the upper
align:start position:0%neutrinos they are produced in the upper
align:start position:0%neutrinos they are produced in the upperatmosphere
align:start position:0%atmosphere
align:start position:0%atmosphereyou know tend to the forge 10 to the 7
align:start position:0%you know tend to the forge 10 to the 7
align:start position:0%you know tend to the forge 10 to the 7meters energies can range at a large
align:start position:0%meters energies can range at a large
align:start position:0%meters energies can range at a largerange
align:start position:0%range
align:start position:0%rangelet's say 10 to the 2 to 10 to the 5 mb
align:start position:0%let's say 10 to the 2 to 10 to the 5 mb
align:start position:0%let's say 10 to the 2 to 10 to the 5 mband then reactors typically mav range
align:start position:0%and then reactors typically mav range
align:start position:0%and then reactors typically mav rangethis is kind of the nuclear range for
align:start position:0%this is kind of the nuclear range for
align:start position:0%this is kind of the nuclear range forfor neutrino energies
align:start position:0%for neutrino energies
align:start position:0%for neutrino energiesum and the range is given by you know
align:start position:0%um and the range is given by you know
align:start position:0%um and the range is given by you knowhow much space do you have
align:start position:0%how much space do you have
align:start position:0%how much space do you haveyou know around or away from a nuclear
align:start position:0%you know around or away from a nuclear
align:start position:0%you know around or away from a nuclearreactor
align:start position:0%reactor
align:start position:0%reactorsimilarly for accelerators you build an
align:start position:0%similarly for accelerators you build an
align:start position:0%similarly for accelerators you build anaccelerator or
align:start position:0%accelerator or
align:start position:0%accelerator oruse an existing accelerator and then you
align:start position:0%use an existing accelerator and then you
align:start position:0%use an existing accelerator and then youbuild your detectors
align:start position:0%build your detectors
align:start position:0%build your detectorsmaybe close to it and maybe another one
align:start position:0%maybe close to it and maybe another one
align:start position:0%maybe close to it and maybe another onefar away and that's limited by the size
align:start position:0%far away and that's limited by the size
align:start position:0%far away and that's limited by the sizeof our planet
align:start position:0%of our planet
align:start position:0%of our planetor wherever you want to build um
align:start position:0%or wherever you want to build um
align:start position:0%or wherever you want to build umbuild your detectors energy ranges there
align:start position:0%build your detectors energy ranges there
align:start position:0%build your detectors energy ranges theredepends on the energy range of the
align:start position:0%depends on the energy range of the
align:start position:0%depends on the energy range of theaccelerator
align:start position:0%accelerator
align:start position:0%acceleratorand that is in the in the order of 10 to
align:start position:0%and that is in the in the order of 10 to
align:start position:0%and that is in the in the order of 10 tothe 3 10 to the five
align:start position:0%the 3 10 to the five
align:start position:0%the 3 10 to the fivefour maybe so you see that
align:start position:0%four maybe so you see that
align:start position:0%four maybe so you see thatyou know it's actually rather
align:start position:0%you know it's actually rather
align:start position:0%you know it's actually ratherstraightforward study
align:start position:0%straightforward study
align:start position:0%straightforward studyalso it's interesting to see and we see
align:start position:0%also it's interesting to see and we see
align:start position:0%also it's interesting to see and we seethis next what kind of
align:start position:0%this next what kind of
align:start position:0%this next what kind offlavor of neutrinos and whether or not
align:start position:0%flavor of neutrinos and whether or not
align:start position:0%flavor of neutrinos and whether or notwe can
align:start position:0%we can
align:start position:0%we canstudy neutrinos or anti-neutrinos
align:start position:0%study neutrinos or anti-neutrinos
align:start position:0%study neutrinos or anti-neutrinoswithout the experiment is important
align:start position:0%without the experiment is important
align:start position:0%without the experiment is importantso let's go through this and also
align:start position:0%so let's go through this and also
align:start position:0%so let's go through this and alsoexplain a little bit of a history and
align:start position:0%explain a little bit of a history and
align:start position:0%explain a little bit of a history andhow this all occurred
align:start position:0%how this all occurred
align:start position:0%how this all occurredso the first question is you know what
align:start position:0%so the first question is you know what
align:start position:0%so the first question is you know whatwhat happens to the solar neutrinos
align:start position:0%what happens to the solar neutrinos
align:start position:0%what happens to the solar neutrinosso solar neutrinos are basically
align:start position:0%so solar neutrinos are basically
align:start position:0%so solar neutrinos are basicallyproduced in the core of the sun together
align:start position:0%produced in the core of the sun together
align:start position:0%produced in the core of the sun togetherwith light
align:start position:0%with light
align:start position:0%with lightit turns out that the light of the sun
align:start position:0%it turns out that the light of the sun
align:start position:0%it turns out that the light of the suntakes about 10 000 years to come out of
align:start position:0%takes about 10 000 years to come out of
align:start position:0%takes about 10 000 years to come out ofthe sun while the neutrinos come out
align:start position:0%the sun while the neutrinos come out
align:start position:0%the sun while the neutrinos come outimmediately so when
align:start position:0%immediately so when
align:start position:0%immediately so whenfirst experiments tried to observe
align:start position:0%first experiments tried to observe
align:start position:0%first experiments tried to observesolar neutrinos they had to
align:start position:0%solar neutrinos they had to
align:start position:0%solar neutrinos they had totheoretically estimate and how many
align:start position:0%theoretically estimate and how many
align:start position:0%theoretically estimate and how manyneutrinos to expect
align:start position:0%neutrinos to expect
align:start position:0%neutrinos to expectand they saw less and so one explanation
align:start position:0%and they saw less and so one explanation
align:start position:0%and they saw less and so one explanationwould have been or could have been or
align:start position:0%would have been or could have been or
align:start position:0%would have been or could have been orwas
align:start position:0%was
align:start position:0%wasuh maybe something happened at the core
align:start position:0%uh maybe something happened at the core
align:start position:0%uh maybe something happened at the coreof the sun and we just haven't seen it
align:start position:0%of the sun and we just haven't seen it
align:start position:0%of the sun and we just haven't seen ityet because
align:start position:0%yet because
align:start position:0%yet becausethe light which comes out of the sun you
align:start position:0%the light which comes out of the sun you
align:start position:0%the light which comes out of the sun youknow has a delay of
align:start position:0%know has a delay of
align:start position:0%know has a delay ofup to ten thousand years that didn't
align:start position:0%up to ten thousand years that didn't
align:start position:0%up to ten thousand years that didn'tturn out to be the case
align:start position:0%turn out to be the case
align:start position:0%turn out to be the caseum so here's the spectrum of the
align:start position:0%um so here's the spectrum of the
align:start position:0%um so here's the spectrum of theneutrino energies and the specific
align:start position:0%neutrino energies and the specific
align:start position:0%neutrino energies and the specificsources of neutrinos
align:start position:0%sources of neutrinos
align:start position:0%sources of neutrinosuh from the sun in our nuclear physics
align:start position:0%uh from the sun in our nuclear physics
align:start position:0%uh from the sun in our nuclear physicsdiscussion we
align:start position:0%discussion we
align:start position:0%discussion wewill get to the point that we understand
align:start position:0%will get to the point that we understand
align:start position:0%will get to the point that we understandhow the neutrino
align:start position:0%how the neutrino
align:start position:0%how the neutrinohow the sun produces energy and then
align:start position:0%how the sun produces energy and then
align:start position:0%how the sun produces energy and thensome of this becomes more clear
align:start position:0%some of this becomes more clear
align:start position:0%some of this becomes more clearthe story to take away at this point is
align:start position:0%the story to take away at this point is
align:start position:0%the story to take away at this point isthat there certain there's
align:start position:0%that there certain there's
align:start position:0%that there certain there'sseveral processes within the sun
align:start position:0%several processes within the sun
align:start position:0%several processes within the sunproducing neutrinos
align:start position:0%producing neutrinos
align:start position:0%producing neutrinosand they all come with a characteristic
align:start position:0%and they all come with a characteristic
align:start position:0%and they all come with a characteristicenergy distribution
align:start position:0%energy distribution
align:start position:0%energy distributionum but the bottom line is you know you
align:start position:0%um but the bottom line is you know you
align:start position:0%um but the bottom line is you know youfind mav scale neutrinos from the sun
align:start position:0%find mav scale neutrinos from the sun
align:start position:0%find mav scale neutrinos from the sunso there's a soup of electron neutrinos
align:start position:0%so there's a soup of electron neutrinos
align:start position:0%so there's a soup of electron neutrinosum they start interacting with the sun
align:start position:0%um they start interacting with the sun
align:start position:0%um they start interacting with the sunand there's a little bit of a flavor
align:start position:0%and there's a little bit of a flavor
align:start position:0%and there's a little bit of a flavorevolution
align:start position:0%evolution
align:start position:0%evolutionwithin when they go through the material
align:start position:0%within when they go through the material
align:start position:0%within when they go through the materialof the sun
align:start position:0%of the sun
align:start position:0%of the sunum but you know what you want to really
align:start position:0%um but you know what you want to really
align:start position:0%um but you know what you want to reallydo
align:start position:0%do
align:start position:0%dois you know look for disappearance in
align:start position:0%is you know look for disappearance in
align:start position:0%is you know look for disappearance indetectors which are sensitive to
align:start position:0%detectors which are sensitive to
align:start position:0%detectors which are sensitive toelectron neutrinos and that has been
align:start position:0%electron neutrinos and that has been
align:start position:0%electron neutrinos and that has beendone um
align:start position:0%done um
align:start position:0%done umin a number of experiments most famous
align:start position:0%in a number of experiments most famous
align:start position:0%in a number of experiments most famousmaybe the davis experiments which
align:start position:0%maybe the davis experiments which
align:start position:0%maybe the davis experiments whichthe big tank of chlorine and in the
align:start position:0%the big tank of chlorine and in the
align:start position:0%the big tank of chlorine and in theinteraction you were looking for
align:start position:0%interaction you were looking for
align:start position:0%interaction you were looking forfinding argon in your detector and you
align:start position:0%finding argon in your detector and you
align:start position:0%finding argon in your detector and youjust every now and then went in there
align:start position:0%just every now and then went in there
align:start position:0%just every now and then went in thereand saw how much argon was actually
align:start position:0%and saw how much argon was actually
align:start position:0%and saw how much argon was actuallyproduced
align:start position:0%produced
align:start position:0%producedand it turned out that those experiments
align:start position:0%and it turned out that those experiments
align:start position:0%and it turned out that those experimentsall of them found
align:start position:0%all of them found
align:start position:0%all of them founda reduced number of neutrinos
align:start position:0%a reduced number of neutrinos
align:start position:0%a reduced number of neutrinosreduced with respect to the theoretical
align:start position:0%reduced with respect to the theoretical
align:start position:0%reduced with respect to the theoreticalexpectation
align:start position:0%expectation
align:start position:0%expectationso far so good
align:start position:0%so far so good
align:start position:0%so far so good[Music]
align:start position:0%[Music]
align:start position:0%[Music]the assumption was that or there was no
align:start position:0%the assumption was that or there was no
align:start position:0%the assumption was that or there was noknowledge of neutrino
align:start position:0%knowledge of neutrino
align:start position:0%knowledge of neutrinooscillations or mixing at this time so
align:start position:0%oscillations or mixing at this time so
align:start position:0%oscillations or mixing at this time sothat needed to be explained and one way
align:start position:0%that needed to be explained and one way
align:start position:0%that needed to be explained and one wayto explain but it's not just using the
align:start position:0%to explain but it's not just using the
align:start position:0%to explain but it's not just using thecharge interaction which allows you
align:start position:0%charge interaction which allows you
align:start position:0%charge interaction which allows youto probe the flavor of the neutrino but
align:start position:0%to probe the flavor of the neutrino but
align:start position:0%to probe the flavor of the neutrino butalso lose the neutral
align:start position:0%also lose the neutral
align:start position:0%also lose the neutralum the neutral scattering
align:start position:0%um the neutral scattering
align:start position:0%um the neutral scatteringwhich then allows you to measure the
align:start position:0%which then allows you to measure the
align:start position:0%which then allows you to measure thetotal number of neutrinos
align:start position:0%total number of neutrinos
align:start position:0%total number of neutrinosand if you do this this was done by the
align:start position:0%and if you do this this was done by the
align:start position:0%and if you do this this was done by thesnow experiment you find that the total
align:start position:0%snow experiment you find that the total
align:start position:0%snow experiment you find that the totalnumber of neutrinos
align:start position:0%number of neutrinos
align:start position:0%number of neutrinosis in good agreement with the
align:start position:0%is in good agreement with the
align:start position:0%is in good agreement with thetheoretical expectation
align:start position:0%theoretical expectation
align:start position:0%theoretical expectationhence the neutrinos are not really lost
align:start position:0%hence the neutrinos are not really lost
align:start position:0%hence the neutrinos are not really lostthey're just more from one flavor into
align:start position:0%they're just more from one flavor into
align:start position:0%they're just more from one flavor intothe next
align:start position:0%the next
align:start position:0%the nextso this was the first evidence for um
align:start position:0%so this was the first evidence for um
align:start position:0%so this was the first evidence for umfor uh solar neutrinos to be um
align:start position:0%for uh solar neutrinos to be um
align:start position:0%for uh solar neutrinos to be umoscillator uh by now this you know this
align:start position:0%oscillator uh by now this you know this
align:start position:0%oscillator uh by now this you know thisfirst experiment was
align:start position:0%first experiment was
align:start position:0%first experiment washomestake um but now there is a larger
align:start position:0%homestake um but now there is a larger
align:start position:0%homestake um but now there is a largernumber of solar neutrino experiments
align:start position:0%number of solar neutrino experiments
align:start position:0%number of solar neutrino experimentswhen you see
align:start position:0%when you see
align:start position:0%when you seeit's a long time of neutrino studies
align:start position:0%
align:start position:0% different materials are being used
align:start position:0%different materials are being used
align:start position:0%different materials are being useddifferent energy thresholds being tested
align:start position:0%different energy thresholds being tested
align:start position:0%different energy thresholds being testeddifferent scale of the experiments
align:start position:0%different scale of the experiments
align:start position:0%different scale of the experimentsand experiments become more sensitive
align:start position:0%and experiments become more sensitive
align:start position:0%and experiments become more sensitivethe larger they are
align:start position:0%the larger they are
align:start position:0%the larger they areand so this is can some something you
align:start position:0%and so this is can some something you
align:start position:0%and so this is can some something youcan see from this table
align:start position:0%can see from this table
align:start position:0%can see from this tablethe next source of neutrinos is the ones
align:start position:0%the next source of neutrinos is the ones
align:start position:0%the next source of neutrinos is the oneswhich are produced in the atmosphere
align:start position:0%which are produced in the atmosphere
align:start position:0%which are produced in the atmosphereso they are produced in the case of
align:start position:0%so they are produced in the case of
align:start position:0%so they are produced in the case ofpions and k ons
align:start position:0%pions and k ons
align:start position:0%pions and k onsand you know while the cosmic rays
align:start position:0%and you know while the cosmic rays
align:start position:0%and you know while the cosmic raysinteract with
align:start position:0%interact with
align:start position:0%interact withthe atmosphere or the earth's atmosphere
align:start position:0%the atmosphere or the earth's atmosphere
align:start position:0%the atmosphere or the earth's atmosphereand so you find for example a pi plus
align:start position:0%and so you find for example a pi plus
align:start position:0%and so you find for example a pi plusdecaying into a muon in a neuron
align:start position:0%decaying into a muon in a neuron
align:start position:0%decaying into a muon in a neuronneutrino and then the muon itself
align:start position:0%neutrino and then the muon itself
align:start position:0%neutrino and then the muon itselfcan decay into an electron an electron
align:start position:0%can decay into an electron an electron
align:start position:0%can decay into an electron an electronneutrino and a muon antineutrino
align:start position:0%neutrino and a muon antineutrino
align:start position:0%neutrino and a muon antineutrinoso if you for example build the ratio of
align:start position:0%so if you for example build the ratio of
align:start position:0%so if you for example build the ratio ofneuron
align:start position:0%neuron
align:start position:0%neuronantimen over electron
align:start position:0%antimen over electron
align:start position:0%antimen over electronanti-electroneutrinos
align:start position:0%anti-electroneutrinos
align:start position:0%anti-electroneutrinosyou find it should be around two
align:start position:0%you find it should be around two
align:start position:0%you find it should be around tworight you have two neutrino neutrinos
align:start position:0%right you have two neutrino neutrinos
align:start position:0%right you have two neutrino neutrinoshere and then electro nitrogen
align:start position:0%here and then electro nitrogen
align:start position:0%here and then electro nitrogenand also this wasn't really um
align:start position:0%and also this wasn't really um
align:start position:0%and also this wasn't really umreally observed and you can see here as
align:start position:0%really observed and you can see here as
align:start position:0%really observed and you can see here asa function of the cosine of the
align:start position:0%a function of the cosine of the
align:start position:0%a function of the cosine of theneed you know looking up upwards towards
align:start position:0%need you know looking up upwards towards
align:start position:0%need you know looking up upwards towardsthe atmosphere or downwards you find
align:start position:0%the atmosphere or downwards you find
align:start position:0%the atmosphere or downwards you findthat there is an effect
align:start position:0%that there is an effect
align:start position:0%that there is an effectof of this kind of oscillation
align:start position:0%of of this kind of oscillation
align:start position:0%of of this kind of oscillationso the actual minimum measurement
align:start position:0%so the actual minimum measurement
align:start position:0%so the actual minimum measurementdepends on the energy range
align:start position:0%depends on the energy range
align:start position:0%depends on the energy rangeum and you can see that the neural
align:start position:0%um and you can see that the neural
align:start position:0%um and you can see that the neuralneutrinos
align:start position:0%neutrinos
align:start position:0%neutrinosneuron like neutrinos that disappear you
align:start position:0%neuron like neutrinos that disappear you
align:start position:0%neuron like neutrinos that disappear yousee here in this very clear plot
align:start position:0%see here in this very clear plot
align:start position:0%see here in this very clear plotthe prediction without oscillation
align:start position:0%the prediction without oscillation
align:start position:0%the prediction without oscillationcompared to the experimental results so
align:start position:0%compared to the experimental results so
align:start position:0%compared to the experimental results soyou see
align:start position:0%you see
align:start position:0%you seethe mirror neutrinos actually disappear
align:start position:0%
align:start position:0% moving on accelerators can be used and
align:start position:0%moving on accelerators can be used and
align:start position:0%moving on accelerators can be used andthe big accelerator on the earth
align:start position:0%the big accelerator on the earth
align:start position:0%the big accelerator on the earthare cern or fermilab the beam line its
align:start position:0%are cern or fermilab the beam line its
align:start position:0%are cern or fermilab the beam line itsthermolab is called lumi
align:start position:0%
align:start position:0% national accelerator laboratory um
align:start position:0%national accelerator laboratory um
align:start position:0%national accelerator laboratory umor cern or in japan
align:start position:0%
align:start position:0% those are the big sources of accelerated
align:start position:0%those are the big sources of accelerated
align:start position:0%those are the big sources of accelerateddriven arduinos
align:start position:0%driven arduinos
align:start position:0%driven arduinosand in resource there's an
align:start position:0%and in resource there's an
align:start position:0%and in resource there's anbig detectors typically the detector
align:start position:0%big detectors typically the detector
align:start position:0%big detectors typically the detectorvery close
align:start position:0%very close
align:start position:0%very closeto the accelerator and one further away
align:start position:0%to the accelerator and one further away
align:start position:0%to the accelerator and one further awaythe close one to probe the
align:start position:0%the close one to probe the
align:start position:0%the close one to probe thetotal flux of the neutrino at the
align:start position:0%total flux of the neutrino at the
align:start position:0%total flux of the neutrino at theexperiment and then the
align:start position:0%experiment and then the
align:start position:0%experiment and then theone which is away in order to probe the
align:start position:0%one which is away in order to probe the
align:start position:0%one which is away in order to probe theeffect of the neutrino oscillation
align:start position:0%effect of the neutrino oscillation
align:start position:0%effect of the neutrino oscillationnow in order to study appearance or
align:start position:0%now in order to study appearance or
align:start position:0%now in order to study appearance ordisappearance
align:start position:0%disappearance
align:start position:0%disappearanceand again here you see this is a long
align:start position:0%and again here you see this is a long
align:start position:0%and again here you see this is a longprogram but it basically took off quite
align:start position:0%program but it basically took off quite
align:start position:0%program but it basically took off quitea bit
align:start position:0%a bit
align:start position:0%a bitin the 2000s and after so a lot of
align:start position:0%in the 2000s and after so a lot of
align:start position:0%in the 2000s and after so a lot ofneutrino physics happened in those years
align:start position:0%neutrino physics happened in those years
align:start position:0%neutrino physics happened in those yearsa lot of information about the neutrino
align:start position:0%a lot of information about the neutrino
align:start position:0%a lot of information about the neutrinowas gathered in this year
align:start position:0%was gathered in this year
align:start position:0%was gathered in this yearand again here this is from the t2k
align:start position:0%and again here this is from the t2k
align:start position:0%and again here this is from the t2kexperiment
align:start position:0%experiment
align:start position:0%experimentyou see the comparison between
align:start position:0%you see the comparison between
align:start position:0%you see the comparison betweenunoscillated predictions and oscillated
align:start position:0%unoscillated predictions and oscillated
align:start position:0%unoscillated predictions and oscillatedyou know using some additional
align:start position:0%you know using some additional
align:start position:0%you know using some additionalconstraints about your expectation of
align:start position:0%constraints about your expectation of
align:start position:0%constraints about your expectation ofthe total flux of the neutrinos
align:start position:0%the total flux of the neutrinos
align:start position:0%the total flux of the neutrinosand that compared to the data and you
align:start position:0%and that compared to the data and you
align:start position:0%and that compared to the data and yousee very clearly that the
align:start position:0%see very clearly that the
align:start position:0%see very clearly that thethe neutrinos oscillate that there is
align:start position:0%the neutrinos oscillate that there is
align:start position:0%the neutrinos oscillate that there isevidence for oscillation
align:start position:0%
align:start position:0% all right the last source on reactor
align:start position:0%all right the last source on reactor
align:start position:0%all right the last source on reactorneutrinos
align:start position:0%neutrinos
align:start position:0%neutrinoswe'll talk about nuclear physics
align:start position:0%we'll talk about nuclear physics
align:start position:0%we'll talk about nuclear physicsstarting from next week
align:start position:0%starting from next week
align:start position:0%starting from next weekhere neutrinos are produced in nuclear
align:start position:0%here neutrinos are produced in nuclear
align:start position:0%here neutrinos are produced in nuclearfission of heavy isotopes
align:start position:0%fission of heavy isotopes
align:start position:0%fission of heavy isotopesmainly that's uranium and polonium
align:start position:0%mainly that's uranium and polonium
align:start position:0%mainly that's uranium and poloniumflux can be calculated in various ways
align:start position:0%flux can be calculated in various ways
align:start position:0%flux can be calculated in various waysfor example
align:start position:0%for example
align:start position:0%for exampleby knowing the nuclear processes and
align:start position:0%by knowing the nuclear processes and
align:start position:0%by knowing the nuclear processes andinternal
align:start position:0%internal
align:start position:0%internalthermal power produced in the reactor
align:start position:0%thermal power produced in the reactor
align:start position:0%thermal power produced in the reactoror by just looking at how much fuel is
align:start position:0%or by just looking at how much fuel is
align:start position:0%or by just looking at how much fuel isbeing nuclear fuel is being
align:start position:0%being nuclear fuel is being
align:start position:0%being nuclear fuel is beingused by the reactor itself what's being
align:start position:0%used by the reactor itself what's being
align:start position:0%used by the reactor itself what's beingstarted here is the anti
align:start position:0%started here is the anti
align:start position:0%started here is the antium anti-electronic treated disappearance
align:start position:0%um anti-electronic treated disappearance
align:start position:0%um anti-electronic treated disappearanceand you what you do here is use this
align:start position:0%and you what you do here is use this
align:start position:0%and you what you do here is use thisinverse bitter decay where you have a
align:start position:0%inverse bitter decay where you have a
align:start position:0%inverse bitter decay where you have acollision
align:start position:0%collision
align:start position:0%collisionor scattering of a anti-electro neutrino
align:start position:0%or scattering of a anti-electro neutrino
align:start position:0%or scattering of a anti-electro neutrinowith a proton
align:start position:0%with a proton
align:start position:0%with a protoncreating an electron a positron and a
align:start position:0%creating an electron a positron and a
align:start position:0%creating an electron a positron and aneutron
align:start position:0%neutron
align:start position:0%neutronand again there's a number of
align:start position:0%and again there's a number of
align:start position:0%and again there's a number ofexperiments basically whenever you have
align:start position:0%experiments basically whenever you have
align:start position:0%experiments basically whenever you havea
align:start position:0%a
align:start position:0%a[Music]
align:start position:0%[Music]
align:start position:0%[Music]whenever you have a large
align:start position:0%whenever you have a large
align:start position:0%whenever you have a largeneutrino experiment it can probe
align:start position:0%neutrino experiment it can probe
align:start position:0%neutrino experiment it can probesurrounding nuclear reactors there's
align:start position:0%surrounding nuclear reactors there's
align:start position:0%surrounding nuclear reactors there'smany of them
align:start position:0%many of them
align:start position:0%many of themin france in japan also in china
align:start position:0%in france in japan also in china
align:start position:0%in france in japan also in chinaand they're being used in those
align:start position:0%and they're being used in those
align:start position:0%and they're being used in thoseexperiments again you see that this
align:start position:0%experiments again you see that this
align:start position:0%experiments again you see that thistopic became really hot
align:start position:0%topic became really hot
align:start position:0%topic became really hotin the 2000s and again a lot of a lot
align:start position:0%in the 2000s and again a lot of a lot
align:start position:0%in the 2000s and again a lot of a lothas been there and learned
align:start position:0%has been there and learned
align:start position:0%has been there and learnedso this part here shows you as a
align:start position:0%so this part here shows you as a
align:start position:0%so this part here shows you as afunction of the energy the length over
align:start position:0%function of the energy the length over
align:start position:0%function of the energy the length overthe energy
align:start position:0%the energy
align:start position:0%the energyso kilometer over meb the oscillation
align:start position:0%so kilometer over meb the oscillation
align:start position:0%so kilometer over meb the oscillationthe survival probability meaning that
align:start position:0%the survival probability meaning that
align:start position:0%the survival probability meaning thatyou can actually see directly the
align:start position:0%you can actually see directly the
align:start position:0%you can actually see directly theoscillation of energy1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568PROFESSOR: OK, well I'mgoing to start now.
As I say, I know that thewireless course has its final
at 11:00, so we might not seethe people who are taking it.
Is anyone here in thewireless course?
OK.
Q.E.D. Ipso facto ergo sum.
OK, just to remind you, I thinkwe have Problem Set 10
solutions today.
In any case, they'll beavailable on the web.
The final is next Tuesday.
Do bring calculatorsif you have them.
They won't be absolutelyessential, but
they might be useful.
You may bring fivesheets of notes.
It's a good exerciseto make these up.
And otherwise, it'sclosed-book.
Ashish will hold a reviewsession tomorrow, 4:00 to
6:00, 26-328, which I'm surewill be excellent as usual.
All right, just to remind you,we're in Chapter 14.
Most of the course we talkedabout coding for power-limited
channels, where basically youcould get away with binary
codes with very littleloss of optimality.
For bandwidth-limited, additivewhite Gaussian noise
channels, we've got toconsider non-binary,
multi-level codes, we've reallygot to go out into
Euclidian space and useEuclidian distance as our
metric rather thanHamming distance.
So we started out with a simpleidea, build a lattice
constellation.
A lattice is an infinite setof points in end space that
has a group property.
That's it, a discreteset of points.
We take a finite set of them bychopping out a region R, a
compact region, which chops outa finite number of points
in this lattice or in atranslate of the lattice.
And we went through thisexercise of computing the
union-bound estimate, which Iremind you is a reasonable
estimate for codes thatare not too complex.
We're not going to use this for
capacity-approaching codes.
But for codes, where...,basically dominated by minimum
distance properties, how manynearest neighbors are there,
the likeliest error events areall to the nearest neighbors,
we can use the union-boundestimate, which basically just
tallies the probability of errorto the nearest neighbor
events by the union-bound, whichitself is inaccurate if
you get too many nearneighbor events.
And we've got this niceapproximate expression that
the probability of error per ndimensions, if we're signaling
in n dimensions, is the numberof nearest neighbors in the
lattice times the Q to thesquare root of a function
times an expression, whichinvolves a coding gain of the
lattice, and separably a shapinggain of the region
times 3 times SNR norm.
So this embodies all kindsof simplifications.
It separates the effects of thelattice and the region.
Basically, we can optimize eachof these separately to
optimize this expression.
And also, by the way, by talkingabout SNR norm, which
is SNR normalized by 2 to thespectral efficiency, it makes
this whole expressionindependent of rate or
equivalently independentof spectral efficiency.
We saw this back when we talkedabout m by m QAM, we
got a universal expression.
The probability of error wassimply this expression with a
3SNR norm in here - regardlessof what m was (regardless of
how big the QAM constellationwas), we got the same
approximate expression.
So this is also independent ofthe size of the constellations
in this large constellation,high SNR approximation.
Once you get to enough points,everything sort of washes out.
So it's very useful.
And I remind you that the codinggain basically depends
on the minimum square distancenormalized by the density of
the lattice, if you like,normalized to two dimensions.
The shaping gain is basicallythe shaping gain of an n-cube
divided by--
this is the normalized secondmoment of an n-cube, this is
the normalized second moment ofyour region, which better
be better than that of ann-cube, meaning smaller.
And writing it out, it's equalto this, where this is the
second moment of your region.
And this is the volume, again,normalized to two dimensions.
So the baseline constellations,we showed
these were invariant toCartesian products.
In any number of dimensions,n, we can take the integer
lattice or any translate of theinteger lattice and we can
take a region, whichis the n-cube --
which will chop out basicallya square or cubic
constellation, a regularconstellation in n
dimensions--
and we'll get that the codinggain is the shaping gain is 1.
So we'll get just our baselineexpression for any integer
lattice shaped by an n-cubecentered on the origin.
And this is whatit looks like.
This is back from ChapterFour or whatever.
We get this universal curve,the baseline curve, which
holds for m-PAM, m by m QAM, oryou can Cartesian product
these up into as high adimension as you like.
The constellation we're talkingabout is really m-PAM
Cartesian product to the nth.
For any of those constellations,if we
normalize the probability oferror to two dimensions--
which is what I'm recommendingto you, normalize everything
per two dimensions in thehigh SNR regime--
then we basically get the numberof near neighbors in
Z-squared, the QAM lattice,which is 4 times Q to the
square root of 3SNR norm.
And it looks like this.
We plot probabilityof error per two
dimensions over SNR norm.
I think at 10 to the minus5, it's 8.4 dB.
Does anybody remember?
But it's somewherearound 9 dB.
And the Shannon limit, aswe recall, is for SNR
norm, it's at 0 dB.
So this is where we can play.
Any code will fall somewherebetween these two curves, and
the name of the game is to geta code the gets as close to
the Shannon limit as possible.
And at least in this moderatecomplexity regime, the way we
play the game is we try tooptimize the shaping region,
we try to optimize the lattice,we're going to get a
certain gain from shaping, anda certain gain from coding,
de-rated by the number ofnearest neighbors, which is
going to turn out to be animportant effect for some
well-known lattices becausethey have huge
numbers of near neighbors.
And that will give us some curvesomewhere in here, and
we plot that and we're done.
We've written a paper forthat particular lattice
constellation, forits performance.
Today I'm going to talk quicklyabout shaping, because
that's a very easy story,and obvious, and
it won't take long.
Then I'm going to talk aboutlattices, which is really a
subject in mathematics, what'sknown about lattices.
I guess the decoding part ofthat story is not mathematics.
That's engineering.
And then I'm going to talk abouttrellis codes, which are
the analog of convolutionalcodes, and which, similarly to
the way convolutional codesbeat block codes for the
bandwidth for the power-limitedregime, trellis
codes tend to beat lattice codesin terms of performance
versus complexity for thebandwidth-limited regime.
So, shaping.
Shaping is really an almosttrivial story.
This really wasn't recognizedas a separable issue until
perhaps sometime in the '80s,when trellis-coded modulation
was invented.
In '82 was Ungerboeck's paper.
That was really thebreakthrough in
bandwidth-limited coding, thattrellis codes were the first
bandwidth-limited codes thatwere widely implemented.
And after people analyzed themfor a while, they realized
that you could separate out theshaping effect from the
coding effect, which is whatI've shown by this expression.
So anyone care to guess whatthe optimum region is in n
dimensions?
I guess I've already mentionedit last time.
The optimum region, whatdo we want to do?
We want to minimize thenormalized second moment--
well, a second moment withappropriate normalization,
what would you do?
Well, the optimum region forjust about anything is an
n-sphere, and it certainlyis here.
So we take Rn equalsan n-sphere.
If we have a two-dimensionalsphere, what are its
parameters?
We certainly know that thevolume of this region, if this
is R, it's pi times R squared.
And the second moment of thisregion, how do we do that?
We integrate ... go to polarcoordinates, 0 to 2pi,
d pi, 0 to R, rdr.
And then what arewe measuring?
The second moment is r squared,but we normalize it
per dimension, which is 2.
Oh, and we've got to take theuniform distribution over v of
R, and that's one overpi R squared.
So have I got it now?
This is the second moment ofa uniform distribution, a
probability distributionover the 2-sphere.
And so this will be 1 over2pi R squared times
R 4th over 4, right?
Is that all correct?
And so p of R over v of R isalready not normalized to two
dimensions, so we don't haveto re-normalize it.
I didn't get the 2pi in here.
I need some help, class.
When it comes down tointegration, I'm not
necessarily the world's best.
So R squared over 4...
R squared over 4pi R squared,so we get 1 over 4pi.
Is that right?
That looks about rightbecause it's fairly
close to 1 over 12.
So what is the shapinggain of a 2-sphere?
And I can just say 2-sphere,because I know it's invariant
to scaling.
Rotation isn't goingto do much to it.
It's 1/12 over this, thenormalized second moment, 1
over 4pi, which is pi over 3,which is about 2/10 of a dB.
OK, so I've improved the secondmoment by 2/10 of a dB,
reduced it to 2/10 of a dB.
This is not very impressive.
So of course, a lot of theearly work was on shaping
two-dimensional constellations.
And this basically says if youget a large constellation, you
don't even see this effectto, say, 64-QAM.
If you have a 64-QAMconstellation, 8 by 8--
Somebody at Paradyne noticedthat you could improve it
slightly by taking the fourcorner points out and putting
them up here, without reducingthe minimum distance.
OK, so there is an improved,more spherical 64-point
constellation.
It's improved by about 0.1dB, as I remember.
And what this calculation saysis if you go up to 256, 1024,
and you simply take all thepoints in the QAM grid that
are surrounded by a sphere ofappropriate size to pick out 2
to the n points, for high, largeconstellations you get a
gain of about 0.2 dB.
So this is nothing towrite home about.
What happens as n goesto infinity?
We look up in a math book whatthe expressions are for the
normalized second moment--actually, you can do it just
by this kind of calculation.
It's easy enough.
And just by scaling, you'll findthat the shaping gain of
the n-sphere goes to pi timese over 6, which is 1.53 dB.
A famous number not only nowin shaping, but also in
quantization, where you're alsointerested in minimizing
the second moment of aquantization cell.
Or it's something like 0.229bits per two dimensions, is
another way of expressing it.
All right, so what is this?
This is the maximum shapinggain you could get by the
optimum region in the optimumnumber of dimensions, which is
as large as you can go.
So this says this is theultimate shaping gain.
You can never get a shapinggain of more
than 1 and 1/2 dB.
So it says when we play thisgame, we've got about 9 dB
down here that we want to makeup at 10 to the minus 5, 10 to
the minus 6, we can get only 1and a 1/2 dB of it by doing
good shaping in largedimensions.
That's the best wecan ever do.
So that's a littlebit discouraging.
It says shaping is never goingto give you that much.
On the other hand, you can'tget this 1 and a 1/2 dB
in any other way.
If you have n-cubedconstellations, you will
always be limited to be1 and a 1/2 dB away
from the Shannon limit.
So if you want to approach theShannon limit, you do have to
address the shaping problem.
You can't ignore it.
1 and a 1/2 dB is enough to benoticed in most applications,
so you should do somemoderate shaping.
Now, of course we canplot the curve.
It's done in the notes for anyn whatsoever, and you'll see
that it goes up fairlysteeply at first.
It gets to about 1 dB at 16dimensions, so if you shape in
a 16 dimensional sphere, youcan get 1 dB out of this
maximum of 1 and a 1/2dBs you can ever get.
If you go to 32, it's 1.2 dBor something like that, it
begins to slope out.
So that gives you a goodidea of what you
can actually attain.
In the V.34 modem, for instance,a rather simple
shaping scheme is used thatgets up to about 0.8 dB of
shaping gain.
It's called shapingon regions.
I just mentioned some techniquesfor shaping.
As with a lot of things, onceshaping was realized to be a
separate subject from coding,there was a flurry
of activity on it.
People basically proposed anumber of different schemes,
particularly in the context ofthe V.34 modem standards
development.
Of which trellis shaping,I would
say, is the most elegant.
This is kind of a dual totrellis-coded modulation where
we use trellis codes for shapingrather than coding.
So that's elegant.
But a cruder and quiteeffective, just fine
technique, shell mapping, wasused in the V.34 modem.
The basic idea here is thatyou take a two-dimensional
constellation, you just divideit into shells like this.
It turns out in two dimensions,if you take a
constant delta here, that theaverage energy goes up, I
think, linearly with delta orsome way nicely with delta.
You take a constellation biggerthan you really need,
so you have the possibilityof some redundancy.
So you identify each point inthe constellation by which
region it lands in.
You then go up to 16 dimensionsor something--
I think it is 16 dimensionsin the V.34 modem--
and you assign each series ofpoints a score depending on
which shells itspoints land in.
And you basically have a bigtable that chooses the lowest
energy combinations from all thepossible series of eight
shells, which can be donefairly elegantly using
generating functiontechniques.
I realize this is justhand-waving and you can't get
it, but the effect is that youuse this shell with very high
probability.
You sort of get a Gaussian-likeprobability on
the shells.
Let me just drawthat like this.
You don't use the pointsout in this
outermost shell very much.
You use this a lot, and theysort of have an overall
Gaussian distribution.
And I should mention that thisis an equivalent way of
getting shaping gain.
If we're shaping uniformly overan n-sphere in a high
number n of dimensions and webasically have constellations
which consist of two-dimensionalQAM points,
what is the projection of auniform distribution over an
n-sphere down ontotwo dimensions?
If we look at eachtwo-dimensional component of
these n-dimensional vectors,what distribution will it have
if we impose a uniform sphericaldistribution on the
high dimensionalconstellation?
It will turn out that itbecomes Gaussian in two
dimensions.
Think of the projection of the
2-sphere down on one dimension.
The projection of a 2-sphereon one dimension is
something like this.
It's not Gaussian, but there'smore probability that one of
the coordinates will be near 0than it will be out at one of
these maxima here.
So this is just the same thingraised up to n dimensions.
So an equivalent way of lookingat this problem is we
want somehow to get aGaussian-like distribution on
a one- or two-dimensionalconstellation, and this is one
way of doing it.
And you can get the same pitimes e over 6 factor by just
looking at it from an entropypoint of view, the entropy of
a two-dimensional Gaussiandistribution relative to the
entropy of a uniformdistribution over a square.
That will give you thesame factor if you
do everything right.
OK so basically, shapingis easy.
These techniques are notdifficult to implement.
You can get one dB of shapinggain quite easily through a
variety of techniques.
It's worth getting that one dB,you're not going to get it
by any other means.
But having done that, that's allyou're ever going to get,
and so end of storyon shaping.
So as I said, it was a flurryof activity in the '90s, and
no one has looked atshaping since then.
So that's part of the story.
Let's continue now withlattices, an old
mathematical subject.
So what we're interested in is,what's the densest lattice
packing in n dimensions?
This appeared in mathematics,long before it appeared in
engineering, as Hermite'sparameter.
And Hermite said this was theright way to measure the
density of a lattice, normalizedin all the
appropriate ways.
So any version of a latticeis equivalent.
A version is something that youget by scaling or rotating
or even by Cartesian products,which I'm not sure how
widespread that idea is.
So what's the densest latticein two dimensions again?
We want to find the densestlattice, in terms of coding
gain or Hermite's parameterin n dimensions.
Anyone care to guess what thedensest lattice in two
dimensions is?
It's the hexagonal lattice.
So in two dimensions, hexagonal,which reasons of
mathematical historyis denoted A_2.
And its coding gain, I believewe computed it last time, and
it was 0.6 dB.
So what's the most we could everdo by fooling around with
two-dimensional constellations?
Suppose I want the bestpossible 256 point QAM
constellation?
Well, according to these largeconstellation approximations,
the best I could do would be totake the 256 lowest energy
points in some translate ofthe hexagonal lattice.
So I might fool around withthe translation vector a
little bit to try to find theabsolute lowest energy point,
but it really wouldn'tmatter very much
regardless of what I did.
I could expect 0.6 dB of codinggain and 0.2 dB of
shaping gain, or 0.8 dB betterthan the 8 by 8 - sorry the 16
by 16 QAM constellation with thesame number of points and
the same minimum distance.
This basically tells youwhat your options are.
2D, there's not much to do.
You remember way back in ChapterOne, I gave you this
problem about the 16 point,2D constellation.
That is precisely 16 points froma certain translate of
the hexagonal lattice that fallwithin a circle that's
just big enough to enclose16 points.
And it has, I forget, somethinglike a 0.7 dB gain
over the 4 by 4 squareconstellation.
We computed that in thevery first homework.
So again, staying totwo dimensions,
things aren't very exciting.
Turns out, it's mostinteresting to go
in powers of two.
In four dimensions, the densestlattice is something
called D4, Schlafly's lattice,1850-something.
And its coding gain is preciselythe square root of
2, which is 1.5 dB.
8 dimensions, it's E8, Gosset'slattice, about 1900.
The D4 and E8 come, again,from the mathematical
literature and have something todo with their relationship
to certain groups.
Lattices and finite groups arevery closely connected.
And this has a codinggain of 2 or 3 dB.
16 dimensions, it's somethingjust called lambda 16.
It's a Barnes-Wall lattice, asall of these are, actually.
And it's 2 to the3/2, or 4.5 dB.
You see a certainpattern here?
In 32 dimensions, we have twolattices that I'll mention.
There's the 32-dimensionalBarnes-Wall lattice, which has
a coding gain of 4.6 dB.
Or there's actually Quebbeman inthe '60s, I think, came up
with a denser lattice.
So this is still a subjectof active investigation,
particularly in dimensions like19, where it's not so
easy to find the densestlattice.
And this, I forget,is maybe 6.2 dB.
It's definitely denser.
But it's something like that.
This basically goesto infinity.
You can get denser and denserlattices just by following
this chain here which is a chainof Barnes-Wall lattices.
The nominal coding gain can betaken to infinity, just as we
saw with kd over n.
That goes to infinity for rate1/2 Reed-Muller codes.
But of course, Shannon says wecan't ever get more than 9 dB
of effective coding gain here.
Or actually, we can't get morethan 7 and a 1/2 dB if we take
into account that 1 and a 1/2is going to be given by
shaping gain.
So what must be happeninghere?
We must be having a huge numberof near neighbors.
The number of nearest neighborsin the hexagonal
lattice is six.
In D4 it's 24, in E8 it's240, in lambda 16
I think it's 4320--
the correct numbersare in the notes.
By the time we get up here, weget something like a 146,680
or something like that.
So these lattices are designedto have a very
high degree of symmetry.
That means if you stand on anypoint, you look around you,
they've pushed the neighboringpoints as far away
from you as they can.
But now there are a great manyof them, so you get a uniform
sky just filled with pointsaround you, a number of
dimensions.
So that's what the problem isand that means that the
effective coding gain--
I again do the calculation.
I know here we loseat least two dB.
This is something like 3.8 dB.
OK, so the effective coding gainactually sags and begins
to top out as youget out here.
Maybe nowadays you could thinkof implementing a larger
lattice, but I think this isthe largest anyone has ever
thought about implementing.
And what do we get?
A coding gain of lessthan 4 dB --
an effective coding gain.
So if you use that,you'd be, say,
somewhere around 5 db here.
We go over 6 dB, but then we goup by this normalized per
two dimensions, sowe divide by 16.
That's still 10,000, whichis still 13 factors of 2,
which is 2.6 dB.
You can see wherethe problem is.
So anyway, we get somethingthat's really this moved way
up a lot more, and as a resultwe get a much steeper curve.
This method doesn't work uphere, but this might be lambda
16 or lambda 32.
And then we can get another 1and a 1/2 dB of shaping gain.
So maybe 4 dB, optimistically.
OK, not really.
So that's a littledisappointing.
Just by looking up in the mathtextbooks, we don't do very
striking things.
I mention in particular theBarnes-Wall lattices, and if I
had more time I would developthem because they're very much
analogous to the Reed-Mullercodes.
They are constructed by a u, uplus v construction in the
same way as Reed-Muller codes.
They are length-doublingconstructions that also double
the distance, just as theReed-Muller codes do now
Euclidian distance.
But let me just give you thefirst couple of sentences in a
discussion of the Barnes-Walllattices, which were only
discovered in '59, aboutthe same time as
the Reed-Muller codes.
Suppose we take the QAMgrid like this.
An important observation is thatif we take every other
point in sort-of checkerboardfashion, what do we get?
Imagine it's going to infinityin both directions.
So this is a subset of halfthe points, basically.
Half the density, twice thevolume of points that, itself
is a rotated and scaled version
of the integer lattice.
Take the centers on acheckerboard and they form a
45 degree rotated and squareroot of 2 scaled version of
the integer lattice.
If this had minimum squareddistance 1 between points,
then this has minimum squareddistance 2 between points.
So we could label thepoints red, black,
red, black, red, black.
If we did that, the red pointswould be a co-set of this
sub-lattice and the black pointswould be a co-set--
meaning a translate--
of this sub-lattice.
So let me write thatas follows.
If we take Z-squared, it has asub-lattice which we call RZ
squared, r for rotation.
Rotation by the Hadamard matrix,1, 1, 1 minus 1.
If I write d min squared, thishas d min squared at 1, this
has twice the d min squared.
So I partition my lattice, orany translate of this lattice,
into two co-sets of thesub-lattice with twice the
minimum squared distance.
This is the first steps in whatUngerboeck called set
partitioning.
So it's an obvious way topartition any QAM-type signal
set, red and black points.
Having done that, Ican do it again.
Alright, do it again,what do I get?
So now I'm going to take everyother one of these points,
which will leave me, say,these 4 points.
Let me call these A, A, A, A.These points might be B, B, B,
B, the other onesthat I cut out.
I could call these C, C, C,C and D, D, D, D. Now I've
partitioned each of thesesubsets into two subsets.
I've partitioned one into A, Band the other into C, D, such
that - what does A look like?
A is another translateof a lattice.
This happens to be Z-squaredscaled by 2.
It's not rotated, it's justZ-squared scaled by 2.
So we get down to 2times Z-squared.
And what's its minimumsquared distance?
AUDIENCE: 4.
PROFESSOR: 4.
So I've doubled thedistance again.
This is an elementary butimportant observation.
I can continually gothrough these,
partitioning into two subsets.
Every time I do, I doublethe distance.
I get another version of theinteger lattice at a higher
scale and, perhaps, rotated.
So if I did it again, I wouldget eight subsets with minimum
squared distance 8 betweenpoints in each subset.
So it's just a repeateddivide-by-2 scheme.
All right, now to get theBarnes-Wall lattices, you
remember how we got theReed-Muller codes.
We took, say, two codes oflength 2 and we put them
together with the u, u plus vconstruction and we got codes
of length 4 that had the minimumsquare distance of the
higher distance code, ifwe chose them properly.
That's the same thingwe do here.
If we put together these twolattices, if we choose them--
well, just use the u, u plus vconstruction where u is from
Z-squared and v isfrom RZ-squared.
So in words, that'swhat you do.
If you're interested inlooking it up, look
it up in the notes.
What you get is a lattice, D4,that has normalized density
halfway between that ofZ-squared and RZ-squared, it
turns out--
sort of analogous to the code--and its minimum square
distance is 2.
Or if you put these twotogether, you get something
called RD4, whose minimumsquare distance is 4.
So you get something whosenormalized volume is halfway
between that of these twonormalized volumes, but it has
the same minimum distance asthis guy, and that's where you
get the coding gain from.
This is denser but still hasthe same minimum distance.
If we do this again, go out toeight dimensions, we get, it
turns out, E8.
And this has minimumsquare distance 4.
But it has the same normalizedvolume normalized back to two
dimensions as this guy, whichonly had minimum squared
distance 2.
So that's precisely whythis has a nominal
coding gain of 2.
We've doubled the minimumsquare distance without
changing its density, normalizedback to two
dimensions.
All right, so you get all theBarnes-Wall lattices just by
doing this.
This turns out to be asub-lattice of this guy.
Not surprisingly, just as theselattices are nested,
just as the Reed-Muller codesare nested, so you get a
similar tableau.
You get a similar constructionthat you can take out to 16
dimensions, 32 dimensions,however many
dimensions you want.
And every time you do, youincrease the coding gain by a
factor of square root of 2, sothe coding gain eventually
gets driven to infinity,and that's the story on
Barnes-Wall lattices.
So similarly to Reed-Mullercodes, these are lattices that
are the densest known in certainsmall dimensions like
4, 8, and 16.
We don't know anydenser lattices.
You start to get up to 32, 64dimensions, then we do know of
denser lattices.
But they are not nearly asnicely structured, and maybe
these are still the best froma complexity point of view.
You can play similar gameson building trellis
representations of theselattices, as we did for
Reed-Muller codes.
They have similar kinds oftrellises because they're
based on the sameconstruction.
So that's the story ofBarnes-Wall lattices.
The most famous lattice is theLeech lattice, which is a
super-dense latticein 24 dimensions.
It has a coding gain of 6 dB.
And unfortunately, it has195,560 near neighbors or
something like that.
So you can see, it turns outit's a very close cousin of
this 32-dimensional Barnes-Walllattice.
It's related to the 24-12-8Golay code in the same way as
the Barnes-Wall lattices areto the Reed-Muller codes.
So the fact that the Golay codeis so exceptional can be
seen just as a projection ofthe fact that the Leech
lattice is so exceptional.
This somehow has the Golay codeburied in it, if you can
find it in here.
And the Leech lattice isparticularly notable not just
because it has remarkablyhigh coding gain for its
dimension-- it's remarkablydense for its dimension,
exceptional--
but also because it hasremarkable symmetries, so it's
connected to some of the largestexceptional groups,
the monster exceptionalgroups.
And it was a key step in theclassification of all finite
groups to find the symmetrygroup of this lattice.
Just a little liberalarts for you.
So that's what we canget with lattices.
By going out to the Leechlattice or the Barnes-Wall
lattice-- this could equallywell be the Leech lattice--
again, effective coding gainis only about 4 dB or maybe
even less because of theexceptional number of near
neighbors here.
To one digit of significance,that's approximately its
coding gain.
So how can we go beyond this?
As I said already, the nextgreat breakthrough was trellis
codes for which GottfriedUngerboeck became famous.
Trellis codes, as I say in thenotes, are basically--
first of all, Ungerboeck thoughtabout the problem from
a Euclidian distancepoint of view.
So what you had to doto break out of
Hamming distance thinking.
He had the idea that in thebandwidth-limited regime, what
you want to do is expand theconstellation rather than
expand the bandwidth.
So to send four bits persecond per Hertz.
You could do that using uncoded16-QAM constellation.
Or Ungerboeck saw, well, let'smake it into a 32-point
constellation.
Now we have some redundancy, nowwe can do some coding on
this constellation.
He used the set partitioningidea, which I've just
explained to you.
Initially, he just looked at aQAM constellation and he said,
let's divide it up into A, B, A,B, C, D, C, D, A, B, A, B,
C, D, C, D. So let's partitionit from A, B, C, D into A and
D as I've done it here, and Band C are these two subsets.
And we'll break this up into Aand D and B and C. And then
some theoretical people camealong and said, well, this is
just Z-squared, this isRZ-squared, and this is
2Z-squared.
Let's, first of all, partitionour enlarged constellation.
Now here's the setup we'regoing to use for coding.
We are going to bring in our...If we're trying to send--
I forget what notation I used inthe notes-- b bits per two
dimensions.
Let's take one bit per twodimensions and put it into a
rate 1/2 convolutional code.
So we're going to getout two bits.
Everything here is going to beper two dimensions because
we're going to use atwo-dimensional signal set.
And we'll bring in our otherb minus 1 bits down here.
These are called uncoded bits.
For these two bits,we're going to go
into a subset selector.
Two bits are goingto select among--
this going to be something fromA, B, C, or D. It's going
to tell us whichsubset to use.
All right, then we'll use thatin combination with these b
minus 1 bits to select a pointfrom a 2 to the b plus 1 bit
QAM constellation.
Two dimensions.
So this is actually our signalpoint y, our two-dimensional
signal point.
Do you see how thenumbers work out?
We want to send b bits per QAMpoint, per two dimensions.
We're going to use a 2 to the bplus 1 point constellation,
so 32 instead of 16, say.
Take one bit in here, generatetwo streams, one redundant.
This will tell us A, B, C, D, sothat's two of the bits you
need to select oneof these points.
Say, in a 16-pointconstellation, we'll provide a
bit label that lookslike this.
For A, it will be 0, 0. b is0, 1, c is 1, 0, D is 1, 1.
That's always the low-order bitsin any selection for A,
B, C, D. And then we'll taketwo high-order bits, which
then tell us which of thesefour groups it's in.
So we'll have another 0,0, 0, 1, 1, 0, 1, 1.
Now I'm talking aboutb equals 3.
We have two bits that come inhere and select one of these
blocks, and then two bits thatcome out of here and select A,
B, C, D within the block.
There's two partsto the label.
One of them determines A, B,C, D, the other one just
determines some larger group.
These bits are called uncodedbecause there's no protection.
If you sent point A over hereand received point A over
here, that would looklike a perfectly
legitimate code word.
If we make an error of that far,which is d min squared
equals 4, say.
We make an error of size d minequal 2 all the way over here,
then there's no furtherprotection from this code
because this code onlydetermines the sequence of As,
Bs, Cs, and Ds.
This is called a within-subseterror.
There's no protection onwithin subset errors.
What the code does is itprotects against smaller
errors that are between subseterrors like A to B, which has
squared distance of 1 or A toD has a squared distance of
two, and so forth.
Are you with me?
Nobody's asking questions.
Maybe I haven't permitted it.
Do you follow what theoverall setup is?
I've done everything now,except choose an exact
constellation.
For the exact constellation,I'll just choose one of the
best QAM signal sets.
If it's large enough, I'llshape it like a circle.
Or I might even try to putGaussian shaping on it by some
completely extraneousthing that works
only on these clumps.
So shaping takes place onthe higher order bits.
You can see that, given a largeenough constellation
just by choosing these clumps,I can make the constellation
sort of have the shapeof a circle.
The subsets of A, B, C, and Dpoints have to all be the same
size in order for thisscheme to work.
But I can do that within a sortof circular constellation
if the constellationis large enough.
Or I can put some Gaussiandistribution on these clumps.
So I do shaping down here.
Initially, of course,Ungerboeck
didn't worry about shaping.
But if I try to do shaping, it'sdown on this index, which
is considered to be the higherorder bits that determine the
growth structure ofthe constellation.
These are the lower order bits,these two bits, and they
determine the fine structurewhich is
determined by this code.
So the last thing I have toselect is the code, and it
turns out that the same codewe used in the example is a
good code to use here.
Suppose we use the four-staterate 1/2 example code that
I've used before that iseverybody's favorite example
because it has such excellentdistance properties.
So it looks like this.
So that's my rate 1/2 encoder.
You remember as a binary code,it had minimum Hamming
distance 5.
And the only minimumdistance code word
was the impulse response.
Let me write the impulseresponse as this
way: 11, 01, 11.
This is what we get out at time0, time 1, and time 2.
Let me assign the followinglabels to these subsets.
We'll make that 00, thisone 11, this one 01,
and that one 10.
In other words, this is thecomplement of that.
This is the complementof that.
What is the nearest neighborpoint in Euclidian space for
this sequence?
If I complement the first twobits coming out, then I'm
going to go from one of thesesubsets to another, but within
one of these RZ-squared subsets,which has minimum
squared distance 2.
So let's remind ourselves thatthe minimum squared distance
within A, B, C, D is 1, withinA, D or B, C is 2, within
2Z-squared is 4.
So I'm claiming--
there's actually a problem onthis on Problem Set 10 if you
tried to do it--
that any error of this type,11, is going to cause me a
Euclidian error of minimumsquared distance 2, at least.
It can only cause me to go fromA to D, which is always
at least squared distance 2, orfrom B to C, or vice versa.
So in terms of Euclidiandistance, d min squared, I'm
always going to get a squareddistance of 2 at this point.
And actually, any place youdiverged in the trellis,
because of the structureof the code, this
is going to be true.
I'm always going to get asquared distance of 2 when two
trellis paths come togetherin the trellis.
I always have a binarydifference of 11, so by the
same argument I'm always goingto get a Euclidian squared
distance of 2 when two trellispaths come together.
And furthermore, I'm going tohave at least one difference
somewhere in between, which isgoing to, again, in terms of
Euclidian distance, leadto a Euclidian
distance of at least 1.
So the conclusion is thatbetween any two sequences of
constellation points that arelabeled by two distinct code
words here, I'm going to have acumulative Euclidian squared
distance of at least 5, by thesame argument as I had for the
binary code.
But now it turns out that I'mstill in a regime where binary
distance, Hamming distancetranslates directly to
Euclidian distance.
This is what you saw.
Basically, what we're using hereis this is Z-squared, you
can think of as the image ofthe (2, 2) binary code.
RZ-squared is the image of the(2, 1) binary code, and this
2Z-squared is the image ofthe (2, 0) binary code.
You get the same partitionstructure for these codes and
their co-sets.
This is the set of allfour two-tuples.
We divided it into two subsets,each of minimum
distance 2 here, and here wedivide it into four subsets,
each of minimum distanceinfinity.
I'm not going to take the timeto make this precise, but
think of how thatrelation goes.
So I've assured myself of aEuclidian squared distance at
least 5 between signal pointsequences that correspond to
two different code words.
That's excellent.
Is the minimum squared distanceof the code then
equal to 5, as it was inthe binary case of
this trellis code?
No, it's not.
And the problem is I could makethis kind of error, which
is completely invisibleto the code.
I can make a within subseterror, and this only has
minimum square distance of 4.
So the conclusion of thisanalysis is that this is
what's called a four-statetwo-dimensional trellis code.
This four-state two-dimensionaltrellis code
has a minimum squared distanceof 4, and it has a number of
nearest neighbors pertwo dimension of 4.
That's the number of nearestneighbors within 2Z-squared,
which is one of these subsets.
So the conclusion is thatalready, this has a legitimate
3 dB coding gain.
Its coefficient is still justthe QAM coefficient, and this
very simple code has thisperformance curve moved over.
So it's 3 dB all theway up the line.
So that's pretty good.
This is a trivial code thatcould be decoding--
by the way, it was, again, doneby the Viterbi algorithm
of a four-state trellis.
You just take the sequencesand it's exactly the same.
You measure distance in termsof minimum squared distance.
The only difference is whenyou decode, you first find
what the closest pointis within the
A, B, C and D subsets.
That is what you're going totake as your representative
for that subset.
So you first make basically anuncoded decision, which is the
closest point in A?
Which is the closest point in B,which is the closest point
in C, which is the closestpoint in D?
You're going to get a metricfor each of those.
How far is each of thosefrom the receive point?
So then in trellis decoding,what the trellis is going to
look like is somethinglike this.
A, D, A, D, B, C,and so forth.
The trellis is going to lookexactly the same, but here you
get A, D, D, A, B, C, C, B.
So what metric are wegoing to use for
each of these branches?
First, we find the closest pointwithin each subset, and
then we use the metricfor that point.
Clearly, if we're going tochoose A for this time
interval, then we should use theclosest point in A as our
receive decision.
We can get that survivor withoutany memory whatsoever
when we make that decision, andthen we take the sequences
of representatives and findthe best of those
representatives as our besttrellis-coded sequence.
Any sequence of points that haslabels that correspond to
some path through thistrellis is a valid
point and vice versa.
If and only if the sequence oflabels is according to this
trellis is it a legitimatetrellis-coded point.
So it's a nice amalgamation.
Great.
With a simple four-state code,basically we've doubled the
size the constellation.
The constellation expansion is2, the constellation expansion
factor with twice as large aconstellation, we've been able
to achieve a codinggain of 3 dB.
Not bad.
So how do we extend this idea?
First, extension would be to--
all right, let's go upto an 8 state, 16
state, whatever code.
But is that going to improveour minimum distance using
this block diagram?
It's not, because we'restill stuck with this
within subset distance.
So we can never get past d minsquared equals 4 with a
four-way partition.
What we have to do is make onemore level of partition and we
need to make an eight waypartition, at which point
we're going to get a withinsubset distance of 8.
I left out one step,I'm sorry.
I'll come back to it.
We can get a code minimumsquared distance up to 8, if
we extend the minimum squareddistance up to 8.
The thing I didn't use, I didn'ttell you before, was in
computing the codinggain of this code--
let's just call it c--
what should it be?
It should be the minimum squareddistance of the code
over the volume of the codeper two dimensions.
In this case, n is 2 so I'm justgoing to do it over the
volume of the code.
Now what is the volume ofa convolutional code?
This is actually an interestingproblem, because
the Voronoi region of a trelliscode is actually an
infinite dimensional object.
A trellis code is really aninfinite dimensional lattice.
It's a lattice in infinitedimensional space.
And if you look at the Voronoiregion, it extends out into
all these dimensions.
It might not for such asimple code, but in
principle it does.
However, you can find otherfundamental regions.
The way to think aboutthis is instead of
putting the volume here--
well, what have we costourselves in volume?
We've doubled the sizeof the constellation.
And in two dimensions,that means
we've doubled the volume.
So we've quadrupled the minimumdistance at the cost
of doubling the volume.
We've covered twice as muchspace now because we have
twice as many points.
And so, that's wherewe get the--
this is equal to, forthis code, that's 4.
We have a factor of 2 loss involume, and so that's where we
get what I said was a codinggain of 2 or 3 dB.
Just to get you to the bottomline, we should replace the
volume by two times--
I call it eta of the code--where eta of the code is its
redundancy per two dimensions.
In this case, we introduceone redundant bit per two
dimensions, and that's why theconstellation has to expand by
a factor of 2.
You see, we get theright answer.
The redundancy has increased byone bit, so this has to be
2 to the b plus 1, so theconstellation has to be twice
as large, so the volumeis twice as large.
I'll just hand-wave and tell youthat's the factor you want
down here representingvolume --
2 to the redundancy.
And you can prove this byfinding a region which you can
show is a fundamental regionof the trellis code and has
this volume.
But I won't go into that.
OK, so that's the calculationwhich I should've mentioned
before, I skippedright over it.
Back to what I was saying.
To improve trellis codes, thefirst thing you can do is to,
say, go to an eight-waypartition.
So now we're going tohave eight subsets.
So we're going to needthree bits here.
So let's use two bits here anduse a rate 2/3 trellis code.
We're going to have three bitscoming out here to select
subsets, and we're going to haveb minus 2 bits down here
to select a point stilla 2b plus 1 point QAM
constellation.
So our redundancy per twodimensions is still one bit
per two dimensions.
We're still going to lose afactor of 2, but now we can go
up to d min squared equals 8 andwe can go up to a coding
gain of 6 dB.
So in his original paper,Ungerboeck did this.
He showed codes going up to 256states in two dimensions
that gets you up to a nominal6 dB coding gain.
And because they have lowcoefficients here, they get
very close to 6 dB of effectivecoding gain.
Already in Ungerboeck,we have codes--
I mean, eventually you can getback to just the within-subset
coefficient again, whichis always 4.
You can get up to, say, 6 dBwith maybe 512 states of
effective coding gain, whichis considerably better than
the densest lattice we wouldthink of using, and also quite
reasonable to implement.
Now we're going to needa 256, 512-state
Viterbi algorithm decoder.
This was a stunningbreakthrough.
Immediately in 1993, everybodystarted building turbo codes.
Back in 1982, everybody started
building trellis codes.
It happened to be the time ofthe V.32 modem, and everybody
said boy, this is just what weneed to get an additional 3 or
4 dB coding gain inthe V.32 modem.
What was actually done thereis this was simply an
eight-state convolutional code,so it was rate 2/3.
And there was tweakingof this.
It was made rotationallyinvariant, made nonlinear.
And a lot of activity, which wasvery nice, stimulated by
the standards effort.
But that was basically the stateof the art in the '80s.
The one other improvementthat was made was
the following idea.
We really don't like doublingthe size of the constellation,
particularly for a largeone, mostly for
implementation reasons.
There were some feelings againstnonlinearities a
larger constellationwould cost you.
You wanted to minimize theconstellation expansion ratio.
So how were we evergoing to do that?
You can't do it this wayin two dimensions.
The way to do that is to goup to four dimensions.
So let's do subset partitioningin four
dimensions.
So now think of four dimensionalconstellations.
In practice, these are justbuilt from the Cartesian
product of two two-dimensionalconstellations.
We start with Z4.
The next one down is D4,which has a minimum
square distance of 2.
It's sometimes called acheckerboard constellation in
four dimensions.
It's just the red-blackidea again.
Then below that, we have afour-way partition into RZ4,
which still has minimumdistance 2.
And one more level ofpartitioning here into
something into RD4, which hasminimum squared distance of 4.
So this is an eight-waypartition of a
four-dimensionalconstellation.
This idea was introducedby Lee-Fang Wei.
Again, this is an interestingcolumn over here.
You can think of this as beingthe (4, 4, 1) code.
This is the Euclidian imageof the (4, 3, 2) code.
It kind of expandedin the lattice.
We know we can't do anybetter than (4, 2, 2).
Down here, this is the(4, 1, 4) code.
So again, this is the samepartition as we get for binary
codes with the distances--
again, for binary codes and thislevel of partitioning,
Hamming distance translatesto Euclidian distance.
It's really just the image ofthese codes as you go up to
the lattices.
Now in this case, what's thebest we can ever do?
Coding gain.
We still can't go up to asquared distance of greater
than 4 because our within-subsetdistance is
going to be within RD4.
So this is still limited to 4.
But now, what's our redundancyper two dimensions?
Here, say, we're going touse still a rate 2/3
convolutional code.
We'll now have an eight-subsetselector in 4D, so everything
is per 4D here.
So this is going to be 2b minustwo bits and this is
going to be, it turns out, aconstellation that is twice as
large in four dimensions.
We still have one redundant bitper four dimensions, so we
need twice the size of theconstellation in four
dimensions.
But that's only 1/2 a bit ofredundancy per two dimensions.
So this denominator becomes2 to the 1/2.
Waving hands furiously here.
And so this could go up to 2 tothe 3/2, which is 4.5 dB.
So there's actually aparticularly nice eight-state
code here that Wei came up withwhich, really, in terms
of performance versus complexityis the only code
that anyone has ever come upwith that is distinctly better
than any of Ungerboeck'soriginal codes.
All of Ungerboeck's originalcodes were in one dimension,
two dimensions, or PSK codes.
You could also do thison phase shift key
constellations.
So with the Wei code, it givesyou a very simple way
to get 4 1/2 dB.
Actually, you have to go up to16 states to get 4 1/2 dB.
The Wei code is only 4.2 dB.
And this is basically what wasadopted for standards in the
early '90s.
The V.34 modem standard, alsothe ADSL standard has the same
code in it.
If you have DSL at home, that'swhat it's using in it.
Again, with a very simple code,the eight-state Viterbi
algorithm, you can get 4.2dB of coding gain.
The error coefficient in thiscase, this has 24 nearest
neighbors in D4, or 12per two dimensions.
So you lose 0.15 dBor something.
I'm sorry, 0.3 dB.
Anyway, this is avery nice code.
There are 32 and 64-statecodes in V.34.
They don't gain you very much.
They each double the complexityand only gain you
about 0.2 dB for each one.
All these things tendto saturate.
You can't get more than about 5to 6 dB of coding gain with
a reasonable sizetrellis code.
So where are we now?
We can get 5 or 6 dB of codinggain with, say, a 256-state
trellis code.
We can get another 1 to 1 anda 1/2 dB of shaping gain.
So all together, we'reup to 6 to 7.5 dB.
From here, we're up somewhereinto the 2 to 3 dB range.
In other words, combiningtrellis code with, say, 256
states with some shaping schemewith maybe 1 dB of
shaping gain, this gets youmaybe 5 dB or 5.5 dB.
We get 6 dB total effectivegain, and we're still 3 dB or
maybe 2 or 3 dB fromShannon limit.
So, close but notquite there yet.
Five minutes to go.
So in the notes, there'sone page on
higher performance schemes.
There are higher performanceschemes.
There are turbo codes for thebandwidth-limited regime that
get you to within 1 dBof the Shannon limit.
Sequential decoding gets you towithin about 1 and a 1/2 dB
of the Shannon limit.
The idea of multi-levelcodes --
you can regard each of thesetwo-way partitions as being
specified by one bit.
So with three bits of labels,you can specify
an eight-way partition.
Another idea is to code oneach of these levels
separately.
Use a binary code on each ofthese levels separately.
Each of these corresponds to aneffective channel that has
different characteristics.
You've basically got to take theGaussian distribution and
alias it around in accord withwhatever this partition
actually is.
But you can come up with aneffective binary channel at
each of these levels.
It turns out to be a binarysymmetric input channel,
always in these cases.
So you could think oftaking a binary--
now, each one of these channelsis going to have its
own capacity.
It turns out that informationtheoretically, the capacity of
multi-level coding on each ofthese levels independently is
the same as the aggregatecapacity of coding it on the
whole channel.
It's a lovely separabilityresult.
So in principle, if you couldcode at capacity on each of
these binary channels, then youcould get to the capacity
of the aggregate channel, witha large enough constellation.
So that's a good idea.
We now know a lot of binarycapacity-approaching code, so
let's use a turbo code or alow-density parity-check code
at each level, an appropriatecode.
It turns out, as you mightexpect, that the first level
is the really hard level.
In this case, you might havea rate 1/3 or 1/2 code and
really work hardwith your code.
At the next level, the effectiveerror probability is
much better.
Making hard decisions, you mighthave a probability of
1/10 or lower of makingan error.
So these are really mucheasier problems.
It might be a better idea atthese levels just to use
algebraic coding or somethingthat works very well.
The capacity is nearly one perbit at each level, so you want
to code with very littleredundancy at these next
levels, but it's still capableof approaching capacity.
Well, it turns out this is agood scenario for Reed-Solomon
codes or some kind ofalgebraic code.
So the moral is you onlyreally need your
capacity-approaching code atmaybe the first or first and
second levels.
Down here, just usea very high rate--
1,023, 1,003 Reed-Solomon codeover gf of 2 to the 10th--
very little redundancy, anddrive the error rate down as
low as you like at eachof these levels.
So multi-level coding is agood way in principle.
I'm not sure if it's beendone in practice.
In fact, I don't know of anycapacity-approaching code that
has been done in practice,except there's a very crude
technique, I would say, calledBit-Interleaved Coded
Modulation, BICM, which is thefollowing simple idea.
Let's just take a singlelow-density parity-check code
or some capacity-approachingcode.
It's going to have to bedesigned for a BICM channel.
Let's totally interleave thebits and then let's use them
as the bits that control eachof these levels here.
At the output of the channel,we know which level the bits
came out of.
So at the output of the channel,we know what the
appropriate a posterioriprobabilities
are for each bit.
They're going to bewildly different.
A bit sent through here is goingto be sent through a
very highly reliable channel,a bit sent through here is
going to be sent through a verylow reliability channel.
But with all this interleavingand the independence
approximation in the analysis,we're going to be able to
design a code for this mixturechannel, a mixture of high
reliability and low reliabilitybinary channels,
that's going to get to thecapacity of this mixture
channel, which as I've alreadytold you is equal to the
capacity of the aggregatechannel.
I guess there's some elegantfeatures of it.
But that's, in practice,what people use.
They use it more because they'vealready developed a
chip for binary channels, andthey want to reuse that chip
for some large constellationchannel, some
bandwidth-limited channel.
So this was originally advocatedby Qualcomm as a,
quote, pragmatic approach.
OK, we've got a chip that worksfor binary channels, so
let's just interleave outputsand use it over this
multi-level channel and it'llprobably work well enough.
And, in fact, that's true.
And the information supportfor it, again, is the fact
that you don't lose anythingby coding bit by bit from a
capacity point of view.
I think that's the only onethat's been used in practice.
And on wireless cellularchannels for instance, that
tends to be what's used.
And of course, I know thatperhaps a couple of you have
an exam at 11:00, so I'llmake a point of
letting you out of here.
I've really enjoyed teachingthe course this term.
It was the first time I was ableto get to the analysis of
capacity-approaching codes,so I enjoyed doing that.
At this point, I think thesubject of coding for the
additive white Gaussian noisechannel, the traditional
channel, is prettywell wrapped up.
I don't think we're going tosee any great improvements.
There's still some veryinteresting theoretical
questions about the convergenceof these iterative
decoding algorithms.
What do they converge to?
How fast do they converge?
There are interestingconnections to statistical
physics and inferenceand so forth that
people are still exploring.
They're interested in graphtheoretical properties.
There's attempts toalgebraically construct these
capacity-approaching codes, sowe can say a lot more about
their parameters and theirperformance, particularly for
lower probabilities like10 to the minus 15.
So you go to the informationtheory symposium, you'll still
hear a lot of papers aboutcoding effectively for
additive white Gaussian noise ormemoryless binary symmetric
input channels.
But people ask me, iscoding dead now?
Are Fourier transforms dead?
No, they're not dead.
But they've become sort of partof the standard core of
what you should know.
I think this is a subject thatanyone in communication should
certainly learn, but is it anarea where people are going to
make further advances that areimportant from a practical
point of view?
Obviously not very much, inview of the Shannon limit.
We are very close to theShannon limit for these
channels, and have beennow for a few years.
So it's important to knowabout these things.
It's important to know whenyou're in the wireless course,
for instance.
You basically calculate mutualinformation and assume that
you can go at the mutualinformation.
This is how you do it.
So you should know how it'sdone, and that's why I think
this course continues tobe worth teaching.
But from a point of view ofresearch, it's become a rather
mature area, and the actionhas gone off to
other kinds of channels.
Multi this, multithat, so forth.
Anything to do with networksor multi-user is where the
action in coding is.
Data compression, of course, isa subject that we haven't
talked about at all, whichis also coding.
So anyway, I think it's good foryou to have all this under
your belts.
I hope that you find it usefulin your future lives, and I
wish you all well onthe final exam.
Thank you.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347align:start position:0% the following content is provided under
align:start position:0%the following content is provided under
align:start position:0%the following content is provided undera Creative Commons license your support
align:start position:0%a Creative Commons license your support
align:start position:0%a Creative Commons license your supportwill help MIT open courseware continue
align:start position:0%will help MIT open courseware continue
align:start position:0%will help MIT open courseware continueto offer highquality educational
align:start position:0%to offer highquality educational
align:start position:0%to offer highquality educationalresources for free to make a donation or
align:start position:0%resources for free to make a donation or
align:start position:0%resources for free to make a donation orview additional materials from hundreds
align:start position:0%view additional materials from hundreds
align:start position:0%view additional materials from hundredsof MIT courses visit MIT opencourseware
align:start position:0%of MIT courses visit MIT opencourseware
align:start position:0%of MIT courses visit MIT opencoursewareat
align:start position:0%at
align:start position:0%atocw.mit.edu in this experiment we're
align:start position:0%ocw.mit.edu in this experiment we're
align:start position:0%ocw.mit.edu in this experiment we'regoing to illustrate how sodium
align:start position:0%going to illustrate how sodium
align:start position:0%going to illustrate how sodiumatoms exhibit very strong absorption
align:start position:0%atoms exhibit very strong absorption
align:start position:0%atoms exhibit very strong absorptionwhen excited by light at at the
align:start position:0%when excited by light at at the
align:start position:0%when excited by light at at theresonance frequency of
align:start position:0%resonance frequency of
align:start position:0%resonance frequency ofsodium we're going to use a d laser over
align:start position:0%sodium we're going to use a d laser over
align:start position:0%sodium we're going to use a d laser overhere and a vapor cell of atomic sodium
align:start position:0%here and a vapor cell of atomic sodium
align:start position:0%here and a vapor cell of atomic sodiumwe're going to tune the laser to 5890
align:start position:0%we're going to tune the laser to 5890
align:start position:0%we're going to tune the laser to 5890angstroms or so which is the
align:start position:0%angstroms or so which is the
align:start position:0%angstroms or so which is theresonance frequency for for sodium and
align:start position:0%resonance frequency for for sodium and
align:start position:0%resonance frequency for for sodium andand we're going to observe the this the
align:start position:0%and we're going to observe the this the
align:start position:0%and we're going to observe the this thesodium resonance
align:start position:0%sodium resonance
align:start position:0%sodium resonancefluorescence so when we come back we'll
align:start position:0%fluorescence so when we come back we'll
align:start position:0%fluorescence so when we come back we'llhave it set up for you so that you can
align:start position:0%have it set up for you so that you can
align:start position:0%have it set up for you so that you canobserve for yourself the this this this
align:start position:0%observe for yourself the this this this
align:start position:0%observe for yourself the this this thistremendous absorption exhibited by
align:start position:0%tremendous absorption exhibited by
align:start position:0%tremendous absorption exhibited bysodium when excited by D laser radiation
align:start position:0%sodium when excited by D laser radiation
align:start position:0%sodium when excited by D laser radiationat the sodium
align:start position:0%at the sodium
align:start position:0%at the sodiumresonance the
align:start position:0%resonance the
align:start position:0%resonance thesodium is in a in a Cell in a heated
align:start position:0%sodium is in a in a Cell in a heated
align:start position:0%sodium is in a in a Cell in a heatedcell on the uh on the
align:start position:0%cell on the uh on the
align:start position:0%cell on the uh on theright and what you can see right now
align:start position:0%right and what you can see right now
align:start position:0%right and what you can see right nowinside you see the resonance scattering
align:start position:0%inside you see the resonance scattering
align:start position:0%inside you see the resonance scatteringby sodium at 5890 anstrom now all I have
align:start position:0%by sodium at 5890 anstrom now all I have
align:start position:0%by sodium at 5890 anstrom now all I haveto do is I tune the dilay away from
align:start position:0%to do is I tune the dilay away from
align:start position:0%to do is I tune the dilay away fromresonance and there's no there's no
align:start position:0%resonance and there's no there's no
align:start position:0%resonance and there's no there's nofluoresence onto the resonance here we
align:start position:0%fluoresence onto the resonance here we
align:start position:0%fluoresence onto the resonance here weare plenty of scattered light and I go
align:start position:0%are plenty of scattered light and I go
align:start position:0%are plenty of scattered light and I gothe other side of
align:start position:0%the other side of
align:start position:0%the other side ofresonance and and there's no absorption
align:start position:0%resonance and and there's no absorption
align:start position:0%resonance and and there's no absorptionhere we are again on
align:start position:0%here we are again on
align:start position:0%here we are again onresonance and off
align:start position:0%resonance and off
align:start position:0%resonance and offresonance on
align:start position:0%resonance on
align:start position:0%resonance onresonance and off
align:start position:0%
align:start position:0% resonance
align:start position:0%resonance
align:start position:0%resonancegreat123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107align:start position:0% we now continue with the development of
align:start position:0%we now continue with the development of
align:start position:0%we now continue with the development ofcontinuous analogs of everything we know
align:start position:0%continuous analogs of everything we know
align:start position:0%continuous analogs of everything we knowfor the discrete case we have already
align:start position:0%for the discrete case we have already
align:start position:0%for the discrete case we have alreadyseen a few versions of the total
align:start position:0%seen a few versions of the total
align:start position:0%seen a few versions of the totalprobability theorem one version for
align:start position:0%probability theorem one version for
align:start position:0%probability theorem one version forevents and one version for pmfs let us
align:start position:0%events and one version for pmfs let us
align:start position:0%events and one version for pmfs let usnow develop a continuous analogue
align:start position:0%now develop a continuous analogue
align:start position:0%now develop a continuous analoguesuppose as always that we have a
align:start position:0%suppose as always that we have a
align:start position:0%suppose as always that we have apartition of the sample space into a
align:start position:0%partition of the sample space into a
align:start position:0%partition of the sample space into anumber of disjoint scenarios three
align:start position:0%number of disjoint scenarios three
align:start position:0%number of disjoint scenarios threescenarios in this picture more general
align:start position:0%scenarios in this picture more general
align:start position:0%scenarios in this picture more generalen scenarios in these formulas let's X
align:start position:0%en scenarios in these formulas let's X
align:start position:0%en scenarios in these formulas let's Xbe a continuous random variable and let
align:start position:0%be a continuous random variable and let
align:start position:0%be a continuous random variable and letus take B to be the event that the
align:start position:0%us take B to be the event that the
align:start position:0%us take B to be the event that therandom variable takes a value less than
align:start position:0%random variable takes a value less than
align:start position:0%random variable takes a value less thanor equal to some little X by the total
align:start position:0%or equal to some little X by the total
align:start position:0%or equal to some little X by the totalprobability theorem this is the
align:start position:0%probability theorem this is the
align:start position:0%probability theorem this is theprobability of the first scenario times
align:start position:0%probability of the first scenario times
align:start position:0%probability of the first scenario timesthe conditional probability of this
align:start position:0%the conditional probability of this
align:start position:0%the conditional probability of thisevent given that the first scenario has
align:start position:0%event given that the first scenario has
align:start position:0%event given that the first scenario hasmaterialized and then we have similar
align:start position:0%materialized and then we have similar
align:start position:0%materialized and then we have similarterms for the other scenarios let us now
align:start position:0%terms for the other scenarios let us now
align:start position:0%terms for the other scenarios let us nowturn this equation into CDF notation the
align:start position:0%turn this equation into CDF notation the
align:start position:0%turn this equation into CDF notation theleft hand side is what we have defined
align:start position:0%left hand side is what we have defined
align:start position:0%left hand side is what we have definedas the CDF of the random variable X on
align:start position:0%as the CDF of the random variable X on
align:start position:0%as the CDF of the random variable X onthe right hand side what we have is the
align:start position:0%the right hand side what we have is the
align:start position:0%the right hand side what we have is theprobability of the first scenario
align:start position:0%probability of the first scenario
align:start position:0%probability of the first scenariomultiplied again by a CDF of the random
align:start position:0%multiplied again by a CDF of the random
align:start position:0%multiplied again by a CDF of the randomvariable X but it is a CDF that applies
align:start position:0%variable X but it is a CDF that applies
align:start position:0%variable X but it is a CDF that appliesin a conditional model where event a 1
align:start position:0%in a conditional model where event a 1
align:start position:0%in a conditional model where event a 1has occurred and so we use this notation
align:start position:0%has occurred and so we use this notation
align:start position:0%has occurred and so we use this notationto denote the conditional CDF the CDF
align:start position:0%to denote the conditional CDF the CDF
align:start position:0%to denote the conditional CDF the CDFthat applies to the conditional universe
align:start position:0%that applies to the conditional universe
align:start position:0%that applies to the conditional universeand then we have similar terms for the
align:start position:0%and then we have similar terms for the
align:start position:0%and then we have similar terms for theother scenarios now we know that the
align:start position:0%other scenarios now we know that the
align:start position:0%other scenarios now we know that thederivative of a CDF is a PDF we also
align:start position:0%derivative of a CDF is a PDF we also
align:start position:0%derivative of a CDF is a PDF we alsoknow that any general fact such as this
align:start position:0%know that any general fact such as this
align:start position:0%know that any general fact such as thisone that applies to unconditional models
align:start position:0%one that applies to unconditional models
align:start position:0%one that applies to unconditional modelswill also apply without change to a
align:start position:0%will also apply without change to a
align:start position:0%will also apply without change to aconditional model because a conditional
align:start position:0%conditional model because a conditional
align:start position:0%conditional model because a conditionalmodel is just like any other ordinary
align:start position:0%model is just like any other ordinary
align:start position:0%model is just like any other ordinaryprobability model so let us now take
align:start position:0%probability model so let us now take
align:start position:0%probability model so let us now takederivatives of both sides of this
align:start position:0%derivatives of both sides of this
align:start position:0%derivatives of both sides of thisequation on the left hand side we have
align:start position:0%equation on the left hand side we have
align:start position:0%equation on the left hand side we havethe derivative of a CDF which is a PDF
align:start position:0%the derivative of a CDF which is a PDF
align:start position:0%the derivative of a CDF which is a PDFand on the right hand side we have the
align:start position:0%and on the right hand side we have the
align:start position:0%and on the right hand side we have theprobability of the first scenario and
align:start position:0%probability of the first scenario and
align:start position:0%probability of the first scenario andthen the derivative of the conditional
align:start position:0%then the derivative of the conditional
align:start position:0%then the derivative of the conditionalCDF
align:start position:0%CDF
align:start position:0%CDFwhich has to be the same as the
align:start position:0%which has to be the same as the
align:start position:0%which has to be the same as theconditional PDF so we use here the fact
align:start position:0%conditional PDF so we use here the fact
align:start position:0%conditional PDF so we use here the factthat derivatives of CD f's are PDFs and
align:start position:0%that derivatives of CD f's are PDFs and
align:start position:0%that derivatives of CD f's are PDFs andthen we have similar terms under the
align:start position:0%then we have similar terms under the
align:start position:0%then we have similar terms under thedifferent scenarios so we now have a
align:start position:0%different scenarios so we now have a
align:start position:0%different scenarios so we now have arelation between densities to interpret
align:start position:0%relation between densities to interpret
align:start position:0%relation between densities to interpretthis relation we think as follows the
align:start position:0%this relation we think as follows the
align:start position:0%this relation we think as follows theprobability of falling inside the little
align:start position:0%probability of falling inside the little
align:start position:0%probability of falling inside the littleinterval around X is determined by the
align:start position:0%interval around X is determined by the
align:start position:0%interval around X is determined by theprobability of falling inside that
align:start position:0%probability of falling inside that
align:start position:0%probability of falling inside thatlittle interval under each one of the
align:start position:0%little interval under each one of the
align:start position:0%little interval under each one of thedifferent scenarios and where each
align:start position:0%different scenarios and where each
align:start position:0%different scenarios and where eachscenario is weighted by the
align:start position:0%scenario is weighted by the
align:start position:0%scenario is weighted by thecorresponding probability now we
align:start position:0%corresponding probability now we
align:start position:0%corresponding probability now wemultiply both sides of this equation by
align:start position:0%multiply both sides of this equation by
align:start position:0%multiply both sides of this equation byX and then integrate over all X's we do
align:start position:0%X and then integrate over all X's we do
align:start position:0%X and then integrate over all X's we dothis on the left-hand side and similarly
align:start position:0%this on the left-hand side and similarly
align:start position:0%this on the left-hand side and similarlyon the right-hand side to obtain a term
align:start position:0%on the right-hand side to obtain a term
align:start position:0%on the right-hand side to obtain a termof this form and we have similar terms
align:start position:0%of this form and we have similar terms
align:start position:0%of this form and we have similar termscorresponding to the other scenarios
align:start position:0%corresponding to the other scenarios
align:start position:0%corresponding to the other scenarioswhat do we have here on the left-hand
align:start position:0%what do we have here on the left-hand
align:start position:0%what do we have here on the left-handside we have the expected value of x on
align:start position:0%side we have the expected value of x on
align:start position:0%side we have the expected value of x onthe right hand side we have this
align:start position:0%the right hand side we have this
align:start position:0%the right hand side we have thisprobability multiplied by the
align:start position:0%probability multiplied by the
align:start position:0%probability multiplied by theconditional expectation of x given that
align:start position:0%conditional expectation of x given that
align:start position:0%conditional expectation of x given thatscenario a 1 has occurred and so we
align:start position:0%scenario a 1 has occurred and so we
align:start position:0%scenario a 1 has occurred and so weobtain a version of the total
align:start position:0%obtain a version of the total
align:start position:0%obtain a version of the totalexpectation theorem it's exactly the
align:start position:0%expectation theorem it's exactly the
align:start position:0%expectation theorem it's exactly thesame formula as we had in the discrete
align:start position:0%same formula as we had in the discrete
align:start position:0%same formula as we had in the discretecase except that now X is a continuous
align:start position:0%case except that now X is a continuous
align:start position:0%case except that now X is a continuousrandom variable let us now look at a
align:start position:0%random variable let us now look at a
align:start position:0%random variable let us now look at asimple example that involves a model
align:start position:0%simple example that involves a model
align:start position:0%simple example that involves a modelwith different scenarios Bill wakes up
align:start position:0%with different scenarios Bill wakes up
align:start position:0%with different scenarios Bill wakes upin the morning and wants to go to the
align:start position:0%in the morning and wants to go to the
align:start position:0%in the morning and wants to go to thesupermarket there are two scenarios with
align:start position:0%supermarket there are two scenarios with
align:start position:0%supermarket there are two scenarios withprobability 1/3 the first scenario
align:start position:0%probability 1/3 the first scenario
align:start position:0%probability 1/3 the first scenariooccurs and under that scenario bill will
align:start position:0%occurs and under that scenario bill will
align:start position:0%occurs and under that scenario bill willgo at a time that's uniformly
align:start position:0%go at a time that's uniformly
align:start position:0%go at a time that's uniformlydistributed between 0 and 2 hours from
align:start position:0%distributed between 0 and 2 hours from
align:start position:0%distributed between 0 and 2 hours fromnow so the conditional PDF of X in this
align:start position:0%now so the conditional PDF of X in this
align:start position:0%now so the conditional PDF of X in thiscase is uniform on the interval from
align:start position:0%case is uniform on the interval from
align:start position:0%case is uniform on the interval fromzero to two
align:start position:0%zero to two
align:start position:0%zero to twothere's a second scenario that bill will
align:start position:0%there's a second scenario that bill will
align:start position:0%there's a second scenario that bill willtake a long nap and will go later in the
align:start position:0%take a long nap and will go later in the
align:start position:0%take a long nap and will go later in theday that scenario has a probability of
align:start position:0%day that scenario has a probability of
align:start position:0%day that scenario has a probability of2/3 and under that case the conditional
align:start position:0%2/3 and under that case the conditional
align:start position:0%2/3 and under that case the conditionalPDF of X is going to be uniform on the
align:start position:0%PDF of X is going to be uniform on the
align:start position:0%PDF of X is going to be uniform on therange between 6 & 8 by the total
align:start position:0%range between 6 & 8 by the total
align:start position:0%range between 6 & 8 by the totalprobability theorem for densities the
align:start position:0%probability theorem for densities the
align:start position:0%probability theorem for densities thedensity of X of the random variable the
align:start position:0%density of X of the random variable the
align:start position:0%density of X of the random variable thetime at which he goes to the supermarket
align:start position:0%time at which he goes to the supermarket
align:start position:0%time at which he goes to the supermarketconsists of two pieces one piece is a
align:start position:0%consists of two pieces one piece is a
align:start position:0%consists of two pieces one piece is auniform between 0 & 2
align:start position:0%uniform between 0 & 2
align:start position:0%uniform between 0 & 2this uniform ordinarily would have a
align:start position:0%this uniform ordinarily would have a
align:start position:0%this uniform ordinarily would have aheight of 1/2 on the other hand it gets
align:start position:0%height of 1/2 on the other hand it gets
align:start position:0%height of 1/2 on the other hand it getsweighted by the corresponding
align:start position:0%weighted by the corresponding
align:start position:0%weighted by the correspondingprobability which is 1/3 so we obtain a
align:start position:0%probability which is 1/3 so we obtain a
align:start position:0%probability which is 1/3 so we obtain apiece here that has a height of 1/6
align:start position:0%piece here that has a height of 1/6
align:start position:0%piece here that has a height of 1/6under the alternative scenario the
align:start position:0%under the alternative scenario the
align:start position:0%under the alternative scenario theconditional density is a uniform on the
align:start position:0%conditional density is a uniform on the
align:start position:0%conditional density is a uniform on theinterval between 6 & 8 this uniform has
align:start position:0%interval between 6 & 8 this uniform has
align:start position:0%interval between 6 & 8 this uniform hasa height of 1/2 again but it gets
align:start position:0%a height of 1/2 again but it gets
align:start position:0%a height of 1/2 again but it getsmultiplied by a factor of 2/3
align:start position:0%multiplied by a factor of 2/3
align:start position:0%multiplied by a factor of 2/3and this results in a height for this
align:start position:0%and this results in a height for this
align:start position:0%and this results in a height for thisterm that we have here which is 1/3 and
align:start position:0%term that we have here which is 1/3 and
align:start position:0%term that we have here which is 1/3 andthis is the form of the PDF of the time
align:start position:0%this is the form of the PDF of the time
align:start position:0%this is the form of the PDF of the timeand which bill will go to the
align:start position:0%and which bill will go to the
align:start position:0%and which bill will go to thesupermarket we can now finally use the
align:start position:0%supermarket we can now finally use the
align:start position:0%supermarket we can now finally use thetotal expectation theorem the
align:start position:0%total expectation theorem the
align:start position:0%total expectation theorem theconditional expectation under the two
align:start position:0%conditional expectation under the two
align:start position:0%conditional expectation under the twoscenarios can be found as follows under
align:start position:0%scenarios can be found as follows under
align:start position:0%scenarios can be found as follows underone scenario we have a uniform between 0
align:start position:0%one scenario we have a uniform between 0
align:start position:0%one scenario we have a uniform between 0& 2 and so the conditional expectation
align:start position:0%& 2 and so the conditional expectation
align:start position:0%& 2 and so the conditional expectationis 1 and it gets weighted by the
align:start position:0%is 1 and it gets weighted by the
align:start position:0%is 1 and it gets weighted by thecorresponding probability which is 1/3
align:start position:0%corresponding probability which is 1/3
align:start position:0%corresponding probability which is 1/3under the second scenario which probably
align:start position:0%under the second scenario which probably
align:start position:0%under the second scenario which probablywhich has probability 2/3 the
align:start position:0%which has probability 2/3 the
align:start position:0%which has probability 2/3 theconditional expectation is the midpoint
align:start position:0%conditional expectation is the midpoint
align:start position:0%conditional expectation is the midpointof this uniform which is 7 and this
align:start position:0%of this uniform which is 7 and this
align:start position:0%of this uniform which is 7 and thisgives us the expected value of the time
align:start position:0%gives us the expected value of the time
align:start position:0%gives us the expected value of the timeat which we go so this is a simple
align:start position:0%at which we go so this is a simple
align:start position:0%at which we go so this is a simpleexample but it illustrates nicely how we
align:start position:0%example but it illustrates nicely how we
align:start position:0%example but it illustrates nicely how wecan construct a model that involves a
align:start position:0%can construct a model that involves a
align:start position:0%can construct a model that involves anumber of different scenarios and by
align:start position:0%number of different scenarios and by
align:start position:0%number of different scenarios and byknowing the probability distribution
align:start position:0%knowing the probability distribution
align:start position:0%knowing the probability distributionunder
align:start position:0%under
align:start position:0%underone of the scenarios we can find the
align:start position:0%one of the scenarios we can find the
align:start position:0%one of the scenarios we can find theprobability distribution overall and we
align:start position:0%probability distribution overall and we
align:start position:0%probability distribution overall and wecan also find the expected value for the
align:start position:0%can also find the expected value for the
align:start position:0%can also find the expected value for theoverall experiment123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819align:start position:0% in this uh game this competition we will
align:start position:0%in this uh game this competition we will
align:start position:0%in this uh game this competition we willbe building the conversation of what
align:start position:0%be building the conversation of what
align:start position:0%be building the conversation of whatwill happen if you're trying to make a
align:start position:0%
align:start position:0% reservation yes for a
align:start position:0%reservation yes for a
align:start position:0%reservation yes for adinner at the
align:start position:0%
align:start position:0% restaurant so we ENT the phone by
align:start position:0%restaurant so we ENT the phone by
align:start position:0%restaurant so we ENT the phone bysaying ready ready
align:start position:0%saying ready ready
align:start position:0%saying ready readyready that mean what what is ready in
align:start position:0%ready that mean what what is ready in
align:start position:0%ready that mean what what is ready inItalian Pronto yes oh right oh
align:start position:0%
align:start position:0% go so let's say you're calling and then
align:start position:0%go so let's say you're calling and then
align:start position:0%go so let's say you're calling and thenthe restaurant it says Pronto
align:start position:0%the restaurant it says Pronto
align:start position:0%the restaurant it says Prontoready and then they
align:start position:0%ready and then they
align:start position:0%ready and then theysay so I say the sentence and then you
align:start position:0%say so I say the sentence and then you
align:start position:0%say so I say the sentence and then yougo so let's say that you're calling a
align:start position:0%go so let's say that you're calling a
align:start position:0%go so let's say that you're calling agiven restaurant
align:start position:0%given restaurant
align:start position:0%given restaurantready so this is a spelling
align:start position:0%ready so this is a spelling
align:start position:0%ready so this is a spellingchallenge they
align:start position:0%challenge they
align:start position:0%challenge theysayto
align:start position:0%
align:start position:0% are you going to give you the sign oh
align:start position:0%are you going to give you the sign oh
align:start position:0%are you going to give you the sign ohit's okay
align:start position:0%
align:start position:0% go
align:start position:0%go
align:start position:0%gowhat are they supposed to
align:start position:0%
align:start position:0% WR do they write
align:start position:0%WR do they write
align:start position:0%WR do they writeResto right
align:start position:0%Resto right
align:start position:0%Resto rightresturante I did so what do they say
align:start position:0%resturante I did so what do they say
align:start position:0%resturante I did so what do they sayresturante that's restaurant and then
align:start position:0%resturante that's restaurant and then
align:start position:0%resturante that's restaurant and thenthe name of the
align:start position:0%the name of the
align:start position:0%the name of therestaurant to be the name so you start
align:start position:0%restaurant to be the name so you start
align:start position:0%restaurant to be the name so you startwith that which is
align:start position:0%
align:start position:0% by that's grandma right yeah Grandma
align:start position:0%by that's grandma right yeah Grandma
align:start position:0%by that's grandma right yeah Grandmavery
align:start position:0%very
align:start position:0%verygood is
align:start position:0%good is
align:start position:0%good isthat so good evening I would like to PR
align:start position:0%that so good evening I would like to PR
align:start position:0%that so good evening I would like to PRReser a
align:start position:0%
align:start position:0% table for
align:start position:0%table for
align:start position:0%table fortomorrow
align:start position:0%tomorrow
align:start position:0%tomorrowevening
align:start position:0%
align:start position:0% go okay just oh Jesus
align:start position:0%go okay just oh Jesus
align:start position:0%go okay just oh Jesussorry oh but I have punctuation Bona
align:start position:0%sorry oh but I have punctuation Bona
align:start position:0%sorry oh but I have punctuation Bonaging
align:start position:0%ging
align:start position:0%gingcomma the best answer is this
align:start position:0%
align:start position:0% one okay want to say that you can write
align:start position:0%
align:start position:0% ITA is one word or you can write it
align:start position:0%ITA is one word or you can write it
align:start position:0%ITA is one word or you can write itseparated
align:start position:0%separated
align:start position:0%separatednow here you say Vol Vol is not very
align:start position:0%now here you say Vol Vol is not very
align:start position:0%now here you say Vol Vol is not verykind cuz it's like I
align:start position:0%kind cuz it's like I
align:start position:0%kind cuz it's like Iwant like I would
align:start position:0%
align:start position:0% like then yes both and are correct oh
align:start position:0%like then yes both and are correct oh
align:start position:0%like then yes both and are correct ohcool
align:start position:0%cool
align:start position:0%coolokay is more common
align:start position:0%okay is more common
align:start position:0%okay is more commonbut would be still correct
align:start position:0%
align:start position:0% so so they ask you if it's fine to sit
align:start position:0%so so they ask you if it's fine to sit
align:start position:0%so so they ask you if it's fine to sitinside close to the window translation
align:start position:0%inside close to the window translation
align:start position:0%inside close to the window translationand you say it's okay and then second
align:start position:0%and you say it's okay and then second
align:start position:0%and you say it's okay and then secondpart it's translation from Italian you
align:start position:0%
align:start position:0% ask
align:start position:0%ask
align:start position:0%askfrom go oh my God you're so
align:start position:0%
align:start position:0% terrible oh my
align:start position:0%terrible oh my
align:start position:0%terrible oh myGod sorry I I already translated it I'm
align:start position:0%
align:start position:0% sorry and then what was the thing oh
align:start position:0%sorry and then what was the thing oh
align:start position:0%sorry and then what was the thing ohyeah is
align:start position:0%yeah is
align:start position:0%yeah isthere okay now let's do the last part of
align:start position:0%there okay now let's do the last part of
align:start position:0%there okay now let's do the last part ofthe conversation they answer to you they
align:start position:0%the conversation they answer to you they
align:start position:0%the conversation they answer to you theysay yes then you answer oh then it's
align:start position:0%
align:start position:0% okay then they ask you at what name you
align:start position:0%okay then they ask you at what name you
align:start position:0%okay then they ask you at what name youanswer
align:start position:0%answer
align:start position:0%answerven okay so they say uh you they say yes
align:start position:0%ven okay so they say uh you they say yes
align:start position:0%ven okay so they say uh you they say yesyou say then it's okay they ask you at
align:start position:0%you say then it's okay they ask you at
align:start position:0%you say then it's okay they ask you atwhat
align:start position:0%what
align:start position:0%whatname and
align:start position:0%name and
align:start position:0%name andyou say
align:start position:0%you say
align:start position:0%you sayVen and then say thank you
align:start position:0%
align:start position:0% and oh oh somebody's
align:start position:0%and oh oh somebody's
align:start position:0%and oh oh somebody'sclose so they tell you
align:start position:0%
align:start position:0% see
align:start position:0%see
align:start position:0%seeyes let me say
align:start position:0%yes let me say
align:start position:0%yes let me saythen
align:start position:0%
align:start position:0% no and your name your last name say V if
align:start position:0%no and your name your last name say V if
align:start position:0%no and your name your last name say V ifI pronounce it with would be
align:start position:0%
align:start position:0% V ven V one ven ven Pizza I would atin
align:start position:0%V ven V one ven ven Pizza I would atin
align:start position:0%V ven V one ven ven Pizza I would atinbit it's a little bit longer
align:start position:0%bit it's a little bit longer
align:start position:0%bit it's a little bit longerso like
align:start position:0%so like
align:start position:0%so likeV try to do this
align:start position:0%
align:start position:0% V you feel the difference vene actually
align:start position:0%V you feel the difference vene actually
align:start position:0%V you feel the difference vene actuallymeans people from
align:start position:0%means people from
align:start position:0%means people fromVenia right you say venan means I come
align:start position:0%Venia right you say venan means I come
align:start position:0%Venia right you say venan means I comefrom V and then we don't need to write
align:start position:0%from V and then we don't need to write
align:start position:0%from V and then we don't need to writeit down because you already know how to
align:start position:0%it down because you already know how to
align:start position:0%it down because you already know how todo it last challenge so you finally
align:start position:0%do it last challenge so you finally
align:start position:0%do it last challenge so you finallymanaged to
align:start position:0%
align:start position:0% make and we
align:start position:0%make and we
align:start position:0%make and wearve write it down because it's a long
align:start position:0%arve write it down because it's a long
align:start position:0%arve write it down because it's a longsentence I want you to translate it
align:start position:0%sentence I want you to translate it
align:start position:0%sentence I want you to translate itfrom English to Italian I have a
align:start position:0%from English to Italian I have a
align:start position:0%from English to Italian I have areservation for 15 at the name
align:start position:0%reservation for 15 at the name
align:start position:0%reservation for 15 at the nameV
align:start position:0%
align:start position:0% what's that what
align:start position:0%
align:start position:0% was
align:start position:0%was
align:start position:0%wasAl and you can say Al or and that was
align:start position:0%
align:start position:0% fine perfect yay so you know how to make
align:start position:0%fine perfect yay so you know how to make
align:start position:0%fine perfect yay so you know how to makeyour
align:start position:0%
align:start position:0% reservations
align:start position:0%
align:start position:0% oh123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553The followingcontent is provided
under a CreativeCommons license.
Your support will help MITOpenCourseWare continue
to offer high qualityeducational resources for free.
To make a donation orview additional materials
from hundreds of MIT courses,visit MIT OpenCourseWare
at ocw.mit.edu.
PROFESSOR: Lastlecture on sorting.
Yay.
And it's one of the coolestlectures on sorting,
I would say.
We're going to talk aboutlinear-time sorting, when it's
possible and whenit's not possible,
and this lecture sort offollows the tried and tested
mathematical structure which istheorem, proof, counterexample.
So we're going to startwith a theorem which
is that sorting requires n lg ntime at least in the worst case
and we're going to then provethat in fact, you can get away
with linear time sometimes.
Both of these terms arecorrect, but they're slightly
different models of computation.
Remember models ofcomputation from lecture two?
So we're going to talk about anew model of computation, which
we've sort of been usingfor most algorithms lately,
called the comparison model.
And it's a model ofcomputations that's
really useful for provinglower bounds which
we haven't done much of yet.
We're going to prove twovery simple lower bounds.
One is that searchingrequires lg n time.
This is basically binarysearch is optimal.
And the other is thatsorting requires n lg n time.
This is that mergesort is optimal.
And then we're going to breakoutside of that comparison
model, work in a differentmodel of computation, our more
usual RAM model, and showthat in certain situations,
we can get linear time.
So that's the plan.
Let's start with thiscomparison model.
So the idea in thecomparison model
is to restrict whatkind of operations
we can do to be comparisons.
It's very straightforward.
All input items are blackboxes, you could say,
in that you don't reallyknow what they are.
And a formal notionof black boxes
is something we talkedabout last class
at the end, abstract data type.
So it's a datastructure, if you will.
Every item that you'regiven is a data structure.
You want to sort them.
And the data structuresupports a single operation
which is comparedto another one.
Only operation allowed-- I guessI should say plural actually--
are comparisons.
I'm going to be nice and I'lllet you do less than, less than
or equal to, greaterthan, whatever.
I guess there's only one other.
Well, there's two more, greaterthan or equal to and equals.
So you can do all theusual comparisons.
You get a binaryanswer, yes or no,
and those the onlyoperations you're given.
And basically thelast four lectures
have all been aboutalgorithms in this model.
So merge sort, itmoves items around.
It's changing pointers toitems, but the only way
it manipulates itemsor evaluates them
is to compare oneagainst the other.
Heaps and heaps sortalso only compare.
Binary searchtrees only compare.
Everything we've been seeingso far is about comparisons.
And so all the algorithms we'veseen so far are in this model
and we're going to prove thatthey are optimal in this model.
That's the plan.
I should also define thecost of an algorithm.
Time cost is just going tobe the number of comparisons.
This is the weird part,I guess, of the model.
So in everything we've done sofar, we've been in, I guess,
pointer machine orRAM, either way.
We've been showing binarysearch trees or AVL trees,
you can do order lg n time,in the regular notion of time.
But in particular they doorder lg n comparisons.
And what we're goingto show on the-- this
is only interesting from alower bound perspective--
we're going to show that evenif you just count comparisons,
you can do whatever othercrazy things you want.
You need lg n time to search.
You need n lg n time to sort.
So that's our goal.
So to prove that we'regoing to introduce
the notion of a decision tree.
So the idea is the following: ifwe know that our algorithms are
only comparing items, wecan actually sort of draw
all the possible thingsthat an algorithm could do,
so any comparison algorithm.
So this focusingin on comparisons
lets us take a tree perspectiveof what our algorithm does--
all possible comparisonsand their outcomes
and the resulting answer.
I think this would bea lot clearer if we
look at an example--binary search,
how you search asimple algorithm.
Look at the middlecompared to the item you're
searching for goleft or go right.
And our idea-- Ididn't write it here--
is to look at aparticular value of n,
n being the size of yourproblem, so binary search,
you're searching among nitems for another item.
And I'm going to keep itsimple, n equals three.
I think I'm going to go a littlewide, use the whole board.
So n equals 3 we'vegot array, say
index turning at zero-- prettysimple binary search-- look
in the middle, goleft or go right.
But I'm going to write out thisalgorithm explicitly to say,
all right, first thing I dois compare is A 1 less than x?
That's in all cases,no matter what
the array is as longas n equals three,
this is the firstoperation you do.
The answer is either yes or no.
If the answer is no, that meansx is less than or equal to A 1,
so it's to the left.
Then we compare with A 0.
Is A 0 less than x?
Answer is either yes or no.
If the answer is no,we're kind of done.
We know that x is overhere or it might actually
be equal to A 0.
If you want to figureout whether it's
equal or less than, therewill be one more step.
But I'll just stop it here.
We'll say, well in this case,x is less than or equal to A 0.
I'm going to put it ina box, say that's done
where the circlesare the decisions.
OK?
If the answer is yes-- there'sno to this question, yes
to this question-- then you knowthat x falls in between here.
Probably need awider box for this.
So we have A 0 is less thanx-- that was the yes to this--
and the note of this means thatx is less than or equal to A 1,
and so we basicallyidentified where x fits.
It's in betweenthose two values,
possibly equal to this one.
Again, one more comparison,you could figure that out.
And then if x is to the rightof A 1, so this is true,
then we check x against A 2 andthe answer is either no or yes.
And in the no case-- well I'veconveniently laid things out
here, it's sequential-- in theyes case, x is bigger than A 2
so it's outside the array.
It's to the right.
That's the answer.
Set.
Yeah.
And in the other case, it'sin between A 1 and A 2.
It's a tedious process to writeout an algorithm like this
because a binary search-- it'snot so bad-- but if you tried
to write a sortingalgorithm out like this
where the answers aredown the bottom, here's
the sorted order, and allthe comparisons you do here,
the tree will actuallybe of exponential size.
So you don't actually wantto represent an algorithm
like this unless you'rejust trying to analyze it.
But it's nice to thinkof an algorithm this way
because you see all possibleexecutions all at once.
Let me talk about somefeatures of this tree
versus the algorithm.
So every internalnode-- actually,
I'm going to go over here.
So we have adecision tree and we
have an algorithm thatdecision tree represents.
And so when we have an internalnode in the decision tree,
that corresponds to a binarydecision in the algorithm.
In this case, we're onlylooking at comparisons.
Slight technicaldetail, decision trees
are a little moregeneral than comparisons.
Could be any binary decisionhere and everything I say
will be true about anybinary decision you make.
Comparisons are the oneswe kind of care about
because all of ouralgorithms are doing that.
And then a leaf in this treecorresponds to-- it stores
or it represents thatyou've found the answer.
Maybe I'll say found.
When the algorithm terminates,returns some answer
to the problem, that'swhat we write down here.
Here's where x is in thisarray and, yeah, we're done.
What else do we have?
Here's some puzzles for you.
If I just wanted to lookat a single execution
of the algorithm, what doesthat correspond to in the tree?
Yeah.
AUDIENCE: Going from the rootall the way down to the leaf.
PROFESSOR: Going fromthe root down to a leaf.
This is what I normally call aroot-to-leaf path, technically
a downward root-to-leaf path.
How about the runningtime of that execution?
How long does it take?
Keep going?
AUDIENCE: Lg n.
PROFESSOR: Lg n in binarysearch, but in general.
AUDIENCE: Thelength of that path.
PROFESSOR: Thelength of that path.
Yeah.
Got to make sure we get n casesright but I think it's correct,
so if here is an execution ofthe algorithm, when x happens
to be between A 0 and A 1,we do one comparison here,
a second comparison here,and then we're done.
So the cost was two and indeedthe length of this path is two.
So it works out, nooff-by-one errors.
All right, nowexciting one for us,
what we care about allthe time in this class
is worst-case running time.
This is a feature ofthe entire algorithm.
What is the worst-case runningtime of a given decision tree?
Yeah.
AUDIENCE: The height of theroot, the height of the tree.
PROFESSOR: The heightof the root also called
the height of the tree.
Yep.
Or the depth of thedeepest leaf, whatever.
So in this case all theleaves have the same level,
but in general we careabout the overall height.
How many levels inthis tree are there?
It's the number of levelsminus one, technically.
But the length oflongest root-to-leaf path
is the definition of height.
Here it's two.
In general we know forbinary search it's lg n,
but given an arbitrarydecision tree,
we just have to figure outwhat the height of the tree
is and we'll figure out theworst-case running time.
So this is why decisiontrees are interesting.
Not because it means they'repretty I guess, but the reason
they're going to be useful is wehave this kind of hard question
which is how much time doyou need to solve a problem?
And we're translatingit into how low can you
make your tree, which is aproblem we know a lot about.
Trees are pretty simple.
These are binary trees.
They're rooted, and so weknow lots of good things.
So let's provesome lower bounds.
So I claim that forsearching-- maybe I
should define the problema little more formally--
I want to claim alg n lower bound.
So let's say for searchingI have n preprocessed items.
Then finding a given item amongthem in the comparison model,
so all you're allowed to do arecompare items and other stuff,
but the only things you'reallowed to do with the items
is compare them.
Requires omega lg ncomparisons in the worst case.
It's kind of tedious towrite down these theorems,
but for our firstlower bounds, I
thought I'd be super explicit.
I mentioned here that theitems are preprocessed
to mean you could do whateveryou want the items ahead
of time, that's for free.
So I can sort themin particular,
which lets me do binary search.
I could build them into an AVLtree, could do lots of things,
but no matter what I do to findanother item takes lg n time.
Can someone tell me why?
Who doesn't have the lecturenotes right in front them,
that would make it easy.
This is a littlemore interesting,
but we had all the toolsat our disposal now.
We want to show thatthis at least lg n.
Why?
Yeah.
AUDIENCE: [INAUDIBLE]have a no or yes, right?
So it's--
PROFESSOR: Right.
AUDIENCE: --omega lg n tree.
PROFESSOR: OK.
At each step, we onlyhave a no or yes.
That's a binary tree.
So that makes you think lg n.
AUDIENCE: That's possible,it could be lg n.
PROFESSOR: Maximum actuallycould be arbitrarily large.
You could do a linear searchand the height will be m.
We care about theminimum of course.
Why does it have to be-- whydoes the height of a tree
have to be at least lg n?
There's one morething we need to say.
Yeah.
AUDIENCE: The tree hasto contain all possible--
PROFESSOR: Because thetree has to contain
all possible--answers, let's say.
Yeah, exactly.
I think that's worth a pillow.
See if I can do this-- oh!
Ouch.
I knew it was onlya matter of time.
Sorry.
I'll pay you later.
Damages.
At least I didn't hita laptop or something.
All right, so decisiontree is binary--
that was the firstthing-- and it
must have at least nleaves, one for each answer.
At least.
Now, at the leaf you haveto know what the answer is,
but there may be many leavesthat have the same answer.
That's possible.
And indeed that will happennot for binary search
but typical algorithm.
There's multiple pathsto get the same answer,
so there may bemore leaves than n.
And in fact, if you want toknow this kind of thing, where
x fits in this perspective,there's n plus 1 answers.
If you want to knowis it equal or is
it strictly between two thingsthere's 2n plus 1 answers.
But in all cases, there'sat least n answers
and that's all I need.
In particular there's--say x exactly matches one
of the given items--there's n items--
so you need to haveat least n leaves.
Maybe have more, I don't care.
But it I have a binary treewith at least n leaves,
the height has tobe at least lg n.
We're done.
The height is theworst-case running time.
Super, super easy proof.
So easy, it's never beentaught in 006 before.
But I think it's a good warmup for the next one which
is sorting.
Sorting is reallythe same thing.
It's not going to be any harderexcept that it's a little more
math but really not much more.
So now we know-- we justproved two useful facts--
one is that binary search isoptimal in a comparison model,
the other is that binary searchtrees are actually a good way
to solve a problem.
If your goal is to solve searchand all you're allowed to do
is comparisons, thenyou need lg n time.
And so the search or next largeror next smaller, predecessor,
successor, inbinary search trees
need to take at least lg n time.
No matter how you do it,even if you don't use a tree.
So this justifies why binarysearch trees are interesting,
because again thecomparison model, that's
the best you can hope to do.
So that's comforting.
That's why I like lower boundsand theoretical computer
science in general becauseyou know when you're done,
at least in a given model.
Whenever-- we'renever actually done,
because we can alwayschange the model.
At least we understand thelimitations of comparisons.
So for sorting, we claima lower bound of n lg n.
You've heard n lgn a zillion times.
You probably know thisis true, but now we
actually get toprove that it's true.
So we just followthe same strategy.
Decision tree is binary.
The question is how manyleaves does it have to have?
So for sorting-- I didn'tdraw up an example--
I'm not going to drawan example of sorting
because the trees get ginormous.
Right?
Because of the depth is nlog n, the height is n log n,
then there's binarybranching everywhere.
That's a lot of nodes.
Two to the n lg n is big.
More than two tothe n even, so it's
hard to draw a pictureeven for n equals 3.
You can do it.
People have done it.
I don't want to.
I'm lazy.
But the internal nodeslook just the same.
You're comparing twoitems, A I verses
A J. I'll just drawthe generic version.
You have A I less thanA J, question mark.
And then you'llhave a no and a yes.
So that's what a typicalcomparison looks like.
Swaps don't appearhere, because we're just
looking at the comparisons.
And then when you getdown to a leaf, a leaf--
this is the interesting part--the leaf will look like this.
Well I took the originalA 5 and that turned out
to be the smallest element.
Then-- maybe I'llwrite it this way--
then I have A 7, that turnedout to be the next smallest
element, then A 1then A 0, whatever.
Hey, right at the end, somehowyou know the sorted order
and you can just write it down.
We're not charging for this.
We're only chargingfor comparisons.
So however, maybeyou've done swaps,
in the end you knowwhat the final order is
and so you just write it down.
And your goal is to make enoughcomparisons that you figure out
what the sorted order is.
We claim the numberof comparisons
here has to be at least n lg n.
OK, why?
Because the decision tree isbinary and the number of leaves
has to be at least thenumber of possible answers.
Could be more becauseeach answer could appear
in several leavesand it probably will
in a typical sorting algorithm.
And how many possibleanswers are there?
Batter?
AUDIENCE: n factorial.
PROFESSOR: n factorial,number of permutations.
This is a permutationof the input sequence
and if all the itemsyou're given are distinct,
there will be n factorialpermutations of them.
So that's the worst case.
So n factorial.
Now the tricky partis the algebra.
Say, oh, well thenthe height is at least
lg base 2 of nfactorial-- lg base 2
because it's a binary tree.
You can put a parentheseshere if you want,
they're not necessary.
So now I want to claimthat this is n lg n.
How do I do that?
Maybe you just know?
Yeah.
AUDIENCE: We can either useStirling's approximation
or we could write itout as a sum [INAUDIBLE]
PROFESSOR: Wow, cool.
All right, you could eitheruse Stirling's approximation
or write it out as a sum.
I've never done it with it sum.
Let's do that, thatsounds like fun.
So, right?
I like that because youknow Stirling's-- it's like
you've got to know Stirlingand that's kind of annoying.
What if you don't know Sterling?
But we all know thedefinition of factorial.
I mean, we learnedin grade school
just because it's fun, right?
Oh, I guess we-- I mean wedid because we're geeks.
And then we know the lg of ourproduct is the sum of the lg's.
So this is lg n plus lg nminus 1 plus lg 2 plus lg 1.
I think at thispoint it's easier
to use summationnotation, so sum of lg i.
OK now we've got to do sum,this is 1 to n I guess.
Now we need to know somethingabout lg's, so it's not
so easy.
It's easy to show-- I mean,certainly this is at most n lg
n, but we need show thatit's at least n lg n.
That's a little trickier.
I happen to know it's true.
But I'd know it evenin the summation form
because I know that lg-- lglooks like this basically,
and so if you'readding up, you're
taking the area underthis curve right?
Oh, look at these integrals.
Oh, integrals.
Brings back memories.
This is discrete math class,though, continuous stuff.
So you're adding up allthese numbers, right?
This is lg i over all thei's and basically all of them
have the same length.
Like if you look atthe last half, that
would be one way to prove it.
Ah, it's fun, haven't donesummations in so long.
Good stuff. [? IS042 ?] materialbut applied to algorithms
and in algorithms it's funbecause you could throw away
constant factorsand life is good.
We don't need exactanswers really.
You can find an exactanswer, but let's say
you look at the last half.
Those are all goingto be basically lg n.
You can prove that.
So this is going to beat least the sum where
i equals n over 2 n of lg i.
Here I just throw away thefirst out of our two terms.
And this is going to be atleast sum i equals n over 2
to n of lg n over 2.
Each of these terms isbigger than lg n over 2
so if I just say, well,they're all lg n over 2 that's
going to give mesomething even smaller.
Now the lg n over 2,that's just lg n minus 1.
I love this.
It's going to givethe right answer even.
So that's an equals and sothis equals n lg n minus n.
That summation I can do.
All the terms are thesame, sorry n over 2.
Not quite what I wanted.
Close enough.
Sorry there isonly n over 2 terms
here, ignoringfloors and ceilings.
So I get n lg n divided by 2.
This is omega n lg nbecause this n term
is smaller than n lg n.
So this one dominates.
Doesn't matter if this one'snegative, because it's smaller.
This is omega n lg n.
We're done.
Sorting is omega n lg n.
Very easy.
Who said summations?
All right.
Why don't you comecollect a pillow,
I'm not going to throw that far.
Afterwards.
OK.
That's one way to do it.
Another way to doit, if you happen
to know Stirling's formulafor n factorial-- n factorial
is about n over e to the ntimes square root of 2 pi n.
Right?
If you do Taylor seriesapproximation of n factorial,
the first term, which is themost important term for us
because as theasymptotically dominating
term is square root of 2 pin times n over e to the n.
Hope I got that right.
Yeah, clearly I'vebeen studying.
You take lg's of that andyou do the same thing of lg
of a product is sum ofthe lg's and you end up
with-- the right answer isactually n lg n minus order n.
So I was off by afactor of 2 here.
The linear term--it does appear,
but it's smaller than thisand this is also omega n lg n.
If you don't care aboutconstants, it doesn't matter.
If you care about constants,the constant is 1.
Kind of nice.
Easy to prove a one half.
And if you look at the lecturenotes it works through that.
But I think we've seenenough of that lower bound.
And that's the end ofour lower bound topic.
Any questions on that?
So it's really easy.
Once you set up this frameworkof comparison trees and now
it becomes just a questionof the height of a comparison
tree.
Comparison trees are binary.
Just count how many leavesdo you have to have,
take lg of that and youget a lower bound of that.
AUDIENCE: What is meantby n preprocessed items?
PROFESSOR: Oh, yeah.
For searching I was tryingto be careful and say, well,
if I have n preprocessed items.
AUDIENCE: [INAUDIBLE]
PROFESSOR: It means you cando whatever the heck you want.
So here's the model.
I give you n items.
You can do all pairwisecomparisons between those items
for free and then Igive you a new item
and then I startcharging for comparisons.
So another way tosay it is I only
charge between for comparisonsbetween x and the other items.
And even then you need lg n.
AUDIENCE: [INAUDIBLE]case for sorting, right?
PROFESSOR: With sortingthey were not preprocessed.
Yeah, I didn'twrite the theorem.
It's just sorting and givenitems, no preprocessing.
AUDIENCE: What if therewere preprocessing?
PROFESSOR: If theywere preprocessed,
you'd be done inzero comparisons.
Yeah, exactly.
This theorem is also trueif I remove preprocessed,
but in fact thenyou need n time.
Unfortunately thisproof technique
will only prove alower bound of log n,
because even if these itemswere not preprocessed, then
you have to do linearsearch basically.
So if you don't knowanything about the items,
you need linear time.
But this proof will onlyprove a lower bound of log n.
So this technique,while cool and simple,
does not always giveyou the right answer.
It just gives you a lower bound.
May not be the right lowerbound, may not be tight.
So searching always requires lgn time and what's interesting
is it requires it even whenyou preprocess the items.
Sorting, if you haven'tpreprocessed the items,
then it takes n lg n.
Clear?
Good.
Now we get to the algorithmspart of the lecture, always
the most fun.
The moments you'vebeen waiting for.
Let me erase comparison trees.
Henceforth and I mean notonly this lecture, but also
the next three lectureswhich are about hashing,
we will not be inthe comparison model
because for comparisonmodel, we're done.
We solved search, we solvedsorting, n lg n three ways.
I mean, how much more can we do?
So it's time tobump it up a notch,
increase our model power.
We've talked about the RAMin particular, Random Access
Machine, wherememory is in array,
you can access anything inthe array in constant time.
We're going to use that power ofthe RAM to sort in linear time,
sometimes.
A more appropriate title forthis section of this lecture
would be integer sorting.
OK, so far we've beentalking about comparison
sorting where the items you'regiven-- the only thing you
know about them is that you cancompare them in constant time.
But now we're going tothink about the situation
where the things thatyou're sorting are integers.
That's a big assumption but it'sa practical assumption a lot
of the time.
If you're not sorting integersyou can map whatever the heck
you're sorting into integers.
And usually it'salready been done
because you're representingit on a computer.
You've already represented yourthing is an integer of sorts.
Bad pun.
This is an assumption.
So we assume-- going tobe a little more precise.
The keys you'resorting are integers.
There's still-- I'm goingto put a little n here,
remember there's n keys.
I'm also going to assumethat they're in some range.
And for convenience, I'm goingto assume that they're all
non-negative-- it's not hardto deal with negative numbers,
but it's justconvenient to think
about non-negative numbers.
So if you start at zero,there's some maximum value,
say k minus 1.
So there's k differentvalues they could be.
K could be anything.
It's a parameter.
We've always hadn as a parameter,
now we're going to alsohave k as a parameter.
And just for completeness--and each fits in a word.
Remember the machineword of your RAM machine?
Words were thethings that we could
manipulate in constant time.
Now this is a veryreasonable assumption
because we've beenassuming so far
you can compare two keysto items in constant time.
To get that forintegers, you need
to assume that your integersare fitting in words.
We usually don'tstate this assumption,
but I thought I'd throwit in just for kicks.
So we've got abunch of integers,
each one fits in a word.
I could compare them,that takes constant time,
or I could add them or subtractthem or multiply them or divide
them or do whateverthe heck I want.
It turns out you can do alot more than comparisons
and it turns outthis will help us.
I don't know if I want totell you the answer here.
For k-- not too big-- youcan sort in linear time.
Believe it or not, thistopic, integer sorting,
is still a majorarea of research.
People are still tryingto solve this problem.
One conjecture is thateven in all cases,
you can sort inlinear time given
any integers that fit in words.
This is not yet solved.
Best algorithm is ntimes square root lg lg
n with high probability.
So it's almost-- almost n.
It's a lot better than n lg n.
I'll just write that for funcase you can't parse in words.
This is the bestalgorithms to date.
I would conjecture you can dolinear time in all situations.
We're not going tocover this algorithm.
That's a little beyond us.
It's in advanced algorithmsif you're interested, 6854.
But we're going to show thatfor a lot of cases of interest
when k is notginormous, it's really
easy to sort in linear time.
All right?
And our first algorithm toachieve this is counting sort.
Counting sort does notmake any comparisons.
It only does other stuff.
And it's going to depend on n.
It's going to depend on k.
We'll get some running times notbad as long as k is not giant.
So as the name mightsuggest, what you
do is count all the items.
So imagine I give you a bunchof keys like 3, 5 7, 5, 5, 3, 6,
whatever.
I'd like to runthrough this array
and say, ah, I see thereare two 3's and there
are three 5's and there's one 6,and one 7, so how do I sort it?
I'd like to say, well3 is smallest key
and there's two of them, soI'll write two 3's, then there's
three 5's so I'll write three5's, and then there's a 6
and then there's a 7.
That's the intuition.
Now how do I-- how I dothat with an algorithm?
Suggestions?
Yeah?
AUDIENCE: [INAUDIBLE]
PROFESSOR: Yeah.
Allocate an arrayof memory, which
is my counters-- I'mgoing to count each k.
I need an array ofsize k because there
are k possible keys.
Convenient those two termsstart with the same letter.
And then I'll just--whenever I see
an-- I'm going to runthrough the items in order,
when I see an item, I say,OK, well that's key 3.
I will look at index 3 of thisarray, increment that counter.
Then I see 5,increment that counter.
I see 7, I see 5, Isee 5, and by the end,
I'll know that there are three5's and two 3's and so on.
That's how I count.
And then how dooutput the items?
You want to keep going?
AUDIENCE: [INAUDIBLE]
PROFESSOR: Yeah, justtraverse the array
of counters and thearray is already
written in order by key,so it's really easy.
I mean I could draw this arrayfor you if you like at 0, 1,
2 3.
Here's the 3 position, itends up with the value 2.
And if I just go through, a lotof these will have 0's in them,
just skip those.
When I find anon-zero entry, just
write-- oh, that means there'stwo 3's there, so I write 3, 3.
OK, that algorithmwould work but I'm not
going to even write it down,not even going to dignify it,
because all it doesis sort integers.
But there's asubtlety here which
we're going to need in a moment,which is why I stress it,
that really we have n items.
Each of them has a key, butit might have other stuff
too that we'd like tobring along for the ride.
We'll see why we careabout that in a moment.
But it's also atypical situation,
like you have a spreadsheet andyou click sort by this column.
Well every row has awhole bunch of data
but you're only trying tosort by one of those fields,
that one column.
And that one fieldmay be an integer,
but there's all this otherstuff you'd like to bring along.
And when you say, oh,there are two 3's,
you know there's this3, which you know maybe
has a cloud around it.
There's this 3 which maybehas a heart around it.
That's about the limitof my drawing abilities.
And now say, oh, thereare two 3's but which 3?
Should the cloud go first,should the heart go first?
I mean I don't carewhich goes first,
maybe-- I do, actually--but I will in a moment.
That's another topic.
But I'd like to bringthat cloud somewhere.
I want to put thecloud somewhere,
want to put the heart somewhere.
All right, so here'sa way to do all that.
Basically the same algorithmbut I'm just going to use lists.
Still have an array of kthings but no longer counters,
now lists.
They could be linked lists,they could be python lists.
It won't matter for my purposes.
And then I'll say for jand range of n-- that'd
be super pythonic here-- Iwant to look at the list who's
at index a of jand append a of j.
And then the output is goingto be an empty list initially.
And then I iterate through thearray their k values for that,
and I just say output,extend, list i.
OK.
This is counting sort or aversion of counting sort.
In your textbook, you'll finda different version which
does not use lists, So it'sprobably more practical
because it uses no datastructures whatsoever
except three arrays.
But it runs in thesame amount of time
and this is a lot easierI think to think about.
This is more modernperspective, if you well.
For every item, ifyou'd look at them
in the given orderof your array,
you see what it's key value is.
Maybe that's not exactlythe same as the item,
so it could be keyof x is just x.
But you know in pythonsort, for example,
you're given a key function.
So you take that key value.
The key is guaranteed tobe an integer between 0
and k minus 1, so you look atthe list, that numbered list,
and you just add thisitem to the list.
OK.
But the item isnot just the key,
it's everything-- whateverthat data structure is--
and then you just go through thelist and you concatenate them.
OK.
How long does this take?
How long does this step take?
N?
Nope.
Constant?
Nope.
OK.
Look at all the actions.
It's order k time.
To create an empty listtakes constant time.
They're k of them.
OK?
How long does this steptake, just the append?
Constant?
Good.
Remember, append is constanttime from the Python model
or your favoritemodel, anything.
We're assuming the keytakes constant time
because that's the word,so that's an assumption,
but in the normal assumption.
So total time here is order n.
And this thing, well thistakes basically the length
of Li time.
And so when you addit up, maybe plus 1--
because to look at anempty list you still
need to look at it--so you add it up
and you get order sum of allthe Li's is all the items.
And then you get plus1 for each of them,
so you get n plus k. nplus k is the running
time of this algorithm.
Add those up.
OK, so counting sortis order n plus k.
So if k happens to be ordern, this is linear time.
But as soon as it's a littlebit bigger, you're in trouble.
So counting sort'sa good warm up,
but it's not ultimatelywhat we want.
And a much cooler algorithmis called radix sort.
It's going to use countingsort as the subroutine, which
is why spent all this timeon a mediocre algorithm.
And it's going to get amuch larger range of k
and it will stillbe linear time.
I'll tell you the answer.
K can be polynomial in n.
So like if all your integersare between 0 and n to the 100,
you can sort themin n lg n time.
That's a lot bigger.
It's not just like 10 n.
I mean you could do 10 n hereas well with counting sort.
And it's not just like n lgn, but they can go all the way
to n to the 100,still be linear time.
So that's what we'regoing to achieve.
The idea of radixsort is simple.
It's actually kind of theExcel spreadsheet approach.
We're going to imaginewe want to break
each integer intoa bunch of columns.
How do we do that?
Well, the way we normallywrite down numbers,
except not necessarily indecimal, in some arbitrary base
b.
So I say, oh, aninteger in base b.
Well then there's theleast significant digit
and then the nextone and the next one
and the next one, somesequence of digits.
And if I know that themaximum value is k,
I know that thenumber of digits,
which I'm going to call--for each number which I'm
going to call d, is just lgbase b of k plus one, whatever.
We've got to besuper precise here
because if I'm in base b thenthat's what lg is, right?
So normally wethink of lg base 2
because we're writingthings in binary.
Computer scientistsnormally think that way.
And fine, so now wedecomposed our integer.
I'm not going to actuallycompute this base
b representation, becauseit would take a long time.
I'd have to spend n timeslg k time to do that.
I don't want to do that.
OK, but justimagine it that way.
And then thealgorithm as follows,
sort the integers, all of them,by the least significant digit.
Sort by the next leastsignificant digit.
Dot, dot, dot, sort by themost significant digit.
So there are d iterationshere, for d digits.
Sort all the integers bythe least significant,
all the integers bythe next, and so on.
It's like in your-- this isa useful technique in Excel,
if you want to sortby several columns--
or your favorite spreadsheet,doesn't have to be Excel,
sorry-- you click on the leastsignificant column first,
and then click on all the othercolumns in increasing order,
you will sort by allof them, it turns out.
It's kind of magicalthat this works.
I don't have a ton oftime for an example.
Let me first analyzethe algorithm.
We'll see if we havetime for an example.
So there are ddigits-- oh, and I'm
going to sort each of thesesorts of using counting sort.
This is I guess sort bydigit using counting sort.
So how long does ittake to sort using
counting sort in this setting?
Normally, it's n plus k.
Here it is, n plus b.
Good.
Because all of our digitsare between 0 and b minus 1.
So we're just sorting by digit.
Now here is where we'reusing this idea of a key.
When we say key, Iwanted our integers.
What we do is computethe digit we care about.
So if we're in thisstep, the key function
will be compute the leastsignificant digit, which
is like taking it modb to compute the most
significant digits like dividingby b to the power of d minus 1
or so.
OK but it's a constant.
You do one divide and onemod, the constant number
of operations.
You can extract thedigit in constant time.
So the key function is constanttime and so this works.
We don't have to actuallywrite them all down,
just compute themas we need them.
Cool I guess we couldcompute them ahead of time.
It's not a big deal.
Fine.
So that's each digit.
So the total timeis just that times
d because we have d steps.
So it's n plus b times d.
Now d was that lgthing, lg base b of n.
I have this b.
What should be b?
You gotta love theEnglish language.
What should I chooseb to be, or not to be?
That's the question.
Any suggestions?
I want to minimize this, right?
I want minimum running time.
So I'd like b to kind oflarge to make this base large.
Sorry, this is not n, this is k.
I copied that wrongout of excitement.
Just copying this over.
OK, I'd like b tobe large, but I
don't want it to be solarge because I don't want
it to be bigger than n sowhat should I set b to be?
AUDIENCE: N.
PROFESSOR: N, good choice.
It's a good trickwhenever you have
a sum of things youwant to minimize,
usually it's when they're equal.
Occasionally it's the extremelike when b is 0 or something.
B as 0 not a good plan.
Base 0 is pretty slow.
So if I set-- I'llwrite it here--
you can prove it with aderivative or whatever.
This is going tobe minimized when
b is-- I'll be vague-- theta n.
So then it's going to comeout to n times lg base n of k.
And lo and behold, whenk is polynomial in n,
it's k to some constant,then that will be linear.
So let me write that.
If k equals n to the c, orsay is at most n to the c,
then this is going tobe order n times c.
So if your integersare reasonably small,
you get a linear timesorting algorithm.
And reasonably small meanspolynomial in n, in value.
That's kind of cool.
That's radix sort.
And we're out of time.
There's an examplein the textbook
or in the notes how this works.
You could prove it bya simple induction.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260For this problem, we are going to make useof this simple datapath that consists of a
four register register file, a relativelysimple arithmetic logic unit that can perform
ADD, SUB, MUL, and NAND operations.In addition, it can compare two inputs and
determine whether or not they are equal.The result of the comparison, Z, can then
be used to control what happens next.There are multiple control signals in this
datapath.The first two are Asel and Bsel.
These are used to select which register drivesthe corresponding multiplexer output.
The value stored in the register selectedby Asel becomes the A input to the arithmetic
operations and is passed to the arithmeticunits along the red wire.
The value stored in the register selectedby Bsel becomes the B input to the arithmetic
operations and is passed to the arithmeticunits along the blue wire.
The next control signal is Opsel.It selects which of the four operation outputs
should be selected by the Opsel multiplexeras the result of our operation.
This result is fed back to the register filealong the purple wire.
The Wen is a write enable for the registerfile which specifies whether or not the result
of our operation should be written back intothe register file.
If it is supposed to be written back to theregister file, then the Wsel control signal
selects to which of the registers the resultshould be written.
The yellow box is the control FSM.It generates the control signals for the rest
of the datapath based on the operations thatyou want to perform.
Suppose the initial value of our 4 registersis:
R0 = 1, R1 = 0, R2 = -1, and R3 = N.We want to evaluate the result of the function
3 * N – 2 and store the result into R3.Our job is to design the control FSM so that
it produces the correct signals to achievewhat we want.
To help us get started, here is an incompletelisting of the code that will achieve what
we want.The Sx labels are the names of the states
corresponding to each instruction in our program.Our first job is to figure out the values
of RX, RY, and RZ so that our code behavesas expected.
Let's begin by looking at state S0.We want to end up with the value -2 in R2
by adding R2 which currently holds -1 to someregister.
In order to produce -2, we need to add -1which means that RX = R2.
Next, we look at state S1.Here we want to end up with the value 2 in
R1 by adding Ry to R0 which currently holdsa 1.
In order to produce 2, we need to add 1 whichmeans RY = R0.
State S2 adds R0 to R1 and stores the resultin R1.
Since R0 still equals 1 and R1 = 2, then weproduce R1 = 3.
Now, let's look at state S3.Our goal is to multiply 3*N and store the
result into R3.To achieve this, we multiply RZ by R3 and
store the result in R3.Since R3 currently = N, that means that we
want to multiply it by R1 which equals 3.So RZ = R1.
Finally, we add R3 and R2 to produce 3*N-2and store that result back into R3.
S5 just executes a HALT() instruction to indicatethat we are done.
Now that we have working code, our next goalis to determine the settings for the control
FSM that will make the correct operationsbe executed by our datapath.
Since we have 6 states, we will need 3 statebits to encode the value of the current and
next state.We begin with state S0.
In order to encode that we are in state zerousing 3 bits, we set our current state, S[2:0]
to 000.In this operation we don't care about the
Z signal, so Z = X which means don't care.The instruction that we want to execute after
this first ADD, is the next ADD in state S1.This means that our next state is 001.
Note that the notation S' is often used torepresent the next state.
Our register select signals each need to selectone of 4 registers.
This means that these signals must each be2 bits wide.
Our Asel control signal identifies the registerthat should be used as input A.
This register is R2, so Asel is 10.Bsel identifies the second source operand.
In this case it is also R2, so Bsel = 10 aswell.
The Opsel signal identifies which operationwe want to perform.
Since we have 4 distinct operations, we wouldneed two bits to distinguish amongst them
and we would make each operation be associatedwith one of the 4 encodings.
For simplicity, let's just label Opsel asADD to indicate that we selected the encoding
for the ADD.The register we want to write our result to,
also known as the destination register, isR2 for this operation.
This means that Wsel = 10 and Wen = 1.Wen is a signal that enables writing to the
register file.If it is set to 0, then regardless of the
value of Wsel, no value will be written intothe register file.
Now let's quickly run through the rest ofour instructions.
Our current state is state S1, or 001.Once again Z is a don't care.
Since the instruction that will be executednext is the one in S2, our next state is 010.
Our Asel = 00 and Bsel = 00.Opsel = ADD and Wsel = 01 and Wen = 1.
State 2 follows the same model, so currentstate is 010 and next state is 011.
Here Asel = 00, Bsel = 01 and Wsel = 01 andWen = 1.
Once again our Opsel is an ADD.We move on to state 3 whose current state
is 011 and next state is 100.Asel = 01, Bsel = 11, Wsel = 11, and Wen = 1.
Here our Opsel is MUL to indicate that theoperation to be executed here is a multiply.
For state four, we have current state setto 100 and next state to 101.
Asel = 11, Bsel = 10, Wsel = 11, and Wen = 1.Our Opsel is once again ADD.
Finally, we reach state 5.This state looks a little different from the
previous states so lets examine it a littlemore closely.
The first thing to note, is that when we getto state 5 we want to stay there because we
are done with our execution, so both the currentstate and the next state are 101.
Most of the other control bits can be setto don't care because at this point we mostly
don't care about what the rest of the datapathis doing.
The only other signal that we do need to worryabout is Wen.
Since we are allowing the rest of our datapathto run in whatever way, we need to ensure
that nothing produced on the datapath at thisstage gets written back to any of the registers.
In order to guarantee that, we set Wen = 0.Here is the complete control ROM that will
execute the function 3*N-2 and store its resultinto R3.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515align:start position:0% all of my memories are growing up in a
align:start position:0%all of my memories are growing up in a
align:start position:0%all of my memories are growing up in areally tiny British dependent Territory
align:start position:0%really tiny British dependent Territory
align:start position:0%really tiny British dependent Territorycalled Ang Gilla to give you some
align:start position:0%called Ang Gilla to give you some
align:start position:0%called Ang Gilla to give you someperspective it's about 35 square miles
align:start position:0%perspective it's about 35 square miles
align:start position:0%perspective it's about 35 square milestotal area 36 during low tide people
align:start position:0%total area 36 during low tide people
align:start position:0%total area 36 during low tide peopleknew each other if they didn't know them
align:start position:0%knew each other if they didn't know them
align:start position:0%knew each other if they didn't know themdirectly you knew who their family and
align:start position:0%directly you knew who their family and
align:start position:0%directly you knew who their family andrelatives
align:start position:0%relatives
align:start position:0%relativeswere I became interested
align:start position:0%were I became interested
align:start position:0%were I became interestedin uh medicine not just from the
align:start position:0%in uh medicine not just from the
align:start position:0%in uh medicine not just from theperspective of
align:start position:0%perspective of
align:start position:0%perspective ofunderstanding the fundamentals of how
align:start position:0%understanding the fundamentals of how
align:start position:0%understanding the fundamentals of howyou know biology Works in in a living
align:start position:0%you know biology Works in in a living
align:start position:0%you know biology Works in in a livingentity but but um but also the idea that
align:start position:0%entity but but um but also the idea that
align:start position:0%entity but but um but also the idea thatit can go arai and how do you fix it
align:start position:0%it can go arai and how do you fix it
align:start position:0%it can go arai and how do you fix itevery year about uh about 700,000 or so
align:start position:0%every year about uh about 700,000 or so
align:start position:0%every year about uh about 700,000 or somostly kids under the age of five are
align:start position:0%mostly kids under the age of five are
align:start position:0%mostly kids under the age of five areestimated to die from
align:start position:0%estimated to die from
align:start position:0%estimated to die frommalaria malaria is a parasitic uh
align:start position:0%malaria malaria is a parasitic uh
align:start position:0%malaria malaria is a parasitic uhdisease it's it's caused by this family
align:start position:0%disease it's it's caused by this family
align:start position:0%disease it's it's caused by this familyof of uh protozoan
align:start position:0%of of uh protozoan
align:start position:0%of of uh protozoanparasites a mosquito becomes infected by
align:start position:0%parasites a mosquito becomes infected by
align:start position:0%parasites a mosquito becomes infected byum feeding on the blood of an infected
align:start position:0%um feeding on the blood of an infected
align:start position:0%um feeding on the blood of an infectedperson that blood can contain infectious
align:start position:0%person that blood can contain infectious
align:start position:0%person that blood can contain infectiousforms of the parasite that develops
align:start position:0%forms of the parasite that develops
align:start position:0%forms of the parasite that developswithin the
align:start position:0%within the
align:start position:0%within themosquito and eventually will get into
align:start position:0%mosquito and eventually will get into
align:start position:0%mosquito and eventually will get intothe salivary glands of the mosquito and
align:start position:0%the salivary glands of the mosquito and
align:start position:0%the salivary glands of the mosquito andthen be transmitted back to the blood of
align:start position:0%then be transmitted back to the blood of
align:start position:0%then be transmitted back to the blood ofanother person who's bitten by that
align:start position:0%another person who's bitten by that
align:start position:0%another person who's bitten by thatinfected
align:start position:0%infected
align:start position:0%infectedmoscito within the um red cell um
align:start position:0%moscito within the um red cell um
align:start position:0%moscito within the um red cell umthere's an extremely high concentration
align:start position:0%there's an extremely high concentration
align:start position:0%there's an extremely high concentrationof
align:start position:0%of
align:start position:0%ofhemoglobin um which contains the
align:start position:0%hemoglobin um which contains the
align:start position:0%hemoglobin um which contains theco-actor heem that is responsible
align:start position:0%co-actor heem that is responsible
align:start position:0%co-actor heem that is responsiblelargely for the uh transport of oxygen
align:start position:0%largely for the uh transport of oxygen
align:start position:0%largely for the uh transport of oxygenin the in the human body the parasite is
align:start position:0%in the in the human body the parasite is
align:start position:0%in the in the human body the parasite isable to degrade um the majority of the
align:start position:0%able to degrade um the majority of the
align:start position:0%able to degrade um the majority of thehemoglobin within the Red Cell the heem
align:start position:0%hemoglobin within the Red Cell the heem
align:start position:0%hemoglobin within the Red Cell the heemit has to deal with because heem that is
align:start position:0%it has to deal with because heem that is
align:start position:0%it has to deal with because heem that isnot polymerized has the ability to
align:start position:0%not polymerized has the ability to
align:start position:0%not polymerized has the ability toconvert molecular oxygen into more
align:start position:0%convert molecular oxygen into more
align:start position:0%convert molecular oxygen into morereactive oxygen species that can be
align:start position:0%reactive oxygen species that can be
align:start position:0%reactive oxygen species that can bedamaging to membranes proteins DNA Etc
align:start position:0%damaging to membranes proteins DNA Etc
align:start position:0%damaging to membranes proteins DNA Etcand so the parasite has devised a
align:start position:0%and so the parasite has devised a
align:start position:0%and so the parasite has devised astrategy for polymerizing this heem into
align:start position:0%strategy for polymerizing this heem into
align:start position:0%strategy for polymerizing this heem intothis inert polymer called hemoo and that
align:start position:0%this inert polymer called hemoo and that
align:start position:0%this inert polymer called hemoo and thatactually provides an opportunity for us
align:start position:0%actually provides an opportunity for us
align:start position:0%actually provides an opportunity for usbecause if we can prevent the
align:start position:0%because if we can prevent the
align:start position:0%because if we can prevent thepolymerization of heem in principle we
align:start position:0%polymerization of heem in principle we
align:start position:0%polymerization of heem in principle wecan see the toxicity of he
align:start position:0%can see the toxicity of he
align:start position:0%can see the toxicity of hereemerging and so some of the most
align:start position:0%reemerging and so some of the most
align:start position:0%reemerging and so some of the mostsuccessful antimalarial compounds such
align:start position:0%successful antimalarial compounds such
align:start position:0%successful antimalarial compounds suchas chloroquin can actually bind him and
align:start position:0%as chloroquin can actually bind him and
align:start position:0%as chloroquin can actually bind him anduh prevent its polymerization and
align:start position:0%uh prevent its polymerization and
align:start position:0%uh prevent its polymerization andpresumably The increased amount of free
align:start position:0%presumably The increased amount of free
align:start position:0%presumably The increased amount of freeheem that is produced then kills the
align:start position:0%heem that is produced then kills the
align:start position:0%heem that is produced then kills theparasite while I don't practice medicine
align:start position:0%parasite while I don't practice medicine
align:start position:0%parasite while I don't practice medicineum currently um I think that's just been
align:start position:0%um currently um I think that's just been
align:start position:0%um currently um I think that's just beena really valuable perspective and a
align:start position:0%a really valuable perspective and a
align:start position:0%a really valuable perspective and aframework for me to think about you know
align:start position:0%framework for me to think about you know
align:start position:0%framework for me to think about you knowwhat I do in the long term and and and
align:start position:0%what I do in the long term and and and
align:start position:0%what I do in the long term and and andhow that can translate into some impact
align:start position:0%how that can translate into some impact
align:start position:0%how that can translate into some impacton uh on on human life123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199Hello. My name is Krishna Rajagopal andI'm MIT's Dean for Digital Learning.
Ordinarily, I would be recording thisupdate for the OCW community from our
offices on campus but as these are notordinary times I find myself delivering
this message to you from my home in thesame way that so many MIT faculty along
with educators all around the world areright now teaching their students from
home during this global pandemic. Fromthe beginning, OpenCourseWare was meant
to be a resource for anyone who wants tolearn, whenever and wherever they need it.
We've always believed in the urgency ofour mission but never before have we
seen the stakes rise so immediately aswe have these past several weeks. With
millions even billions of people aroundthe world asked to stay apart, stay at home,
and adapt to sudden changes in the waywe all live, work, connect, and learn. This
has brought particular challenges foreducators and needs for all of us as
learners. Here at MIT as Dean I have thenew responsibility of supporting,
encouraging, and applauding my facultycolleagues as all of a sudden we're
teaching 1,250 courses online for ourstudents who are now remote learners all
around the globe. If you are an educatorand want to see how we're helping our
instructors find their way you can havea look at our teachremote.mit.edu
website and if you're a student, figuringout how to navigate a world of remote
learning for yourself, you can have alook at our learnremote.mit.edu
website which we set up for our students.Just as we have long done via OCW itself,
here at MIT, we're sharing what we dowith the world. In the midst of these
changes we have been humbled by the role
that OCW is playing. It should be no
secret to you that many of our facultyare using materials from OCW in their
remote teaching right now. Just as any ofyou can use OCW as part of your remote
learning. Since March, we've seen asignificant increase in the number of
visits to OCW from learners all aroundthe world,
seeing as much as a 95% increase invisits to OCW over the same period last
year. These millions of visits include asignificant share from new users
visiting OCW for the very first time,coming to us from all around the world
with India, Brazil, Turkey, Germany,Pakistan, the United Kingdom, as well as
the United States among the countrieswhere we have seen the largest increases.
These numbers tell an inspiring storyabout the resilience of learners in the
face of an immense global challenge. I'minspired that at this time of great
stress and uncertainty so many of youare focusing your time and your energy
on learning. Whether you're studentskeeping your education going, lifelong
learners laying the groundwork for whatyou want to do next in your workplace
when you return, or simply, satisfyingyour curiosity at this time. All of you
remind all of us, just how valuable openaccess to online learning resources like
OCW can be, in extraordinary, and ordinary times alike. In the past month,
MIT has also launched a Full Steam Ahead website,a new rapid response offering that gives
all of you new curated ways of findingMIT learning resources for k-12, higher
education, and lifelong learning from OCWand more during this Covid-19 pandemic.
Like so many others, the OCW team is nowworking from home, and doing very well
indeed. We continue to publish courses,support our learners, and prepare new
episodes of OCW's Chalk Radio podcast, all from our homes. The first season of Chalk
Radio brings you conversations withbeloved MIT faculty like Amah Edoh, Anjali
Sastry, Mike Short and Gil Strang. ChalkRadio shares the personal stories and
passions behind the inspired teachingthat powers MIT and so many of the
courses you love on OCW. In its first twomonths, Chalk Radio podcasts have been
heard over 80 thousand times. As weapproach the milestone of OCW's 20th
anniversary next year, we're busy planning for thenext 20 years of OpenCourseWare. The team
is working hard on a next-generation OCWplatform that will give you exciting new
ways to learn from, and teach with, openlyshared MIT resources. I'll tell you more
about that in the fall.Sharing MIT with the world, giving
educators and learners everywhere newopportunities to teach and learn, is what
OCW is all about. Teaching and learning,after all, is what we do, together. In this
moment when we're all apart, here at OCWwe're inspired by the ways that so many
of you are relying upon OpenCourseWareto continue your learning, together with
MIT, as always. If OCW has been helpfulto you, we invite you to join us by
sharing your story with us. And, we askyou to share OCW with the people in your
life. Telling us how you use OCW helps usunderstand the impact that OCW has had
in recent weeks and how we can make itbetter as we move forward. Spreading the
word about OCW ensures that your friends,your colleagues, and your family know
that they have a resource to turn to inOCW whenever, wherever, and however they
might need it. As all of us navigate thecoming weeks and months together, we want
you to know that OCW is here for you andwill continue to be here for you. Thank
you for learning and thank you forlearning with us.-7dYXCHtTFY.txtAdded
-T34yGp4T7A.txtAdded+699
-r0hWGcNLSI.txtAdded
0IF8oBg_Zd8.txtAdded+595
0Q6kYWnhaks.txtAdded+261
17Z89x_ZWQ4.txtAdded+315
1s2H3QssiMw.txtAdded+1227
2HpF8R_cjR8.txtAdded+4024
2oK7Eb0YZ9U.txtAdded+475
4PBYm3FuUNQ.txtAdded+1307
4VH8SW9Tq2A.txtAdded
7o5shPC0R2k.txtAdded
8abBLKEZLaI.txtAdded+1979
B6a9FaYI730.txtAdded+571
BZfqcnlpofI.txtAdded
BiLtNbncW8o.txtAdded+1731
C2BBAW78fYg.txtAdded+2890
CA7I2GLpgdo.txtAdded+558
CTVFDb44ses.txtAdded
DZHguXpwuXU.txtAdded+857
EJ6Sjn1c04Y.txtAdded
E_KUHMuoPLE.txtAdded+1211
Ed0Wg-5YYCk.txtAdded
EkMfTvmLJl0.txtAdded+3539
FWtYuLFIUUM.txtAdded
G3OmGH1rvGc.txtAdded
GAOjfd5QJZE.txtAdded+2659
GkD5tIgc-Bo.txtAdded+619
GyukKStk6Ls.txtAdded+1995
Hu-ZLesnxfc.txtAdded+1691
IE9cFQ9b33U.txtAdded+382
IER0CBHl1qs.txtAdded
Iu4xTLKcbPo.txtAdded+1855
IvJvmufB1oA.txtAdded+2883
J6L9uQ-IO90.txtAdded+2451
JSs_dqq2uWo.txtAdded
KalMFMv3_IM.txtAdded+3568
KtOhRHLE7Q0.txtAdded+347
L2vNqnov1rs.txtAdded
LIRI_8hjgm8.txtAdded
Mv8tuMBQk-g.txtAdded+1107
NEsObJTwDXI.txtAdded
NsrNLQ5g978.txtAdded+819
Nz1KZXbghj8.txtAdded+2553
O6yw1qkECig.txtAdded+260
OBHUrAFLQW8.txtAdded
P-QxpiSYPOY.txtAdded+515
PuRJ9IgUW-M.txtAdded
PwBO6pn5mkM.txtAdded
Pz7U-AEi8v0.txtAdded+199