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)
- --Zi_cn4kPE.txtAdded+2243
- -56G36H8BvY.txtAdded+931
- -5XT0Mzl72E.txtAdded+3115
- -SHXUwpVgXU.txtAdded
- 0BDi0d1j7u0.txtAdded+420
- 0IJFBMIU6x4.txtAdded+507
- 0aAEamhJHUI.txtAdded+292
- 0jWfHFBLnv0.txtAdded
- 0opU7I31YfM.txtAdded
- 1EMonM7qAU8.txtAdded+4372
- 1ona5jnRZgw.txtAdded+1587
- 1tBrJ7I-1Vc.txtAdded+787
- 2GeecRByQhc.txtAdded+6227
- 2SwT6JnfCq8.txtAdded+1894
- 3UTfFMTqH70.txtAdded
- 3V5ORt7shjI.txtAdded
- 3cMyj8EKFGo.txtAdded+1347
- 3fSY92mJwQY.txtAdded
- 3j3Odfpvhrs.txtAdded+3400
- 4Y9OO9AepgU.txtAdded+347
- 4afZKY-INNA.txtAdded+787
- 4ctngXQrmDc.txtAdded
- 4dg_TW4gQL8.txtAdded
- 4iXLnF3hExw.txtAdded+2866
- 4kPz8aqm5yE.txtAdded+811
- 4ndEWbwbIrA.txtAdded
- 4q0T9c7jotw.txtAdded
- 5u-9lFhCl5w.txtAdded+1131
- 60VGKnYBpbg.txtAdded
- 6JcMuFgnA6U.txtAdded
- 6ROBp57G2ZI.txtAdded+4502
- 6ROuKtm5zds.txtAdded
- 7S5c25yYjTM.txtAdded+219
- 7Z1CfKUOQVs.txtAdded
- 7b55QERrN1I.txtAdded
- 7fYgr1qUdnU.txtAdded
- 8KQ-yK2xm60.txtAdded+1411
- 8KQPpl77fuk.txtAdded+699
- 8NiJSP-iE74.txtAdded+3043
- 8QFpZ3FndBc.txtAdded+1651
- 8RI9OSOftUE.txtAdded+3816
- 8hBr-bpykso.txtAdded+1363
- 8llkkbCPHb4.txtAdded+963
- 8ryWylXv0WE.txtAdded+675
- 9YtmGy-wfE4.txtAdded
- 9dHBTckFvME.txtAdded+1250
- 9gy-CAwx0Ls.txtAdded
- 9yGxpWVWYDY.txtAdded
- AW3a2ECNFlE.txtAdded
- BZTWXl9QNK8.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243align: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 OpenCourseWare continue to
align:start position:0%will help MIT OpenCourseWare continue to
align:start position:0%will help MIT OpenCourseWare continue tooffer high quality educational resources
align:start position:0%offer high quality educational resources
align:start position:0%offer high quality educational resourcesfor free to make a donation or view
align:start position:0%for free to make a donation or view
align:start position:0%for free to make a donation or viewadditional materials from hundreds of
align:start position:0%additional materials from hundreds of
align:start position:0%additional materials from hundreds ofMIT courses visit MIT opencourseware at
align:start position:0%MIT courses visit MIT opencourseware at
align:start position:0%MIT courses visit MIT opencourseware atocw.mit.edu
align:start position:0%ocw.mit.edu
align:start position:0%ocw.mit.edunow we're all set to look at the
align:start position:0%now we're all set to look at the
align:start position:0%now we're all set to look at thespectrum of laser light for example is
align:start position:0%spectrum of laser light for example is
align:start position:0%spectrum of laser light for example isthe spectrum is it a single frequency or
align:start position:0%the spectrum is it a single frequency or
align:start position:0%the spectrum is it a single frequency oris it multiple frequency or what
align:start position:0%is it multiple frequency or what
align:start position:0%is it multiple frequency or whathappened in fact we're going to look at
align:start position:0%happened in fact we're going to look at
align:start position:0%happened in fact we're going to look atthe spectrum of light from two lasers to
align:start position:0%the spectrum of light from two lasers to
align:start position:0%the spectrum of light from two lasers tohelium neon laser we have this laser
align:start position:0%helium neon laser we have this laser
align:start position:0%helium neon laser we have this laserhere with external mirrors and
align:start position:0%here with external mirrors and
align:start position:0%here with external mirrors andthe one over here with internal mirrors
align:start position:0%the one over here with internal mirrors
align:start position:0%the one over here with internal mirrorsand the way we're going to look at the
align:start position:0%and the way we're going to look at the
align:start position:0%and the way we're going to look at thespectrum is by using the optical
align:start position:0%spectrum is by using the optical
align:start position:0%spectrum is by using the opticalspectrum analyzer here so now let me
align:start position:0%spectrum analyzer here so now let me
align:start position:0%spectrum analyzer here so now let meturn on the
align:start position:0%turn on the
align:start position:0%turn on thethis laser with external mirrors and the
align:start position:0%this laser with external mirrors and the
align:start position:0%this laser with external mirrors and thelight from the laser then is reflected
align:start position:0%light from the laser then is reflected
align:start position:0%light from the laser then is reflectedby this mirror and this mirror and here
align:start position:0%by this mirror and this mirror and here
align:start position:0%by this mirror and this mirror and hereit is going right into this optical
align:start position:0%it is going right into this optical
align:start position:0%it is going right into this opticalspectrum analyzer which is a scanning
align:start position:0%spectrum analyzer which is a scanning
align:start position:0%spectrum analyzer which is a scanningfabry-perot cavity the output of
align:start position:0%fabry-perot cavity the output of
align:start position:0%fabry-perot cavity the output ofthe spectrum analyzer then goes to an
align:start position:0%the spectrum analyzer then goes to an
align:start position:0%the spectrum analyzer then goes to anoscilloscope over there
align:start position:0%
align:start position:0% as we can see on the oscilloscope we
align:start position:0%as we can see on the oscilloscope we
align:start position:0%as we can see on the oscilloscope wehave more than one frequency in fact we
align:start position:0%have more than one frequency in fact we
align:start position:0%have more than one frequency in fact wehave several frequencies
align:start position:0%have several frequencies
align:start position:0%have several frequenciessometimes three and sometimes even four
align:start position:0%sometimes three and sometimes even four
align:start position:0%sometimes three and sometimes even fourthe spacing of the modes here is
align:start position:0%the spacing of the modes here is
align:start position:0%the spacing of the modes here isabout 270 megahertz which is consistent
align:start position:0%about 270 megahertz which is consistent
align:start position:0%about 270 megahertz which is consistentwith the length of the of the laser
align:start position:0%with the length of the of the laser
align:start position:0%with the length of the of the lasercavity of 56
align:start position:0%cavity of 56
align:start position:0%cavity of 56centimeters
align:start position:0%
align:start position:0% now the first thing I'm going to do is
align:start position:0%now the first thing I'm going to do is
align:start position:0%now the first thing I'm going to do issee whether the polarization of all
align:start position:0%see whether the polarization of all
align:start position:0%see whether the polarization of allthese laser frequencies is the same or
align:start position:0%these laser frequencies is the same or
align:start position:0%these laser frequencies is the same ornot so what I'm going to do is insert
align:start position:0%not so what I'm going to do is insert
align:start position:0%not so what I'm going to do is insertthe polarizer
align:start position:0%the polarizer
align:start position:0%the polarizerin the beam and
align:start position:0%
align:start position:0% then rotate the the polarizer in fact
align:start position:0%then rotate the the polarizer in fact
align:start position:0%then rotate the the polarizer in factlet me
align:start position:0%let me
align:start position:0%let meup the gain a little bit here
align:start position:0%up the gain a little bit here
align:start position:0%up the gain a little bit hereand
align:start position:0%and
align:start position:0%andlet me rotate the polarizer
align:start position:0%let me rotate the polarizer
align:start position:0%let me rotate the polarizeror the transmission axis of the
align:start position:0%or the transmission axis of the
align:start position:0%or the transmission axis of thepolarizer to see whether the
align:start position:0%polarizer to see whether the
align:start position:0%polarizer to see whether thepolarization is the same for all of them
align:start position:0%polarization is the same for all of them
align:start position:0%polarization is the same for all of themas you can see I can
align:start position:0%as you can see I can
align:start position:0%as you can see I canextinguish all of them when the
align:start position:0%extinguish all of them when the
align:start position:0%extinguish all of them when thepolarization is horizontal and bring
align:start position:0%polarization is horizontal and bring
align:start position:0%polarization is horizontal and bringthem all up
align:start position:0%them all up
align:start position:0%them all upwhen the
align:start position:0%when the
align:start position:0%when thepolarization is
align:start position:0%polarization is
align:start position:0%polarization isit's vertical
align:start position:0%it's vertical
align:start position:0%it's verticaland remember this is the this is the
align:start position:0%and remember this is the this is the
align:start position:0%and remember this is the this is thelight that was claimed polarize so now
align:start position:0%light that was claimed polarize so now
align:start position:0%light that was claimed polarize so nowwe've shown that indeed all the
align:start position:0%we've shown that indeed all the
align:start position:0%we've shown that indeed all thefrequencies that come out from this
align:start position:0%frequencies that come out from this
align:start position:0%frequencies that come out from thislaser all of them are are
align:start position:0%laser all of them are are
align:start position:0%laser all of them are arehave the same polarization polarization
align:start position:0%have the same polarization polarization
align:start position:0%have the same polarization polarizationin the in the vertical plane so let me
align:start position:0%in the in the vertical plane so let me
align:start position:0%in the in the vertical plane so let metake the polarizer out and readjust the
align:start position:0%take the polarizer out and readjust the
align:start position:0%take the polarizer out and readjust thegain on the on the scope so back now to
align:start position:0%gain on the on the scope so back now to
align:start position:0%gain on the on the scope so back now tothe to the three frequencies you can see
align:start position:0%the to the three frequencies you can see
align:start position:0%the to the three frequencies you can seethat they move around because the the
align:start position:0%that they move around because the the
align:start position:0%that they move around because the thecavity is drifting in length due to the
align:start position:0%cavity is drifting in length due to the
align:start position:0%cavity is drifting in length due to theair currents or
align:start position:0%air currents or
align:start position:0%air currents ortemperature effects or what-have-you and
align:start position:0%temperature effects or what-have-you and
align:start position:0%temperature effects or what-have-you andinfant in fact as I speak you know as I
align:start position:0%infant in fact as I speak you know as I
align:start position:0%infant in fact as I speak you know as Itap on the cavity you can see that I can
align:start position:0%tap on the cavity you can see that I can
align:start position:0%tap on the cavity you can see that I cancreate a mess of the
align:start position:0%create a mess of the
align:start position:0%create a mess of theof the of the spectrum just by simply
align:start position:0%of the of the spectrum just by simply
align:start position:0%of the of the spectrum just by simplytapping
align:start position:0%tapping
align:start position:0%tappingif I lean on the table you can see again
align:start position:0%if I lean on the table you can see again
align:start position:0%if I lean on the table you can see againthat I can make the frequencies wander
align:start position:0%that I can make the frequencies wander
align:start position:0%that I can make the frequencies wanderaround
align:start position:0%
align:start position:0% now the fact that I have more than one
align:start position:0%now the fact that I have more than one
align:start position:0%now the fact that I have more than onefrequency means there is enough gain for
align:start position:0%frequency means there is enough gain for
align:start position:0%frequency means there is enough gain forseveral frequencies to to oscillate due
align:start position:0%several frequencies to to oscillate due
align:start position:0%several frequencies to to oscillate dueto the fact that the gain medium has has
align:start position:0%to the fact that the gain medium has has
align:start position:0%to the fact that the gain medium has hassome bandwidth not very huge but some
align:start position:0%some bandwidth not very huge but some
align:start position:0%some bandwidth not very huge but somebandwidth now I can make the laser go at
align:start position:0%bandwidth now I can make the laser go at
align:start position:0%bandwidth now I can make the laser go atone frequency by by introducing loss by
align:start position:0%one frequency by by introducing loss by
align:start position:0%one frequency by by introducing loss bysimply misaligning the cavity to
align:start position:0%simply misaligning the cavity to
align:start position:0%simply misaligning the cavity tointroduce loss so you can see here I've
align:start position:0%introduce loss so you can see here I've
align:start position:0%introduce loss so you can see here I'vegot only two frequencies and in fact I'm
align:start position:0%got only two frequencies and in fact I'm
align:start position:0%got only two frequencies and in fact I'mgoing to up the
align:start position:0%going to up the
align:start position:0%going to up thesensitivity of the of the scope because
align:start position:0%sensitivity of the of the scope because
align:start position:0%sensitivity of the of the scope becausethe power goes down when I miss a line
align:start position:0%the power goes down when I miss a line
align:start position:0%the power goes down when I miss a lineyou can see here what I have
align:start position:0%you can see here what I have
align:start position:0%you can see here what I haveessentially two two frequency and if I
align:start position:0%essentially two two frequency and if I
align:start position:0%essentially two two frequency and if Iadd more loss I
align:start position:0%add more loss I
align:start position:0%add more loss Ican I
align:start position:0%can I
align:start position:0%can Ican have only one frequency so in a way
align:start position:0%can have only one frequency so in a way
align:start position:0%can have only one frequency so in a wayI can run this laser at one frequency
align:start position:0%I can run this laser at one frequency
align:start position:0%I can run this laser at one frequencybut it's it's difficult to keep the
align:start position:0%but it's it's difficult to keep the
align:start position:0%but it's it's difficult to keep theother one out and
align:start position:0%
align:start position:0% and then you can see that as I lean on
align:start position:0%and then you can see that as I lean on
align:start position:0%and then you can see that as I lean onthe cavity I
align:start position:0%the cavity I
align:start position:0%the cavity Ican make this frequency move around now
align:start position:0%can make this frequency move around now
align:start position:0%can make this frequency move around nowgenerally that's not a good way of
align:start position:0%generally that's not a good way of
align:start position:0%generally that's not a good way ofgetting single frequency and we have
align:start position:0%getting single frequency and we have
align:start position:0%getting single frequency and we haveother techniques for getting single
align:start position:0%other techniques for getting single
align:start position:0%other techniques for getting singlefrequency which we'll discuss later for
align:start position:0%frequency which we'll discuss later for
align:start position:0%frequency which we'll discuss later forthis laser it's best to to align it for
align:start position:0%this laser it's best to to align it for
align:start position:0%this laser it's best to to align it forthe highest power out and and this way
align:start position:0%the highest power out and and this way
align:start position:0%the highest power out and and this waywill automatically get more than than
align:start position:0%will automatically get more than than
align:start position:0%will automatically get more than thanone
align:start position:0%one
align:start position:0%onemore than one frequency and for a lot of
align:start position:0%more than one frequency and for a lot of
align:start position:0%more than one frequency and for a lot ofapplications this is this is fine
align:start position:0%applications this is this is fine
align:start position:0%applications this is this is finealright so to summarize then this laser
align:start position:0%alright so to summarize then this laser
align:start position:0%alright so to summarize then this laserthat that is 56 centimeters long or the
align:start position:0%that that is 56 centimeters long or the
align:start position:0%that that is 56 centimeters long or thecavity is 56 centimeters long then gives
align:start position:0%cavity is 56 centimeters long then gives
align:start position:0%cavity is 56 centimeters long then givesus about three modes
align:start position:0%us about three modes
align:start position:0%us about three modesand the spacing between each mode is
align:start position:0%and the spacing between each mode is
align:start position:0%and the spacing between each mode isabout 270 megahertz and
align:start position:0%about 270 megahertz and
align:start position:0%about 270 megahertz andall the modes have the same polarization
align:start position:0%all the modes have the same polarization
align:start position:0%all the modes have the same polarizationnow we're ready to look at the the other
align:start position:0%now we're ready to look at the the other
align:start position:0%now we're ready to look at the the otherlaser the the laser that has internal
align:start position:0%laser the the laser that has internal
align:start position:0%laser the the laser that has internalmirrors and also shorter in length so
align:start position:0%mirrors and also shorter in length so
align:start position:0%mirrors and also shorter in length sowhen we come back then we look at that
align:start position:0%when we come back then we look at that
align:start position:0%when we come back then we look at thatlace
align:start position:0%lace
align:start position:0%lacenow we're ready to look at the spectrum
align:start position:0%now we're ready to look at the spectrum
align:start position:0%now we're ready to look at the spectrumof this laser here with internal mirrors
align:start position:0%of this laser here with internal mirrors
align:start position:0%of this laser here with internal mirrorsthese
align:start position:0%these
align:start position:0%theseset up for looking at the spectrum is
align:start position:0%set up for looking at the spectrum is
align:start position:0%set up for looking at the spectrum isthe same as before but let me just
align:start position:0%the same as before but let me just
align:start position:0%the same as before but let me justremind you of it here's the output of
align:start position:0%remind you of it here's the output of
align:start position:0%remind you of it here's the output ofthe laser reflected by this mirror this
align:start position:0%the laser reflected by this mirror this
align:start position:0%the laser reflected by this mirror thismirror into the scanning fabry-perot
align:start position:0%mirror into the scanning fabry-perot
align:start position:0%mirror into the scanning fabry-perotcavity the output of the cavity then
align:start position:0%cavity the output of the cavity then
align:start position:0%cavity the output of the cavity thengoes on to the oscilloscope over there
align:start position:0%goes on to the oscilloscope over there
align:start position:0%goes on to the oscilloscope over therenow as you can see on the scope and let
align:start position:0%now as you can see on the scope and let
align:start position:0%now as you can see on the scope and letme adjust the center the scan as you can
align:start position:0%me adjust the center the scan as you can
align:start position:0%me adjust the center the scan as you cansee we have two big modes and these are
align:start position:0%see we have two big modes and these are
align:start position:0%see we have two big modes and these arespaced by
align:start position:0%spaced by
align:start position:0%spaced by680 megahertz which is consistent with
align:start position:0%680 megahertz which is consistent with
align:start position:0%680 megahertz which is consistent withthe length of the cavity of the laser
align:start position:0%the length of the cavity of the laser
align:start position:0%the length of the cavity of the lasercavity of 22 centimeters is given by the
align:start position:0%cavity of 22 centimeters is given by the
align:start position:0%cavity of 22 centimeters is given by the5600 80 megahertz is given by C over 2l
align:start position:0%5600 80 megahertz is given by C over 2l
align:start position:0%5600 80 megahertz is given by C over 2lthe spacing between longitudinal modes
align:start position:0%the spacing between longitudinal modes
align:start position:0%the spacing between longitudinal modesso these are two longitudinal modes of
align:start position:0%so these are two longitudinal modes of
align:start position:0%so these are two longitudinal modes ofthe laser this little fellow here is a
align:start position:0%the laser this little fellow here is a
align:start position:0%the laser this little fellow here is ais a third mode that's coming in at an
align:start position:0%is a third mode that's coming in at an
align:start position:0%is a third mode that's coming in at anodd position because the free spectral
align:start position:0%odd position because the free spectral
align:start position:0%odd position because the free spectralrange of the scanning fabric oral cavity
align:start position:0%range of the scanning fabric oral cavity
align:start position:0%range of the scanning fabric oral cavityis
align:start position:0%is
align:start position:0%isnot quite large enough so we're getting
align:start position:0%not quite large enough so we're getting
align:start position:0%not quite large enough so we're gettinga wraparound from another another order
align:start position:0%a wraparound from another another order
align:start position:0%a wraparound from another another orderso let's not worry about this one too
align:start position:0%so let's not worry about this one too
align:start position:0%so let's not worry about this one toomuch so let's look at essentially the
align:start position:0%much so let's look at essentially the
align:start position:0%much so let's look at essentially thethe two main longitudinal modes of this
align:start position:0%the two main longitudinal modes of this
align:start position:0%the two main longitudinal modes of thislaser
align:start position:0%
align:start position:0% now let's
align:start position:0%now let's
align:start position:0%now let'slet's look at now the the polarization
align:start position:0%let's look at now the the polarization
align:start position:0%let's look at now the the polarizationof
align:start position:0%of
align:start position:0%ofof these molds so now what I'm going to
align:start position:0%of these molds so now what I'm going to
align:start position:0%of these molds so now what I'm going todo is take polar Reiser and
align:start position:0%do is take polar Reiser and
align:start position:0%do is take polar Reiser andas we did with the other laser let's
align:start position:0%as we did with the other laser let's
align:start position:0%as we did with the other laser let'stake the polarizer and look at
align:start position:0%take the polarizer and look at
align:start position:0%take the polarizer and look atthe spectrum now if we look at the scope
align:start position:0%the spectrum now if we look at the scope
align:start position:0%the spectrum now if we look at the scopeafter I make a slight adjustment of the
align:start position:0%after I make a slight adjustment of the
align:start position:0%after I make a slight adjustment of thegain because of the loss in the in the
align:start position:0%gain because of the loss in the in the
align:start position:0%gain because of the loss in the in thepolarizer now what I'm going to do is
align:start position:0%polarizer now what I'm going to do is
align:start position:0%polarizer now what I'm going to do islook at the spectrum of the laser light
align:start position:0%look at the spectrum of the laser light
align:start position:0%look at the spectrum of the laser lighton the scope as a function of of
align:start position:0%on the scope as a function of of
align:start position:0%on the scope as a function of ofpolarization so first you can see with
align:start position:0%polarization so first you can see with
align:start position:0%polarization so first you can see withthe polarization set at this angle you
align:start position:0%the polarization set at this angle you
align:start position:0%the polarization set at this angle yousee essentially we have predominantly
align:start position:0%see essentially we have predominantly
align:start position:0%see essentially we have predominantlyone one mode and then if I
align:start position:0%one one mode and then if I
align:start position:0%one one mode and then if Irotate the transmission axis of the
align:start position:0%rotate the transmission axis of the
align:start position:0%rotate the transmission axis of thepolarizer I can extinguish this mode and
align:start position:0%polarizer I can extinguish this mode and
align:start position:0%polarizer I can extinguish this mode andand
align:start position:0%and
align:start position:0%andbring up bring up the other one now let
align:start position:0%bring up bring up the other one now let
align:start position:0%bring up bring up the other one now letme just Center the mode on the scope so
align:start position:0%me just Center the mode on the scope so
align:start position:0%me just Center the mode on the scope soI can bring up the other one you can see
align:start position:0%I can bring up the other one you can see
align:start position:0%I can bring up the other one you can seeindeed I have single frequency operation
align:start position:0%indeed I have single frequency operation
align:start position:0%indeed I have single frequency operationon just one mode so I either have this
align:start position:0%on just one mode so I either have this
align:start position:0%on just one mode so I either have thismode here or if I rotate the polarizer I
align:start position:0%mode here or if I rotate the polarizer I
align:start position:0%mode here or if I rotate the polarizer Ican bring up
align:start position:0%can bring up
align:start position:0%can bring upyou can bring out the other one so again
align:start position:0%you can bring out the other one so again
align:start position:0%you can bring out the other one so againlet me go back
align:start position:0%let me go back
align:start position:0%let me go backthe first one and then to the one over
align:start position:0%the first one and then to the one over
align:start position:0%the first one and then to the one overhere
align:start position:0%here
align:start position:0%herenow this is different from what we had
align:start position:0%now this is different from what we had
align:start position:0%now this is different from what we hadwith a laser with the external mirrors
align:start position:0%with a laser with the external mirrors
align:start position:0%with a laser with the external mirrorsand and and the Brewster windows where
align:start position:0%and and and the Brewster windows where
align:start position:0%and and and the Brewster windows wherewe found that all the modes were
align:start position:0%we found that all the modes were
align:start position:0%we found that all the modes werethe same of the same polarization now
align:start position:0%the same of the same polarization now
align:start position:0%the same of the same polarization nowhere we find that one mode is one
align:start position:0%here we find that one mode is one
align:start position:0%here we find that one mode is onepolarization and and the other one is
align:start position:0%polarization and and the other one is
align:start position:0%polarization and and the other one ispolarized orthogonal to the first one
align:start position:0%polarized orthogonal to the first one
align:start position:0%polarized orthogonal to the first oneand in fact this this explains why the
align:start position:0%and in fact this this explains why the
align:start position:0%and in fact this this explains why theoutput of the laser wasn't
align:start position:0%output of the laser wasn't
align:start position:0%output of the laser wasn'twasn't plane polarized as
align:start position:0%wasn't plane polarized as
align:start position:0%wasn't plane polarized asas in the external mirror cavity now
align:start position:0%as in the external mirror cavity now
align:start position:0%as in the external mirror cavity nowthis is very interesting that because we
align:start position:0%this is very interesting that because we
align:start position:0%this is very interesting that because wehave internal mirrors the
align:start position:0%have internal mirrors the
align:start position:0%have internal mirrors thethe the the modes are have orthogonal
align:start position:0%the the the modes are have orthogonal
align:start position:0%the the the modes are have orthogonalpolarizations at least adjacent modes
align:start position:0%polarizations at least adjacent modes
align:start position:0%polarizations at least adjacent modeshave orthogonal polarizations and in
align:start position:0%have orthogonal polarizations and in
align:start position:0%have orthogonal polarizations and infact this is a very
align:start position:0%fact this is a very
align:start position:0%fact this is a veryeasy way of selecting single-frequency
align:start position:0%easy way of selecting single-frequency
align:start position:0%easy way of selecting single-frequencyoperation by simply placing a polarizer
align:start position:0%operation by simply placing a polarizer
align:start position:0%operation by simply placing a polarizerin the beam and then selecting selecting
align:start position:0%in the beam and then selecting selecting
align:start position:0%in the beam and then selecting selectingone one frequency now let's let's look
align:start position:0%one one frequency now let's let's look
align:start position:0%one one frequency now let's let's lookat this single frequency behavior if I
align:start position:0%at this single frequency behavior if I
align:start position:0%at this single frequency behavior if Iwant to tune the laser frequency I
align:start position:0%want to tune the laser frequency I
align:start position:0%want to tune the laser frequency Isimply
align:start position:0%simply
align:start position:0%simplyblow some air onto on to the laser -
align:start position:0%blow some air onto on to the laser -
align:start position:0%blow some air onto on to the laser -yeah I blew too much
align:start position:0%yeah I blew too much
align:start position:0%yeah I blew too muchdo it again
align:start position:0%do it again
align:start position:0%do it againso you can see that I can scan
align:start position:0%so you can see that I can scan
align:start position:0%so you can see that I can scanthe laser frequency by simply changing
align:start position:0%the laser frequency by simply changing
align:start position:0%the laser frequency by simply changingthe length of the cavity in this case
align:start position:0%the length of the cavity in this case
align:start position:0%the length of the cavity in this caseI'm cooling off the the cavity
align:start position:0%I'm cooling off the the cavity
align:start position:0%I'm cooling off the the cavitynow let me also point out that the line
align:start position:0%now let me also point out that the line
align:start position:0%now let me also point out that the linewidth that you see the line width that
align:start position:0%width that you see the line width that
align:start position:0%width that you see the line width thatyou see here is not the laser line width
align:start position:0%you see here is not the laser line width
align:start position:0%you see here is not the laser line widthat all the line width that you see here
align:start position:0%at all the line width that you see here
align:start position:0%at all the line width that you see hereis determined by the scanning
align:start position:0%is determined by the scanning
align:start position:0%is determined by the scanningfabry-perot cavity
align:start position:0%fabry-perot cavity
align:start position:0%fabry-perot cavitythe line width the true line of the
align:start position:0%the line width the true line of the
align:start position:0%the line width the true line of thelaser is is very narrow in fact in
align:start position:0%laser is is very narrow in fact in
align:start position:0%laser is is very narrow in fact inprinciple it's a fraction of a milli
align:start position:0%principle it's a fraction of a milli
align:start position:0%principle it's a fraction of a millibut because laser jitters and one have
align:start position:0%but because laser jitters and one have
align:start position:0%but because laser jitters and one haveyou will get a little broadening but
align:start position:0%you will get a little broadening but
align:start position:0%you will get a little broadening butcertainly nowhere near as as wide as
align:start position:0%certainly nowhere near as as wide as
align:start position:0%certainly nowhere near as as wide aswhat you see what you see over here and
align:start position:0%what you see what you see over here and
align:start position:0%what you see what you see over here andagain let me
align:start position:0%again let me
align:start position:0%again let mebring up the Alamo the other
align:start position:0%bring up the Alamo the other
align:start position:0%bring up the Alamo the otherpolarization and again this one will
align:start position:0%polarization and again this one will
align:start position:0%polarization and again this one willalso
align:start position:0%also
align:start position:0%alsotune
align:start position:0%
align:start position:0% across the gain curve
align:start position:0%
align:start position:0% of the cavity I
align:start position:0%of the cavity I
align:start position:0%of the cavity Imean I gain curve of the of the medium
align:start position:0%mean I gain curve of the of the medium
align:start position:0%mean I gain curve of the of the mediumof the of the laser
align:start position:0%
align:start position:0% so in in summary then we've seen that
align:start position:0%so in in summary then we've seen that
align:start position:0%so in in summary then we've seen thatfor this laser here that's about 22
align:start position:0%for this laser here that's about 22
align:start position:0%for this laser here that's about 22centimeters apart that we get
align:start position:0%centimeters apart that we get
align:start position:0%centimeters apart that we getlongitudinal modes of 680 megahertz
align:start position:0%longitudinal modes of 680 megahertz
align:start position:0%longitudinal modes of 680 megahertzapart and
align:start position:0%apart and
align:start position:0%apart andthe polarization of each mode is is
align:start position:0%the polarization of each mode is is
align:start position:0%the polarization of each mode is isdifferent in fact they have adjacent
align:start position:0%different in fact they have adjacent
align:start position:0%different in fact they have adjacentmodes have orthogonal polarizations
align:start position:0%modes have orthogonal polarizations
align:start position:0%modes have orthogonal polarizationswhile with this longer laser of length
align:start position:0%while with this longer laser of length
align:start position:0%while with this longer laser of length56 centimeters we found that the mode
align:start position:0%56 centimeters we found that the mode
align:start position:0%56 centimeters we found that the modespacing was 270 megahertz again it's
align:start position:0%spacing was 270 megahertz again it's
align:start position:0%spacing was 270 megahertz again it'sconsistent with the width the length of
align:start position:0%consistent with the width the length of
align:start position:0%consistent with the width the length ofthe of the laser and that the
align:start position:0%the of the laser and that the
align:start position:0%the of the laser and that thepolarization of all the modes was was
align:start position:0%polarization of all the modes was was
align:start position:0%polarization of all the modes was wasidentical
align:start position:0%identical
align:start position:0%identicalnow I want to leave you with with his
align:start position:0%now I want to leave you with with his
align:start position:0%now I want to leave you with with hispuzzle why in this case here of the
align:start position:0%puzzle why in this case here of the
align:start position:0%puzzle why in this case here of thelaser with internal mirrors the
align:start position:0%laser with internal mirrors the
align:start position:0%laser with internal mirrors thepolarizations of the modes were
align:start position:0%polarizations of the modes were
align:start position:0%polarizations of the modes weredifferent while the one here the
align:start position:0%different while the one here the
align:start position:0%different while the one here thepolarization was the same well this is
align:start position:0%polarization was the same well this is
align:start position:0%polarization was the same well this iswhat the to answer this one he is easy
align:start position:0%what the to answer this one he is easy
align:start position:0%what the to answer this one he is easybecause of the Brewster windows and the
align:start position:0%because of the Brewster windows and the
align:start position:0%because of the Brewster windows and theonly polarization that can that can
align:start position:0%only polarization that can that can
align:start position:0%only polarization that can that canLai's is the polarization set by the
align:start position:0%Lai's is the polarization set by the
align:start position:0%Lai's is the polarization set by theangular width brewster windows but in
align:start position:0%angular width brewster windows but in
align:start position:0%angular width brewster windows but inthis case here we don't have any windows
align:start position:0%this case here we don't have any windows
align:start position:0%this case here we don't have any windowsto set the polarization
align:start position:0%to set the polarization
align:start position:0%to set the polarizationwe only have just two mirrors sealed
align:start position:0%we only have just two mirrors sealed
align:start position:0%we only have just two mirrors sealedonto the discharge tube and we saw that
align:start position:0%onto the discharge tube and we saw that
align:start position:0%onto the discharge tube and we saw thatadjacent modes have orthogonal
align:start position:0%adjacent modes have orthogonal
align:start position:0%adjacent modes have orthogonalpolarizations so here's a nice little
align:start position:0%polarizations so here's a nice little
align:start position:0%polarizations so here's a nice littlepuzzle for you to think about
align:start position:0%puzzle for you to think about
align:start position:0%puzzle for you to think aboutnow we're not done yet with laser
align:start position:0%now we're not done yet with laser
align:start position:0%now we're not done yet with laserproperties there are several other
align:start position:0%properties there are several other
align:start position:0%properties there are several otherexperiments that we have prepared for
align:start position:0%experiments that we have prepared for
align:start position:0%experiments that we have prepared foryou some we will come back we'll show
align:start position:0%you some we will come back we'll show
align:start position:0%you some we will come back we'll showyou other aspects of laser behavior123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931align:start position:0% what's the difference um between
align:start position:0%what's the difference um between
align:start position:0%what's the difference um betweenstreamline courses and uh regular
align:start position:0%streamline courses and uh regular
align:start position:0%streamline courses and uh regularChinese courses um I think in the
align:start position:0%Chinese courses um I think in the
align:start position:0%Chinese courses um I think in thebeginning they said the Streamline is
align:start position:0%beginning they said the Streamline is
align:start position:0%beginning they said the Streamline isobvious is make it faster so um it
align:start position:0%obvious is make it faster so um it
align:start position:0%obvious is make it faster so um itturned out to be as uh it just happened
align:start position:0%turned out to be as uh it just happened
align:start position:0%turned out to be as uh it just happenedthis way and when I start teaching here
align:start position:0%this way and when I start teaching here
align:start position:0%this way and when I start teaching hereit's already established so most uh
align:start position:0%it's already established so most uh
align:start position:0%it's already established so most uhstudent taking um uh stream L they are
align:start position:0%student taking um uh stream L they are
align:start position:0%student taking um uh stream L they areHeritage Learners you don't have to be a
align:start position:0%Heritage Learners you don't have to be a
align:start position:0%Heritage Learners you don't have to be aher Heritage Learners at all as long as
align:start position:0%her Heritage Learners at all as long as
align:start position:0%her Heritage Learners at all as long asyour oral proficiency uh reach certain
align:start position:0%your oral proficiency uh reach certain
align:start position:0%your oral proficiency uh reach certainlevel so that means we don't start a
align:start position:0%level so that means we don't start a
align:start position:0%level so that means we don't start aclass with you know how to pronounce the
align:start position:0%class with you know how to pronounce the
align:start position:0%class with you know how to pronounce thewords because we assume you have basic
align:start position:0%words because we assume you have basic
align:start position:0%words because we assume you have basicconversation skills uh so versus um
align:start position:0%conversation skills uh so versus um
align:start position:0%conversation skills uh so versus umRegular class you started with all the
align:start position:0%Regular class you started with all the
align:start position:0%Regular class you started with all thelanguage courses you started with a
align:start position:0%language courses you started with a
align:start position:0%language courses you started with apronunciation you start with the
align:start position:0%pronunciation you start with the
align:start position:0%pronunciation you start with theum um the alphabet that we call the P
align:start position:0%um um the alphabet that we call the P
align:start position:0%um um the alphabet that we call the Phow to pronounce words and then you
align:start position:0%how to pronounce words and then you
align:start position:0%how to pronounce words and then youintroduce everything just like from the
align:start position:0%introduce everything just like from the
align:start position:0%introduce everything just like from thestart so for streamline uh courses we
align:start position:0%start so for streamline uh courses we
align:start position:0%start so for streamline uh courses weassume you have the um or skills already
align:start position:0%assume you have the um or skills already
align:start position:0%assume you have the um or skills alreadyat a certain level so uh that's make it
align:start position:0%at a certain level so uh that's make it
align:start position:0%at a certain level so uh that's make itvery different and uh I think we're very
align:start position:0%very different and uh I think we're very
align:start position:0%very different and uh I think we're veryfortunate to have this program here
align:start position:0%fortunate to have this program here
align:start position:0%fortunate to have this program herebecause we got enough student group to
align:start position:0%because we got enough student group to
align:start position:0%because we got enough student group toattend this course so my goal for this
align:start position:0%attend this course so my goal for this
align:start position:0%attend this course so my goal for thiscourse is literacy building and this is
align:start position:0%course is literacy building and this is
align:start position:0%course is literacy building and this isthe main components and the second thing
align:start position:0%the main components and the second thing
align:start position:0%the main components and the second thingis to help them to um um Elevate their
align:start position:0%is to help them to um um Elevate their
align:start position:0%is to help them to um um Elevate theirspeaking uh proficiency so I assume by
align:start position:0%speaking uh proficiency so I assume by
align:start position:0%speaking uh proficiency so I assume byactual standard when they exit this
align:start position:0%actual standard when they exit this
align:start position:0%actual standard when they exit thiscourse they could at least reach the
align:start position:0%course they could at least reach the
align:start position:0%course they could at least reach theintermediate High to advance low level
align:start position:0%intermediate High to advance low level
align:start position:0%intermediate High to advance low levelin terms of uh
align:start position:0%in terms of uh
align:start position:0%in terms of uhspeaking so um they came in there
align:start position:0%speaking so um they came in there
align:start position:0%speaking so um they came in thereusually at intermediate low which
align:start position:0%usually at intermediate low which
align:start position:0%usually at intermediate low whichis uh even you think intermediate low
align:start position:0%is uh even you think intermediate low
align:start position:0%is uh even you think intermediate lowintermediate high is not much but when
align:start position:0%intermediate high is not much but when
align:start position:0%intermediate high is not much but whenwhen you try to push it to that
align:start position:0%when you try to push it to that
align:start position:0%when you try to push it to thatdirection it's harder and harder because
align:start position:0%direction it's harder and harder because
align:start position:0%direction it's harder and harder becausethey get withdrawn into their own little
align:start position:0%they get withdrawn into their own little
align:start position:0%they get withdrawn into their own littleworld they refuse to use new
align:start position:0%world they refuse to use new
align:start position:0%world they refuse to use newvocabulary um they will just speak in
align:start position:0%vocabulary um they will just speak in
align:start position:0%vocabulary um they will just speak intheir comfort zone so need to push them
align:start position:0%their comfort zone so need to push them
align:start position:0%their comfort zone so need to push themit's really hard so my that's my goal to
align:start position:0%it's really hard so my that's my goal to
align:start position:0%it's really hard so my that's my goal toaim at the discour and the literacy as I
align:start position:0%aim at the discour and the literacy as I
align:start position:0%aim at the discour and the literacy as Isaid it uh some of them took Chinese uh
align:start position:0%said it uh some of them took Chinese uh
align:start position:0%said it uh some of them took Chinese uhclass when they were at you know
align:start position:0%class when they were at you know
align:start position:0%class when they were at you knowElementary School some even and and high
align:start position:0%Elementary School some even and and high
align:start position:0%Elementary School some even and and highuh high school a lot of the um these
align:start position:0%uh high school a lot of the um these
align:start position:0%uh high school a lot of the um thesekids they took so-called uh uh Sunday
align:start position:0%kids they took so-called uh uh Sunday
align:start position:0%kids they took so-called uh uh Sundayschool once a week so um so some of them
align:start position:0%school once a week so um so some of them
align:start position:0%school once a week so um so some of themdid have some um Foundation to have
align:start position:0%did have some um Foundation to have
align:start position:0%did have some um Foundation to haveChinese characters but some really don't
align:start position:0%Chinese characters but some really don't
align:start position:0%Chinese characters but some really don'tso how do I start I make sure everybody
align:start position:0%so how do I start I make sure everybody
align:start position:0%so how do I start I make sure everybodylearned same amount the characters in
align:start position:0%learned same amount the characters in
align:start position:0%learned same amount the characters inthe beginning the first month we call
align:start position:0%the beginning the first month we call
align:start position:0%the beginning the first month we calljust pure memorization it's nothing
align:start position:0%just pure memorization it's nothing
align:start position:0%just pure memorization it's nothingnothing tricky it just I I hate to say
align:start position:0%nothing tricky it just I I hate to say
align:start position:0%nothing tricky it just I I hate to saythere's just the effort you need to
align:start position:0%there's just the effort you need to
align:start position:0%there's just the effort you need tomemorize characters because that's how
align:start position:0%memorize characters because that's how
align:start position:0%memorize characters because that's howyou learn to read there's no way other
align:start position:0%you learn to read there's no way other
align:start position:0%you learn to read there's no way othershortcut let's put it this way it's
align:start position:0%shortcut let's put it this way it's
align:start position:0%shortcut let's put it this way it'sbecause Chinese character is not
align:start position:0%because Chinese character is not
align:start position:0%because Chinese character is notspelling it's a it's like a pictures you
align:start position:0%spelling it's a it's like a pictures you
align:start position:0%spelling it's a it's like a pictures youhave to memorize There are rules in
align:start position:0%have to memorize There are rules in
align:start position:0%have to memorize There are rules inthere so so after four weeks and people
align:start position:0%there so so after four weeks and people
align:start position:0%there so so after four weeks and peoplereally struggle for those who never done
align:start position:0%really struggle for those who never done
align:start position:0%really struggle for those who never doneit before and because I'm basically
align:start position:0%it before and because I'm basically
align:start position:0%it before and because I'm basicallyevery class class I forc them three
align:start position:0%every class class I forc them three
align:start position:0%every class class I forc them threethree uh three hours a week every every
align:start position:0%three uh three hours a week every every
align:start position:0%three uh three hours a week every everyclass we have quiz dictation so before
align:start position:0%class we have quiz dictation so before
align:start position:0%class we have quiz dictation so beforethe class they have to memorize 50
align:start position:0%the class they have to memorize 50
align:start position:0%the class they have to memorize 50characters at
align:start position:0%characters at
align:start position:0%characters atleast but as I said we're youi we're
align:start position:0%least but as I said we're youi we're
align:start position:0%least but as I said we're youi we'refortunate they're MIT students they're
align:start position:0%fortunate they're MIT students they're
align:start position:0%fortunate they're MIT students they'rethey're so used to hard workking they
align:start position:0%they're so used to hard workking they
align:start position:0%they're so used to hard workking theycomplained but they did anyway so after
align:start position:0%complained but they did anyway so after
align:start position:0%complained but they did anyway so afterone month they everybody at least have
align:start position:0%one month they everybody at least have
align:start position:0%one month they everybody at least have250 characters some do have more because
align:start position:0%250 characters some do have more because
align:start position:0%250 characters some do have more becausethey learned this before but those who
align:start position:0%they learned this before but those who
align:start position:0%they learned this before but those whonever attend Chinese schools now they
align:start position:0%never attend Chinese schools now they
align:start position:0%never attend Chinese schools now theyhave 250 characters so they can read now
align:start position:0%have 250 characters so they can read now
align:start position:0%have 250 characters so they can read nowbecause they know these characters
align:start position:0%because they know these characters
align:start position:0%because they know these charactersindividually they put in in a sentence
align:start position:0%individually they put in in a sentence
align:start position:0%individually they put in in a sentencenow they can read a short paragraph So
align:start position:0%now they can read a short paragraph So
align:start position:0%now they can read a short paragraph Sothe moment they get to read the text
align:start position:0%the moment they get to read the text
align:start position:0%the moment they get to read the textthey're just like so excited I can't
align:start position:0%they're just like so excited I can't
align:start position:0%they're just like so excited I can'tread so um then it's writing part so
align:start position:0%read so um then it's writing part so
align:start position:0%read so um then it's writing part sothat's very different from regular
align:start position:0%that's very different from regular
align:start position:0%that's very different from regularbecause regular we have to focus so much
align:start position:0%because regular we have to focus so much
align:start position:0%because regular we have to focus so muchon four skills together because you for
align:start position:0%on four skills together because you for
align:start position:0%on four skills together because you forTrue
align:start position:0%True
align:start position:0%Truebeginners if you ask them to memorize
align:start position:0%beginners if you ask them to memorize
align:start position:0%beginners if you ask them to memorizecharacters at same time how to pronounce
align:start position:0%characters at same time how to pronounce
align:start position:0%characters at same time how to pronounceand speak is just too much so um for
align:start position:0%and speak is just too much so um for
align:start position:0%and speak is just too much so um forHeritage learner for streamline class we
align:start position:0%Heritage learner for streamline class we
align:start position:0%Heritage learner for streamline class wecan do it all together so that's a huge
align:start position:0%can do it all together so that's a huge
align:start position:0%can do it all together so that's a hugedifference and as I said I um we're
align:start position:0%difference and as I said I um we're
align:start position:0%difference and as I said I um we'reunique uh we're able to do that and I
align:start position:0%unique uh we're able to do that and I
align:start position:0%unique uh we're able to do that and Idon't think my model
align:start position:0%don't think my model
align:start position:0%don't think my modelit's good for every University every
align:start position:0%it's good for every University every
align:start position:0%it's good for every University everyhigh school because it all depends on
align:start position:0%high school because it all depends on
align:start position:0%high school because it all depends onyour audience your student group I have
align:start position:0%your audience your student group I have
align:start position:0%your audience your student group I haveU teachers from different universities
align:start position:0%U teachers from different universities
align:start position:0%U teachers from different universitiesthat they can't have just Heritage
align:start position:0%that they can't have just Heritage
align:start position:0%that they can't have just Heritagelearner or streamline classes they have
align:start position:0%learner or streamline classes they have
align:start position:0%learner or streamline classes they haveto mixing up which is make the teaching
align:start position:0%to mixing up which is make the teaching
align:start position:0%to mixing up which is make the teachingvery difficult because you some are here
align:start position:0%very difficult because you some are here
align:start position:0%very difficult because you some are heresome are here how do you do make the
align:start position:0%some are here how do you do make the
align:start position:0%some are here how do you do make thebalance so I said I'm fortunate you know
align:start position:0%balance so I said I'm fortunate you know
align:start position:0%balance so I said I'm fortunate you knowI can't really give advice for those
align:start position:0%I can't really give advice for those
align:start position:0%I can't really give advice for thoseteacher who in the middle and because
align:start position:0%teacher who in the middle and because
align:start position:0%teacher who in the middle and becausethis totally different environment yeah1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115The 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, visitmitopencourseware@ocw.mit.edu.
PROFESSOR: All right.
So today we are going to startby reviewing income and
substitution effects.
Because that's a pretty hardconcept and pretty central to
a lot of what we'll do forthe rest of the semester.
And then we're going to divein and talk about an
application, a more interestingapplication, of
income and substitution effectswhich is the effects
of wages on labor supply.
So let's review.
If you take the handout, grabthe handout and look at the
first figure, it's the sameas the last figure of the
previous lecture.
To review, remember, wheneverthe price changes, a price
change can be decomposed intotwo effects, the substitution
effect and the income effect.
The substitution effect is thechange in the quantity
demanded when theprice changes,
holding utility constant.
And as we proved lasttime, that is always
negative, 0 or negative.
It is always non-positive.
It's always true that whena price goes up, the
substitution effectis negative.
We proved that bothmathematically and graphically
last time showing that if you'regoing to hold utility
constant, and the price of agood is going to go up, you're
going to shift awayfrom that good.
OK.
That's the substitutioneffect.
In our example, we showedgraphically how you measure a
substitution effect.
You draw a new imaginary budgetconstraint, BC3, which
is parallel to the new budgetconstraint, BC2.
So it's got the new price ratiobut tangent to the old
indifference curve.
So the key thing to understandis the imaginary budget
constraint, BC3, whereit comes from.
It's parallel to the newbudget constraint.
That is it's got the newmarginal rate of
transformation, the new slope,but it's tangent to the old
indifference curve.
That gets you to point B. And sothe movement from A to B is
the substitution effect.
Then we have an income effectwhich is, in fact, utility
isn't held constant whenprices change.
In fact, utility falls, because
you're effectively poorer.
You're effectively poorer.
Utility is falling.
And since you're effectivelypoorer, that further reduces
demand if the good is normal.
So if it's a normal good, ifit's a good where lower income
causes less consumption ofit, the fact that you're
effectively poorer furtherlowers the consumption from
point B to point C.
So the total price effect is theone we demonstrated at the
beginning of the last lecture.
We raised the price of moviesfrom $8 to $12.
And we saw the numberof movies consumed
fell from 6 to 4.
But what we can see now tounderstand what's underneath
that is two things, an effect ofthe fact that prices change
holding utility constant,and the fact that you're
effectively poorer.
And that's the key thing.
No, your income hasn'tactually gone down.
But that $96 your parents gaveyou can buy you less.
Your opportunity set hasbeen restricted.
And that makes you effectivelypoorer.
And so you buy lessfor that reason.
And so you get the totalmovement from A to C.
Now, as we emphasized last time,this will be the case if
it's a normal good.
So substitution effectsare done.
Substitute effects arealways negative,
nothing fun about that.
Income effects are a littlemore interesting, because
goods can be not normalbut inferior.
We have inferior goods whichare ones such that they're
crummy stuff that as yourincome goes up, you
want less of it.
And that can changethe analysis.
So if we look at Figure 7-2,now we're talking about the
price change with aninferior good.
And now imagine someonechoosing
between steak and potatoes.
So now the choice is betweensteak and potatoes.
And steak costs $5 a pound,initially, and potatoes cost
$1 a pound.
Initially, you havean income of $25.
So someone has an incomeof y equals $25.
The price of steak is $5, andthe price of potatoes is $1.
So your budget constraint, youroriginal BC1, runs from
you can either have 5 steak, or25 potatoes, or something
in between.
And so individuals choosepoint A where they're
consuming 8.3 potatoes.
They choose point A.
I don't know what thenumber of steaks is.
We probably also ought to labelthat, the number of
steaks that comes from that.
But whatever.
It comes out of theutility function.
So then we say, now let'simagine that the price of
potatoes rises to $3 a pound.
There's a blight on the potatoeslike there was in
Ireland in the 1800s.
There's a potato blight, andthat shifts in the supply
curve for potatoes raising theprice of potatoes from $1 a
pound to $3 a pound.
Now, what we know is that thatwill move consumers, given the
utility function that we'vechosen here, that will move
consumers from point A to pointC. Once again, that's
not labeled, but some loweramount of potatoes.
That will move them from pointA to point C. So, ultimately,
they'll choose fewer potatoesand fewer steaks.
But, in fact, what we can see isthat's the composition of a
substitution effect which isnegative, and an income effect
which is positive.
So if we do our standarddecomposition, we draw a new
monetary budget constraintBC3.
It's parallel to the new budgetconstraint, BC2, so the
same price ratio.
It's parallel.
But it's tangent to the oldindifference curve at point B
which is actually to the leftof the ultimate choice at
point C.
So the substitution effecttakes us from A to B. The
income effect actually takes usback from B to C. That is
as that budget constraint shiftsfrom BC3 to BC2, as you
get poorer, you choosemore potatoes.
So the substitution effect wouldsay that from the price
change of potatoes alone, we goall the way to point B. We
massively reduce our consumptionof potatoes.
But because we're poorer,effectively, we now consume
more potatoes.
Because we're effectivelypoorer, we now
consume more potatoes.
And so, on net, you geta reduction in potato
consumption.
But it offsets the substitutioneffect.
So that's when income effectscan be a little more
interesting.
It's going to be a little moreinteresting exercise.
When you think about substituteeffects in the same
way, it's not thatinteresting.
It's just look, quantity fell.
It doesn't really matter why.
You don't see, inthe real world,
substitution income effects.
What's interesting is whenthey're opposed to each other.
That's when it getsmore interesting.
And so you see this smallreduction you get from the
substitution effect alone.
By the way, there'stwo handouts.
Right?
Jessica, is theretwo handouts?
There should be.
There's tables as well.
I didn't actually get it.
Jessica, grab me one of those.
There's tables aswell as graphs.
So make sure you haveboth handouts.
Anyone else need tables?
Am I the only one whodidn't get it?
OK, good.
So, in principle, the incomeeffect could be so large it
could offset the substitutioneffect.
There's no reason,theoretically,
that couldn't happen.
That is, in principle, you couldderive preferences such
that the income effect isso large it offsets the
substitution effect--thank you--
and the price increase actuallyleads to more
potatoes being consumed.
That is what we'd calla Giffen good as I
talked about last time.
So if you look at the table,the top table, this sort of
lays out our possibilities.
So look at the top table.
It sort of maps out the possiblesets of things that
can happen.
So if we have a normal good,and the price of that good
rises, then we know that the
substitution effect is negative.
The income effect is negative.
So the total effectis negative.
Quantity falls.
That's the law of demand.
We talked about thatlast time, downward
sloping demand curves.
Likewise, if the pricefalls, the
substitution effect is positive.
The income effect is positive.
You're now richer because theprice of the good fell.
And so, therefore,demand goes up.
Quantity consumed goes up, onceagain, downward sloping
demand curve.
Price rises, you consumeless of it.
Price falls, you consumemore of it.
That's what we learned aboutin the first lecture.
However, once goods areinferior, all bets are off.
Because now the income effectis the opposite sign of the
substitution effect.
It's possible it couldbe larger.
So the total effectis ambiguous.
You could actually get an upwardsloping demand curve.
You could actually get that aprice rise leads to more of a
good, and a fall leadsto less of a good.
Now will you?
Only if it's a Giffen good.
And, in fact, there's a lot ofcontroversy in economics about
whether any good in the worldhas ever been a Giffen good.
At most, there's maybe one ortwo examples people can find.
Even then, it's controversial.
So I think it's fine in life toassume that demand curves
slope down.
I think, in fact, I don't seeconvincing evidence that any
subset or set of goodsare Giffen goods.
I think it's just generally fineit life to assume demand
curves slope down.
Nonetheless, it's important tounderstand this theoretical
possibility even if it'sjust theoretical.
Because it's important tounderstand income and
substitution effects.
OK.
Questions about that, eitheron substitution effect or
price changes?
OK.
So now, armed with that, let'sgo onto the more interesting
case which is labor supply.
It's more interesting, becauseas I'll come to in a few
minutes, we talk about laborsupply, labor is typically
going to be an inferior good.
So things are going to get alittle more interesting.
So let's talk about that.
So the question you want to askhere is how hard do folks
decide to work?
How many hours of labor dofolks decide to provide?
As we talked about when wetalked about minimum wage,
just as we all have to decidebetween consuming pizza and
consuming movies, or consumingsteak and consuming potatoes,
we also have to decide betweenhow much labor we're going to
provide and how much we'regoing to consume.
The more labor you provide tothe market, the more you
consume, but the lessfun you get to have.
Fun, we call leisure.
The less labor you provide tothe market, the more fun you
get to have, the more leisureyou get, but the less you get
to consume, because youhave less income.
And that's the trade-off wetalked about when we talked
about the effect ofminimum wage.
Now let's come back andget underneath that
labor supply curve.
So we talked aboutthe minimum wage.
We talked about the labor supplycurve which was how the
hours you provide respond tothe wage and a labor demand
curve, which was how thehours that firms want
respond to the wage.
Now let's get underneaththe supply curve.
A minute ago, we were talkingabout the demand curves and
getting underneath the demandcurve for consumers.
Well, now let's get underneaththe supply curve for labor.
Now, the key thing is that whenwe talk about labor, it's
not a good, it's a bad.
The typical person doesn'twant to work.
The typical person isnot in this room.
You guys like to work.
The typically person actuallydoesn't like to work.
Leisure is a normal good.
For the typical person, leisureis a normal good.
They like time off.
Leisure is a good, whichmeans labor is a bad.
They don't like to work.
The problem is we don'tknow how to
model bads in economics.
It's just we're used totrading off between
two things you want.
When I used to trade-off, weknow how to model something
you want to get somethingyou don't want.
Indifference curves wouldn'twork, because
more wouldn't be better.
If you drew an indifferencecurve for labor, it would
violate the more isbetter assumption.
Because you wouldn'twant more.
You'd want less.
So the modeling trick we'regoing to use whenever we're
modeling bads, is to model thecomplementary good and then,
in the end, solve for the bad.
We're not going tomodel labor.
We're going to model leisure.
And given the total amount ofhours you have to supply, the
total hours minus theamount of leisure is
the amount of labor.
So we're going tomodel leisure.
We're going to model thegood and then solve for
labor at the end.
So, in other words, if you have24 hours a day you can
work, then your amount of hoursof work is 24 minus the
amount of leisure N. Call it Nor call it L. We'll call it N
because L, typically, wethink of as labor.
Let's call leisure N forreasons I don't quite
understand.
Let's just use that.
Basically the amountof hours you can
work is 24 minus leisure.
So if we solve for the optimalamount of leisure you want, we
can obviously get the amountof labor you supply.
So the trick when modeling a badis not to model the bad.
It's to model the complementarygood.
In this case, the complementarygood is leisure.
So we're going to model thetrade-off between leisure and
consumption and use the resultof that to solve for the
amount of labor you supply.
So it's the general modelingtrick you need to understand,
which is turn a badinto a good.
That's the modeling trick.
Because we know howto model the
trade-off between two goods.
We don't know how to modelthe trade-off with a bad.
So to think about that, let'sgo to Figure 7-3, and let's
talk about what's underneatha labor supply curve.
What's underneath a labor supplycurve is the trade-off
between how much leisure youwant and how much consumption
you can have. So you see here,here's a trade-off.
On the y-axis is the amountof goods you can have. You
earn a wage, w.
The y-axis is the amount ofgoods you can have from a
day's work.
So you earn w per hour.
That means the most goodsyou can have from a
day's work is 24w.
If you worked all 24 hoursat that wage, you
can have 24w goods.
On the other hand, if you worknot at all, then you take 24
hours in leisure and have noconsumption from that day.
So we see as you moveto the right on the
x-axis, that's leisure.
That's the good.
As you move to the left,that's labor.
That's the bad.
OK?
That's just illustrating.
But we're going tomodel the good.
We're going to model leisure.
Your trade-off is between howmuch you want to consume and
how much leisure youwant to take.
Now, here's what'sinteresting.
In general, what determinesthe slope of a budget
constraint?
What determines the slopeof a budget constraint?
AUDIENCE: Marginal rateof transformation.
PROFESSOR: Which is what?
AUDIENCE: Ratio betweenprices.
PROFESSOR: Ratiobetween prices.
Prices determine the slopeof the budget constraint.
But here's what's tricky.
What's the price of leisure?
AUDIENCE: Wage.
PROFESSOR: The wage.
Why?
AUDIENCE: Because for every houryou take having leisure,
you are effectively usingmoney that you
could gain at work.
PROFESSOR: Exactly.
The key is the economic conceptof opportunity cost,
which we've talked about andwill continue to talk about
this semester, opportunity cost.By not working, you are
forgoing earning a wage.
So that is the priceof leisure.
You may not think of it thisway, but, once again, that's
why we're the dismal science.
When you go home today, and yousit on the couch, and you
watch TV for an hour, youhave just paid a price.
And that price is what youcould have earned by
working that hour.
Every action has a price.
And the price of leisure is thewage you forgo, The wage
you forgo by sitting aroundis the price of leisure.
Let's assume here that the priceof goods is $1, that the
goods you're goingto buy cost $1.
Whatever your consumption,it costs $1.
That's the trick we alwaysuse with modeling.
Make as many things$1 as you can.
That makes the model easy.
So let's assume that the priceof the goods you're going to
buy are $1.
So the slope of the budgetconstraint is minus w over 1.
The slope of the budgetconstraint is just the price
of leisure which is minus w .
So the trade-off with the priceof goods of $1, the
trade-off between taking leisureand consuming is that
if you take leisure,an hour of leisure,
you get w fewer goods.
And if you work an hour, you getw more goods, but you lose
an hour of leisure.
And that gives you the trade-offbetween how much you
consume and how much leisure youtake which determines how
much you work.
OK.
Questions about that?
Now let's take this frameworkand ask, what happens when the
wage changes, Figure 7-4.
So we have an originaloutcome with the
budget constraint BC1.
We have an original budgetconstraint, BC1.
Now imagine the wage goesup, so we move to BC2.
BC2 is a budget constraintwith a higher wage.
The wage goes up.
So what we're going to see isyou're going to move from
point A where you work N1 hoursto point C where you
work N3 hours.
That's where your indifferencecurves are tangent with the
new budget constraint.
Not work, take leisure.
I'm sorry.
We take leisure of N1 hoursto leisure of N3 hours.
The wage going uphas reduced your
leisure which makes sense.
If the wage goes up,you work harder.
Right?
So your wage going up, we alwaysfirst take if there's a
leisure and then convertto labor.
Wage goes up, leisure fallsfrom N1 to N3, which means
labor goes up.
But actually two things arehappening here, the
substitution andincome effect.
The substitution effect, whichwe see by drawing the
imaginary budget constraint BC*which is parallel to BC2
but tangent to the originaldifference curve, the
substitution effect is a verylarge reduction in leisure.
It moves all the wayfrom N1 to N2.
The substitution effectis a very large
reduction in leisure.
The income effect is thatleisure is a normal good.
I'm now richer, becausemy wage has gone up.
So I want to buy more of it.
So I buy more leisure.
And that moves mefrom N2 to N3.
So, basically, now the incomeeffect offsets the
substitution effect even witha normal good, or with a
normal good.
With a normal good, the incomeeffect offsets that
substitution effect.
And that's because the moneyyou're getting, you're using
to buy leisure.
So, in fact, if you flip to 7-5,you can see a case where
the income effect dominates.
And you actually get that awage increase leads you to
work less hard.
Now, think about that.
If I'd said to you--
I probably should havestarted with this--
if you increase the wage, willpeople work more or less hard?
Your initial instinct wouldhave been more hard.
You would have thought, well,if your wage goes
up, you work harder.
But that's because your instinctwas focused on the
substitution effect.
You're thinking aboutthe income effect.
Here's a case whereI started at N1.
The substitution effectleads me to N2.
But I feel so much richer fromthat higher wage that I
actually move allthe way to N3.
My leisure goes up, andI work less hard.
Now, unlike a Giffen good, thisis totally plausible.
Why is it plausible?
Well, let me do give youa simple intuition
for why it's plausible.
Let's say that you're someonewho has a certain amount of
things you want tobuy every week.
You don't save. You have acertain amount of things you
want to buy every week.
You have to pay your rent, youhave to buy your food, you
have to buy your other goodies,a certain budget.
A lot of people liveon a budget.
You have a certain budget.
And the truth is you're happywith that budget.
That's kind of whatyou want to do.
Now let's say I doubledyour wage.
Well, now to meet the budget youcan work half as hard and
still meet the same budget.
So you'll work less hard.
You could say, look, I can getmore leisure and consume the
same amount of goodsas I did before.
So I'll work less hard.
That's a totallyplausible case.
That's a case of what wecall target income.
If someone has a target income,and their wage goes
up, they'll work less.
Now, that's not necessarilythe truth.
But it's, at least to me, sortof a plausible case of how
people might behave. And that'sa case where income
effects can dominate.
So if we, once again, go to thesecond chart on that page,
now we see the incomeand substitution
effects for labor supply.
Once again, we're assumingleisure is a normal good.
We're always going to assumeleisure is a normal good.
We're never going to assumepeople don't like leisure.
Assuming leisure is a normalgood, then as the wage rises,
the substitution effect isyou take less leisure.
This table is a bit differentthan the other table.
Instead of the first panel beingnormal and the second
panel being inferior,the first panel is
what happens to leisure.
The second panel converts itto what happens to labor.
So for instance, in the firstcell, when the wage rises, the
substitution effect on leisureis unambiguously negative.
You clearly take less leisurewhen the wage rises.
So, likewise, youhave more labor.
So on the bottom panel, laboris clearly greater than or
less than 0.
But the income effect ispositive for leisure.
You're rich, you takemore leisure.
Or, likewise, negative forlabor, you're richer, so your
work less hard.
And, therefore, thenet is ambiguous.
So with goods consumption, weneeded goods to be inferior
for there to be a Giffengood type phenomena.
Here, even with leisure beingnormal, you can have a Giffen
good type phenomena.
It's much less random.
And, in some sense, thisis why we learn income
substitution effects.
To be honest, they're justnot that interesting for
consumption.
The book makes a big deal outof them and talks about
consumer price indicesand all that.
It's just not that importantfor consumption.
Because we know in consumptionif prices goes
up, you consume less.
It's just not thatinteresting.
It's much more interesting forthings like labor supply.
And we talk about savingsin a number of lectures.
It's the same thing.
There, it's more interesting.
Because now they can oftenoffset each other in
meaningful ways.
And so now this is why thetools of income and
substitution effects becomemuch more important.
OK?
So if we put this together, ifwe go to Figure 7-6, we can
now think about deriving wherelabor supply comes from.
Where does labor supplycome from?
Well, first, you've got theconsumer's decision of how
hard to work.
So here's a case.
It's sort of small, butyou can take a look.
Here's a case where you've gotsomeone initially working,
taking 16 hours of leisure and,therefore, working eight
hours, at a wage of W1.
Now their wage goes up to W2.
They choose to take 12 hoursof leisure and, therefore,
work 12 hours.
This is someone who works harderwhen the wage goes up.
That is, the income effectdoes not offset the
substitution effect.
Now, we can take that to drawa demand for leisure curve
just like we drew anyother demand curve.
It's the same techniqueas last time.
Just bring those point and say,look, at a wage of W1,
leisure is 16.
At a wage of W2,leisure is 12.
We have a downward slopingdemand for leisure, standard
downward sloping demandfor leisure.
But we can convert that to asupply of labor, which is what
we care about.
Nobody cares about the demandfor leisure curve.
We care about the supplyof labor curve.
You just subtractthese from 24.
You use the supply of laborcurve which is upward sloping.
So as long as substitutioneffects dominate income
effects, we'll get an upwardsloping labor supply curve.
But it's certainly possiblethat if income effects
dominates substitution effects,you could get a
downward sloping supply curve,if you will, what we call in
labor economics, abackward-bending supply curve,
a supply curve that goesthe wrong way.
Instead of sloping up likesupply curves are supposed to,
it goes the wrong wayand slopes down.
And we can see that'splausible.
The target income case Ijust described to you
would deliver that.
The target income case I justdescribed to you would deliver
a downward slopingsupply of labor.
As the wage rose, people wouldwork less and less.
That's a totallyplausible case.
And that's why income andsubstitution effects are
interesting.
Because they can deliverthis weird result.
They can get the wrongsigned supply curve.
Questions about incomeand substitution
effects or labor supply?
So what I want to spend therest of the lecture on is
talking about well,what is the case?
Do labor supply curvesslope up or down?
And what do we knowabout that?
Well, this is probably the majorfocus of a field we call
labor economics.
And there's an excellent courseon labor economics,
14.64 taught by Josh Angrist,which goes into much detail in
the entire field.
But one of the main focuses ofthe field is understanding the
elasticity of labor supply,and is it positive or
negative, and how big is it.
So, basically, measuring theslope of the labor supply
curve is the focus of thisliterature, the elasticity of
the labor supply.
Now, what I want to do is startwith a historical fact,
and then I'll come tothe modern age.
Let's think about30 years ago.
30 years ago, all menworked and less than
half of women worked.
It was more normal for womennot to work than to work,
married women.
I'm sorry.
Less than half of marriedwomen worked.
Now, married women could work.
I'm not talking 60 years agoor 80 years ago when there
were marriage bars.
Literally, firms wouldn't hireyou if you were married.
It's true.
If you're interested inthat, you can actually
read Claudia Goldin.
She's a labor historian who'swritten about the early 20th
century when, literally,women could be
fired for being married.
We're not talkingabout that era.
I'm talking about 30 years agowhen you could work if you
were married.
It's no problem.
But most women chose not to,maybe 40 years ago now.
So, in that case, let's thinkabout two groups.
Let's think about marriedmen, and let's think
about married women.
And let's just posit,hypothetically, how big we
think their substitution andincome effects would be.
Let's start with substitutioneffect.
Do we think the substitutioneffect would be bigger?
This is the change in the wageholding utility constant.
Do we think that would have abigger effect on leisure and,
therefore, labor for menor for women and why?
Don't yell it out.
Somebody, raise theirhand and tell me.
Do we think that thesubstitution effect would be
bigger for men orwomen and why?
Remember the name.
It's the substitution effect.
That's the key to the answer.
Yeah.
AUDIENCE: I think it would bethe same, because they each
have equal use for the goods.
Maybe their income effectwould be different.
PROFESSOR: OK.
[UNINTELLIGIBLE PHRASE].
They each have equaluse for the goods.
Well let's deal with wherethe substitution
effect comes from.
Let's break it down.
So you're someonewho's deciding.
You've got you and your wife,and you're each deciding how
to respond to a changein the wage.
Now, you both value thegoods the same.
But it's goods versus leisure.
What's the other featurethat you're going
to be thinking about?
Think about a married man40 years ago, and
the wage goes down.
AUDIENCE: They haveto work more.
PROFESSOR: No.
We're just doing substitutioneffects.
That's unambiguous.
If the goes down,they work less.
We're just doing substitutioneffects.
That's ambiguous.
The question is, if they workless, what do they do?
Whereas think about a marriedwomen 40 years ago.
If she works less,what does she do?
What does a married man do?
Nothing.
There's nothing to do.
Your friends are all at work.
You can't go play golf.
You can't do anything.
You don't take care of kids,because men didn't take care
of kids 40 years ago.
What do you do?
There's nothing to do.
Whereas a woman, married woman,if the wage goes down
40 years ago, you can takecare of kids instead.
You can hang out with otherwomen who aren't working.
There's plenty to do.
Based on that, now changeyour answer.
Where do you thinkthe substitution
effect would be bigger?
AUDIENCE: [INAUDIBLE PHRASE].
PROFESSOR: In women,it would be bigger.
Because men, there's less ofa substitution effect.
Because it's all aboutsubstitutability of options.
There's no good alternativeoption to work for
men 40 years ago.
It's either work or nothing.
Basically, everybody worked.
So, basically, there'sno good substitution
effect option for men.
For women, there's lotsof outside options.
There's sociability, there'schild rearing, et cetera.
The substitution effect willbe larger the more things
there are you cansubstitute to.
Men don't have anything tosubstitute to from work.
Women have options to substituteto from work.
For men, this is goingto be very small.
For women, this will be big.
We know the sign.
The smallest this can be is 0.
We know the sign.
But it's going to be a verysmall substitution effect,
because I don't havea lot else to do if
my wage goes down.
Women, if it's a lowwage, why work?
You can be much more effectivetaking care of the kids or
hanging out with your friends.
Why work for a low wage?
Men, there's nothingelse to do.
So that's the relative size tothe substitution effects.
Now, the income effect, I think,is a little bit harder.
And let's come back andthink about what
drives an income effect.
We talked about the incomeeffect as being delta q over
delta y, how much aquantity changes
when your income changes.
But, in reality, what's goingto matter for your income
effect given when you starttoday, is going to be not only
delta q over delta y, how yourtaste for work changed or
income changes, but also howhard you worked to start.
Think of it this way.
The income effect is how muchricher you feel if your wage
goes up, or how muchpoorer you feel if
your wage goes down.
If you are working 0 hours,the income effect is 0.
You don't feel any richer if thewage goes up, because you
don't earn any money.
The more hours you work thebigger the income effect is,
because the bigger thatshock is to you.
So we can think of the incomeeffect, a shorthand for the
income effect, is going to beh times dh/dy, the hours you
work times how your hourschange with your income.
OK?
Now, to prove this it involvesusing complicated algebra.
We're not going to get intoit in this course.
I worked hard last night tosee if I could make the
algebra less complicated,and I can't.
I just have to try to workintuitively on this.
The notion of the income effectis bigger the more
you're in the market.
You can think aboutit for goods too.
Think about the income effectof a change in the price of
something you buy a lotof for something you
buy very little of.
So let's say you're someonewho's buying two Starbucks a
day, and you very rarelygo see a movie.
Well, if the price of a moviegoes up 10%, or the price of
Starbucks goes up 10%,which is going to
make you feel poorer?
The price of Starbucksgoing up, because you
buy a lot of Starbucks.
So how much poorer you'll feel,or the income effect,
will depend on yourstarting point.
The more you're in a market,the more you'll feel the
income effect.
Now, based on that, who's goingto have a bigger income
effect, men or women?
Same person, whatdo you think?
The income effect is going to bestronger the more you're in
the market.
So who's going to have abigger income effect?
AUDIENCE: Married men would havea bigger income effect.
PROFESSOR: Exactly.
Married men would have a biggerincome effect, because
they're in the market.
Married women, most ofthem don't work.
So there's no income effect.
So this is going to be big formen and small for women.
There's another issue,which is does dh/dy
differ for men and women?
I'll leave that alone.
Let's assume they both havethe same underlying income
elasticity.
But, certainly, the initialhours are much bigger from men
than for women.
So what does this mean in termsof the labor supply
curves you would see for marriedmen and married women
40 years ago?
Based on these facts, whatwould you think?
Yeah?
AUDIENCE: They would haveopposite slopes.
PROFESSOR: Yeah.
So, in particular, the femalelabor supply curve
would look like what?
It would slope up or down?
AUDIENCE: It would slope up.
PROFESSOR: It would slope up.
You'd have an upward slopingcurve, because you'd have
these big substitution effectsand small income effects.
So it would look much morelike Figure 7-4.
You'd have the big substitutioneffect when the
wage goes up and a smalloffsetting income effect.
Think about the woman whois not working at all.
She's now working atall at $8 an hour.
You raise her wageto $12 an hour.
She's like, hey, I wasn'tworking at all.
So there's no income effect.
But now I'm going to go towork and make some money.
So it's upward sloping.
But for men, it's going to lookmore potentially like
Figure 7-5.
There's a small substitutioneffect but a potentially big
income effect or biggerthan women.
Now, how big it is,that's not clear.
Because, once again, menhave nothing to do
if they don't work.
So it could be this ends upbeing bigger and smaller.
It's not clear how bigthis ends up being.
But it's at least possible thatyou could have men having
a backward-bending or downwardsloping labor supply curve.
Because the income effect couldeven more than offset
the substitution effect.
But, in reality, given the wayI set up the example, you'd
think men would basicallyhave a pretty
inelastic labor supply.
You'd think, 40 years ago, thesethings would basically
both be 0, both offset.
And, basically, you'd have asituation where the change in
the wages didn't mattermuch for men.
And, in fact, that'swhat people found.
This is a wonderful case of theconvergence of truth with
theory and a wonderful chanceto see the power of some
pretty simplistic theory.
The intuition is exactly borneout in the data, which is
males, 40 years ago,would have a very
inelastic labor supply.
Their labor supply curves werevirtually vertical and maybe
backward-bending.
There's some controversyon that.
Some estimates gotbackward-bending.
Some didn't.
But there were certainlynot upward sloping.
It was basically vertical.
Women had a very few elasticlabor supply.
The elasticity is estimatedto be around 1.
That is every 1% changein the wage lead to
1% more labor supply.
So that's a fairly elasticlabor supply for women.
Where, for men, the estimatewas basically 0.
And that's kind of neat, becausewe're actually getting
confirmation in the dataof what the theory
would have told us.
Now, someone else tell me whatdo you think has happened over
the last 40 years relative tothese elasticities of married
men and married women.
Yeah.
AUDIENCE: The elasticity ofmarried women has gone down in
the last 40 years--
PROFESSOR: Why?
Speak up so the classcan hear you.
Why is that?
AUDIENCE: Because womenwork more often now
than they did before.
PROFESSOR: Women workmore often now.
So the income effect is going tobe getting bigger for them.
So the income effect is goingup, because their
initial h is bigger.
Plus there's actually now,in some sense, less good
opportunities if you'renot working.
So when we had our first kid,and we lived in Brookline,
which is sort of an urban city,and my wife decided to
stay at home, she didn't havemoms to hang out with.
It was just nanniesat the park.
And it wasn't that much fun.
And so, basically, thesubstitution effect is
shrinking, because the outsideoptions aren't quite as good
as they were, as the normsshift towards work.
Whereas for men, actually it'sbecoming more normal for men
to be engaged in child care.
My best friend is astay-at-home dad.
It's becoming more normalfor that to happen.
And so the substitutioneffect is rising.
It's not implausible that ifyou cut a man's wage down,
he'll just say forget it.
My wife's going to work.
I'm taking care of the kids.
That would be sociallyostracizing 40 years ago.
But it's not that odd now.
And, likewise, as men are lessengaged in the labor force and
spending more time at home,their income effects are
falling, because theirinitial h is smaller.
So you're getting a convergencein these labor
supply elasticities.
What really seems to behappening is mostly
convergence down for women,not much up for men.
So men are maybe goingfrom 0 to 0.1.
Women are coming fromlike 1 to 1/2.
So what you're seeing is thatmen aren't actually working
that much less.
There's a few stay-at-homedads.
But they're still notthe majority.
Women are working a lotmore, and kids are in
child care a lot more.
So what you're seeing overtime is you're seeing men
being a little more responsive,but not that much
more responsive.
They're still, basically,working all the time.
Women are working a lotmore and being more
responsive to wages.
And there's a reduction comingin both women's leisure and
production of childcare at home.
Now, that raises a veryinteresting question of is
this is a good thing?
Now this is a very deepand hard topic.
In economics, we think if peopledo something it's good,
or they wouldn't have done it.
It is true that if you lookat data on self-reported
well-being or happiness data,married women report a general
decline in happiness, over thelast 40 years, as they've
entered the labor forcemore and more.
And the issue is, is thissomething which is a good way
for society to spendits resources, to
have everyone working?
We're consuming more.
Consumption has gone up.
We're consuming more, butwe're getting less
leisure as a family.
Because the men aren't workingthat much less.
The women are workinga lot more.
So we're getting lessleisure as a family.
How do we feel aboutthat outcome.
That's an interestingquestion.
And we'll talk about that somemore later on in the semester.
OK.
Questions about this?
Yeah.
AUDIENCE: [INAUDIBLE PHRASE].
PROFESSOR: That's a reallygood question.
And let me talk about thatfor a couple of minutes.
The definition of unemploymentis those employed
over looking for work.
If the number of people employeddoes not change, and
women suddenly want to work, andthey report to surveyors
that they're lookingfor work--
that's the employment rate.
I'm sorry.
The unemployment rate--
I'm sorry--
is going to be those lookingover employed.
My bad.
The unemployment rateis going to be those
looking over those employed.
So the unemployment rate is howmany people are looking
for work over how manyare employed.
If women start suddenly lookingfor work, and there's
no jobs to be had, that willraise the unemployment rate.
So one thing that's been a focusof a lot of research has
been do increases in thesupply of labor lead to
increases in unemployment?
What you've expressed is what'soften called the lump
of labour view.
The lump of labour view isbasically the view that
there's a fixed box ofproduction in the economy.
And as more workers come in tofill that box, there will be
more unemployment.
The alternative view is thatthe economy is dynamic.
And as more women are working,and earning income, and buying
stuff, that makes more jobs.
So our standard of consumptionis way higher
than 40 years ago.
We all have much cooler stuffthan 40 years ago.
You have no idea how bad lifesucked 40 years ago.
We have way better stuff.
We have that stuff, becausewomen are working and making
the income to buy it, whichmeans people have to make it
which makes jobs.
So, in fact, the existingevidence is labor supply
shocks do not cause unemploymentincreases.
This is something I'veworked a lot on.
What you see, a very interestingcase is in Europe.
In the US and all over theworld, we have assistance of
what we call Social Security,a term you've
all heard, I'm sure.
The Social Security program isa program which provides
income when you're retired.
So it provides income whenyou're retired to help you
deal with the fact that youdon't have a source of labor
income anymore.
And that's a program thatvirtually every country, and
all developed countrieshave a very generous
social security program.
But they're different in theUS than in other countries.
In the US, the way the socialsecurity program works is when
you hit 62, you get a choice.
You can stop working and getyour benefits from Social
Security, and then you get themevery year until you die.
Or you can keep working, delaygetting your benefits, but
they'll increase what youget to offset the delay.
So, in other words, if I retireat 63 rather than 62,
given that I'm going to die atthe same date, I'm going to
get one fewer year ofbenefits in my life.
But they raise them by 6.7%to compensate for that.
So I get one fewer year ofbenefits, but every year it's
6.7% higher.
And it turns out, given lifeexpectancy, that works out to
be a roughly fair deal.
So, basically, at 62, yourchoice is I can get one more
year of benefits or Iget higher benefits
for one fewer years.
And that's a choice that'sa roughly fair deal.
OK.
Questions about that?
Am I making sense of that?
In Europe, it's nota fair deal.
In Europe the way it works isthey say, you can get one more
year of benefits.
But if you decide to work thisyear, we're not given you any
more in the future.
So let me describe how it worksin the Netherlands.
At age 55, the Netherlands says,if you decide to retire
this year, we will replace 90%of your wages in social
security payments to make sureyour income doesn't suffer
when you retire.
If you don't retire and work,you're going to give up
sitting at home earning90% of your wage.
That is the opportunitycost of working.
It's that you have forgone theability to sit at home and get
90% of your wage.
So what is your netwage if you work?
10% of what you wouldhave earned.
So if you're earning $20 anhour, then your choice is you
can sit at home for $18 orwork for $20 an hour.
So your net wage for workingis $2 an hour.
The return to work, theopportunity cost of leisure is
only $2 an hour.
You're only forgoing $2 anhour by sitting at home.
But wait, there's more.
If you sit at home, you don'thave to pay the payroll taxes
of financing the systemthat are almost 50%.
If you work, you have topay the payroll taxes.
Which means that if youwork, you lose money.
Because if you work, you forgogetting to sit at home at 90%
of your wage, and youpay a tax that's
about 40% of your wages.
So, actually, you will lose 30%of your salary by working
relative to sitting at home.
Guess what people do inthe Netherlands at 55?
They sit at home.
No one works after 55 in theNetherlands on the books.
They work off the bookspainting houses
and doing odd jobs.
No one works on thebooks after 55.
Economics works, guys.
If you pay your guys to stayat home, they stay at home.
Now, if you ask Europeanpoliticians, why do you have
this screwed up system?
They'll say, well, it's easy.
We want to get those oldguys out to make jobs
for the young guys.
We need to pay those old guysto stay at home to make jobs
for the young guys.
And then you point out, haveyou noticed that Europe has
higher unemployment thanAmerican, even though we don't
do that and you do?
And that's becauseyou're wrong.
It doesn't work that way.
Because by paying the old guysto sit at home, you have to
have such high taxes that noone makes new businesses.
And so there's not jobs forthe young guys to have.
So it's true.
In theory, you've made jobs forthe young guys by leaving
the old guys at home.
But by imposing the 40% tax ratethat you've had to impose
to make it possible to pay theold guys to sit at home,
you've killed job creationin your country.
And, as a result, there'snot the jobs for
young guys to get.
That's a very long-winded wayof answering your question
that supply, in substance,creates its own demand.
So more labor supply will notnecessarily cause more
unemployment.
And we're going to talk aboutone more thing before we stop.
I've just talked about a vastempirical literature in how
people understand the effectsof wages on labor supply.
Well, how do they do it?
Well, you could say, look, wecan just look at how you earn
a higher wage than you do.
And we'll ask, do you workharder than you?
And we'll say, the guys who earnhigher wages work harder.
If guys who earn higher wageswork harder, that means labor
supply slopes up.
If guys who earn higher wagesdon't work harder, that means
labor supply slopes down.
What's wrong with that?
Yeah.
AUDIENCE: Those who are gettingpaid more probably are
getting paid because theywant to work harder.
PROFESSOR: Yeah.
Maybe you guys are different.
Maybe you're talented,and you're not.
And maybe because you'retalented, maybe you're driven,
and you're not.
And because you're driven, youwork harder and get paid a
higher wage.
So I'm not learning anythingabout the causal effect of the
wage on your labor supply.
I've just documented acorrelation between wage and
labor supply.
How can we get the causal effectof your wage on your
labor supply?
Well, once again, ideallywe'd run an experiment.
We'd assign you a higher wage.
We'd find someonejust like you.
Not you, you're not driven.
We find someone just like you.
No offense.
You know I'm joking.
We'd find someone just like youand, randomly, by a flip
of a coin, assign thema lower wage.
And we'd see how your laborsupply differed.
Now, it seems like youcouldn't do that.
But, in fact, the US did that.
In the 1970s, we ran what wascalled the negative income tax
experiment where we literallyassigned people different wage
rates through taxing themby different amounts.
And that was part of what gaveus this very convincing
evidence from 40 years agoof these responses.
So where we get this is froma real experiment we
ran 40 years ago.
The problem is that's a prettyhard experiment to run.
It's pretty expensive, andthere's some ethical issues.
So what do you do todayto estimate that?
What you can do today is say,well, we can't run the
experiment.
But the government runsit for us every time
they change tax rates.
Because if you take two peoplethat are identical--
so let's say you and youwere identical--
and I change your tax ratebecause you live in
Massachusetts.
I don't change your tax ratebecause you live in New York.
I can see what happens toyou relative to you.
Because I've now essentiallyrun this experiment by the
government changingsomeone's tax rate
and not someone else's.
That's the way we do it if wecan't run a true, randomized
experiment.
And that gives very, verysimilar answers.
Let me stop there.
And we will come back.
Next lecture we'll talk aboutapplying this model.
So I guess in sectionon Friday, we
review for the exam.
In section on Friday, wereview for the exam.
So show up to that.
And the exam is next week.
The exam will cover throughmy next lecture.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420There are many ways to complete a task---evena seemingly simple one like eating cereal.
When programming a computer to complete atask or solve a problem, repetitive techniques
like iteration and recursion are extremelyuseful. In this video, we will look at these
problem-solving techniques.
This video is part of the Problem Solvingvideo series. Problem-solving skills, in combination
with an understanding of the natural and human-madeworld, are critical to the design and optimization
of systems and processes.
Hi, my name is Niaja Farve. I am a doctoralstudent in Electrical Engineering and Computer
Science at MIT.
Before watching this video, you should befamiliar with introductory programming and
simple data structures.
After watching this video, you will be ableto: Divide a programming problem into simpler,
analogous pieces. And, solve the problem bycombining solutions to the simpler pieces.
In computer science, we often want to solvecomplex problems. However, computers deal
best with performing easy tasks over and overagain. We utilize the computer's ability by
implementing repetitive techniques to incrementallysolve our complex problems.
Though eating a bowl of cereal is a fairlysimple task that most of us can complete automatically,
we need to think carefully about how to programa computer to do the same. Let's take a closer
look at the problem and identify the fundamentalsteps used to frame cereal eating for repetitive
computation.
In this example, let's suppose the computerunderstands the basic operation of eating
a single bite of cereal, but does not understandhow to eat an entire bowl of cereal. So how
do we "teach" the computer to eat a bowl ofany size greater than one bite? Pause the
video here and think about it.
The first step when approaching a complexprogramming problem is to break the problem
up into analogous, but simpler pieces thatwe can tell the computer how to directly solve.
So what is a simpler version of eating a wholebowl of cereal?
One possibility is eating a smaller amountof cereal.
We already mentioned that a small, non-zeroamount of cereal the computer can handle eating
is a single bite.
Going one step up, eating two bites-worthof cereal is equivalent to eating a single
bite twice. The next step when approachinga complex problem is to deduce a pattern.
That is, how does a generally larger problemlook in comparison to the simpler version?
Here, we notice that eating any amount ofcereal is equivalent to the sum of eating
multiple bites-worth of cereal.
Now that we've broken up our problem and understandhow the pieces will fit back together, we
can put our solution into a generalized codeframework:
Start with telling the computer the procedurefor solving the simplest problem. Then, repeat
this procedure on subsequent pieces untilthe desired endpoint is reached:
If the bowl contains cereal, take one biteof cereal. Repeat until there is no more cereal.
You may recognize this type of solution asan iterative approach.
Or we could also take the following alternativeapproach:
Start with telling the computer how to solvethe simplest problem. Then, break the problem
into simpler and simpler pieces until we reachthe version we've already told the computer
how to solve.Does the bowl contain 1 bite of cereal? If
so, take the bite. If not, divide it up intoa bowl containing one bite and a bowl containing
the remainder. Repeat this procedure on theresulting bowls.
In this case, we end, up with a series ofbowls containing one bite, which the computer
knows how to eat.
Breaking up a problem into progressively simpler,but analogous pieces in this way is known
as a recursive approach. Because the solutionto the most complex problem depends on solutions
to the simpler pieces, recursion creates aqueue of jobs waiting to be completed.
In contrast, when using iteration, there isno such dependency from one instance of the
problem to the next.
So even though the computer ends up consumingn bites of cereal in both cases, the iterative
and recursive approaches arrive at this answerin very different ways.
There are many different ways to successfullyeat a bowl of cereal or solve any given programming
problem. The key is to 1. Break the probleminto analogous pieces that the computer can
solve, and 2. Combine the solutions to thepieces into a solution for the more complex
problem.
In our previous cereal-eating example, breakingdown the problem into simpler pieces was fairly
straightforward. Now, let's look at a slightlymore complex problem.
We would like to write a function, downup,that takes an input string and prints out
progressively smaller and larger sub-stringsof the word as so.
To help us work with strings, we have a helperfunction, substring, which extracts a portion
of a string, beginning from the first characterup though a specified end index.
Following the framework we discussed earlier,what is a simpler version of downup that we
can easily handle?
How about downup of a single letter string.The desired output is achieved by simply printing
the string.
Moving one step up, we see that the desiredoutput of a two-letter string can be accomplished
by printing the string, printing the stringshortened by one letter, and printing the
full string a second time.
And moving up one more step to a 3 letterstring...
Are you starting to notice any patterns? Pausethe video to think of a possibility.
Though there are many different patterns,here is one you may have come up with: With
every string, we are sandwiching the _solution_to a string one character shorter between
two printings of the full string. With thismindset, we are poised for a recursive solution
to this problem.
Recall the general framework for a recursivesolution: Tell the computer how to solve the
simplest problem. Then break the problem intosimpler pieces until we reach the simplest
problem: If the string is a single letter,print it. Otherwise, print the string, solve
for downup of the string one character shorter,and print the string again.
Try now, if you haven't already done so, toframe the problem in a more iterative manner.
Pause the video to discuss.
We can notice that we are repeatedly printingsubstrings of the full string, with each step
moving the end index from the original lengthdown to 1. This is followed by again printing
substrings, but this time increasing the endindex back up to the original length.
We can program this solution using two iterativeloops. Recall the general iterative code framework:
Tell the computer the procedure for the simplestproblem. Repeat the procedure on subsequent
pieces until the endpoint is reached.
In our first loop, we print the substring,decrease the index by one, and repeat the
procedure until the index reaches one.
In the second loop, we move in the oppositedirection. Print the substring. Increase the
index by one and repeat the procedure untilthe index is greater than the original length.
Both approaches, while very different, arecompletely valid! There is no one correct
way to solve a problem. Some solutions mayeven have both recursive and iterative elements.
Now lets solve a third problem with an evenmore complex pattern.
In the famous Towers of Hanoi problem, thegoal is to transfer a stack of rings from
pillar A to pillar C. We can only move a singlering at a time, and can use pillar B as "extra"
workspace. We cannot place a larger ring ontop of a smaller ring.
Lets follow the framework and start by workingout the simplest problem: transferring 1 ring.
Here we can simply move the ring from A toC.
Okay, now let's try to transfer a stack oftwo rings. First we move the ring 1 to B,
then ring 2 to C, then move ring 1 from Bto C.
Now, let's try something a bit harder. Let'stry to transfer a stack of three rings. Ring
1 moves to C, ring 2 goes to B, and ring 1goes to B. Now ring 3, which was on the bottom,
is free to move to C. Then, ring 1 goes toA, ring 2 goes to C, then ring 1 finally goes
to C.
Notice that after we moved the bottom ringto C, we essentially arrived at the same conformation
as when trying to transfer 2 rings: We havetwo stacked rings and an extra empty pillar.
And because the largest ring is in the desired,final position and does not impede the movements
of any of the remaining smaller rings, wecan treat the pillar as being empty.
This observation is crucial to the recursiveimplementation of the towers of Hanoi solution.
We transferred n-1 rings to the extra pillar,moved the largest ring to the final position,
then transferred the n-1 rings to the finalposition.
Can you frame a pseudocode solution to theproblem? Pause the video here to work out
a possible solution.
Recall again the general recursive framework:Tell the computer how to solve the simplest
problem: If we're transferring a single ring,move it to the destination pillar.
Then, break the problem up into progressivelysimpler pieces:
Transfer n-1 rings from the source to theextra pillar, transfer ring n from the source
to the destination, and transfer n-1 ringsfrom the extra pillar to the destination.
Note that the source, destination, and extrapillar designations change with each function
call!
It's always a good idea to check your codewith a test case. Pause the video here and
check your code for the case of N equals 4.You may also wish to check our code and compare
the two solution methods.
Now lets check our code and traverse throughthe solution for transferring 4 rings.
We're not transferring a single ring, so letstransfer 3 rings from A to B.
We're still not transferring one ring, solets transfer 2 rings from A to C.
We're still not transferring one ring, solets transfer 1 ring from A to B. And we can
finally move this single ring!
Now we return to the previous call, and canmove ring 2 from A to C. Then we transfer
our n-1 stack from B to C. This results intransferring 2 rings from A to C!
Returning one more step back, we move ring3 to B. Now we transfer 2 rings from C to
A.
Finally, we've returned back to our originalfunction call, and we've completed transferring
3 rings from A to B. So, we can move our largestring number 4 from A to C.
Now we need a whole other set of recursivefunction calls to transfer the 3 ring stack
from B to C! Pause the video now to finishchecking the second half of our solution.
Notice how quickly the number of functioncalls grew! Good thing we have a computer
that is very good at following repetitiveinstructions!
To Review In this video, we showed you howrecursion and iteration take advantage of
a computer's ability to repeat simple tasks.
To approach a complicated programming problem,first solve some simpler versions and try
to identify a pattern. Then, depending onthe type of pattern you found, fill in a recursive
or iterative code framework. And remember,iterative, recursive and even mixed solutions
to a single problem may all be correct!123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507align:start position:0% we end this lecture sequence with the
align:start position:0%we end this lecture sequence with the
align:start position:0%we end this lecture sequence with themost important property of expectations
align:start position:0%most important property of expectations
align:start position:0%most important property of expectationsnamely linearity the idea is pretty
align:start position:0%namely linearity the idea is pretty
align:start position:0%namely linearity the idea is prettysimple suppose that our random variable
align:start position:0%simple suppose that our random variable
align:start position:0%simple suppose that our random variableX is the salary of a random person out
align:start position:0%X is the salary of a random person out
align:start position:0%X is the salary of a random person outof some population so that we can think
align:start position:0%of some population so that we can think
align:start position:0%of some population so that we can thinkof the expected value of X as the
align:start position:0%of the expected value of X as the
align:start position:0%of the expected value of X as theaverage salary within that population
align:start position:0%average salary within that population
align:start position:0%average salary within that populationand now suppose that everyone gets a
align:start position:0%and now suppose that everyone gets a
align:start position:0%and now suppose that everyone gets araise and Y is the new salary and
align:start position:0%raise and Y is the new salary and
align:start position:0%raise and Y is the new salary andgenerously the new salary is twice the
align:start position:0%generously the new salary is twice the
align:start position:0%generously the new salary is twice theold salary plus a bonus of $100 what
align:start position:0%old salary plus a bonus of $100 what
align:start position:0%old salary plus a bonus of $100 whathappens to the expected value of the
align:start position:0%happens to the expected value of the
align:start position:0%happens to the expected value of thesalary or the average salary well the
align:start position:0%salary or the average salary well the
align:start position:0%salary or the average salary well thenew average salary which is the expected
align:start position:0%new average salary which is the expected
align:start position:0%new average salary which is the expectedvalue of 2x plus 100 is twice the old
align:start position:0%value of 2x plus 100 is twice the old
align:start position:0%value of 2x plus 100 is twice the oldaverage plus a hundred so doubling
align:start position:0%average plus a hundred so doubling
align:start position:0%average plus a hundred so doublingeveryone's salary and giving to everyone
align:start position:0%everyone's salary and giving to everyone
align:start position:0%everyone's salary and giving to everyonean additional hundred what it does to
align:start position:0%an additional hundred what it does to
align:start position:0%an additional hundred what it does tothe average is that it doubles the
align:start position:0%the average is that it doubles the
align:start position:0%the average is that it doubles theaverage and adds a hundred to it this is
align:start position:0%average and adds a hundred to it this is
align:start position:0%average and adds a hundred to it this isthe linearity property of expectation in
align:start position:0%the linearity property of expectation in
align:start position:0%the linearity property of expectation inone particular example it's a most
align:start position:0%one particular example it's a most
align:start position:0%one particular example it's a mostintuitive property but it's worth also
align:start position:0%intuitive property but it's worth also
align:start position:0%intuitive property but it's worth alsoderiving it in a formal way and the
align:start position:0%deriving it in a formal way and the
align:start position:0%deriving it in a formal way and thederivation proceeds through the expected
align:start position:0%derivation proceeds through the expected
align:start position:0%derivation proceeds through the expectedvalue rule we're dealing here with a
align:start position:0%value rule we're dealing here with a
align:start position:0%value rule we're dealing here with aparticular function G which is a linear
align:start position:0%particular function G which is a linear
align:start position:0%particular function G which is a linearfunction so we're dealing with a linear
align:start position:0%function so we're dealing with a linear
align:start position:0%function so we're dealing with a linearfunction ax plus B and we're dealing
align:start position:0%function ax plus B and we're dealing
align:start position:0%function ax plus B and we're dealingwith the random variable Y which is G
align:start position:0%with the random variable Y which is G
align:start position:0%with the random variable Y which is Gapplied to an original random variable X
align:start position:0%applied to an original random variable X
align:start position:0%applied to an original random variable Xso the expected value of y can be
align:start position:0%so the expected value of y can be
align:start position:0%so the expected value of y can becalculated according to the expected
align:start position:0%calculated according to the expected
align:start position:0%calculated according to the expectedvalue rule it's the sum over all X's of
align:start position:0%value rule it's the sum over all X's of
align:start position:0%value rule it's the sum over all X's ofG of x times the probability of that
align:start position:0%G of x times the probability of that
align:start position:0%G of x times the probability of thatparticular X and we plug in the space
align:start position:0%particular X and we plug in the space
align:start position:0%particular X and we plug in the spacecific form of the function G which is a
align:start position:0%cific form of the function G which is a
align:start position:0%cific form of the function G which is aX plus B and then we separate the sum
align:start position:0%X plus B and then we separate the sum
align:start position:0%X plus B and then we separate the suminto two sounds the first sum after
align:start position:0%into two sounds the first sum after
align:start position:0%into two sounds the first sum afterpulling out a constant of a takes this
align:start position:0%pulling out a constant of a takes this
align:start position:0%pulling out a constant of a takes thisform and the second sum after pulling
align:start position:0%form and the second sum after pulling
align:start position:0%form and the second sum after pullingout the constant B takes this form now
align:start position:0%out the constant B takes this form now
align:start position:0%out the constant B takes this form nowthe first song is a times the expected
align:start position:0%the first song is a times the expected
align:start position:0%the first song is a times the expectedvalue of x this is just the definition
align:start position:0%value of x this is just the definition
align:start position:0%value of x this is just the definitionof the expected value as for the second
align:start position:0%of the expected value as for the second
align:start position:0%of the expected value as for the secondsum we realize that this quantity is
align:start position:0%sum we realize that this quantity is
align:start position:0%sum we realize that this quantity isequal to 1 because it is the sum of the
align:start position:0%equal to 1 because it is the sum of the
align:start position:0%equal to 1 because it is the sum of theprobabilities of all the different
align:start position:0%probabilities of all the different
align:start position:0%probabilities of all the differentvalues of X and this concludes the proof
align:start position:0%values of X and this concludes the proof
align:start position:0%values of X and this concludes the proofof the linearity of expected values
align:start position:0%of the linearity of expected values
align:start position:0%of the linearity of expected valuesnotice that for expected values what we
align:start position:0%notice that for expected values what we
align:start position:0%notice that for expected values what wehave is that the expected value of y
align:start position:0%have is that the expected value of y
align:start position:0%have is that the expected value of ywhich is expected value of G of X is the
align:start position:0%which is expected value of G of X is the
align:start position:0%which is expected value of G of X is thesame as G of the expected value of x the
align:start position:0%same as G of the expected value of x the
align:start position:0%same as G of the expected value of x theexpected value of a linear function is
align:start position:0%expected value of a linear function is
align:start position:0%expected value of a linear function isthe same linear function applied to the
align:start position:0%the same linear function applied to the
align:start position:0%the same linear function applied to theexpected value but this is an
align:start position:0%expected value but this is an
align:start position:0%expected value but this is anexceptional case this does not happen in
align:start position:0%exceptional case this does not happen in
align:start position:0%exceptional case this does not happen ingeneral it's an exceptional function G
align:start position:0%general it's an exceptional function G
align:start position:0%general it's an exceptional function Gthat makes this happen this property is
align:start position:0%that makes this happen this property is
align:start position:0%that makes this happen this property istrue for linear functions but for
align:start position:0%true for linear functions but for
align:start position:0%true for linear functions but fornonlinear functions it is generally
align:start position:0%nonlinear functions it is generally
align:start position:0%nonlinear functions it is generallyfalse123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292[MUSIC PLAYING]
L. RAFAEL REIF: Increating OCW, MIT
launched a quiet, but profoundeducational revolution.
It unleashed the globalopen sharing movement
and helped pave the way forthe worldwide phenomenon
of open digital learning.
SANJAY SARMA: Whatare two or three words
to describeOpenCourseWare's impact?
I would say knowledge at scale.
LEO ALCOCK: Eye opening.
MUSSIE DEMISSE: Enlightening.
SARAH HANSEN: Chooseyour own adventure.
ZACH ERDMAN: A whole new world.
JAMES GLAPA-GROSSKLAG: Wow.
20 years of MIT'sOpenCourseWare.
That's just amazingto think about.
KRISHNA RAJAGOPAL: We've hadmore than 200 million people
come to OCW and learn from thematerials that MIT is sharing.
MUSSIE DEMISSE: My initialintroduction to OpenCourseWare
was actually at BunkerHill Community College.
My linear algebraprofessor would give us
these weekly quizzes.
We told her it was hard.
And she said actually,this is an MIT quiz.
And I was kind of blown awaythat I did some part of it.
And when I inquired howshe got the quiz, she said,
oh, there's this thingcalled MIT OpenCourseWare.
It imparted me withthis confidence of,
oh, I can do this.
I can survive in an MIT course.
And that drove me to saymaybe I can thrive at MIT.
ABHAY PAREKH: OCWwas the pioneer.
It opened everybody'seyes to the possibility
of connecting tolearners who are
in different countriesand different situations,
different ages.
MAY THET KHINENYEIN: We are making
the MIT OCW available inuniversities and community
libraries, which do nothave internet connection.
ABOO FATALLY: It hasencouraged me to learn,
to find out about things,to understand, and to apply.
CURT NEWTON: Thereis so much that
can be achieved byjust giving people
complete wide openaccess to this knowledge
that they can usewhenever, wherever, as much
as they need, aslittle as they need.
AMAH EDOH: Ittakes this very kind
of privileged eliteeducation that we
make accessible to ourstudents and opens it up
to a broader public.
JAMES GLAPA-GROSSKLAG:The very existence
of MIT's OpenCourseWareis inspiring.
It's a shining examplefor institutions of higher
education around the world.
AMAH EDOH: I thinkthere's also great value
in showing the range ofdisciplines that are taught
at MIT and showing thefact that the humanities
and social sciences areas much a strength of what
MIT has to offer asthe STEM disciplines.
This course that I createdis now part of the record
and is now something thatsomeone else can build on.
EVELYN LAURITO: Everything isthere-- even the syllabus, even
the instructions of theteachers, thesis assignments.
ABOO FATALLY: OCW isperhaps one of the best
thing that has happenedto education worldwide.
EVELYN LAURITO: It'slike being so unselfish.
You're giving everythingof what you have
and sharing it withthe other people,
especially indeveloping countries,
like the Philippines.
LEO ALCOCK: OpenCourseWarequite literally changed my life.
It gave me the educationI needed when there wasn't
another place to find it.
MUSSIE DEMISSE:You're giving people
the tools that will allow themto achieve their potential.
SARAH HANSEN: We have realproblems in the world that
need to be solved.
And we need problem solversfrom every area of the planet
to work on these.
CURT NEWTON: We've createdthis powerful foundation
of free access to knowledge.
And together, we'llkeep growing it.
We're creating better waysfor learners and teachers
to find and to usethat OCW content.
And we'll keep sharingthat vibrant reflection
of the teaching andcreativity from MIT.
KRISHNA RAJAGOPAL: Aswe think about equity,
we think about collaborators.
So that we can bringmore people starting
from different starting pointscoming in at different ways
to the point that theycan learn from OCW.
CURT NEWTON: Together,we're forging
new paths, where everyone'scontributing to the world's
growing knowledge.
And we're all using and sharingthat knowledge every day
to solve the world'sgreat challenges.
MUSSIE DEMISSE: I wantOCW to attract people.
So it's not just a neutralif you want it, come get it.
I want OCW to be calling onpeople to educate themselves,
to empower themselves,to build and to have
the necessary tools to dowhat they think is important.
SANJAY SARMA: And I'm hopingthat over time, this snowball
from 20 years agobecomes an avalanche
of intellectual exchangeamongst humanity.
[MUSIC PLAYING]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372NARRATOR: Thefollowing content is
provided under aCreative Commons 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: All right,we should get started.
So it's good to be back.
We'll be discussingDNA sequence motifs.
Oh yeah, we were,if you're wondering,
yes, the instructors wereat the awards on Sunday.
It was great.
The pizza was delicious.
So today, we're going to betalking about DNA and protein
sequence motifs, which areessentially the building
blocks of regulatoryinformation, in a sense.
Before we get started,I wanted to just see
if there are anyquestions about material
that Professor Gifford coveredfrom the past couple days?
No guarantees I'll beable to answer them,
but just general things relatedto transcriptome analysis,
or PCA?
Anything?
Hopefully, you all got theemail that he sent out about,
basically, what you'reexpected to get.
So at the level of thedocument that's posted,
that's sort of whatwe're expecting.
So if you haven'thad linear algebra,
that should stillbe accessible--
not necessarily allthe derivations.
Any questions about that?
OK, so as a reminder,team projects,
your aims are due soon.
We'll post aslightly-- there's been
a request for more detailedinformation on what we'd
like in the aims, so we'llpost something more detailed
on the website thisevening, and probably
extend the deadlinea day or two, just
to give you a little bitmore time on the aims.
So after you submityour aims-- this
is students who aretaking the project
component of thecourse-- then your team
will be assigned to oneof the three instructors
as a mentor/advisor, andwe will schedule a time
to meet with you inthe next week or two
to discuss youraims, just to assess
the feasibility of the projectand so forth, before you launch
into it.
All right-- any questionsfrom past lectures?
All right, todaywe're going to talk
about modeling and discoveryof sequence motifs.
We'll give an example of aparticular algorithm that's
used in motif finding calledthe Gibbs Sampling Algorithm.
It's not the only algorithm,it's not even necessarily
the best algorithm.
It's pretty good.
It works in many cases.
It's an early algorithm.
But it's interestingto talk about
because it illustratesthe problem in general,
and also it's an exampleof a stochastic algorithm--
an algorithm where whatit does is determined
at random, to some extent.
And yet still often convergesto a particular answer.
So it's interestingfrom that point of view.
And we'll talk abouta few other types
of motif finding algorithms.
And we'll do a little biton statistical entropy
and informationcontent, which is
a handy way ofdescribing motifs.
And talk a little bitabout parameter estimation,
as well, which is criticalwhen you have a motif
and you want tobuild a model of it
to then discover additionalinstances of that motif.
So some reading for today--I posted some nature
biotechnology primers onmotifs and motif discovery,
which are pretty easy reading.
The textbook, chapter 6, alsohas some good information
on motifs, I encourageyou to look at that.
And I've also postedthe original paper
by Bailey and Elkin onthe MEME algorithm, which
is kind of related to theGibbs Sampling Algorithm,
but is used asexpectation maximization.
And so it's a really nicepaper-- take a look at that.
And I'll also post the originalGibbs Sampler paper later
today.
And then on Tuesday,we're going to be talking
about Markov andhidden Markov models.
And so take a look atthe primer on HMMs,
as well as thereis some information
on HMMs in the text.
It's not really adistinct section,
it's kind of scatteredthroughout the text.
So the best approach is tolook in the index for HMMs,
and read the relevant partsthat you're interested in.
And if you reallywant to understand
the mechanics of HMMs, andhow to actually implement
one in depth, then I stronglyrecommend this Rabiner tutorial
on HMMs, which is posted.
So everyone please,please read that.
I will use the same notation,to the extent possible,
as the Rabiner paperwhen talking about some
of the algorithms usedin HMMs in lecture.
So it should synergize well.
So what is a sequence motifs?
In general, it'sa pattern that's
common to a set of DNA,RNA, or protein sequences,
that share abiological property.
So for example, all of thebinding sites of the Myc
transcription factor--there's probably a pattern
that they share, and youcall that the motif for Myc.
Can you give some examples ofwhere you might get DNA motifs?
Or protein motifs?
Anyone have anotherexample of a type of motif
that would be interesting?
What about one that'sdefined on function?
Yeah, go ahead.
What's your name?
AUDIENCE: Dan. [INAUDIBLE]
PROFESSOR: Yeah.
So each kinase typicallyhas a certain sequence motif
that determines whichproteins it phosphorylate.
Right.
Other examples?
Yeah, so in that case, youmight determine it functionally.
You might purify thatprotein, incubate it
with a pool of peptides, andsee what gets phosphorylated,
for example.
Yeah, in the back?
AUDIENCE: I'm [INAUDIBLE],and promonocytes.
PROFESSOR: Whatwas the first one?
AUDIENCE: Promonocytes?
Oh, that one?
Oh, that was my name.
PROFESSOR: Yeah, OK.
And as to promoter motifs, sir?
Some examples?
AUDIENCE: Like, [INAUDIBLE]in transcription mining site.
PROFESSOR: Ah.
Yeah.
And so you wouldidentify those how?
AUDIENCE: Bylooking at sequences
upstream of[INAUDIBLE], and seeing
what different sequenceshave in common?
PROFESSOR: Right.
So I think there's atleast three ways-- OK,
four ways I canthink of identifying
those types of motifs.
That's probably one ofthe most common types
of motifs encounteredin molecular biology.
So one way, you takea bunch of genes,
where you've identified thetranscription start site.
You just look for patterns--short sub-sequences
that they have in common.
That might give you theTATA box, for example.
Another way would be, whatabout comparative genomics?
You take eachindividual one, look
to see which parts of thatpromoter are conserved.
That can also help yourefine your motifs.
Protein binding, youcould do ChIP-Seq,
that could give you motifs.
And what about afunctional readout?
You clone a bunchof random sequences
upstream of aluciferase reporter, see
which ones actually driveexpression, for example.
So, that would be another.
Yeah, absolutely, so there'sa bunch of different ways
to define them.
In terms of when wetalk about motifs,
there are several differentmodels of increasing resolution
that people use.
So people often talk about talkabout the consensus sequence
so you say the TATAbox, which, of course,
describes the actualmotif-- T-A-T-A-A-A,
something like that.
But that's reallyjust the consensus
of a bunch of TATA box motifs.
You rarely find theperfect consensus
in real promoters-- the real,naturally occurring ones
are usually one ortwo mismatches away.
So that doesn'tfully captured it.
So sometimes you'll havea regular expression.
So an example would be ifyou were describing mammalian
5 prime splice sites, you mightdescribe the motif as GT, A
or G, AGT, or sometimesabbreviated as GTR AGT, where
R is shorthand for eitherappearing nucleotide-- either A
or G. In some motifs you couldhave GT, NN, GT, or something
like that.
Those can be captured,often, by regular expressions
in a scripting languagelike Python or Perl.
Another very commondescription in motifs,
there would be a weight matrix.
So you'll see a matrix wherethe width of the matrix
is the number ofbases in the motif.
And then there arefour rows, which
are the four bases-- we'llsee that in a moment.
Sometimes these are describedas position-specific probability
matrices, or position-specificscore matrices.
We'll come to that in a moment.
And then there are morecomplicated models.
So it's increasinglybecoming clear
that the simple weight matrixis too limited-- it doesn't
capture all the informationthat's present in motifs.
So we talked about wheredo motifs come from.
These are just some examples.
I think I talkedabout all of these,
except for in vitro binding.
So in addition to doinga CLIP-seq, where you're
looking at the binding ofthe endogenous protein,
you could also make recombinantprotein-- incubate that
with a random poolof DNA molecules,
pull down, and see whatbinds to it, for example.
So why are they important?
They're importantfor obvious reasons--
that they canidentify proteins that
have a specific biologicalproperty of interest.
For example, beingphosphorylated by a particular
kinase.
Or promoters that havea particular property.
That is, that they'relikely to be regulated
by a particular transcriptionfactor, et cetera.
And ultimately, ifyou're very interested
in the regulation ofa particular gene,
knowing what motifs are upstreamand how strong the evidence is
for each particulartranscription factor that
might or might notbind there, can
be very useful in understandingthe regulation of that gene.
And they're also going tobe important for efforts
to model gene expression.
So, a goal ofsystems biology would
be to predict, from a givenstarting point, if we introduce
some perturbation-- forexample, if we knock out
or knock down a particulartranscription factor,
or over-express it, howwill the system behave?
So you'd really wantto be able to predict
how the occupancy ofthat transcription factor
would change.
You'd want to know, first, whereit is at an endogenous levels,
and then how its occupancyat every promoter
will change when youperturb its levels.
And then, whateffects that will have
on expression ofdownstream genes.
So these sorts ofmodels all require
really accuratedescriptions of motifs.
OK, so these are someexamples of protein motifs.
Anyone recognize this one?
What motif is that?
So it says X's.
X's would bedegenerate oppositions,
and C's would cysteines.
And H's [INAUDIBLE].
What is this?
What does this define?
What protein has this?
What can you predictabout its function?
AUDIENCE: Zinc finger.
PROFESSOR: Zinc finger, right.
So it's a motif commonly seenin genome binding transcription
factors, and itcoordinates to zinc.
What about this one?
Any guesses onwhat this motif is?
This quite a short motif.
Yeah?
AUDIENCE: That'sa phosphorylation.
PROFESSOR: Phosphorylation site.
Yeah.
And how do you know that?
AUDIENCE: The [INAUDIBLE] andthe [INAUDIBLE] next to it
means it's [INAUDIBLE].
PROFESSOR: OK, so you evenknow what kinase it is, yeah.
Exactly.
So that's sort of the view.
So, serine, threonine,and tirocene
are the residues thatget phosphorylated.
And so if you see a motifwith a serine in the middle,
it's a good chance it'sa phosphorylation site.
Here are some-- you can thinkof them as DNA sequence motifs,
because they occur ingenes, but they, of course,
function at that RNA level.
These are the motifs thatoccur at the boundaries
of mammalian introns.
So this first one is theprime splicing motif.
So these would be the basesthat occur at the last three
bases of the exon.
The first two of the intronhere, are almost always GT.
And then you have this positionthat I mentioned here--
it's almost alwaysA or G position.
And then some positions thatare bias for A, bias for G,
and then slightlybiased for T. And that
is what you see when youlook at a whole bunch of five
prime ends of mammalianintrons-- they have this motif.
So some will have bettermatches, or worse,
to this particular pattern.
And that's the averagepattern that you see.
And it turns outthat in this case,
the recognition of that siteis not by a protein, per se,
but it's by aribonucleoprotein complex.
So there's actuallyan RNA called U1 snRNA
that base pairs with thefive prime splice site.
And its sequence, orpart of its sequence,
is perfectly complimentary tothe consensus five prime splice
site.
So we can understand whyfive prime splice sites have
this motif-- they'reevolving to have
a certain degree ofcomplementarity to U1,
and in order to getofficially recognized
by the splicing machinery.
Then at the threeprime end of introns,
you see this motif here.
So here's the last base ofthe intron, a G, and then
an A before it.
Almost all introns end with AG.
Then you have apyrimidine ahead of it.
Then you have basically anirrelevant position here
at minus four, which isnot strongly conserved.
And then a stretch ofresidues that are usually,
but not always, pyrimidines--called the pyrimidine track.
And in this case,the recognition
is actually by proteinsrather than RNA.
And there are two proteins.
One called U2AF65 thatbinds the pyrimidine track,
and one, U2AF35 thatbinds that last YAG motif.
And then there'san upstream motif
here, that's just upstreamof the 3 prime splice site
that is quite degenerateand hard to find,
called the branch point motif.
OK, so, let's take an example.
So the five prime splice siteis a nice example of a motif,
because you can uniquelyalign them, right?
You can sequence DNA,sequence genomes,
align the CDNA to thegenome, that tells you
exactly where thesplice junctions are.
And you can take the exons thathave a 5 prime splice site,
and align the sequences alignedto the exon/intron boundary
and get a precise motif.
And then you can tally upthe frequencies of the bases,
and make a tablelike this, which
we would call aposition-specific probability
matrix.
And what you could thendo to predict additional,
say, five prime splice-sitemotifs in other genes--
for example, genes whereyou didn't get a good CDNA
coverage, because let'ssay they're not expressed
in the cells that youanalyzed-- you could then
make this odds ratio here.
So here we have acandidate sequence.
So the motif is nine positions,often numbered minus 3
to minus 1, would be theexonic parts of this.
And then plus 1 to plus6 would be the first six
bases of the intron.
That's just theconvention that's used.
I'm sure it's going to drivethe computer scientists crazy
because we're notstarting at 0, but that's
usually what's usedin the literature.
And so we have anine-based motif.
And then we're going tocalculate the probability
of generating thatparticular sequence as given
plus-- meaning givenour foreground,
or motif model-- as theproduct of the probability
of generating the first base insequence, S1, using the column
probability in theminus 3 position.
So if the first base is AC,for example, that would be 0.4.
And then the probability ofgenerating the second base
in the sequence using thenext column, and so forth.
If you made a vector foreach position that had a 1
for the base thatoccurred at that position,
and a 0 for the otherbases, and then you
just did the dot product of thatwith the matrix, you get this.
So, we multiply probabilities.
So that is assumingindependence between positions.
And so that's a key assumption--weight matrices assume
that each position in themotif contributes independently
to the overallstrength of that motif.
And that may or may not betrue-- they don't assume
that it's homogeneous,that is you
have usually in a typicalcase, different probabilities
in different columns,so it's inhomogeneous,
but assumes independence.
And then you often wantto use a background model.
For example, if yourgenome composition
is 25% of each ofthe nucleotides,
you could just have abackground probability that
was equally likelyfor each of the four,
and then calculate theprobability, S given minus,
of generating thatparticular [INAUDIBLE]
under the background model, andtake the ratio of those two.
And the advantage ofthat is that then you
can find sequencesthat are-- that ratio,
it could be 100 times morelike a 5 prime splice site
than like background--or 1,000 times.
Or you have some sortof scaling on it.
Whereas, if you justtake the raw probability,
it's going to be somethingthat's on the order of 1/4
to a 1/9.
So some very, very smallnumber that's a little hard to
work with.
So when peopletalk about motifs,
they often use languagelike exact, or precise,
versus degenerate, strongversus weak, good versus lousy,
depending on thecontext, who's listening.
So an example of these wouldbe a restriction enzyme.
You often sayrestriction enzymes have
very precisesequence specificity,
they only cut-- echoR1 only cuts a GAA TTC.
Whereas, a TATA binding proteinis somewhat more degenerate.
It'll bind to a range of things.
So I use degenerate there, youcould say it's a weaker motif.
You'll often-- if you wantto try to make this precise,
then the language ofentropy information
offers additional terminology,like high information
content, low entropy, et cetera.
So let's take a look at this asperhaps a more natural, or more
precise way of describingwhat we mean, here.
So imagine you have a motif.
We're going to do amotif of length one--
just keep the mathsuper simple, but you'll
see it easily generalizes.
So you have probabilities of thefour nucleotides that are Pk.
And you have backgroundprobabilities, qk.
And we're going to assumethose are all uniform,
they're all a quarter.
So then the statistical,or Shannon entropy
of a probability distribution--or vector of probabilities,
if you will-- is defined here.
So H of q, where q is adistribution or, in this case,
vector, is defined as minusthe summation of qk log qk,
in general.
And then if you wantedto be in units of bits,
you'd use log base 2.
So how many people haveseen this equation before?
Like half, I'm going to go with.
OK, good.
So who can tell mewhy, first of all--
is this a positivequantity, negative quantity,
non-negative, or what?
Yeah, go ahead.
AUDIENCE: Log qk is alwaysgoing to be negative.
And so thereforeyou have to take
the negative of the sumof all the negatives
to get a positive number.
PROFESSOR: Right,so this, in general,
is a non-negativequantity, because we
have this minus sign here.
We're taking logs of thingsthat are between 0 and 1.
So the logs are negative, right?
OK.
And then what would bethe entropy if I say that
the distribution q isthis-- 0100, meaning,
it's a motif that's 100% C?
What is the entropy of that?
What was your name?
AUDIENCE: William.
PROFESSOR: William.
AUDIENCE: So theentropy would be 0,
because the vector is determinedin respect of the known
certainty.
PROFESSOR: Right.
And we do the math--you'll get, for the C term,
you'll have a sum.
You'll have threeterms that are 0 log
0-- it might crash yourcalculator, I guess.
And then you'll have oneterm that is 1 log 1.
And so 1 log 1, that's easy.
That's 0, right?
This, you couldsay, is undefined.
But using L'Hospital's rule--by continuity, x log x,
you take the limit,as x gets small, is 0.
So this is defined to be0 in information theory.
And this is always, always 0.
So that comes out to be 0.
So it's deterministic.
So entropy is ameasure of uncertainty,
and so that makes sense-- ifyou know what the base is,
there's no uncertainty,entropy is 0.
So what about this vector-- 1/4,1/4, 25% of each of the bases,
what is H of q?
Anyone?
I'm going to makeyou show me why,
so-- Anyone wantto attempt this?
Levi?
AUDIENCE: I think it's 2.
PROFESSOR: 2, OK.
Can you explain?
AUDIENCE: Becausethe log of the 1/4's
is going to be negative 2.
And then you'remultiplying that by 1/4,
so you're getting 1/2 for eachand adding it up equals 2.
PROFESSOR: Right,in sum, there are
going to be four terms thatare 1/4 times log of a 1/4.
This is minus 2, 1/4 timesminus 2 is minus 1/2,
4 times minus 1/2 isminus 2, and then you
change the sign, becausethere's this minus in front.
So that equals 2.
And what about this one?
Anyone see that one?
This is a coin flip, basically.
All right?
It's either A or G. [INAUDIBLE].
Anyone?
Levi, want to do this one again?
AUDIENCE: It's 1.
PROFESSOR: OK, and why?
AUDIENCE: Because you have twoterms of 0 log 0, which is 0.
And two terms of 1/2times the log of 1/2,
which is just negative 1.
So you have 2 halves.
PROFESSOR: Yeah.
So two terms like that.
And then there's goingto be two terms that
are something that turnsout to be 0-- 0 log 0.
And then there'sa minus in front.
So that will be 1.
So a coin flip has onebit of information.
So that's basicallywhat we mean.
If you have a fair coin andyou don't know the outcome,
we're going tocall that one bit.
And so a base that could beany of the four equally likely
has twice as much uncertainty.
All right, and this is relatedto the Boltzmann entropy
that you may be familiar withfrom statistical mechanics,
which is the log of the numberof states, in that if you have
N states, and they'reall equally likely, then
it turns out that theShannon entropy turns out
to be log of the number states.
We saw that here-- fourstates, equally likely,
comes out to be log of 4 or 2.
And that's true in general.
All right, so youcan think of this
as a generalization of Boltzmannentropy, if you want to.
OK, so why did hecall it entropy?
So it turns outthat Shannon, who
was developing thisin the late '40s,
as developing a theoryof communication,
scratched his head a little bit.
And he talked to his friend,John von Neumann-- none
other than him, involvedin inventing computers--
and he says, "My concernwas what to call it.
I thought of callingit information.
But the word was overly used."
OK, so back in 1949, informationwas already overused.
"And and so I decidedto call it uncertainty."
And then he discussed itwith John von Neumann,
and he had a better idea.
He said, "You shouldcall it entropy.
In the first place,your certainly function
has already been usedin statistical mechanics
under that name," soit already has a name.
"And the second place,and more important,
nobody knows what entropyreally is, so in a debate,
you always have the advantage."
So keep that in mind.
After you've taken this class,just start throwing it around
and you will wina lot of debates.
So how is informationrelated to entropy?
So the way we're goingto define it here,
which is how it'soften defined, is
information is reductionin uncertainty.
So, if I'm dealingwith an unknown DNA
sequence, thelambda phage genome,
and it has 25% of eachbase, if you tell me,
I'm going to send you twobases, I have no idea.
They could be any pair of bases.
My uncertainty is2 bits per base,
or 4 bits before youtell me anything.
If you then tell me,it's the TA motif,
which is always T followedby A, then now my uncertainty
is 0, so the amountof information
that you just gave me is 4 bits.
You reduced my uncertaintyfrom 4 bits to 0.
So we define the informationat a particular position
as the entropybefore-- before meaning
the background, the backgrounda sort of your null hypothesis--
minus the entropy after--so after you've told me
that this is aninstance of that motif,
and it has a particular model.
So, in this case, youcan see the entropy
is going to be entropy before.
This is just H of qright here, this term.
And then minus thisterm, which is H of p.
So, if it's uniform, we saidH of q is 2 bits per position.
And so, so the informationcontent of the motif is just 2
minus the entropyof that motif model.
In general, it turns out ifthe positions in the motif
are independent, thenthe information content
of the motif is 2wminus H of motif,
where w is itwidth of the motif.
So for example, the entropyof the motif of-- we
said the entropy ofthis is 2 bits, right?
Therefore, the informationcontent is what?
If this is our-- let's say thisis a P. This is our routine.
Are you starting to generate?
What is its information content?
AUDIENCE: 0?
PROFESSOR: 0.
Why is it 0?
Yeah, back row.
AUDIENCE: Because theinformation content
of that is 0, andthen the information
content of the knownhypothesis, so to say, is 0.
Sorry, both of them are 2.
So 2 minus 2 is 0.
PROFESSOR: The entropyof the background
is 2, and the entropyif this is also 2.
So 2 minus 2 is 0.
And what about this?
Let's say this wasour motif, it's
a motif that's either A or G.We said the entropy of this
is 1 bit, so whatis the information
content of this motif?
AUDIENCE: 1.
PROFESSOR: 1, and why is it 1?
AUDIENCE: Background is2, and entropy here is 1.
PROFESSOR: Backgroundis 2, entropy is 1.
OK?
And what about if I tell youit's the echo R1 restriction
enzyme?
So it's GAA TTC,a six-base motif
precise-- it hasto be those bases?
What is the informationcontent of that motif?
In the back?
AUDIENCE: It's 12.
PROFESSOR: 12-- 12 what?
AUDIENCE: 12 bits.
PROFESSOR: 12 bits,and why is that?
AUDIENCE: Because thebackground is 2 times 6.
So 6 bases, and 2 bits for each.
And you have all thebases are determined
at the specific[INAUDIBLE] enzyme site.
So the entropy of that is0, since 12 minus 0 is 12.
PROFESSOR: Right, theentropy of that motif is 0.
You imagine 4,096possible six-mers.
One of them has probably 1.
All the others have 0.
You're going tohave that big sum.
It's going to comeout to be 0, OK?
Why is this usefulat all, or is it?
One of the reasons whyit's useful-- sorry,
that's on a later slide.
Well, just hang withme, and it will be clear
why it's useful in a few slides.
But for now, wehave a description
of information content.
So the echo R1 site has12 bits of information,
a completely randomposition has 0,
and a short four-cutterrestriction enzyme
would have 2 times 4, 8bits of information, right,
and an eight-cutter.
So you can see as therestriction enzyme gets
longer, moreinformation content.
So let's talk about themotif finding problem,
and then we'll return to theusefulness of information
content.
So can everyone seethe motif that's
present in all these sequences?
If anyone can't,please let me know.
You probably can't.
Now, what now?
These are the same sequences,but I've aligned them.
Can anyone see a motif?
PROFESSOR: GGG GGG.
PROFESSOR: Yeah,I heard some G's.
Right.
so there's this motifthat's over here.
It's pretty weak, andpretty degenerate.
There's definitelysome exceptions,
but you can definitely seethat a lot of the sequences
have at least GGC,possibly an A after that.
Right, so this is theproblem we're dealing with.
You have a bunch of promoters,and the transcription factor
that binds may be fairlydegenerate, maybe because it
likes to bind cooperativelywith several of its buddies,
and so it doesn'thave to have a very
strong instance ofthe motif present.
And so, it can be quitedifficult to find.
So that's why there's a realbio-informatics challenge.
Motif finding is not done bylining up sequences by hand,
and drawing boxes--although that's
how the first motif wasfound, the TATA box.
That's why it's called theTATA box, because someone just
drew a box in asequence alignment.
But these days,you need a computer
to find-- most motifs requiresome sort of algorithm to find.
Like I said, it's essentiallya local multiple alignment
problem.
You want multiple alignment, butit doesn't have to be global.
It just can be local, it canbe just over a sub-region.
There are basically atleast three different sort
of general approaches to theproblem of motif finding.
One approach is the so-calledenumerative, or dictionary,
approach.
And so in thisapproach, you say,
well, we're lookingfor a motif of length 6
because this is a leucine zippertranscription factor that we're
modeling, and they usuallyhave binding sites around 6,
so we're going to guess 6.
And we're going toenumerate all the six-mers,
there's 4,096 six-mers.
We're going to countup their occurrences
in a set of promoters that, forexample, are turned on when you
over-express thisfactor, and look
at those frequenciesdivided by the frequencies
of those six-mers insome background set--
either random sequences, orpromoters that didn't turn on.
Something like that.
You have twoclasses, and you look
for statistical enrichment.
This approach, this is fine.
There's nothing wrongwith this approach.
People use it all the time.
One of the downsides,though, is that you're
doing a lot ofstatistical tests.
You're essentiallytesting each six-mer--
you're doing 4,096statistical tests.
So you have to adjust thestatistical significance
for the number oftests that you do,
and that can reduce your power.
So that's one main drawback.
The other reasonis that maybe you
don't see-- maybe this proteinbinds a rather degenerate
motif, and a precisesix-mer is just too precise.
None of them willoccur often enough.
You really have to havea degenerate motif that's
C R Y G Y. That's reallythe motif that it binds to,
and so you don'tsee it unless you
use something more degenerate.
So you can generalizethis to use
regular expressions, et cetera.
And it's a reasonable approach.
Another approach that we'lltalk about in a moment
is probabilisticoptimization, where
you wander around the possiblespace of possible motifs
until you find onethat looks strong.
And we'll talk about that.
And then they're deterministicversions of this, like me.
We're going to focustoday on this second one.
Mostly because it's a little bitmore mysterious and interesting
as an algorithm.
And it's also [INAUDIBLE].
So, if the motif landscapelooked like this,
where imagine allpossible motifs,
you've somehow come up with a2D lattice of the possible motif
sequences.
And then the strength ofthat motif, or the degree
to which that motif descriptioncorresponds to the 2 motif
is represented bythe height here.
Then, there's basicallyone optimal motif,
and the closer you get tothat, the better fit it is.
Then our problem is goingto be relatively easy.
But it's also possible thatit looks something like this.
There's a lot ofsort of decoy motifs,
or weaker motifs that areonly slightly enriched
in the sequence space.
And so you can easilyget tripped up,
if you're wanderingaround randomly.
We don't know a priori,and it's probably not
as simple as the first example.
And so that's oneof the issues that
motivates thesestochastic algorithms.
So just to sort ofput this in context--
the Gibbs motif sampler thatwe're going to be talking about
is a Monte Carloalgorithm, so that just
means it's an algorithmthat basically does
some random samplingsomewhere in it,
so that the outcomethat you get isn't
necessarily deterministic.
Your run it at differenttimes, and you'll actually
get differentoutputs, which can be
a little bit disconcertingand annoying at times.
But it turns out to beuseful in some cases.
There's also a special caseof a Las Vegas algorithm,
where it knows when itgot be optimal answer.
But in general, not.
In general, youdon't know for sure.
So Gibbs motifsimpler is basically
a model where you have alikelihood for generating
a set of sequences,S. So imagine
you have 40 sequences thatare bacterial promoters, each
of 40 bases long, let's say.
That's your S. And sowhat you want to do,
then, is consider a model thatthere is a particular instance
of a motif you'retrying to discover,
at a particular position ineach one of those sequences.
Not necessarilythe same position,
just some positionin each sequence.
And we're going to describethe composition of that motif
by a weight matrix.
OK, one of these matricesthat's of width, W, and then
has the four rows specifyingthe frequencies of the four
nucleotides at that position.
The setup here is that youwant to calculate or think
about the probability of S commaA, S is the actual sequences,
and A is basically avector that specifies
the location of the motifinstance in each of those 40
sequences.
You want to calculate that,conditional on capital
theta-- which isour weight matrix.
So that's going tobe, in this case,
I think I made a motif of length8, and it's shown there in red.
There's going to be aweight matrix of length 8.
And then there's going tobe some sort of background
frequency vector thatmight be the background
composition in the genomeof E.coli DNA, for example.
And so then the probabilityof generating those sequences
together with thatparticular locations
is going to beproportional to this.
Basically, use the littletheta background vector
for all the positions, exceptthe specific positions that
are inside the motif,starting at position AK here.
And then you use theparticular column
of the weight matrixfor those 8 positions,
and then you go back to usingthe background probabilities.
Question, yeah?
AUDIENCE: Is thisfor finding motifs
based on other known motifs?
Or is this--
PROFESSOR: No, whatwe're doing-- I'm sorry,
I should've prefaced that.
We're doing denovo motif finding.
We're going to tellthe algorithm-- we're
going to give the algorithm somesequences of a given length,
or it can even beof variable lengths,
and we're going togive it a guess of what
the length of the motif is.
So we're going tosay, we think it's 8.
That could come fromstructural reasons.
Or often you reallyhave no idea,
so you just guess thatyou know, a lot of times
it's kind of short, so we'regoing to go with 6 or 8,
or you try different lengths.
Totally de novo motif finding.
OK, so how does algorithm work?
You have N sequences oflength, L. You guessed
that the motif has width, W.You choose starting positions
at random-- OK, so this isa vector, of the starting
position in eachsequence, we're going
to choose completely randompositions within the end
sequences.
They have to be atleast W before the end--
so we'll have a whole motif,that's just an accounting thing
to make it simpler.
And then you choose oneof the sequence at random.
Say, the first sequence.
You make a weight matrixmodel of width, W,
from the instances inthe other sequences.
So for example--actually, I have
slides on this, so we'lljust do it with the slides,
you'll see what thislooks like in a moment.
And so you have instanceshere in the sequence,
here in this one, here.
You take all those, line themup, make a weight matrix out
of those, and then you scorethe positions in sequence 1
for how well they match.
So, let me just do this.
These are your motif instances.
Again, totally randomat the beginning.
Then you build a weightmatrix from those
by lining them up, andjust counting frequencies.
Then you pick a sequenceat random-- yeah,
your weight matrix doesn'tinclude that sequence,
typically.
And then you takeyour theta matrix
and you slide italong the sequence.
You consider everysub-sequence of length,
W-- the one thatgoes from 1 to W,
to one that goes from2 to W plus 1, et
cetera, all the wayalong the sequence,
until you get to the end.
And you calculate theprobability of that sequence,
using that likelihoodthat I gave you before.
So, it's basically theprobability generating sequence
where you use the backgroundvector for all the positions,
except for the particularmotif instance that you're
considering, and use themotif model for that.
Does that make sense?
So, if you happen to have a goodlooking occurrence of the motif
at this position,here, in the sequence,
then you would geta higher likelihood.
So for example, if the motifwas, let's say it's 3 long,
and it happenedto favor ACG, then
if you have a sequencehere that has,
let's say, it's gotTTT, that's going
to have a low probabilityin this motif.
It's going to be 0.1 cubed.
And then if you have anoccurrence of, say, ACT,
that's going to havea higher occurrence.
It's going to be 0.7times 0.7 times 0.1.
So, quite a bit higher.
So you start, it'll below for this triplet
here-- so I'll puta low value here.
TTA is also going to be low.
TAC, also low.
But ACT, that matches 2out of 3 to the motif.
It's going to be a lot better.
And then CT is going tobe low again, et cetera.
So you just slide this alongand calculate probabilities.
And then what you do is yousample from this distribution.
These probabilities don'tnecessarily sum to 1.
But you re-normalize themso that they do sum to 1,
you just add them up,divide by the sum.
Now they sum to 1.
And now you sample thosesites in that sequence,
according to thatprobability distribution.
Like I said, in thiscase you might end up
sampling-- that's thehighest probability site,
so you might sample that.
But you also might sampleone of these other ones.
It's unlikely youwould sample this one,
because that's very low.
But you actually sometimesample one that's not so great.
So you sample a startingposition in that sequence,
and you basically-- whereveryou would originally
assign in sequence 1, now youmove it to that new location.
We've just changedthe assignment
of where we think the motifmight be in that sequence.
And then you chooseanother sequence
at random from your list.
Often you go through thesequences sequentially,
and then you make a newweight matrix model.
So how will that weight matrixmodel differ from the last one?
Well it'll differbecause the instance
of the motif in sequence 1is now at a new location,
in general.
I mean, you might have sampledthe exact same location you
started, but ingeneral it'll move.
And so now, you'll got aslightly different weight
matrix.
Most of the data goinginto it, N minus 1,
is going to be the same.
But one of them isgoing to be different.
So it'll change a little bit.
You make a new weightmatrix, and then you
pick a new sequence.
You slide that weightmatrix along that sequence,
you get this distribution, yousample from that distribution,
and you keep going.
Yeah, this was describedby Lorenz in 1993,
and I'll post that paper.
OK, so you sample aportion with that,
and you update the location.
So now we sampled thatreally high probably one,
so we moved the motif overto that new orange location,
there.
I don't know if theseanimations are helping at all.
And then you updateyour weight matrix.
And then you iterateuntil convergence.
So you typically havea set of end sequences,
you go through them once.
You have a weight matrix, andthen you go through them again.
You go through a few times.
And maybe at acertain point, you
end re-sampling thesame sites as you
did in the last iteration--same exact sites.
You've converged.
Or, you keep trackof the theta matrices
that you get after going throughthe whole set of sequences,
and from oneiteration to the next,
the theta matrix hasn'treally changed much.
You've converged.
So let's do an example of this.
Here I made up a motif, andthis is a representation
where the four bases havethese colors assigned to them.
And you can see that thismotif is quite strong.
It really stronglyprefers A at this position
here, and et cetera.
And I put it at the sameposition in all the sequences,
just to make life simple.
And then a former studentin the lab, [INAUDIBLE],
he implemented the GibbSample in Matlab, actually,
and made a little videoof what's going on.
So the upper part showsthe current weight matrix.
Notice it's prettyrandom-looking
at the beginning.
And the right partsshow where the motif
is, or the position thatwe're currently considering.
So this shows theposition that was last
sampled in the last round.
And this shows theprobability density
along each sequence ofwhat's the probability
that the motif occursat each particular place
in the sequence.
And that's whathappens over times.
So it's obviously veryfast, so I'll run it again
and maybe pause it partway.
We're starting from avery random-looking motif.
This is what you get after nottoo many iterations-- probably
like 100 or so.
And now you can see your motif--your weight matrix is now quite
biased, and now favors A atthis position, and so forth.
And the locations ofyour motif, most of them
are around thisposition, around 6 or 7
in the sequence-- that'swhere we put the motif in.
But not all, some of them.
And then you can see theprobabilities-- white is high,
black is low-- insome sequences,
it's very, veryconfident, the motif
is exactly at that position,like this first sequence here.
And others, it'sgot some uncertainty
about where the motif might be.
And then we let itrun a little bit more,
and it eventuallyconverges to being
very confident that the motifhas the sequence, A C G T A G C
A, and that it occurs atthat particular position
in the sequence.
So who can tell me whythis actually works?
We're choosingpositions at random,
updating a weight matrix,why does that actually
help you find the real motifthat's in these sequences?
Any ideas?
Or who can make an argumentthat it shouldn't work?
Yeah?
What was your name again?
AUDIENCE: Dan.
PROFESSOR: Dan, yeah, go ahead.
AUDIENCE: So, couldn't it,sort of, in a certain situation
have different sub-motifsthat are also sort of rich,
and because you'resampling randomly
you might be stuck insideof those boundaries
where you're searchingyour composition?
PROFESSOR: Yeah, that's good.
So Dan's point isthat you can get
stuck in sub-optimalsmaller or weaker motifs.
So that's certainly true.
So you're saying, maybethis example is artificial?
Because I had started withtotally random sequences,
and I put a pretty strongmotif in a particular place,
so there were no-- it'smore like that mountain,
that structure where there'sjust one motif to find.
So it's perhaps an easy case.
But still, what I want to knowis how does this algorithm,
how did it actuallyfind that motif?
He implemented exactly thatalgorithm that I described.
Why does it tend to gotowards [INAUDIBLE]?
After a long time,remember it's a long time,
it's hundreds of iterations.
AUDIENCE: So you're coveringa lot in the sequence,
just the random searching ofthe sequence, when you're--
PROFESSOR: Thereare many iterations.
You're consideringmany possible locations
within the sequences,that's true.
But why does it eventually-- whydoes it converge to something?
AUDIENCE: I guess,because you're
seeing your motif moreplainly than you're
seeing other random motifs.
So it will hit it morefrequently-- randomly.
And therefore,converge [INAUDIBLE].
PROFESSOR: Yeah, that's true.
Can someone give a moreintuition behind this?
Yeah?
AUDIENCE: I justhave a question.
Is each iterationan independent test?
For example, if you iterateover the same sequence base
100 times, and you're updatingyour weight matrix each time,
does that mean it is theupdating the weight matrix also
taking into accountthat the previous--
that this is thesame sample space?
PROFESSOR: Yeah,the weight matrix,
after you go through oneiteration of all the sequences,
you have a weight matrix.
You carry that over, youdon't start from scratch.
You bring that weightmatrix back up,
and use that to score, let'ssay, that first sequence.
Yeah, the weight matrixjust keeps moving around.
Moves a little bit everytime you sample a sequence.
AUDIENCE: So you constantlyget a strong [INAUDIBLE].
PROFESSOR: Well, does it?
AUDIENCE: Well, I guess--
PROFESSOR: Would itconstantly get stronger?
What's to make it getstronger or weaker?
I mean, this is sortof-- you're on the track.
AUDIENCE: If it israndom, then there's
some probability that you'regoing to find this motif again,
at which point itwill get stronger.
But, if it's-- givenenough iterations,
it gets stronger as long as youhit different spots at random.
PROFESSOR: Yeah, yeah.
That's what I'm-- I thinkthere was a comment.
Jacob, yeah?
AUDIENCE: Well, you can thinkabout it as a random walk
through the landscape.
Eventually, it hasa high probability
of taking that motif, andupdating the [INAUDIBLE]
direction, just from theprobability of [INAUDIBLE].
PROFESSOR: OK.
AUDIENCE: And giventhe [INAUDIBLE].
PROFESSOR: OK, let's say Ihad 100 sequences of length,
I don't know, 30.
And the width of the motif is 6.
So here's our sequences.
We choose random positionsfor the start position,
and let's say it wasthis example where
the real motif, I put it righthere, and all the sequences.
That's where it starts.
Does this help?
So it's 30 and 6, so there's25 possible start positions.
I did that to makeit a little easier.
So what would happen inthat first iteration?
What w can you sayabout what the weight
matrix would look like?
It's going to be a width, W, youknow, columns 1, 2, 3, up to 6.
We're going to give it100 positions at random.
The motif is here--let's say it's
a very strong motif,that's a 12-bit motif.
So it's 100%-- it's echo R1.
It's that.
What would that weightmatrix look like,
in this first iteration,when you first
just sample the sites at random?
What kind of probabilitieswould it have?
AUDIENCE: [INAUDIBLE]
PROFESSOR: Equal?
OK-- perfectly equal?
AUDIENCE: Roughly.
PROFESSOR: OK.
Any box?
Are we likely to hitthe actual motif, ever,
in that first encryption?
AUDIENCE: No, because youhave a uniform probability,
of sampling.
Well, uniform at eachone of the 25 positions?
PROFESSOR: Right.
AUDIENCE: Right now, you'renot sampling proportional
to the likelihood.
PROFESSOR: So the chance ofhitting the motif in any given
sequence is what?
AUDIENCE: 1/25.
PROFESSOR: 1/25.
We have 100 sequences.
AUDIENCE: So that'sfour out of--
PROFESSOR: So on average,I'll hit the motif four times,
right.
The other 96 positions willbe essentially random, right?
So you initially said this wasgoing to be uniform, right?
On average, 25% of eachbase, plus or minus
a little bit of samplingerror-- could be 23, 24, 26.
But now, you pointed outthat it's going to be four.
You're going to hit themotif four times, on average.
So, can you say anything more?
AUDIENCE: Could you maybehave a slightly bias towards G
on the first position?
Slightly biased towards Aon the second and third?
Slightly biased towards Ton the fourth and fifth.
And slightly biasedtowards C in the sixth?
So it would be slightly biased--
PROFESSOR: Right, soremind me of your name?
AUDIENCE: I'm Eric.
PROFESSOR: Eric,OK, so Eric says
that because fourof the sequences
will have a G atthe first position,
because those are the oneswhere you sampled the motif,
and the other 96 will haveeach of the four bases equally
likely, on average you havelike 24%-- plus 4 for G, right?
Something like28%-- this will be
28%, plus or minus a little bit.
And these other ones will bewhatever that works out to be,
23 or something likethat-- 23-ish, on average.
Again, it may notcome out exactly
like-- G may not be numberone, but it's more often
going to be number onethan any other base.
And on average, it'll be morelike 28% rather than 25%.
And similarly forposition two, A
will be 28%, andthree, and et cetera.
And then the sixthwill be-- C will
have a little bit of a bias.
OK, so even in thatfirst round, when
you're samplingthat first sequence,
the matrix is goingto be slightly biased
toward the motif-- dependinghow the sampling went.
You might not have hit anyinstances of motif, right?
But often, it'llbe a little bit--
Is that enough ofa bias to give you
a good chance of selecting themotif in that first sequence?
AUDIENCE: You mean inthe first iteration?
PROFESSOR: Let's say the firstrandom sequence size sample.
No.
You're shaking your head.
Not enough of abias because-- it's
0.28 over 0.25 to thesixth power, right?
So it's like--
AUDIENCE: The likelihoodis still close 1.
Like, that's [INAUDIBLE] ratio.
PROFESSOR: So it's somethinglike 1.1 to the sixth,
or something like that.
So it might be close to 2,might be twice as likely.
But still, there's 25 positions.
Does that make sense?
So it's quite likelythat you won't
sample the motif in that first--you'll sample something else.
Which will take it awayin some random direction.
So who can tell me how thisactually ends up working?
Why does it actuallyconverge eventually,
if you get it long enough?
AUDIENCE: [INAUDIBLE].
PROFESSOR: So theinformation content,
what will happen to that?
So the information content,if it was completely random--
we said that would be uniform.
That would be zeroinformation content, right?
This matrix, which has around28% at six different positions,
will have an information contentthat's low, but non-zero.
It might end up beinglike 1 bit, or something.
And if you then sample motifsthat are not the motif,
they will tend to reducethe information content,
tend to bring itback toward random.
If you sample locationsthat have the motif,
what will that do tothe information content?
Boost it.
So what would you expect if wewere to plot the information
content over time, whatwould that look like?
AUDIENCE: It shouldtrend upwards,
but it could fluctuate.
PROFESSOR: Yeah.
AUDIENCE: Over thenumber of iterations?
PROFESSOR: I thinkI blocked it here.
Let me see if Ican-- Let's try this.
I think I plotted it.
OK, never mind.
I wanted to keepit very mysterious,
so you guys haveto figure it out.
The answer is that it will--basically what happens is you
start with a weightmatrix like this.
A lot of times, because the biasfor the motif is quite weak,
a lot of timesyou'll sample-- even
for a sequence,what matters is--
like, if you had a sequencewhere the location, initially,
was not the motif, and then yousample another location that's
not the motif, that's notreally going to change anything.
It'll change thingsa little bit,
but not in anyparticular direction.
What really matters iswhen you get to a sequence
where you already had the motif,if you now sample one that's
not the motif, your informationcontent will get weaker.
It will become more uniform.
But if you have a sequencewhere it wasn't the motif,
but now you happen to sample themotif, then it'll get stronger.
And when it getsstronger, it will then
be more likely to pick themotif in the next sequence,
and so on.
So basically what happensto the information content
is that over manyiterations-- it starts near 0.
And can occasionallygo up a little bit.
And then once it exceeds thethreshold, it goes like that.
So what happens is itstumbles onto a few instances
of the motif that biasthe weight matrix.
And if they don'tbias it enough,
it'll just fall off that.
It's like trying toclimb the mountain--
but it's walking ina random direction.
So sometimes it will turnaround and go back down.
But then when it gets highenough, it'll be obvious.
Once you have a, say, 20times greater likelihood
of picking that motif thanany other sequence, most
of the time you will pick it.
And very soon,it'll be stronger.
And the next round,when it's stronger,
you'll have a greaterbias for picking
the motif, and so forth.
Question?
AUDIENCE: For thisspecific example,
M is much greaterthan L minus W.
How true is that forpractical examples?
PROFESSOR: That's avery good question.
There is sometimes-- depends onhow commonly your motif occurs
in the genome, and howgood your data is, really,
and what the sourceof your data is.
So sometimes it canbe very limited,
sometimes-- If you doChIP-Seq you might have 10,000
peaks that you'reanalyzing, or something.
So you could have a huge number.
But on the other hand, ifyou did some functional
assay that's quite laborious fora motif that drives luciferase,
or something, and youcan only test a few,
you might only have 10.
So it varies all over the map.
So that's a good question.
We'll come back tothat in a little bit.
Simona?
AUDIENCE: If youhave a short motif,
does it make sense,then, to reduce
the number ofsequences you have?
Because maybe it won't converge?
PROFESSOR: Reduce thenumber of sequences?
What do you peoplethink about that?
Is that a goodidea or a bad idea?
It's true that itmight converge faster
with a smallernumber of sequences,
but you also mightnot find it all.
So generally you'relosing information,
so you want tohave more sequences
up to a certain point.
Let's just do a couple moreexamples, and I'll come back.
Those are both good questions.
OK, so here's this weak motif.
So this is the one whereyou guys couldn't see it
when I just putthe sequences up.
You can only see itwhen it's aligned--
it's this thing with GGC, here.
And here is, again,the Gibbs Sampler.
And what happened?
Who can summarizewhat happened here?
Yeah, David?
AUDIENCE: It didn't converge.
PROFESSOR: Yeah, itdidn't quite converge.
The motif is usuallyon the right side,
and it found somethingthat's like the motif.
But it's not quite right--it's got that A, it's G A G C,
it should be G G C. And soit sampled some other things,
and it got offtrack a little bit,
because probablyby chance, there
were some things that lookeda little bit like the motif,
and it was findingsome instances of that,
and some instancesof the real motif.
And yeah, it didn'tquite converge.
And you can see thisprobability vectors here,
they have multiple whitedots in many of the rows.
So it doesn't know,it's uncertain.
So it keeps bouncing around.
So it didn't reallyconverge, it was too weak,
it was too challengingfor the algorithm.
This is just a summary of theGibb Sampler, how it works.
It's not guaranteed to convergeto the same motif every time.
So what you generally will wantto do is run it several times,
and nine out of 10 times,you get the same motif.
You should trust that.
Go ahead.
AUDIENCE: Over here, are weoptimizing for convergence
of the value of theinformation content?
PROFESSOR: No, theinformation content
is just describing-- it'sjust a handy single number
description of how biasedthe weight matrix is.
So it's not actuallydirectly being optimized.
But it turns out thatthis way of sampling
tends to increaseinformation content.
It's sort of a self-reinforcingkind of a thing.
But it's notdirectly doing that.
However MEME, more orless, directly does that.
The problem with that isthat, where do you start?
Imagine an algorithmlike this, but where
you deterministically--instead of sampling
from the positions in thesequence, where it might have
a motif in proportionto probabilities,
you just chose the one thathad the highest probability.
That's more or lesswhat MEME does.
And so what arethe pros and cons
of that approach,versus this one?
Any ideas?
OK, one of the disadvantagesis that the initial choice
of-- how you're initiallyseeding your matrix,
matters a lot.
That slight bias-- it mightbe that you had a slight bias,
and it didn't come outbeing G was number one.
It was actually-- T wasnumber one, just because
of the quirks of the sampling.
So what would thisbe, 31 or something?
Anyway, it's higherthan these other guys.
And so then you're alwayspicking the highest.
It'll become aself-fulfilling prophecy.
So that's the problem with MEME.
So the way that MEMEgets around that,
is it uses multipledifferent seeding,
multiple differentstarting points,
and goes to the endwith all of them.
And then it evaluates, how gooda model did we get at the end?
And whichever was thebest one, it takes that.
So it actually takeslonger, but you only
need to run it oncebecause it's deterministic.
You use a deterministicset of starting points,
you run a deterministicalgorithm,
and then you evaluate.
The Gibbs, it cango off on a tangent,
but because it'ssampling so randomly,
it often will fall off,then, and come back
to something that'smore uniform.
And when it's auniform matrix, it's
really samplingcompletely randomly,
exploring the spacein an unbiased way.
Tim?
AUDIENCE: For genomes that haveinherent biases that you know
going in, do you precalculate--do you just recalculate
the weight matrix before, to[? affect those classes? ?]
For example, if youhad 80% AT content,
then you're not lookingfor-- you know, immediately,
that you're going to hit an Aor a T off the first iteration.
So how do you deal with that?
PROFESSOR: Good question.
So these are some featuresthat affect motif finding.
I think that we've now hit atleast a few of these-- number
of sequences, length ofsequences, information content,
and motif, and basicallywhether the background is biased
or not.
So, in general, higherinformation content motifs,
or lower informationcontent, are easier to find--
who thinks higher?
Who thinks lower?
Someone, can you explain?
AUDIENCE: I don't know.
I just guessed.
PROFESSOR: Just a guess?
OK, in back, can you explain?
Lower?
AUDIENCE: Lowinformation content
is basically very uniform.
PROFESSOR: Low informationmeans nearly uniform-- right,
those are very hard to find.
That's like that GGC one.
The high informationcontent motif,
those are the very strongones, like that first one.
Those are much easier to find.
Because when youstumble on to them,
it biases the matrix more, andyou rapidly converge to that.
OK, high informationis easy to find.
So if I have onemotif per sequence,
what about the lengthof the sequence?
Is longer or shorter better?
Is long better?
Who thinks shorter is better?
Shorter-- can youexplain why short?
AUDIENCE: Shouldn't it bethe smaller the search space,
the fewer the problems?
PROFESSOR: Exactly, theshorter the search space,
and your motif, there'sless place for it to hide.
You're more likely to sample it.
Shorter is better.
If you think about-- if youhave a motif like TATA, which
is typically 30bases from the TSS,
if you happen to know that, andyou give it plus 1 to minus 50,
you're giving it asmall region, you
can easily find the TATA box.
If you give it plus 1 tominus 2,000 or something,
you may not find it.
It's diluted, essentially.
Number of sequences--the more the better.
This is a little moresubtle, as Simona was saying.
It affects convergencetime, and so forth.
But in general, themore the better.
And if you guessed thewrong length of your matrix,
that makes it worsethan if you guess
the right length ineither direction.
For example, it's six-basemotif, you guess three.
The information content,even if it's a 12-bit motif,
there's only six bits thatyou could hope to find,
because you can only findthree of those positions.
So clearly, effectivelyit's a smaller information
content, and muchharder to find.
And vice versa.
Another thing thatoccurs in practice
is what's called shifted motifs.
Your motif is G A A T T C.Imagine in your first iteration
you happen to hit several ofthese sequences, starting here.
You hit the motif,but off by two
at several different places.
That'll bias firstposition to be
A, and the second positionto be T, and so forth.
And then you tend to find othershifted versions of that motif.
You may well converge to this--A T C C N N, or something
like that-- whichis not quite right.
It's close, you're veryclose, but not quite right.
And it's not as informationrich as the real motif.
Because it's got those two N'sat the end, instead of G A.
So one thing that'sdone in practice
is a lot of times, every sooften, the algorithm will say,
what would happen if weshifted all of our positions
over to the left by one or two?
Or to the right by one or two?
Would the informationcontent go up?
If so, let's do that.
So basically, shiftedversions of the motif become
local, near-optimal solutions.
So you have to avoid them.
And biased backgroundcomposition
is very difficult to deal with.
So I will just giveyou one or two more
examples of that in amoment, and continue.
So in practice, I would saythe Gibbs Sampler is sometimes
used, or AlignACE, which isa version of Gibbs Sampler.
But probably moreoften, people use
an algorithm called MEME, whichis this EM algorithm, which,
like I said, isdeterministic, so you always
get the same answer,which makes you feel good.
May or may not always be right,but you can try it out here
at this website.
And actually, theFraenkel Lab has
a very nice websitecalled WebMotifs
that runs several differentmotif finders including,
like I said, a MEMEand AlignACE, which
is similar to Gibbs,as well as some others.
And it integrates the output,so that's often a handy thing
to use.
You can read about them there.
And then I just wantedto say a couple words--
this is related to Tim's commentabout the biased background.
How do you actuallydeal with that?
And this related to this notionof a mean bit score of a motif.
So if I were to give you amotif model, P, and a background
model, q, then the naturalscoring system, if you wanted
additives scores, insteadof multiplicative,
you would just take the log.
So log P over q, I would argue,is natural additive scores.
And that's often what you'llsee in a weight matrix-- you'll
see log probabilities, or logsof ratios of probabilities.
And so then youjust add them up,
and it makes life a bit simpler.
And so then, if you were tocalculate what's the mean bit
score-- if I had a bunchof instances of a motif,
it will be given by this formulathat's here in the upper right.
So that's your score.
And this is the mean,where you're sampling over
the probability in using themotif model, probabilities.
So it turns out, then, thatif qk, your background,
is uniform, motif of widthw-- so its probability
of any w-mer, is1/4 to the w, then
it's true that themean bit-score is
2w minus the entropyof the motif, which
is the same as the informationcontent of the motif,
using our previous definition.
So that's just ahandy relationship.
And you can do a little algebrato show that, if you want.
So basically summation Pklog Pk over qk-- this log,
you turn that intoa difference--
so that summation Pklog Pk minus Pk log qk.
And then you can do somerearrangement, and sum them up,
and you'll get this formula.
I'll leave that as an exercise,and any questions on it,
we can do it next time.
So what I wanted to get tois sort of this big question
that I posed earlier--what's the use of knowing
the informationcontent of a motif?
And the answer is that one useis that it's true, in general,
that the motif withn bits of information
will occur about once every 2 tothe n bases of random sequence.
So we said a six-cutterrestriction enzyme, echo R1,
has an informationcontent of 12 bits.
So by this rule, it shouldoccur about once every
to 2 to the 12thbases of sequence.
And if you know your powersof 2, which you should all
commit to memory,that's about 4,000.
2 to the 12th is 4 tothe sixth, is 4,096.
So it'll occur about onceevery 4 [? kb, ?] which
if you've ever cut E. coliDNA, you know is about right--
your fragments come outto be about 4 [? kb. ?]
So this turns out to bestrictly true for any motif
that you can representby a regular expression,
like a precisemotif, or something
where you have a degenerate Ror Y or N in it, still true.
And if you have a moregeneral motif that's
described by weight matrix, thenyou have to define a threshold,
and it's roughlytrue, but not exactly.
All right, so what do youdo when the background
composition is biased,like Tim was saying?
What if it's 80%, A plus T?
So then, it turns out that thismean bit-score is a good way
to go.
So like I said,the mean bit-score
equals the informationcontent in this special case,
where the background is uniform.
But if the backgroundis not uniform,
then you can still calculatethis mean bit-score,
and it'll still be meaningful.
But now it's calledsomething else--
it's called relative entropy.
Actually it has severalnames, relative entropy,
Kullback-Leiblerdistance is another,
and informationfor discrimination,
depending whether you'rereading the Double
E literature, orstatistics, or whatever.
And so it turns outthat if you have
a very biased composition--so here's one that's 75% A T,
probability of A and Tare 3/8, C and G are 1/8.
If your motif is justC 100% of the time,
your information contentby the original formula
that I gave you,would be 2 bits.
However, the relativeentropy will be 3 bits,
if you just plug in thesenumbers into this formula,
it will turn out to be 3 bits.
My question is, whichone better describes
the frequency of C inthe background sequence?
Frequency of thismotif-- the motif
is just a C. You can see thatthe relative entropy says
that actually, that'sstronger than it appears.
Because it's a C, andthat's a rare nucleotide,
it's actually strongerthan it appears.
And so 2 to the 3rdis a better estimate
of its frequency than 2 squared.
So relative entropy.
So what you can dowhen you run a motif
finder in a sequenceof biased composition,
you can say, what'sthe relative entropy
of this motif at the end?
And look at the onesthat are strong.
We'll come back to thisa little more next time.
Next time, we'll talkabout hidden Markov models,
and please take alook at the readings.
And please, those whoare doing projects,
look for moredetailed instructions
to be posted tonight.
Thanks.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587align:start position:0% so uh
align:start position:0%so uh
align:start position:0%so uhthe first portion of it is
align:start position:0%the first portion of it is
align:start position:0%the first portion of it isuh the this title is the drivers of
align:start position:0%uh the this title is the drivers of
align:start position:0%uh the this title is the drivers offlexibility
align:start position:0%flexibility
align:start position:0%flexibilitythat is
align:start position:0%that is
align:start position:0%that isuh through our exploration of the fact
align:start position:0%uh through our exploration of the fact
align:start position:0%uh through our exploration of the factthat the forecast is always wrong though
align:start position:0%that the forecast is always wrong though
align:start position:0%that the forecast is always wrong thoughthere's uncertainty
align:start position:0%there's uncertainty
align:start position:0%there's uncertaintyand the observation that we need to
align:start position:0%and the observation that we need to
align:start position:0%and the observation that we need toexplore what might happen
align:start position:0%explore what might happen
align:start position:0%explore what might happenuh there are certain factors that make
align:start position:0%uh there are certain factors that make
align:start position:0%uh there are certain factors that makeit much more likely that we would have
align:start position:0%it much more likely that we would have
align:start position:0%it much more likely that we would haveuh
align:start position:0%uh
align:start position:0%uhshould have flexibility than not and on
align:start position:0%should have flexibility than not and on
align:start position:0%should have flexibility than not and onthe other hand there are things that act
align:start position:0%the other hand there are things that act
align:start position:0%the other hand there are things that actagainst it
align:start position:0%against it
align:start position:0%against itthere are reasons why flexibility is
align:start position:0%there are reasons why flexibility is
align:start position:0%there are reasons why flexibility iseither not desirable
align:start position:0%either not desirable
align:start position:0%either not desirableor
align:start position:0%or
align:start position:0%orwhich is or the most important thing i
align:start position:0%which is or the most important thing i
align:start position:0%which is or the most important thing iwant to emphasize is why there are
align:start position:0%want to emphasize is why there are
align:start position:0%want to emphasize is why there arecertain factors in
align:start position:0%certain factors in
align:start position:0%certain factors inthe practice of engineering the paradigm
align:start position:0%the practice of engineering the paradigm
align:start position:0%the practice of engineering the paradigmof engineering as we have it that act
align:start position:0%of engineering as we have it that act
align:start position:0%of engineering as we have it that actagainst the idea that we should be
align:start position:0%against the idea that we should be
align:start position:0%against the idea that we should beflexible
align:start position:0%flexible
align:start position:0%flexibleand this is what this topic is about
align:start position:0%and this is what this topic is about
align:start position:0%and this is what this topic is aboutthat is
align:start position:0%that is
align:start position:0%that iswhat are the issues that are for and
align:start position:0%what are the issues that are for and
align:start position:0%what are the issues that are for andagainst flexibility and how we might
align:start position:0%against flexibility and how we might
align:start position:0%against flexibility and how we mightdeal with them uh we can come back to
align:start position:0%deal with them uh we can come back to
align:start position:0%deal with them uh we can come back tosome of the the implications uh later on
align:start position:0%some of the the implications uh later on
align:start position:0%some of the the implications uh later onbut for the moment i want to address
align:start position:0%but for the moment i want to address
align:start position:0%but for the moment i want to addressthese uh five issues
align:start position:0%these uh five issues
align:start position:0%these uh five issuesso
align:start position:0%so
align:start position:0%soa key aspect of flexibility is to delay
align:start position:0%a key aspect of flexibility is to delay
align:start position:0%a key aspect of flexibility is to delaythe design and management decisions that
align:start position:0%the design and management decisions that
align:start position:0%the design and management decisions thatis say all right
align:start position:0%is say all right
align:start position:0%is say all rightwe're prepared to do something
align:start position:0%we're prepared to do something
align:start position:0%we're prepared to do somethingfor example in the garage case we are
align:start position:0%for example in the garage case we are
align:start position:0%for example in the garage case we areready to extend uh
align:start position:0%ready to extend uh
align:start position:0%ready to extend uhadd extra floors if it seems appropriate
align:start position:0%add extra floors if it seems appropriate
align:start position:0%add extra floors if it seems appropriatebut we're not going to
align:start position:0%but we're not going to
align:start position:0%but we're not going toact on it
align:start position:0%act on it
align:start position:0%act on ituntil
align:start position:0%until
align:start position:0%untilwe know what's happening we're not going
align:start position:0%we know what's happening we're not going
align:start position:0%we know what's happening we're not goingto quote pull the trigger as a
align:start position:0%to quote pull the trigger as a
align:start position:0%to quote pull the trigger as aexpression often used in practice uh on
align:start position:0%expression often used in practice uh on
align:start position:0%expression often used in practice uh onit and so we know that it's the
align:start position:0%it and so we know that it's the
align:start position:0%it and so we know that it's thecircumstances are definitely right
align:start position:0%circumstances are definitely right
align:start position:0%circumstances are definitely rightso
align:start position:0%so
align:start position:0%sothere are however
align:start position:0%there are however
align:start position:0%there are howevera way of thinking about it of saying
align:start position:0%a way of thinking about it of saying
align:start position:0%a way of thinking about it of sayingwell why mess around we're going to need
align:start position:0%well why mess around we're going to need
align:start position:0%well why mess around we're going to needthis why don't we build it now why
align:start position:0%this why don't we build it now why
align:start position:0%this why don't we build it now whyshouldn't we just make up our minds do
align:start position:0%shouldn't we just make up our minds do
align:start position:0%shouldn't we just make up our minds doit right rather than dithering around
align:start position:0%it right rather than dithering around
align:start position:0%it right rather than dithering aroundand not knowing what we're doing why
align:start position:0%and not knowing what we're doing why
align:start position:0%and not knowing what we're doing whydon't we be take action and be a real
align:start position:0%don't we be take action and be a real
align:start position:0%don't we be take action and be a realleader leaders so
align:start position:0%leader leaders so
align:start position:0%leader leaders sothis is the
align:start position:0%this is the
align:start position:0%this is thediscussion i'd like to address
align:start position:0%
align:start position:0% so i'm going to call out five factors
align:start position:0%so i'm going to call out five factors
align:start position:0%so i'm going to call out five factorswhich are driving
align:start position:0%which are driving
align:start position:0%which are drivingfor and against the desirability of
align:start position:0%for and against the desirability of
align:start position:0%for and against the desirability offlexibility
align:start position:0%flexibility
align:start position:0%flexibilitythe basic one of course is their
align:start position:0%the basic one of course is their
align:start position:0%the basic one of course is theiruncertainty
align:start position:0%uncertainty
align:start position:0%uncertaintyif we
align:start position:0%if we
align:start position:0%if wedidn't have uncertainty if we absolutely
align:start position:0%didn't have uncertainty if we absolutely
align:start position:0%didn't have uncertainty if we absolutelyknew what was going to happen then we
align:start position:0%knew what was going to happen then we
align:start position:0%knew what was going to happen then weshould optimize for that one particular
align:start position:0%should optimize for that one particular
align:start position:0%should optimize for that one particularstate
align:start position:0%state
align:start position:0%statebut the fact is we don't know what's
align:start position:0%but the fact is we don't know what's
align:start position:0%but the fact is we don't know what'sgoing to happen not only we don't know
align:start position:0%going to happen not only we don't know
align:start position:0%going to happen not only we don't knowwhat's going to happen
align:start position:0%what's going to happen
align:start position:0%what's going to happennext year or the year after or the year
align:start position:0%next year or the year after or the year
align:start position:0%next year or the year after or the yearafter that and so on but we don't know
align:start position:0%after that and so on but we don't know
align:start position:0%after that and so on but we don't knowwhat sequence and next year may be good
align:start position:0%what sequence and next year may be good
align:start position:0%what sequence and next year may be goodin next year after that may be bad or
align:start position:0%in next year after that may be bad or
align:start position:0%in next year after that may be bad orvice versa
align:start position:0%vice versa
align:start position:0%vice versaand those have different implications
align:start position:0%and those have different implications
align:start position:0%and those have different implicationsfor the profitability of the value of
align:start position:0%for the profitability of the value of
align:start position:0%for the profitability of the value ofthe system as a whole
align:start position:0%the system as a whole
align:start position:0%the system as a wholethe second one is this notion of
align:start position:0%the second one is this notion of
align:start position:0%the second one is this notion ofeconomies of scale which i want to go
align:start position:0%economies of scale which i want to go
align:start position:0%economies of scale which i want to gointo in more detail
align:start position:0%into in more detail
align:start position:0%into in more detailbut it basically says if you build it
align:start position:0%but it basically says if you build it
align:start position:0%but it basically says if you build itlarger it is cheaper per unit to build
align:start position:0%larger it is cheaper per unit to build
align:start position:0%larger it is cheaper per unit to buildit and therefore don't mess around with
align:start position:0%it and therefore don't mess around with
align:start position:0%it and therefore don't mess around withsmall
align:start position:0%small
align:start position:0%smalluneconomical uh units of capacity go for
align:start position:0%uneconomical uh units of capacity go for
align:start position:0%uneconomical uh units of capacity go forthe big thing save yourself money and
align:start position:0%the big thing save yourself money and
align:start position:0%the big thing save yourself money anddon't delay
align:start position:0%
align:start position:0% the third one which is up directly
align:start position:0%the third one which is up directly
align:start position:0%the third one which is up directlyopposite that is a discount rate which
align:start position:0%opposite that is a discount rate which
align:start position:0%opposite that is a discount rate whichbasically says
align:start position:0%basically says
align:start position:0%basically saysif you delay decisions if you
align:start position:0%if you delay decisions if you
align:start position:0%if you delay decisions if youbuild the capacity later on you'll be
align:start position:0%build the capacity later on you'll be
align:start position:0%build the capacity later on you'll bedoing it at a discounted rate in current
align:start position:0%doing it at a discounted rate in current
align:start position:0%doing it at a discounted rate in currentso the present so that few it's cheaper
align:start position:0%so the present so that few it's cheaper
align:start position:0%so the present so that few it's cheaperto build something in the future than it
align:start position:0%to build something in the future than it
align:start position:0%to build something in the future than itis now on a present value basis
align:start position:0%is now on a present value basis
align:start position:0%is now on a present value basisto that effect is this notion of
align:start position:0%to that effect is this notion of
align:start position:0%to that effect is this notion oflearning that if you are doing something
align:start position:0%learning that if you are doing something
align:start position:0%learning that if you are doing somethingreasonably new that they haven't made
align:start position:0%reasonably new that they haven't made
align:start position:0%reasonably new that they haven't mademillions of already
align:start position:0%millions of already
align:start position:0%millions of alreadyyou're building
align:start position:0%you're building
align:start position:0%you're buildingum
align:start position:0%um
align:start position:0%uma
align:start position:0%a
align:start position:0%aa power plant for example of a new
align:start position:0%a power plant for example of a new
align:start position:0%a power plant for example of a newdesign or and then you're gonna build
align:start position:0%design or and then you're gonna build
align:start position:0%design or and then you're gonna buildanother one or an oil platform that
align:start position:0%another one or an oil platform that
align:start position:0%another one or an oil platform thatwhen you use the same design second time
align:start position:0%when you use the same design second time
align:start position:0%when you use the same design second timethird time fourth time you figured out
align:start position:0%third time fourth time you figured out
align:start position:0%third time fourth time you figured outor the team the company has figured out
align:start position:0%or the team the company has figured out
align:start position:0%or the team the company has figured outways to organize things better
align:start position:0%ways to organize things better
align:start position:0%ways to organize things bettermaybe maybe some design improvements but
align:start position:0%maybe maybe some design improvements but
align:start position:0%maybe maybe some design improvements butthe cost per unit
align:start position:0%the cost per unit
align:start position:0%the cost per unittypically decrease often significantly
align:start position:0%typically decrease often significantly
align:start position:0%typically decrease often significantlywhen you repeat the same design the same
align:start position:0%when you repeat the same design the same
align:start position:0%when you repeat the same design the samemodule so that makes the practice of
align:start position:0%module so that makes the practice of
align:start position:0%module so that makes the practice ofhaving modules uh
align:start position:0%having modules uh
align:start position:0%having modules uhthere's an advantage to it
align:start position:0%there's an advantage to it
align:start position:0%there's an advantage to itand then finally there's this notion of
align:start position:0%and then finally there's this notion of
align:start position:0%and then finally there's this notion ofcompetitive gaining gaming which is
align:start position:0%competitive gaining gaming which is
align:start position:0%competitive gaining gaming which isquite complex
align:start position:0%quite complex
align:start position:0%quite complexwhich i'm not going to go out uh go into
align:start position:0%which i'm not going to go out uh go into
align:start position:0%which i'm not going to go out uh go intodetail here but to suggest what it is
align:start position:0%detail here but to suggest what it is
align:start position:0%detail here but to suggest what it isbut the basic idea is that sometimes an
align:start position:0%but the basic idea is that sometimes an
align:start position:0%but the basic idea is that sometimes anorganization or a group or an individual
align:start position:0%organization or a group or an individual
align:start position:0%organization or a group or an individualwants to
align:start position:0%wants to
align:start position:0%wants toscare away his competitors by saying i'm
align:start position:0%scare away his competitors by saying i'm
align:start position:0%scare away his competitors by saying i'mdoing it and i'm going to be the leader
align:start position:0%doing it and i'm going to be the leader
align:start position:0%doing it and i'm going to be the leaderin this area and if you try to compete
align:start position:0%in this area and if you try to compete
align:start position:0%in this area and if you try to competewith me you'll lose so at some point it
align:start position:0%with me you'll lose so at some point it
align:start position:0%with me you'll lose so at some point itis a
align:start position:0%is a
align:start position:0%is aan acceptable and desirable strategy to
align:start position:0%an acceptable and desirable strategy to
align:start position:0%an acceptable and desirable strategy toact first now be number one and uh get
align:start position:0%act first now be number one and uh get
align:start position:0%act first now be number one and uh getthe benefits of that
align:start position:0%the benefits of that
align:start position:0%the benefits of thaton the other hand it also means you're
align:start position:0%on the other hand it also means you're
align:start position:0%on the other hand it also means you'remore likely to make the mistakes but
align:start position:0%more likely to make the mistakes but
align:start position:0%more likely to make the mistakes butstill that notion of
align:start position:0%still that notion of
align:start position:0%still that notion oftheir
align:start position:0%their
align:start position:0%theiruh reasons to play in the game of
align:start position:0%uh reasons to play in the game of
align:start position:0%uh reasons to play in the game ofcompetitive games to
align:start position:0%competitive games to
align:start position:0%competitive games toum not delay so these are four elements
align:start position:0%um not delay so these are four elements
align:start position:0%um not delay so these are four elementsi wanted to discuss in uh the next
align:start position:0%i wanted to discuss in uh the next
align:start position:0%i wanted to discuss in uh the nextlittle while
align:start position:0%little while
align:start position:0%little whileso
align:start position:0%so
align:start position:0%sofirst of all i want to
align:start position:0%first of all i want to
align:start position:0%first of all i want torevoke the nation of uncertainty a bit
align:start position:0%revoke the nation of uncertainty a bit
align:start position:0%revoke the nation of uncertainty a bitso
align:start position:0%so
align:start position:0%soa lot of people
align:start position:0%a lot of people
align:start position:0%a lot of peoplewill
align:start position:0%will
align:start position:0%willuse uncertainty and risk as sort of
align:start position:0%use uncertainty and risk as sort of
align:start position:0%use uncertainty and risk as sort ofequivalence
align:start position:0%equivalence
align:start position:0%equivalencewhich implies
align:start position:0%which implies
align:start position:0%which impliessince risk is saying oh this is a bad
align:start position:0%since risk is saying oh this is a bad
align:start position:0%since risk is saying oh this is a badthing um
align:start position:0%thing um
align:start position:0%thing umyou don't talk about the risk of winning
align:start position:0%you don't talk about the risk of winning
align:start position:0%you don't talk about the risk of winningthe lottery the risk of i mean this is a
align:start position:0%the lottery the risk of i mean this is a
align:start position:0%the lottery the risk of i mean this is agood thing but you talk about risk in
align:start position:0%good thing but you talk about risk in
align:start position:0%good thing but you talk about risk interms of bad things i risk failing my
align:start position:0%terms of bad things i risk failing my
align:start position:0%terms of bad things i risk failing myexam i will risk
align:start position:0%
align:start position:0% losing my way i would risk losing some
align:start position:0%losing my way i would risk losing some
align:start position:0%losing my way i would risk losing somemoney whatever
align:start position:0%money whatever
align:start position:0%money whateverso i i think that the notion of
align:start position:0%so i i think that the notion of
align:start position:0%so i i think that the notion ofuh
align:start position:0%uh
align:start position:0%uhthinking of uncertainty as risk is not a
align:start position:0%thinking of uncertainty as risk is not a
align:start position:0%thinking of uncertainty as risk is not agood uh mental state uh because it leads
align:start position:0%good uh mental state uh because it leads
align:start position:0%good uh mental state uh because it leadsto the idea if it's if risk is bad i'm
align:start position:0%to the idea if it's if risk is bad i'm
align:start position:0%to the idea if it's if risk is bad i'mgoing to try to stamp it out uh stu
align:start position:0%going to try to stamp it out uh stu
align:start position:0%going to try to stamp it out uh stumeyers used to use that expression uh
align:start position:0%meyers used to use that expression uh
align:start position:0%meyers used to use that expression uhi'm going to stamp it out it's not good
align:start position:0%i'm going to stamp it out it's not good
align:start position:0%i'm going to stamp it out it's not goodwe're going to eliminate it well first
align:start position:0%we're going to eliminate it well first
align:start position:0%we're going to eliminate it well firstof all you can't eliminate
align:start position:0%of all you can't eliminate
align:start position:0%of all you can't eliminatebut then secondly the uncertainty can be
align:start position:0%but then secondly the uncertainty can be
align:start position:0%but then secondly the uncertainty can begood that you are developing a new
align:start position:0%good that you are developing a new
align:start position:0%good that you are developing a newproduct and maybe you'll be a winner
align:start position:0%product and maybe you'll be a winner
align:start position:0%product and maybe you'll be a winnerthat the uncertainty of your gain um it
align:start position:0%that the uncertainty of your gain um it
align:start position:0%that the uncertainty of your gain um itcan be can be exactly what you want
align:start position:0%can be can be exactly what you want
align:start position:0%can be can be exactly what you wantum if you're a startup you know uh from
align:start position:0%um if you're a startup you know uh from
align:start position:0%um if you're a startup you know uh fromfrom the data that most startups fail
align:start position:0%from the data that most startups fail
align:start position:0%from the data that most startups failif you're simply going on the basis that
align:start position:0%if you're simply going on the basis that
align:start position:0%if you're simply going on the basis thatstartups fail you should never get
align:start position:0%startups fail you should never get
align:start position:0%startups fail you should never getinvolved in it if you're risk-averse
align:start position:0%involved in it if you're risk-averse
align:start position:0%involved in it if you're risk-aversenever get involved in it
align:start position:0%never get involved in it
align:start position:0%never get involved in itbut the
align:start position:0%but the
align:start position:0%but theattractiveness of startups is that they
align:start position:0%attractiveness of startups is that they
align:start position:0%attractiveness of startups is that theymay break through
align:start position:0%may break through
align:start position:0%may break throughand that upside uncertainty is what
align:start position:0%and that upside uncertainty is what
align:start position:0%and that upside uncertainty is whatdrives that kind of activity
align:start position:0%drives that kind of activity
align:start position:0%drives that kind of activityso
align:start position:0%so
align:start position:0%soi'd like to and i encourage you to talk
align:start position:0%i'd like to and i encourage you to talk
align:start position:0%i'd like to and i encourage you to talkabout uncertainties in general rather
align:start position:0%about uncertainties in general rather
align:start position:0%about uncertainties in general ratherthan risk and recognize that we're
align:start position:0%than risk and recognize that we're
align:start position:0%than risk and recognize that we'retalking about a range of future
align:start position:0%talking about a range of future
align:start position:0%talking about a range of futurepossibilities123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787align:start position:0% well since I see a couple of new faces
align:start position:0%well since I see a couple of new faces
align:start position:0%well since I see a couple of new facesI'm going to ask them to stand up
align:start position:0%I'm going to ask them to stand up
align:start position:0%I'm going to ask them to stand upand you can
align:start position:0%
align:start position:0% say everybody can see
align:start position:0%
align:start position:0% you m great perfect okay so this is our
align:start position:0%
align:start position:0% lesson
align:start position:0%
align:start position:0% so I asked
align:start position:0%
align:start position:0% you how are
align:start position:0%
align:start position:0% you
align:start position:0%you
align:start position:0%youis that you in PL in plural yes that's
align:start position:0%is that you in PL in plural yes that's
align:start position:0%is that you in PL in plural yes that'swhere I was going I'm asking all of you
align:start position:0%where I was going I'm asking all of you
align:start position:0%where I was going I'm asking all of youplural so I'm
align:start position:0%plural so I'm
align:start position:0%plural so I'msaying you
align:start position:0%
align:start position:0% plural if I'm asking only
align:start position:0%plural if I'm asking only
align:start position:0%plural if I'm asking onlyone
align:start position:0%
align:start position:0% yeah
align:start position:0%
align:start position:0% comment
align:start position:0%comment
align:start position:0%commentsty
align:start position:0%sty
align:start position:0%stysty you singular and this is assuming
align:start position:0%sty you singular and this is assuming
align:start position:0%sty you singular and this is assumingthat we are good friends or family it's
align:start position:0%that we are good friends or family it's
align:start position:0%that we are good friends or family it'san informal way of asking
align:start position:0%
align:start position:0% you if um well for example if we were in
align:start position:0%you if um well for example if we were in
align:start position:0%you if um well for example if we were ina former relationship then I would say
align:start position:0%a former relationship then I would say
align:start position:0%a former relationship then I would sayCL
align:start position:0%CL
align:start position:0%CLlike instead
align:start position:0%
align:start position:0% of okay
align:start position:0%
align:start position:0% so we have three different versions for
align:start position:0%so we have three different versions for
align:start position:0%so we have three different versions forone single sentence that in English
align:start position:0%one single sentence that in English
align:start position:0%one single sentence that in Englishtranslates into how are
align:start position:0%translates into how are
align:start position:0%translates into how areyou and I want you to notice another
align:start position:0%you and I want you to notice another
align:start position:0%you and I want you to notice anotherthing we're using the
align:start position:0%thing we're using the
align:start position:0%thing we're using theverb to
align:start position:0%
align:start position:0% stay not the verb which means to
align:start position:0%
align:start position:0% be so we will learn a little bit more
align:start position:0%be so we will learn a little bit more
align:start position:0%be so we will learn a little bit moreabout these conjugations and about the
align:start position:0%about these conjugations and about the
align:start position:0%about these conjugations and about thedifference between the verb St to stay
align:start position:0%difference between the verb St to stay
align:start position:0%difference between the verb St to stayand which means to
align:start position:0%and which means to
align:start position:0%and which means tobe so when I ask
align:start position:0%
align:start position:0% you some of you said
align:start position:0%you some of you said
align:start position:0%you some of you saidB
align:start position:0%B
align:start position:0%Bright that's a good
align:start position:0%
align:start position:0% answer you can
align:start position:0%
align:start position:0% say which
align:start position:0%say which
align:start position:0%say whichbecomes
align:start position:0%
align:start position:0% spend a little bit more time on the
align:start position:0%
align:start position:0% I Spanish yes
align:start position:0%
align:start position:0% exactly okay
align:start position:0%
align:start position:0% it means
align:start position:0%it means
align:start position:0%it meanstwo two no as well as well okay also
align:start position:0%two two no as well as well okay also
align:start position:0%two two no as well as well okay alsoalso well maybe you're not always
align:start position:0%also well maybe you're not always
align:start position:0%also well maybe you're not alwaysfeeling
align:start position:0%feeling
align:start position:0%feelinggreat sometimes you can say or you're
align:start position:0%great sometimes you can say or you're
align:start position:0%great sometimes you can say or you'refeeling really really
align:start position:0%
align:start position:0% well sometimes you can
align:start position:0%
align:start position:0% say not bad
align:start position:0%
align:start position:0% or maybe you can
align:start position:0%
align:start position:0% say with your hand that's very
align:start position:0%
align:start position:0% important you can
align:start position:0%
align:start position:0% say okay maybe you were sick and then
align:start position:0%say okay maybe you were sick and then
align:start position:0%say okay maybe you were sick and thenyou got better then you would
align:start position:0%
align:start position:0% say is
align:start position:0%
align:start position:0% like
align:start position:0%
align:start position:0% better
align:start position:0%better
align:start position:0%bettergood when we use
align:start position:0%good when we use
align:start position:0%good when we useBen we mean I feel good I'm good right
align:start position:0%Ben we mean I feel good I'm good right
align:start position:0%Ben we mean I feel good I'm good rightBena is an
align:start position:0%Bena is an
align:start position:0%Bena is anadverb if I say that the pizza is
align:start position:0%adverb if I say that the pizza is
align:start position:0%adverb if I say that the pizza isgood I don't say la
align:start position:0%
align:start position:0% Pizza say la
align:start position:0%
align:start position:0% Pizza
align:start position:0%
align:start position:0% yes when you like something maybe you're
align:start position:0%yes when you like something maybe you're
align:start position:0%yes when you like something maybe you'reeating and your mouth is schol you do
align:start position:0%eating and your mouth is schol you do
align:start position:0%eating and your mouth is schol you dolike this in it when I do it here
align:start position:0%like this in it when I do it here
align:start position:0%like this in it when I do it hereeverybody thinks I'm
align:start position:0%everybody thinks I'm
align:start position:0%everybody thinks I'mcrazy and I'm just doing this
align:start position:0%crazy and I'm just doing this
align:start position:0%crazy and I'm just doing thisGest which means I really like it the
align:start position:0%
align:start position:0% pizza
align:start position:0%pizza
align:start position:0%pizzaokay but you can do it during this hour
align:start position:0%okay but you can do it during this hour
align:start position:0%okay but you can do it during this hourin
align:start position:0%
align:start position:0% class so here you have two words
align:start position:0%class so here you have two words
align:start position:0%class so here you have two wordsBen and well here is
align:start position:0%Ben and well here is
align:start position:0%Ben and well here isfeminine if it was masculine I would say
align:start position:0%feminine if it was masculine I would say
align:start position:0%feminine if it was masculine I would sayyes so this is an adjective and this is
align:start position:0%yes so this is an adjective and this is
align:start position:0%yes so this is an adjective and this isan adverb in English both of them would
align:start position:0%an adverb in English both of them would
align:start position:0%an adverb in English both of them wouldbe good
align:start position:0%be good
align:start position:0%be goodgood but in Italian you have to pay
align:start position:0%good but in Italian you have to pay
align:start position:0%good but in Italian you have to payattention to the difference when you're
align:start position:0%attention to the difference when you're
align:start position:0%attention to the difference when you'reusing an adverb is
align:start position:0%using an adverb is
align:start position:0%using an adverb isBen when it's an adjective
align:start position:0%Ben when it's an adjective
align:start position:0%Ben when it's an adjectiveW and so
align:start position:0%W and so
align:start position:0%W and soon so so Ben is like well yes
align:start position:0%
align:start position:0% well
align:start position:0%
align:start position:0% yes so we're going to do things a little
align:start position:0%yes so we're going to do things a little
align:start position:0%yes so we're going to do things a littlebit different Cy we first bake and then
align:start position:0%bit different Cy we first bake and then
align:start position:0%bit different Cy we first bake and thenwe come back and we study a little bit
align:start position:0%we come back and we study a little bit
align:start position:0%we come back and we study a little bitmore of grammar in detail cuz it's going
align:start position:0%more of grammar in detail cuz it's going
align:start position:0%more of grammar in detail cuz it's goingto take a while
align:start position:0%to take a while
align:start position:0%to take a whiletoate we
align:start position:0%
align:start position:0% need12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227align:start position:0% foreign
align:start position:0%
align:start position:0% tangent
align:start position:0%
align:start position:0% Construction
align:start position:0%
align:start position:0% right okay so what's the situation here
align:start position:0%right okay so what's the situation here
align:start position:0%right okay so what's the situation herewe have two phases
align:start position:0%
align:start position:0% where there's a label M1
align:start position:0%where there's a label M1
align:start position:0%where there's a label M1and two
align:start position:0%and two
align:start position:0%and twoand
align:start position:0%and
align:start position:0%andthey can
align:start position:0%
align:start position:0% freely exchange components A and B so
align:start position:0%freely exchange components A and B so
align:start position:0%freely exchange components A and B sotwo phases
align:start position:0%two phases
align:start position:0%two phasestwo components
align:start position:0%two components
align:start position:0%two componentsand we know that
align:start position:0%
align:start position:0% phase coexistence
align:start position:0%
align:start position:0% at equilibrium
align:start position:0%at equilibrium
align:start position:0%at equilibriumrequires
align:start position:0%
align:start position:0% that the Gibbs free energy is stationary
align:start position:0%that the Gibbs free energy is stationary
align:start position:0%that the Gibbs free energy is stationaryso
align:start position:0%so
align:start position:0%sohere's our little picture
align:start position:0%here's our little picture
align:start position:0%here's our little picturewe have phase a
align:start position:0%we have phase a
align:start position:0%we have phase alet's say phase one
align:start position:0%
align:start position:0% phase two
align:start position:0%phase two
align:start position:0%phase twoand you know let's say a is
align:start position:0%
align:start position:0% a can be
align:start position:0%a can be
align:start position:0%a can bered squares
align:start position:0%red squares
align:start position:0%red squaresand V can be
align:start position:0%and V can be
align:start position:0%and V can begreen circles
align:start position:0%green circles
align:start position:0%green circlesand we know that um
align:start position:0%and we know that um
align:start position:0%and we know that umyou know this boundary is open if this
align:start position:0%you know this boundary is open if this
align:start position:0%you know this boundary is open if thisboundary is open then
align:start position:0%boundary is open then
align:start position:0%boundary is open thenwhat components can freely jump
align:start position:0%what components can freely jump
align:start position:0%what components can freely jumpbetween phases
align:start position:0%between phases
align:start position:0%between phasesthat's something that can happen it's an
align:start position:0%that's something that can happen it's an
align:start position:0%that's something that can happen it's anunconstrained internal process
align:start position:0%unconstrained internal process
align:start position:0%unconstrained internal processwe're not going to stop that from
align:start position:0%we're not going to stop that from
align:start position:0%we're not going to stop that fromhappening
align:start position:0%happening
align:start position:0%happeningso given that these
align:start position:0%
align:start position:0% matter exchanges can happen
align:start position:0%
align:start position:0% how do we determine the equilibrium
align:start position:0%how do we determine the equilibrium
align:start position:0%how do we determine the equilibriumcondition
align:start position:0%condition
align:start position:0%conditionand I say these
align:start position:0%
align:start position:0% these fluctuations
align:start position:0%
align:start position:0% must leave
align:start position:0%
align:start position:0% G
align:start position:0%G
align:start position:0%Gstationary
align:start position:0%
align:start position:0% at equilibrium
align:start position:0%
align:start position:0% okay
align:start position:0%okay
align:start position:0%okayso this is now zooming in at the
align:start position:0%so this is now zooming in at the
align:start position:0%so this is now zooming in at themolecular level and I think people
align:start position:0%molecular level and I think people
align:start position:0%molecular level and I think peopleunderstand that you know if you have a
align:start position:0%understand that you know if you have a
align:start position:0%understand that you know if you have aglass of ice water there's a boundary
align:start position:0%glass of ice water there's a boundary
align:start position:0%glass of ice water there's a boundarybetween the ice and the water the liquid
align:start position:0%between the ice and the water the liquid
align:start position:0%between the ice and the water the liquidwater and the solid water and
align:start position:0%water and the solid water and
align:start position:0%water and the solid water andice water molecules will be jumping back
align:start position:0%ice water molecules will be jumping back
align:start position:0%ice water molecules will be jumping backand forth between the two phases at that
align:start position:0%and forth between the two phases at that
align:start position:0%and forth between the two phases at thatboundary
align:start position:0%boundary
align:start position:0%boundaryright on a molecular length scale and on
align:start position:0%right on a molecular length scale and on
align:start position:0%right on a molecular length scale and onmolecular time scale
align:start position:0%molecular time scale
align:start position:0%molecular time scaleso what does it mean for that
align:start position:0%so what does it mean for that
align:start position:0%so what does it mean for thatprocess to leave G stationary
align:start position:0%process to leave G stationary
align:start position:0%process to leave G stationaryokay that that would be our equilibrium
align:start position:0%okay that that would be our equilibrium
align:start position:0%okay that that would be our equilibriumcondition
align:start position:0%condition
align:start position:0%conditionso we can get it to the math of that
align:start position:0%so we can get it to the math of that
align:start position:0%so we can get it to the math of thatyou say
align:start position:0%you say
align:start position:0%you saythe change of G
align:start position:0%the change of G
align:start position:0%the change of Gnow we're going to be at fixed
align:start position:0%now we're going to be at fixed
align:start position:0%now we're going to be at fixedtemperature and pressure
align:start position:0%temperature and pressure
align:start position:0%temperature and pressureso we're not going to worry about that
align:start position:0%so we're not going to worry about that
align:start position:0%so we're not going to worry about thatand we know the total differential of
align:start position:0%and we know the total differential of
align:start position:0%and we know the total differential ofGibbs free energy from weeks past
align:start position:0%
align:start position:0% it's a sum over components and phases
align:start position:0%
align:start position:0% chemical potential of each component
align:start position:0%chemical potential of each component
align:start position:0%chemical potential of each componentin each phase
align:start position:0%
align:start position:0% times the change in mole number of each
align:start position:0%times the change in mole number of each
align:start position:0%times the change in mole number of eachcomponent
align:start position:0%component
align:start position:0%componentin each phase so k
align:start position:0%in each phase so k
align:start position:0%in each phase so kgoing let's see a b these are components
align:start position:0%
align:start position:0% I
align:start position:0%I
align:start position:0%Igoing one two
align:start position:0%going one two
align:start position:0%going one twothese are
align:start position:0%
align:start position:0% phases
align:start position:0%phases
align:start position:0%phasesokay
align:start position:0%
align:start position:0% so
align:start position:0%so
align:start position:0%soum
align:start position:0%um
align:start position:0%umlet's write this out
align:start position:0%let's write this out
align:start position:0%let's write this outright this feels mu
align:start position:0%right this feels mu
align:start position:0%right this feels mua
align:start position:0%a
align:start position:0%aone
align:start position:0%one
align:start position:0%oneG mu
align:start position:0%G mu
align:start position:0%G muTN sorry
align:start position:0%
align:start position:0% mu a one d n
align:start position:0%mu a one d n
align:start position:0%mu a one d na
align:start position:0%a
align:start position:0%aone
align:start position:0%one
align:start position:0%oneplus mu B one
align:start position:0%plus mu B one
align:start position:0%plus mu B oned n b one
align:start position:0%
align:start position:0% plus mu a
align:start position:0%plus mu a
align:start position:0%plus mu atwo
align:start position:0%two
align:start position:0%twot n a
align:start position:0%t n a
align:start position:0%t n atwo
align:start position:0%two
align:start position:0%twoplus mu b 2 d n
align:start position:0%plus mu b 2 d n
align:start position:0%plus mu b 2 d nB
align:start position:0%B
align:start position:0%Btwo Okay so we've written that out
align:start position:0%two Okay so we've written that out
align:start position:0%two Okay so we've written that outnow we're going to use conservation of
align:start position:0%now we're going to use conservation of
align:start position:0%now we're going to use conservation ofmass
align:start position:0%
align:start position:0% in conservation of mass
align:start position:0%in conservation of mass
align:start position:0%in conservation of masstells me that you know I I can have
align:start position:0%tells me that you know I I can have
align:start position:0%tells me that you know I I can havemolecules or atoms jumping back and
align:start position:0%molecules or atoms jumping back and
align:start position:0%molecules or atoms jumping back andforth but I can't have them just
align:start position:0%forth but I can't have them just
align:start position:0%forth but I can't have them justdisappearing right or just appearing
align:start position:0%disappearing right or just appearing
align:start position:0%disappearing right or just appearingI've got to have mass conserved so
align:start position:0%I've got to have mass conserved so
align:start position:0%I've got to have mass conserved soconservation of mass tells me that
align:start position:0%conservation of mass tells me that
align:start position:0%conservation of mass tells me thatd n
align:start position:0%d n
align:start position:0%d na 1 equals minus
align:start position:0%a 1 equals minus
align:start position:0%a 1 equals minusdna2 and E and B1 equals minus DN B 2.
align:start position:0%dna2 and E and B1 equals minus DN B 2.
align:start position:0%dna2 and E and B1 equals minus DN B 2.Okay so
align:start position:0%Okay so
align:start position:0%Okay sotwo equations and so we're going to
align:start position:0%two equations and so we're going to
align:start position:0%two equations and so we're going toreduce our number of independent
align:start position:0%reduce our number of independent
align:start position:0%reduce our number of independentvariables from four
align:start position:0%variables from four
align:start position:0%variables from fourto two
align:start position:0%to two
align:start position:0%to twoso I'm going to reduce I'm going to do
align:start position:0%so I'm going to reduce I'm going to do
align:start position:0%so I'm going to reduce I'm going to dothat
align:start position:0%that
align:start position:0%thatand I get this
align:start position:0%and I get this
align:start position:0%and I get thismu
align:start position:0%mu
align:start position:0%mua
align:start position:0%a
align:start position:0%a1 minus mu a
align:start position:0%1 minus mu a
align:start position:0%1 minus mu atwo
align:start position:0%two
align:start position:0%twoD and A1
align:start position:0%
align:start position:0% Plus
align:start position:0%Plus
align:start position:0%Plusmu
align:start position:0%
align:start position:0% B one
align:start position:0%B one
align:start position:0%B oneminus mu B
align:start position:0%minus mu B
align:start position:0%minus mu B2.
align:start position:0%2.
align:start position:0%2.d n
align:start position:0%d n
align:start position:0%d nB one so
align:start position:0%B one so
align:start position:0%B one soI have four independent variables I
align:start position:0%I have four independent variables I
align:start position:0%I have four independent variables Iapplied two constraints I end up with
align:start position:0%applied two constraints I end up with
align:start position:0%applied two constraints I end up withtwo independent variables
align:start position:0%
align:start position:0% and this has a familiar form for us
align:start position:0%and this has a familiar form for us
align:start position:0%and this has a familiar form for usthese here these here
align:start position:0%these here these here
align:start position:0%these here these hereare the
align:start position:0%are the
align:start position:0%are theunconstrained
align:start position:0%
align:start position:0% independent variables
align:start position:0%
align:start position:0% right those are the unconstrained
align:start position:0%right those are the unconstrained
align:start position:0%right those are the unconstrainedindependent variables
align:start position:0%independent variables
align:start position:0%independent variablesand what do we call
align:start position:0%and what do we call
align:start position:0%and what do we callwhat do we call the
align:start position:0%
align:start position:0% the multipliers in front of the
align:start position:0%the multipliers in front of the
align:start position:0%the multipliers in front of theindependent variables in this sort of
align:start position:0%independent variables in this sort of
align:start position:0%independent variables in this sort ofdifferential form
align:start position:0%
align:start position:0% what do we call this thing in this thing
align:start position:0%what do we call this thing in this thing
align:start position:0%what do we call this thing in this thingthis is a differential form for a
align:start position:0%this is a differential form for a
align:start position:0%this is a differential form for adependent variable and how it varies
align:start position:0%dependent variable and how it varies
align:start position:0%dependent variable and how it varieswith two independent variables
align:start position:0%with two independent variables
align:start position:0%with two independent variablesand we have
align:start position:0%
align:start position:0% it's the coefficient efficient they're
align:start position:0%it's the coefficient efficient they're
align:start position:0%it's the coefficient efficient they'recoefficients thank you I didn't notice
align:start position:0%coefficients thank you I didn't notice
align:start position:0%coefficients thank you I didn't noticewho that was but thank you
align:start position:0%
align:start position:0% right coefficients
align:start position:0%right coefficients
align:start position:0%right coefficientsgood so this is a form that that we are
align:start position:0%good so this is a form that that we are
align:start position:0%good so this is a form that that we arefamiliar with
align:start position:0%familiar with
align:start position:0%familiar withall right and we know from what we've
align:start position:0%all right and we know from what we've
align:start position:0%all right and we know from what we'vesolved equilibrium conditions before in
align:start position:0%solved equilibrium conditions before in
align:start position:0%solved equilibrium conditions before inthis class that d g p t equals zero
align:start position:0%this class that d g p t equals zero
align:start position:0%this class that d g p t equals zerorequires
align:start position:0%
align:start position:0% coefficients
align:start position:0%
align:start position:0% to be zero that's our equilibrium
align:start position:0%to be zero that's our equilibrium
align:start position:0%to be zero that's our equilibriumcondition and in this case what that
align:start position:0%condition and in this case what that
align:start position:0%condition and in this case what thatmeans
align:start position:0%means
align:start position:0%meansthe chemical potential of a is the same
align:start position:0%the chemical potential of a is the same
align:start position:0%the chemical potential of a is the samein both phases
align:start position:0%in both phases
align:start position:0%in both phasesand the chemical potential
align:start position:0%and the chemical potential
align:start position:0%and the chemical potentialof B
align:start position:0%
align:start position:0% is the same in both phases
align:start position:0%is the same in both phases
align:start position:0%is the same in both phaseswhen that happens
align:start position:0%
align:start position:0% phases can exchange
align:start position:0%
align:start position:0% Mass
align:start position:0%Mass
align:start position:0%Massfreely
align:start position:0%
align:start position:0% without
align:start position:0%
align:start position:0% changing
align:start position:0%
align:start position:0% overall
align:start position:0%overall
align:start position:0%overallGibbs free energy
align:start position:0%Gibbs free energy
align:start position:0%Gibbs free energyor in other words gives free energy is
align:start position:0%or in other words gives free energy is
align:start position:0%or in other words gives free energy isstationary
align:start position:0%
align:start position:0% foreign
align:start position:0%
align:start position:0% so the math is the same uh there's a lot
align:start position:0%so the math is the same uh there's a lot
align:start position:0%so the math is the same uh there's a lotof pattern recognition that kicks in
align:start position:0%of pattern recognition that kicks in
align:start position:0%of pattern recognition that kicks inin this class the math is the same
align:start position:0%in this class the math is the same
align:start position:0%in this class the math is the sameformally as we've seen before
align:start position:0%formally as we've seen before
align:start position:0%formally as we've seen beforeyou know we're just exploring different
align:start position:0%you know we're just exploring different
align:start position:0%you know we're just exploring differentcases of this
align:start position:0%cases of this
align:start position:0%cases of thisand so right chemical potential is the
align:start position:0%and so right chemical potential is the
align:start position:0%and so right chemical potential is thesame
align:start position:0%same
align:start position:0%sameso these particles they can they can
align:start position:0%so these particles they can they can
align:start position:0%so these particles they can they canmove back and forth they can change
align:start position:0%move back and forth they can change
align:start position:0%move back and forth they can changetheir phase but the chemical potential
align:start position:0%their phase but the chemical potential
align:start position:0%their phase but the chemical potentialremain unchanged so the overall gives
align:start position:0%remain unchanged so the overall gives
align:start position:0%remain unchanged so the overall givesthe energy will remain unchanged okay
align:start position:0%the energy will remain unchanged okay
align:start position:0%the energy will remain unchanged okaynow how do we Analyze That
align:start position:0%now how do we Analyze That
align:start position:0%now how do we Analyze Thatright in general
align:start position:0%
align:start position:0% in general
align:start position:0%
align:start position:0% each phase
align:start position:0%
align:start position:0% has its own
align:start position:0%has its own
align:start position:0%has its ownsolution model
align:start position:0%
align:start position:0% and partial molar properties of mixing
align:start position:0%
align:start position:0% so do I mean by that mu
align:start position:0%so do I mean by that mu
align:start position:0%so do I mean by that mua in phase one equals mu a in its
align:start position:0%a in phase one equals mu a in its
align:start position:0%a in phase one equals mu a in itsreference state
align:start position:0%reference state
align:start position:0%reference stateplus Delta Mu a
align:start position:0%plus Delta Mu a
align:start position:0%plus Delta Mu aof mixing in phase one
align:start position:0%of mixing in phase one
align:start position:0%of mixing in phase onemu a in phase two
align:start position:0%mu a in phase two
align:start position:0%mu a in phase twoequals mu a in its reference state
align:start position:0%equals mu a in its reference state
align:start position:0%equals mu a in its reference stateplus Delta Mu a in phase two
align:start position:0%
align:start position:0% mixing
align:start position:0%mixing
align:start position:0%mixingand I can write the same for the other
align:start position:0%and I can write the same for the other
align:start position:0%and I can write the same for the othercomponent
align:start position:0%component
align:start position:0%componentmu B in phase one equals mu B naught
align:start position:0%mu B in phase one equals mu B naught
align:start position:0%mu B in phase one equals mu B naughtplus the change in chemical potential of
align:start position:0%plus the change in chemical potential of
align:start position:0%plus the change in chemical potential ofB
align:start position:0%B
align:start position:0%Bdue to mixing
align:start position:0%due to mixing
align:start position:0%due to mixingin phase one
align:start position:0%in phase one
align:start position:0%in phase oneand chemical potential V and phase two
align:start position:0%and chemical potential V and phase two
align:start position:0%and chemical potential V and phase twoequals the reference state
align:start position:0%equals the reference state
align:start position:0%equals the reference stateplus the change and chemical potential B
align:start position:0%plus the change and chemical potential B
align:start position:0%plus the change and chemical potential Bdue to mixing
align:start position:0%due to mixing
align:start position:0%due to mixingphase two
align:start position:0%
align:start position:0% why did I write it in this way
align:start position:0%
align:start position:0% I wrote it in this way
align:start position:0%
align:start position:0% because we see that these pure
align:start position:0%because we see that these pure
align:start position:0%because we see that these purecomponents
align:start position:0%
align:start position:0% pure component a
align:start position:0%pure component a
align:start position:0%pure component aand
align:start position:0%
align:start position:0% pure component B
align:start position:0%pure component B
align:start position:0%pure component Bthose terms are the same
align:start position:0%those terms are the same
align:start position:0%those terms are the samein this equation as this equation or
align:start position:0%in this equation as this equation or
align:start position:0%in this equation as this equation orthey're the same in this equation of
align:start position:0%they're the same in this equation of
align:start position:0%they're the same in this equation ofthis equation it's the chemical
align:start position:0%this equation it's the chemical
align:start position:0%this equation it's the chemicalpotential of a in its pure state
align:start position:0%
align:start position:0% it's a chemical potential of Aid it's
align:start position:0%it's a chemical potential of Aid it's
align:start position:0%it's a chemical potential of Aid it'spure state it doesn't care
align:start position:0%pure state it doesn't care
align:start position:0%pure state it doesn't carewhat kind of mixture you're going to
align:start position:0%what kind of mixture you're going to
align:start position:0%what kind of mixture you're going tomake out of it
align:start position:0%make out of it
align:start position:0%make out of itthis is sort of like ingredients on the
align:start position:0%this is sort of like ingredients on the
align:start position:0%this is sort of like ingredients on theshelf right if you've got sugar on the
align:start position:0%shelf right if you've got sugar on the
align:start position:0%shelf right if you've got sugar on theShelf that's pure sugar it's
align:start position:0%Shelf that's pure sugar it's
align:start position:0%Shelf that's pure sugar it'sthermodynamic properties don't care
align:start position:0%thermodynamic properties don't care
align:start position:0%thermodynamic properties don't carewhether you're going to go make cupcakes
align:start position:0%whether you're going to go make cupcakes
align:start position:0%whether you're going to go make cupcakesor you're going to make like syrup out
align:start position:0%or you're going to make like syrup out
align:start position:0%or you're going to make like syrup outof it right it's just pure sugar so it's
align:start position:0%of it right it's just pure sugar so it's
align:start position:0%of it right it's just pure sugar so it'sreference day it's unchanged doesn't
align:start position:0%reference day it's unchanged doesn't
align:start position:0%reference day it's unchanged doesn'tdepend on what you're about to mix it
align:start position:0%depend on what you're about to mix it
align:start position:0%depend on what you're about to mix itinto
align:start position:0%into
align:start position:0%into[Music]
align:start position:0%[Music]
align:start position:0%[Music]so in words
align:start position:0%
align:start position:0% the reference States
align:start position:0%
align:start position:0% foreign
align:start position:0%
align:start position:0% states are fixed
align:start position:0%states are fixed
align:start position:0%states are fixedand the MU k
align:start position:0%and the MU k
align:start position:0%and the MU knot
align:start position:0%not
align:start position:0%notdon't
align:start position:0%don't
align:start position:0%don'tdepend
align:start position:0%
align:start position:0% on mixing
align:start position:0%
align:start position:0% the properties of the ingredients don't
align:start position:0%the properties of the ingredients don't
align:start position:0%the properties of the ingredients don'tdepend on your recipe
align:start position:0%depend on your recipe
align:start position:0%depend on your recipeokay so if we have mu
align:start position:0%okay so if we have mu
align:start position:0%okay so if we have mua
align:start position:0%a
align:start position:0%aone equals mu a two as our equilibrium
align:start position:0%one equals mu a two as our equilibrium
align:start position:0%one equals mu a two as our equilibriumcondition
align:start position:0%condition
align:start position:0%conditionthis becomes Delta
align:start position:0%this becomes Delta
align:start position:0%this becomes Deltamu a
align:start position:0%mu a
align:start position:0%mu aof mixing one equals Delta mu a of
align:start position:0%of mixing one equals Delta mu a of
align:start position:0%of mixing one equals Delta mu a ofmixing
align:start position:0%mixing
align:start position:0%mixingtwo
align:start position:0%two
align:start position:0%twoand similarly mu B
align:start position:0%and similarly mu B
align:start position:0%and similarly mu Bone equals mu B
align:start position:0%one equals mu B
align:start position:0%one equals mu Btwo
align:start position:0%
align:start position:0% Delta Mu B
align:start position:0%Delta Mu B
align:start position:0%Delta Mu Bof mixing one equals Delta Mu B
align:start position:0%of mixing one equals Delta Mu B
align:start position:0%of mixing one equals Delta Mu Bof mixing
align:start position:0%of mixing
align:start position:0%of mixingtwo
align:start position:0%two
align:start position:0%twoand these are
align:start position:0%and these are
align:start position:0%and these areour
align:start position:0%our
align:start position:0%ourtwo phase
align:start position:0%
align:start position:0% coexistence
align:start position:0%coexistence
align:start position:0%coexistenceequilibrium
align:start position:0%equilibrium
align:start position:0%equilibriumconditions
align:start position:0%
align:start position:0% those are our equilibrium conditions so
align:start position:0%those are our equilibrium conditions so
align:start position:0%those are our equilibrium conditions sonow we're going to use something which
align:start position:0%now we're going to use something which
align:start position:0%now we're going to use something whichwe uh introduced maybe a week or more
align:start position:0%we uh introduced maybe a week or more
align:start position:0%we uh introduced maybe a week or moreago
align:start position:0%ago
align:start position:0%agowhich is
align:start position:0%which is
align:start position:0%which isthe graphical
align:start position:0%
align:start position:0% the graphical solution for partial
align:start position:0%the graphical solution for partial
align:start position:0%the graphical solution for partialproperties
align:start position:0%properties
align:start position:0%propertieslet me remind you what that was
align:start position:0%let me remind you what that was
align:start position:0%let me remind you what that waswe had
align:start position:0%
align:start position:0% now specific to the case of Gibbs
align:start position:0%now specific to the case of Gibbs
align:start position:0%now specific to the case of Gibbsbecause that's
align:start position:0%because that's
align:start position:0%because that'spretty much the only way we're going to
align:start position:0%pretty much the only way we're going to
align:start position:0%pretty much the only way we're going tobe using this in o2o we had here
align:start position:0%be using this in o2o we had here
align:start position:0%be using this in o2o we had heregives free energy
align:start position:0%
align:start position:0% and we have this concept of a solution
align:start position:0%and we have this concept of a solution
align:start position:0%and we have this concept of a solutionmodel
align:start position:0%
align:start position:0% so let me just draw a section of the
align:start position:0%so let me just draw a section of the
align:start position:0%so let me just draw a section of thesolution model
align:start position:0%
align:start position:0% draw the whole thing because I don't
align:start position:0%draw the whole thing because I don't
align:start position:0%draw the whole thing because I don'tneed the whole thing
align:start position:0%need the whole thing
align:start position:0%need the whole thingand let's imagine
align:start position:0%and let's imagine
align:start position:0%and let's imaginesome system composition here
align:start position:0%some system composition here
align:start position:0%some system composition herethat'll be X
align:start position:0%that'll be X
align:start position:0%that'll be X2.
align:start position:0%2.
align:start position:0%2.that's X2
align:start position:0%that's X2
align:start position:0%that's X2the way that we found the partial molar
align:start position:0%the way that we found the partial molar
align:start position:0%the way that we found the partial molarGibbs free energy of mixing
align:start position:0%Gibbs free energy of mixing
align:start position:0%Gibbs free energy of mixingwas we
align:start position:0%was we
align:start position:0%was wedrew the tangent
align:start position:0%
align:start position:0% to the solution model
align:start position:0%to the solution model
align:start position:0%to the solution modelat that composition
align:start position:0%
align:start position:0% and the intercepts or the partial molar
align:start position:0%and the intercepts or the partial molar
align:start position:0%and the intercepts or the partial molarproperties of mixing so this intercept
align:start position:0%properties of mixing so this intercept
align:start position:0%properties of mixing so this intercepthere is
align:start position:0%here is
align:start position:0%here ismu
align:start position:0%
align:start position:0% two
align:start position:0%two
align:start position:0%twoat Acts 2.
align:start position:0%at Acts 2.
align:start position:0%at Acts 2.and this intercept here is Mu one
align:start position:0%and this intercept here is Mu one
align:start position:0%and this intercept here is Mu oneat X1
align:start position:0%
align:start position:0% all right so I hope you do remember this
align:start position:0%all right so I hope you do remember this
align:start position:0%all right so I hope you do remember thisif you don't um just
align:start position:0%if you don't um just
align:start position:0%if you don't um justuh rewind for a couple of lectures so we
align:start position:0%uh rewind for a couple of lectures so we
align:start position:0%uh rewind for a couple of lectures so wehad this graphical solution now we
align:start position:0%had this graphical solution now we
align:start position:0%had this graphical solution now weintroduced this for one solution model
align:start position:0%
align:start position:0% so what we're going to do now is use
align:start position:0%so what we're going to do now is use
align:start position:0%so what we're going to do now is usethis tangent Construction
align:start position:0%this tangent Construction
align:start position:0%this tangent Constructionfor the case of two different phases
align:start position:0%for the case of two different phases
align:start position:0%for the case of two different phasesthis becomes a common
align:start position:0%
align:start position:0% tangent
align:start position:0%tangent
align:start position:0%tangentConstruction
align:start position:0%Construction
align:start position:0%Constructionit's called or if you like if you just
align:start position:0%it's called or if you like if you just
align:start position:0%it's called or if you like if you justcall it a condition
align:start position:0%
align:start position:0% for two
align:start position:0%for two
align:start position:0%for twophase
align:start position:0%
align:start position:0% equilibrium so how does that look
align:start position:0%
align:start position:0% well let's draw one phase
align:start position:0%
align:start position:0% foreign
align:start position:0%
align:start position:0% model for one phase let's draw another
align:start position:0%model for one phase let's draw another
align:start position:0%model for one phase let's draw anotherphase
align:start position:0%phase
align:start position:0%phasethis part of a solution model for
align:start position:0%this part of a solution model for
align:start position:0%this part of a solution model foranother phase
align:start position:0%
align:start position:0% and now I'm going to look for a common
align:start position:0%and now I'm going to look for a common
align:start position:0%and now I'm going to look for a commontangent
align:start position:0%
align:start position:0% let's say that I do that accurately and
align:start position:0%let's say that I do that accurately and
align:start position:0%let's say that I do that accurately andwe have a tangent which is common to
align:start position:0%we have a tangent which is common to
align:start position:0%we have a tangent which is common toboth curves
align:start position:0%
align:start position:0% this is phase
align:start position:0%this is phase
align:start position:0%this is phaseone
align:start position:0%one
align:start position:0%onethis is phase two
align:start position:0%
align:start position:0% let's say now using our notation from
align:start position:0%let's say now using our notation from
align:start position:0%let's say now using our notation fromthe previous
align:start position:0%the previous
align:start position:0%the previousslides let's say this is composition of
align:start position:0%slides let's say this is composition of
align:start position:0%slides let's say this is composition ofcomponent B and phase one
align:start position:0%component B and phase one
align:start position:0%component B and phase onethis is
align:start position:0%this is
align:start position:0%this iscomposition
align:start position:0%composition
align:start position:0%compositionof component B
align:start position:0%of component B
align:start position:0%of component Bin phase two
align:start position:0%in phase two
align:start position:0%in phase twothese intercepts
align:start position:0%
align:start position:0% are the chemical potentials
align:start position:0%are the chemical potentials
align:start position:0%are the chemical potentialsbe
align:start position:0%
align:start position:0% and a
align:start position:0%
align:start position:0% so what we've shown is a common tangent
align:start position:0%
align:start position:0% which is satisfied
align:start position:0%
align:start position:0% at
align:start position:0%
align:start position:0% compositions x b 1 and x b 2. right it's
align:start position:0%compositions x b 1 and x b 2. right it's
align:start position:0%compositions x b 1 and x b 2. right it'sonly satisfied with these compositions
align:start position:0%only satisfied with these compositions
align:start position:0%only satisfied with these compositionsif you look at these curves the way I've
align:start position:0%if you look at these curves the way I've
align:start position:0%if you look at these curves the way I'vedrawn them
align:start position:0%drawn them
align:start position:0%drawn themthere's no other
align:start position:0%there's no other
align:start position:0%there's no othercommon tangent it's only
align:start position:0%common tangent it's only
align:start position:0%common tangent it's onlythose two particular compositions
align:start position:0%those two particular compositions
align:start position:0%those two particular compositionsand for those two particular
align:start position:0%and for those two particular
align:start position:0%and for those two particularcompositions common tangent satisfied
align:start position:0%compositions common tangent satisfied
align:start position:0%compositions common tangent satisfiedcomposition
align:start position:0%composition
align:start position:0%compositionright
align:start position:0%
align:start position:0% that ensures
align:start position:0%
align:start position:0% that the chemical potential mu A1 equals
align:start position:0%that the chemical potential mu A1 equals
align:start position:0%that the chemical potential mu A1 equalsmu a two
align:start position:0%mu a two
align:start position:0%mu a twomu B one equals mu
align:start position:0%mu B one equals mu
align:start position:0%mu B one equals muB2
align:start position:0%B2
align:start position:0%B2all right this is the equilibrium
align:start position:0%all right this is the equilibrium
align:start position:0%all right this is the equilibriumcondition
align:start position:0%
align:start position:0% great so a common tangent on a free
align:start position:0%great so a common tangent on a free
align:start position:0%great so a common tangent on a freeenergy composition diagram
align:start position:0%energy composition diagram
align:start position:0%energy composition diagramis the same as the equilibrium condition
align:start position:0%
align:start position:0% when you can draw the common tangent
align:start position:0%when you can draw the common tangent
align:start position:0%when you can draw the common tangentthen you can have two phase equilibrium
align:start position:0%then you can have two phase equilibrium
align:start position:0%then you can have two phase equilibriumand only at those compositions that
align:start position:0%and only at those compositions that
align:start position:0%and only at those compositions thatsatisfy the common tangent
align:start position:0%satisfy the common tangent
align:start position:0%satisfy the common tangentif there's no common tangent you can
align:start position:0%if there's no common tangent you can
align:start position:0%if there's no common tangent you candraw
align:start position:0%draw
align:start position:0%drawthen there's no two phase equilibrium
align:start position:0%then there's no two phase equilibrium
align:start position:0%then there's no two phase equilibriumpossible
align:start position:0%
align:start position:0% right okay so we're sort of knitting
align:start position:0%right okay so we're sort of knitting
align:start position:0%right okay so we're sort of knittingthings together here across different
align:start position:0%things together here across different
align:start position:0%things together here across differentlectures
align:start position:0%
align:start position:0% okay I'm going to spend the rest of the
align:start position:0%okay I'm going to spend the rest of the
align:start position:0%okay I'm going to spend the rest of theclass
align:start position:0%class
align:start position:0%classum
align:start position:0%um
align:start position:0%umon how this works in the case of
align:start position:0%on how this works in the case of
align:start position:0%on how this works in the case ofspinodal systems so before I I make it a
align:start position:0%spinodal systems so before I I make it a
align:start position:0%spinodal systems so before I I make it alittle bit more specific this mineral
align:start position:0%little bit more specific this mineral
align:start position:0%little bit more specific this mineralsystems are there any
align:start position:0%systems are there any
align:start position:0%systems are there anyquestions on the concept or on the math
align:start position:0%questions on the concept or on the math
align:start position:0%questions on the concept or on the mathof this so far okay
align:start position:0%of this so far okay
align:start position:0%of this so far okayum so let's let's move on then
align:start position:0%
align:start position:0% okay so now we're going to make this a
align:start position:0%okay so now we're going to make this a
align:start position:0%okay so now we're going to make this alittle more specific we're going to talk
align:start position:0%little more specific we're going to talk
align:start position:0%little more specific we're going to talkabout
align:start position:0%about
align:start position:0%aboutan example
align:start position:0%
align:start position:0% of common tangent Construction
align:start position:0%
align:start position:0% and that is spinoval systems
align:start position:0%and that is spinoval systems
align:start position:0%and that is spinoval systemsso something a little bit familiar to us
align:start position:0%
align:start position:0% right so here's
align:start position:0%right so here's
align:start position:0%right so here'sa general uh
align:start position:0%
align:start position:0% view of a free energy composition
align:start position:0%view of a free energy composition
align:start position:0%view of a free energy compositiondiagram
align:start position:0%diagram
align:start position:0%diagramfor a spinal system
align:start position:0%
align:start position:0% this is going to be Delta G of mixing
align:start position:0%
align:start position:0% and let's draw a solution model for
align:start position:0%and let's draw a solution model for
align:start position:0%and let's draw a solution model fora phase that exhibits
align:start position:0%a phase that exhibits
align:start position:0%a phase that exhibitsspin out of decomposition so let's draw
align:start position:0%spin out of decomposition so let's draw
align:start position:0%spin out of decomposition so let's drawsomething like
align:start position:0%something like
align:start position:0%something likeforeign
align:start position:0%
align:start position:0% you've been playing with stuff something
align:start position:0%you've been playing with stuff something
align:start position:0%you've been playing with stuff somethinglike this and uh
align:start position:0%like this and uh
align:start position:0%like this and uhin peace as in previous lectures and so
align:start position:0%in peace as in previous lectures and so
align:start position:0%in peace as in previous lectures and sothis this has a common tangent
align:start position:0%this this has a common tangent
align:start position:0%this this has a common tangentlet me draw it
align:start position:0%
align:start position:0% okay
align:start position:0%okay
align:start position:0%okayso it has a common tangent let's say
align:start position:0%so it has a common tangent let's say
align:start position:0%so it has a common tangent let's sayhere and let's say here
align:start position:0%
align:start position:0% I'm just eyeballing this obviously and
align:start position:0%I'm just eyeballing this obviously and
align:start position:0%I'm just eyeballing this obviously andso let's note the composition
align:start position:0%so let's note the composition
align:start position:0%so let's note the compositionof the system when it satisfies common
align:start position:0%of the system when it satisfies common
align:start position:0%of the system when it satisfies commontangent let's say we have
align:start position:0%tangent let's say we have
align:start position:0%tangent let's say we havex b we'll call that
align:start position:0%x b we'll call that
align:start position:0%x b we'll call thatphase one
align:start position:0%phase one
align:start position:0%phase oneX
align:start position:0%X
align:start position:0%XB we'll call that
align:start position:0%B we'll call that
align:start position:0%B we'll call thatphase two
align:start position:0%phase two
align:start position:0%phase twothe zero of the free energy mixing is is
align:start position:0%the zero of the free energy mixing is is
align:start position:0%the zero of the free energy mixing is isthere
align:start position:0%there
align:start position:0%thereand
align:start position:0%and
align:start position:0%andthese intercepts are
align:start position:0%these intercepts are
align:start position:0%these intercepts areDelta Mu
align:start position:0%Delta Mu
align:start position:0%Delta MuB
align:start position:0%B
align:start position:0%Bof mixing
align:start position:0%of mixing
align:start position:0%of mixingand Delta U
align:start position:0%and Delta U
align:start position:0%and Delta Ua
align:start position:0%
align:start position:0% of mixing
align:start position:0%of mixing
align:start position:0%of mixingokay and so what's happened in this
align:start position:0%okay and so what's happened in this
align:start position:0%okay and so what's happened in thissystem what happens at equilibrium
align:start position:0%system what happens at equilibrium
align:start position:0%system what happens at equilibriumthis system has phase separated it has
align:start position:0%this system has phase separated it has
align:start position:0%this system has phase separated it hasspontaneously unmixed
align:start position:0%spontaneously unmixed
align:start position:0%spontaneously unmixedinto
align:start position:0%into
align:start position:0%intotwo different phases
align:start position:0%two different phases
align:start position:0%two different phaseswith what these two compositions so you
align:start position:0%with what these two compositions so you
align:start position:0%with what these two compositions so youcould say this is a
align:start position:0%
align:start position:0% composition
align:start position:0%composition
align:start position:0%compositionrich
align:start position:0%rich
align:start position:0%richin component
align:start position:0%
align:start position:0% a
align:start position:0%a
align:start position:0%aright so that composition where a rich
align:start position:0%right so that composition where a rich
align:start position:0%right so that composition where a richand here's a composition
align:start position:0%
align:start position:0% rich in component
align:start position:0%
align:start position:0% and we saw some examples of this on the
align:start position:0%and we saw some examples of this on the
align:start position:0%and we saw some examples of this on theslides from
align:start position:0%slides from
align:start position:0%slides fromfrom Monday's lecture
align:start position:0%from Monday's lecture
align:start position:0%from Monday's lectureokay so there's the common tangent
align:start position:0%okay so there's the common tangent
align:start position:0%okay so there's the common tangentinstruction first model system
align:start position:0%instruction first model system
align:start position:0%instruction first model systemokay
align:start position:0%okay
align:start position:0%okaywhen
align:start position:0%when
align:start position:0%whenthe common tangent
align:start position:0%
align:start position:0% is possible
align:start position:0%
align:start position:0% the free energy
align:start position:0%
align:start position:0% of two phase
align:start position:0%of two phase
align:start position:0%of two phasesystem
align:start position:0%
align:start position:0% is lower
align:start position:0%
align:start position:0% than
align:start position:0%than
align:start position:0%thanthat
align:start position:0%that
align:start position:0%thatof fully mixed
align:start position:0%
align:start position:0% one phase
align:start position:0%one phase
align:start position:0%one phasesystem
align:start position:0%system
align:start position:0%systemas you would expect for equilibrium it's
align:start position:0%as you would expect for equilibrium it's
align:start position:0%as you would expect for equilibrium it'sgot the lowest free energy
align:start position:0%got the lowest free energy
align:start position:0%got the lowest free energyI'm not going to prove this to you right
align:start position:0%I'm not going to prove this to you right
align:start position:0%I'm not going to prove this to you rightnow but I'm going to show you
align:start position:0%now but I'm going to show you
align:start position:0%now but I'm going to show yougraphically how it comes about
align:start position:0%
align:start position:0% here again is a
align:start position:0%
align:start position:0% free energy composition diagram
align:start position:0%free energy composition diagram
align:start position:0%free energy composition diagramand let me say my solution tomorrow
align:start position:0%and let me say my solution tomorrow
align:start position:0%and let me say my solution tomorrowlooks kind of like this
align:start position:0%
align:start position:0% let's say it looks like that
align:start position:0%let's say it looks like that
align:start position:0%let's say it looks like thatand here's my
align:start position:0%
align:start position:0% common tangent points of tangency
align:start position:0%
align:start position:0% um and my compositions here
align:start position:0%um and my compositions here
align:start position:0%um and my compositions hereat those
align:start position:0%at those
align:start position:0%at thosepoints of common tangency and let's
align:start position:0%points of common tangency and let's
align:start position:0%points of common tangency and let'simagine an overall system composition
align:start position:0%
align:start position:0% here
align:start position:0%here
align:start position:0%herelet's imagine an overall system
align:start position:0%let's imagine an overall system
align:start position:0%let's imagine an overall systemcomposition there
align:start position:0%composition there
align:start position:0%composition thereit can be shown
align:start position:0%it can be shown
align:start position:0%it can be shownthat relative to a fully mixed system
align:start position:0%that relative to a fully mixed system
align:start position:0%that relative to a fully mixed systemthe free energy can be decreased by
align:start position:0%the free energy can be decreased by
align:start position:0%the free energy can be decreased byexactly this amount
align:start position:0%
align:start position:0% by splitting
align:start position:0%by splitting
align:start position:0%by splittinginto two different phases
align:start position:0%into two different phases
align:start position:0%into two different phasesso spontaneous unmixing lowers the free
align:start position:0%so spontaneous unmixing lowers the free
align:start position:0%so spontaneous unmixing lowers the freeenergy by exactly the amount that I drew
align:start position:0%energy by exactly the amount that I drew
align:start position:0%energy by exactly the amount that I drewhere on the plot
align:start position:0%
align:start position:0% so the single phase the single phase
align:start position:0%so the single phase the single phase
align:start position:0%so the single phase the single phasethe guilt-free energy of the single
align:start position:0%the guilt-free energy of the single
align:start position:0%the guilt-free energy of the singlephase system equals the Gibbs free
align:start position:0%phase system equals the Gibbs free
align:start position:0%phase system equals the Gibbs freeenergy of the components in their pure
align:start position:0%energy of the components in their pure
align:start position:0%energy of the components in their pureState plus just the value of this curve
align:start position:0%State plus just the value of this curve
align:start position:0%State plus just the value of this curveevaluated
align:start position:0%evaluated
align:start position:0%evaluatedat the overall composition plus Delta G
align:start position:0%at the overall composition plus Delta G
align:start position:0%at the overall composition plus Delta Gmix
align:start position:0%mix
align:start position:0%mixevaluated
align:start position:0%
align:start position:0% at overall XP
align:start position:0%at overall XP
align:start position:0%at overall XPand two phase
align:start position:0%
align:start position:0% two phase
align:start position:0%two phase
align:start position:0%two phasethat gives free energy is again that
align:start position:0%that gives free energy is again that
align:start position:0%that gives free energy is again thatgives free energy of the components
align:start position:0%gives free energy of the components
align:start position:0%gives free energy of the componentsunmasked
align:start position:0%unmasked
align:start position:0%unmaskedPlus
align:start position:0%Plus
align:start position:0%Plusthe Gibbs free energy
align:start position:0%
align:start position:0% of each of those two phases
align:start position:0%
align:start position:0% sorry
align:start position:0%
align:start position:0% right okay so single phase it's just the
align:start position:0%right okay so single phase it's just the
align:start position:0%right okay so single phase it's just thereference State plus the evaluation of
align:start position:0%reference State plus the evaluation of
align:start position:0%reference State plus the evaluation ofthis solution model at that composition
align:start position:0%this solution model at that composition
align:start position:0%this solution model at that compositiontwo phases it's the reference State plus
align:start position:0%two phases it's the reference State plus
align:start position:0%two phases it's the reference State plusthe evaluation of the solution model at
align:start position:0%the evaluation of the solution model at
align:start position:0%the evaluation of the solution model atthese two compositions
align:start position:0%these two compositions
align:start position:0%these two compositionsweighted by the phase fractions
align:start position:0%
align:start position:0% so this here is solution model
align:start position:0%
align:start position:0% solution model
align:start position:0%solution model
align:start position:0%solution modelthis is
align:start position:0%
align:start position:0% solution model
align:start position:0%solution model
align:start position:0%solution modeland
align:start position:0%and
align:start position:0%andthese are
align:start position:0%these are
align:start position:0%these arephase fractions
align:start position:0%
align:start position:0% okay
align:start position:0%
align:start position:0% so you're working some of these Concepts
align:start position:0%so you're working some of these Concepts
align:start position:0%so you're working some of these Conceptson the problem set
align:start position:0%on the problem set
align:start position:0%on the problem setuh all right so now we're gonna continue
align:start position:0%uh all right so now we're gonna continue
align:start position:0%uh all right so now we're gonna continueexploring the spinal case right the
align:start position:0%exploring the spinal case right the
align:start position:0%exploring the spinal case right thecommon tangents
align:start position:0%
align:start position:0% they Define
align:start position:0%
align:start position:0% the tie lines
align:start position:0%
align:start position:0% on a binary phase diagram
align:start position:0%
align:start position:0% right so again for the example of
align:start position:0%right so again for the example of
align:start position:0%right so again for the example ofspinodal system
align:start position:0%
align:start position:0% example of expandable system
align:start position:0%
align:start position:0% here I'll draw a phase diagram we have
align:start position:0%here I'll draw a phase diagram we have
align:start position:0%here I'll draw a phase diagram we havetemperature
align:start position:0%
align:start position:0% composition
align:start position:0%composition
align:start position:0%compositionand we have a region of uh spontaneous
align:start position:0%and we have a region of uh spontaneous
align:start position:0%and we have a region of uh spontaneousor I should say region of face
align:start position:0%or I should say region of face
align:start position:0%or I should say region of faceseparation
align:start position:0%separation
align:start position:0%separationright and uh let's see we have the
align:start position:0%right and uh let's see we have the
align:start position:0%right and uh let's see we have thehighest temperature here which is
align:start position:0%highest temperature here which is
align:start position:0%highest temperature here which issometimes marked as eutect uh uh a star
align:start position:0%sometimes marked as eutect uh uh a star
align:start position:0%sometimes marked as eutect uh uh a staror different different notations there
align:start position:0%or different different notations there
align:start position:0%or different different notations thereI'll just say t star
align:start position:0%
align:start position:0% and we have these tie lines these tie
align:start position:0%and we have these tie lines these tie
align:start position:0%and we have these tie lines these tielines Define the compositions that can
align:start position:0%lines Define the compositions that can
align:start position:0%lines Define the compositions that cancoexist
align:start position:0%coexist
align:start position:0%coexistat equilibrium with each other
align:start position:0%
align:start position:0% so on a system like this
align:start position:0%so on a system like this
align:start position:0%so on a system like thismixing
align:start position:0%
align:start position:0% mixing favorite
align:start position:0%mixing favorite
align:start position:0%mixing favoritea high temp
align:start position:0%
align:start position:0% right
align:start position:0%
align:start position:0% in fact it's fully missable
align:start position:0%
align:start position:0% at high temp right
align:start position:0%at high temp right
align:start position:0%at high temp rightat low temp
align:start position:0%
align:start position:0% this system
align:start position:0%this system
align:start position:0%this systemspontaneously unmixes
align:start position:0%
align:start position:0% spontaneously on mixers and the tie
align:start position:0%spontaneously on mixers and the tie
align:start position:0%spontaneously on mixers and the tielines
align:start position:0%
align:start position:0% that are drawn
align:start position:0%that are drawn
align:start position:0%that are drawnin the two-phase region
align:start position:0%
align:start position:0% connect
align:start position:0%
align:start position:0% compositions
align:start position:0%
align:start position:0% that
align:start position:0%that
align:start position:0%thatcoexist
align:start position:0%coexist
align:start position:0%coexistat a kilogram
align:start position:0%
align:start position:0% and so this is a reminder basically of
align:start position:0%and so this is a reminder basically of
align:start position:0%and so this is a reminder basically ofwhat tie lines are
align:start position:0%what tie lines are
align:start position:0%what tie lines arehow do the common tangents Define the
align:start position:0%how do the common tangents Define the
align:start position:0%how do the common tangents Define thetie lines
align:start position:0%
align:start position:0% they do it through the free energy
align:start position:0%they do it through the free energy
align:start position:0%they do it through the free energycomposition diagram the phase diagram
align:start position:0%
align:start position:0% emerges
align:start position:0%
align:start position:0% from temp
align:start position:0%from temp
align:start position:0%from tempdependence
align:start position:0%
align:start position:0% of free energy
align:start position:0%
align:start position:0% composition diagrams
align:start position:0%
align:start position:0% so I'm going to draw some snapshots here
align:start position:0%so I'm going to draw some snapshots here
align:start position:0%so I'm going to draw some snapshots hereof what how that happens and then we're
align:start position:0%of what how that happens and then we're
align:start position:0%of what how that happens and then we'regoing to spend a lot of time the next
align:start position:0%going to spend a lot of time the next
align:start position:0%going to spend a lot of time the nextcouple weeks on this
align:start position:0%couple weeks on this
align:start position:0%couple weeks on thisso let's say low temp T1
align:start position:0%so let's say low temp T1
align:start position:0%so let's say low temp T1let me draw
align:start position:0%let me draw
align:start position:0%let me drawa
align:start position:0%
align:start position:0% free energy composition diagram
align:start position:0%free energy composition diagram
align:start position:0%free energy composition diagramfor this spinodal system at low
align:start position:0%for this spinodal system at low
align:start position:0%for this spinodal system at lowtemperature and low temperature T1
align:start position:0%temperature and low temperature T1
align:start position:0%temperature and low temperature T1Delta G of mixing
align:start position:0%Delta G of mixing
align:start position:0%Delta G of mixingis basically positive right that's
align:start position:0%is basically positive right that's
align:start position:0%is basically positive right that'sthat's why we have
align:start position:0%
align:start position:0% let me draw it like this
align:start position:0%
align:start position:0% and this is an example it could look
align:start position:0%and this is an example it could look
align:start position:0%and this is an example it could looklike this
align:start position:0%like this
align:start position:0%like thisthis system has a
align:start position:0%this system has a
align:start position:0%this system has acommon tangent right
align:start position:0%
align:start position:0% so now right below this we're going to
align:start position:0%so now right below this we're going to
align:start position:0%so now right below this we're going todraw the phase diagram
align:start position:0%
align:start position:0% this is going to be temperature
align:start position:0%this is going to be temperature
align:start position:0%this is going to be temperatureI'm going to drop down
align:start position:0%I'm going to drop down
align:start position:0%I'm going to drop downthose compositions
align:start position:0%
align:start position:0% this is X
align:start position:0%this is X
align:start position:0%this is X[Music]
align:start position:0%[Music]
align:start position:0%[Music]B and what I've just learned from this
align:start position:0%B and what I've just learned from this
align:start position:0%B and what I've just learned from thiscomma tangent
align:start position:0%comma tangent
align:start position:0%comma tangentis that these two compositions
align:start position:0%
align:start position:0% can coexist at equilibrium
align:start position:0%can coexist at equilibrium
align:start position:0%can coexist at equilibriumat
align:start position:0%at
align:start position:0%attemperature
align:start position:0%temperature
align:start position:0%temperatureT1 so those are two points on the phase
align:start position:0%T1 so those are two points on the phase
align:start position:0%T1 so those are two points on the phasediagram
align:start position:0%diagram
align:start position:0%diagramand I know what's going to happen if I
align:start position:0%and I know what's going to happen if I
align:start position:0%and I know what's going to happen if Ivary temperature so I'm just going to
align:start position:0%vary temperature so I'm just going to
align:start position:0%vary temperature so I'm just going todraw those as
align:start position:0%draw those as
align:start position:0%draw those astwo points on little line segments and
align:start position:0%two points on little line segments and
align:start position:0%two points on little line segments andI'm going to connect them
align:start position:0%I'm going to connect them
align:start position:0%I'm going to connect themwith the tie line
align:start position:0%
align:start position:0% what about
align:start position:0%what about
align:start position:0%what aboutwhat about medium temp
align:start position:0%
align:start position:0% what about medium
align:start position:0%what about medium
align:start position:0%what about mediumso as I raise the temperature
align:start position:0%so as I raise the temperature
align:start position:0%so as I raise the temperaturemy free energy composition diagram will
align:start position:0%my free energy composition diagram will
align:start position:0%my free energy composition diagram willchange
align:start position:0%change
align:start position:0%changeas I raise the temperature mixing
align:start position:0%as I raise the temperature mixing
align:start position:0%as I raise the temperature mixingbecomes more favored
align:start position:0%
align:start position:0% okay
align:start position:0%
align:start position:0% so now my zero of Delta G of mixing will
align:start position:0%so now my zero of Delta G of mixing will
align:start position:0%so now my zero of Delta G of mixing willbe there and I'll draw it um maybe like
align:start position:0%be there and I'll draw it um maybe like
align:start position:0%be there and I'll draw it um maybe likethis
align:start position:0%
align:start position:0% okay
align:start position:0%okay
align:start position:0%okayI've got a common tension right
align:start position:0%
align:start position:0% there
align:start position:0%there
align:start position:0%thereand there
align:start position:0%and there
align:start position:0%and thereyeah
align:start position:0%yeah
align:start position:0%yeahlet's draw the corresponding phase
align:start position:0%let's draw the corresponding phase
align:start position:0%let's draw the corresponding phasediagram
align:start position:0%
align:start position:0% and this is X
align:start position:0%and this is X
align:start position:0%and this is XB
align:start position:0%
align:start position:0% right a T1
align:start position:0%right a T1
align:start position:0%right a T1I had
align:start position:0%I had
align:start position:0%I hadcoexistence at
align:start position:0%coexistence at
align:start position:0%coexistence atlet's say here
align:start position:0%let's say here
align:start position:0%let's say hereand here being a little bit
align:start position:0%and here being a little bit
align:start position:0%and here being a little bitrough with that right so we had a tie
align:start position:0%rough with that right so we had a tie
align:start position:0%rough with that right so we had a tieline here
align:start position:0%line here
align:start position:0%line herenow at T2 I've got coexistence
align:start position:0%
align:start position:0% let's say this is T2 let's say my
align:start position:0%let's say this is T2 let's say my
align:start position:0%let's say this is T2 let's say mycoexistence is here
align:start position:0%coexistence is here
align:start position:0%coexistence is hereand here
align:start position:0%
align:start position:0% all right I'm calling this T2
align:start position:0%all right I'm calling this T2
align:start position:0%all right I'm calling this T2and I've got a tie line there
align:start position:0%
align:start position:0% and now I'm only drawing discrete points
align:start position:0%and now I'm only drawing discrete points
align:start position:0%and now I'm only drawing discrete pointsof temperature but you can imagine this
align:start position:0%of temperature but you can imagine this
align:start position:0%of temperature but you can imagine thissort of now starts to define a
align:start position:0%sort of now starts to define a
align:start position:0%sort of now starts to define aa family of thailands
align:start position:0%a family of thailands
align:start position:0%a family of thailandsso I've shown you how the tie lines of
align:start position:0%so I've shown you how the tie lines of
align:start position:0%so I've shown you how the tie lines ofT1 and T2 emerge
align:start position:0%T1 and T2 emerge
align:start position:0%T1 and T2 emergebut you can imagine that as I sweep the
align:start position:0%but you can imagine that as I sweep the
align:start position:0%but you can imagine that as I sweep thetemperature I have a family of tie lines
align:start position:0%temperature I have a family of tie lines
align:start position:0%temperature I have a family of tie linesand this starts to sweep out
align:start position:0%
align:start position:0% the two-phase region
align:start position:0%
align:start position:0% and then a high temp
align:start position:0%
align:start position:0% T3
align:start position:0%
align:start position:0% again
align:start position:0%
align:start position:0% in high temp I know that my free energy
align:start position:0%in high temp I know that my free energy
align:start position:0%in high temp I know that my free energymixing will pretty much be
align:start position:0%mixing will pretty much be
align:start position:0%mixing will pretty much bestrictly
align:start position:0%strictly
align:start position:0%strictlynegative so I'm going to draw the zero
align:start position:0%negative so I'm going to draw the zero
align:start position:0%negative so I'm going to draw the zeroway up there
align:start position:0%way up there
align:start position:0%way up thereand I can say my solution model might
align:start position:0%and I can say my solution model might
align:start position:0%and I can say my solution model mightlook like
align:start position:0%
align:start position:0% that so no common tangents no inflection
align:start position:0%that so no common tangents no inflection
align:start position:0%that so no common tangents no inflectionpoints
align:start position:0%points
align:start position:0%pointsstrictly positive curvature throughout
align:start position:0%strictly positive curvature throughout
align:start position:0%strictly positive curvature throughoutand so that section of my phase diagram
align:start position:0%and so that section of my phase diagram
align:start position:0%and so that section of my phase diagramwill show
align:start position:0%will show
align:start position:0%will showfullness ability
align:start position:0%
align:start position:0% here's x b
align:start position:0%
align:start position:0% here's T1
align:start position:0%here's T1
align:start position:0%here's T1here's T2 and let's say this up here is
align:start position:0%here's T2 and let's say this up here is
align:start position:0%here's T2 and let's say this up here isT3
align:start position:0%T3
align:start position:0%T3and I'm just going to sketch this now
align:start position:0%and I'm just going to sketch this now
align:start position:0%and I'm just going to sketch this nowsee if we have
align:start position:0%
align:start position:0% right so now my my region of
align:start position:0%right so now my my region of
align:start position:0%right so now my my region oftwo-phase region has closed
align:start position:0%
align:start position:0% and I have finished drawing my you know
align:start position:0%and I have finished drawing my you know
align:start position:0%and I have finished drawing my you knowlittle face diagram
align:start position:0%little face diagram
align:start position:0%little face diagramright so the way I did this here is I
align:start position:0%right so the way I did this here is I
align:start position:0%right so the way I did this here is Idid a very very slow motion
align:start position:0%did a very very slow motion
align:start position:0%did a very very slow motionanimation for you right at each
align:start position:0%animation for you right at each
align:start position:0%animation for you right at eachtemperature you have a free energy
align:start position:0%temperature you have a free energy
align:start position:0%temperature you have a free energycomposition diagram
align:start position:0%composition diagram
align:start position:0%composition diagramat each temperature that free energy
align:start position:0%at each temperature that free energy
align:start position:0%at each temperature that free energycomposition diagram determines for you
align:start position:0%composition diagram determines for you
align:start position:0%composition diagram determines for youwhether or not there are any tie lines
align:start position:0%whether or not there are any tie lines
align:start position:0%whether or not there are any tie linesin the phase diagram it tells you about
align:start position:0%in the phase diagram it tells you about
align:start position:0%in the phase diagram it tells you aboutthe phase stability and equilibrium
align:start position:0%the phase stability and equilibrium
align:start position:0%the phase stability and equilibriumas a function of composition
align:start position:0%as a function of composition
align:start position:0%as a function of compositionat that temperature
align:start position:0%at that temperature
align:start position:0%at that temperatureand so as you tune the temperatures and
align:start position:0%and so as you tune the temperatures and
align:start position:0%and so as you tune the temperatures andknob you sweep through a series of free
align:start position:0%knob you sweep through a series of free
align:start position:0%knob you sweep through a series of freeenergy composition diagrams
align:start position:0%energy composition diagrams
align:start position:0%energy composition diagramsand you gradually build up the phase
align:start position:0%and you gradually build up the phase
align:start position:0%and you gradually build up the phasediagram
align:start position:0%
align:start position:0% so you can imagine a footbook Style
align:start position:0%so you can imagine a footbook Style
align:start position:0%so you can imagine a footbook Styleversion of this
align:start position:0%version of this
align:start position:0%version of thisthe textbook has some nice examples of
align:start position:0%the textbook has some nice examples of
align:start position:0%the textbook has some nice examples ofthis of these free energy composition
align:start position:0%this of these free energy composition
align:start position:0%this of these free energy compositiondiagrams giving rise to phase diagrams
align:start position:0%
align:start position:0% these sort of single temperature
align:start position:0%these sort of single temperature
align:start position:0%these sort of single temperaturesnapshots and in the weeks ahead we're
align:start position:0%snapshots and in the weeks ahead we're
align:start position:0%snapshots and in the weeks ahead we'realso going to play with um an online
align:start position:0%also going to play with um an online
align:start position:0%also going to play with um an onlinekind of animated version of this which
align:start position:0%kind of animated version of this which
align:start position:0%kind of animated version of this whichwe've coded up
align:start position:0%we've coded up
align:start position:0%we've coded upfor use in this class
align:start position:0%for use in this class
align:start position:0%for use in this classokay that's where I want to leave it for
align:start position:0%okay that's where I want to leave it for
align:start position:0%okay that's where I want to leave it fortoday we're finishing about five minutes
align:start position:0%today we're finishing about five minutes
align:start position:0%today we're finishing about five minutesearly so we have plenty of time for
align:start position:0%early so we have plenty of time for
align:start position:0%early so we have plenty of time forquestions I just saw there was a chat
align:start position:0%questions I just saw there was a chat
align:start position:0%questions I just saw there was a chatthere's a common tangent construction
align:start position:0%there's a common tangent construction
align:start position:0%there's a common tangent constructionhelp us to say anything about the
align:start position:0%help us to say anything about the
align:start position:0%help us to say anything about thekinetics of the process of segregation
align:start position:0%kinetics of the process of segregation
align:start position:0%kinetics of the process of segregationno it doesn't this doesn't tell us
align:start position:0%no it doesn't this doesn't tell us
align:start position:0%no it doesn't this doesn't tell usanything about kinetics so this tells us
align:start position:0%anything about kinetics so this tells us
align:start position:0%anything about kinetics so this tells usabout the equilibrium the common tangent
align:start position:0%about the equilibrium the common tangent
align:start position:0%about the equilibrium the common tangentconstruction tells us about the
align:start position:0%construction tells us about the
align:start position:0%construction tells us about thethe equilibrium configuration of the
align:start position:0%the equilibrium configuration of the
align:start position:0%the equilibrium configuration of thesystem
align:start position:0%system
align:start position:0%systemyeah
align:start position:0%yeah
align:start position:0%yeahwe can infer a lot of things about
align:start position:0%we can infer a lot of things about
align:start position:0%we can infer a lot of things aboutkinetics from the phase diagrams
align:start position:0%kinetics from the phase diagrams
align:start position:0%kinetics from the phase diagramsand we can also infer things about
align:start position:0%and we can also infer things about
align:start position:0%and we can also infer things aboutkinetics from the the driving force
align:start position:0%kinetics from the the driving force
align:start position:0%kinetics from the the driving forcefor phase aggregation
align:start position:0%for phase aggregation
align:start position:0%for phase aggregationum
align:start position:0%um
align:start position:0%umthat goes beyond the scope of the class
align:start position:0%that goes beyond the scope of the class
align:start position:0%that goes beyond the scope of the classbut kinetics is really interesting and
align:start position:0%but kinetics is really interesting and
align:start position:0%but kinetics is really interesting andit starts from this point kinetic
align:start position:0%it starts from this point kinetic
align:start position:0%it starts from this point kineticstudies start from phase diagrams like
align:start position:0%studies start from phase diagrams like
align:start position:0%studies start from phase diagrams likethis
align:start position:0%this
align:start position:0%thisand a tendency of a system to
align:start position:0%and a tendency of a system to
align:start position:0%and a tendency of a system tospontaneously unmix that is a tendency
align:start position:0%spontaneously unmix that is a tendency
align:start position:0%spontaneously unmix that is a tendencyfor pattern formation
align:start position:0%for pattern formation
align:start position:0%for pattern formationand what patterns actually form depend
align:start position:0%and what patterns actually form depend
align:start position:0%and what patterns actually form dependon the kinetics depends on the fusion
align:start position:0%on the kinetics depends on the fusion
align:start position:0%on the kinetics depends on the fusioncoefficients depends on temperature
align:start position:0%coefficients depends on temperature
align:start position:0%coefficients depends on temperatureum
align:start position:0%um
align:start position:0%umand that's kind of where where the where
align:start position:0%and that's kind of where where the where
align:start position:0%and that's kind of where where the wherethis curriculum takes off in the fall1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894All right.Good morning.
Let's get going.In today's lecture we continue
with the operational amplifier,"op amp" for short.
And what we are going to do isjust build up a bunch of fun
building blocks using the opamp.
As a quick review --
To quickly review what we'veseen about the op amp --
We represented the op amp as adevice that looked like this
where the amplifier had anincredibly high gain.
So, if I had a small voltagedifference here --
I call this v plus and this vminus with respect to ground.
And if I had a small voltagedifference then this gain here
would multiply the difference bya large number and thereby
giving me an output that was onthe order of a million times
greater than this difference.And because of that when I use
the op amp in a mode like thiswithout any negative feedback
the output would usually crankup to the positive rail or the
negative rail.We also saw that it had
infinite input resistance sothat the current flowing in here
or here was zero and also hadzero output resistance.
This is my ideal op amp whereirrespective of what load I
connect here the op amp wouldsupply pretty much any current.
Now, in practical op ampsthat's not the case.
But suffice it to say that whenused as an ideal op amp the
output impedance,the output resistance is going
to be zero.The op amp is a huge workhorse
of the analog industry.You will see based both on what
you've done on Tuesday andWednesday but also today that
it's very, very simple to buildcircuits using the op amp.
When you use the amplifier,you don't have to worry about
things like nonlinear analysis.You don't have to worry about
am I really meeting the criteriafor saturation limits and so on?
To some extent you have tothink about that with the op
amp, too, because if the outputhits the positive rail or
negative rail it isn't going tobehave like you expect it to.
But fundamentally with thisprimitive model,
this idea model it becomesreally simple to build circuits
with the op amp.Therefore it has become a key
building block for circuits.When circuit designers build
analog circuits very often theirprimitive building blocks are
really an amplifier of thissort, an op amp,
resistors, capacitors and someof our other primitive building
elements.If you look at the course notes
the readings are --There are a bunch of examples
solved in Chapter 16.And you will see that using the
op amp it is indeed possible tobuild current sources that look
like more or less ideal currentsources.
It is also possible to buildvoltage sources and so on.
It is an incredibly neatbuilding block using which you
can do all kinds of cool stuff.
In this course you will see awhole bunch of example circuits
using the op amp.In today's lecture you will see
things like a subtractor.You will also see integrators
and a differentiator.And then in your lab,
lab four, you will build areally fun mixed signal circuit
involving both digital andanalog components.
And you will build what iscalled a digital to an analog
converter using the op amp.And of course I can build all
our good-old amplifiers andcircuits of that sort.
In a later lecture you willalso see how we can build
filters using an op amp.This is going to be using the
knowledge you learn in terms ofconnecting resistors,
capacitors and inductorstogether and doing a frequency
domain analysis,well we can throw the op amp in
there and build filters,too.
This is just to give you apreview of upcoming attractions.
For today I am going to focuson these circuits.
I won't be covering any newtheory or any new set of
foundations but pretty much takethe simple properties that I
have explained to you about theop amp.
And using those simpleproperties very quickly build up
a bunch of circuits that you canuse to analyze signals in a
variety of ways.Let's start with the following
circuit.With op amps I start with this
little guy.And what I am going to do is
use two voltage sources,v1, and this is a resistor,
not an inductor.And value R1,
value R2.So, I have a voltage connected
by a divider,voltage divider to the plus
input.And I am going to provide some
negative feedback in thefollowing way.
This is going to be R2,the same as this one here,
a resistor R1.And then a voltage source v2
that I connect out here.So notice that- Oh,
and I take the output vOUT outhere.
And that vOUT of course is withrespect to ground,
and R2, v1 and v2 are alsoconnected to ground.
What I am going to do isanalyze the circuit it two
different ways,and as I analyze it describe
some other interestingproperties to you.
In the last lecture thetechnique I used to analyze op
amps was one in which I replacedthe op amp with its ideal model
involving a dependent source andso on with a large gain A and
showed that.I wrote the expression and then
I let A increase to infinity tothe limits and got an expression
that was independent of A.And then in recitation
yesterday you would have coveredanother technique which makes it
much simpler to analyze op amps.Let me very quickly review that
method.We fondly call that technique,
there is no formal name for it,but we fondly call that v plus
more or less equal to v minusmethod.
This is also variously calledthe virtual ground method and so
on, but we shall call it the vplus more or less equal to v
minus method.The insight here is that
whenever I use the op amp in away in which I am giving it
negative feedback,so I am feeding some portion of
the output to its negativeinput.
I am giving it negativefeedback.
That's one property.Second property is that my
inputs, v1 and v2,and my resistance values are
chosen such that the output isnot in saturation.
So, the op amp is not at theplus VS rail or minus VS rail.
Rather it's somewhere in themiddle in its active region.
When that happens we claim thatthe v minus and v plus for the
op amp are more or less equal.And to give you some intuition
as to why that is so,let's say the output is 6 volts
and my supply is plus/minus 12.This is 6 volts and the
amplifier is a gain of amillion, ten to the six.
To sustain 6 volts at theoutput all I need is a
difference of 6 microvolts here.Six divided by ten to the six
is the difference between v plusand v minus.
It's very, very,very small.
It's so small as to make v plusmore or less equal to v minus.
All it takes is a very smalldifferential voltage here to
give you 6 volts at the output.The key thing to observe is
under negative feedback,when the op amp is not in
saturation the property that vplus equals v minus holds.
And the way it works is thatit's not that it's a magical
property.It is simply that when I apply
negative feedback the negativefeedback is such that it will
force this v minus node here tobe at more or less the same
voltage as v plus.Remember the when in doubt
simply go back and think aboutthe anti lock brakes example we
did last time.For example if v plus increases
the output will increase and sowill the voltage here and tend
to make these two equal.What we can do,
being rather tricky here,what we'll do is say look,
if we know for a fact thatunder negative feedback the op
amp is going to engineer thesetwo node voltages to be more or
less equal then why don't I justuse that fact to begin with and
analyze my circuit assuming thatit's true.
This is just a bit of invertedlogic here that says look,
the circuit is going to makethat happen.
If the circuit is going to makethat happen to analyze the
circuit in its steady state,why don't I just go ahead and
assume that to begin with?This again goes back to us
wanting to be engineers here anddo whatever is simply and find
the simplest possible way ofgetting some place.
I want to use that method,the v plus equals v minus
method.Let me just first write down
some values that I know about.I know that v plus is simply a
voltage divider relation here.That's v1 times R2 divided by
R1 plus R2.And by the v plus equals v
minus method I know that this isgoing to be equal to v minus.
And this is going to be truebecause I am giving you negative
feedback here.And we are going to engineer
the values of R1,R2, v1 and v2 such that the op
amp is not in saturation.So, we know that.
The next thing that we know,let's say this is a current i.
This current i flows here.Know that there is no current
going in here.Op amp has an infinite input
resistance so there is nothinggoing in there.
There is no current going inthere.
If there is no current going inhere, what must happen to i?
Remember, from the foundationsof the universe Maxwell's
equations and therefore KVL andKCL hold.
KVL and KCL simply comestraight from nature.
You and I cannot mess withthat.
Bad things happen to you if youdo.
So, nature, Maxwell'sequations, KVL,
KCL.It's simply nature.
So, KCL applies here.Current comes in here.
Nothing goes there.Don't argue.
The current has to go here,period.
No if, ands or buts.There is i coming in here,
nothing goes there,so that current must flow here.
It has no choice.It's from basic nature.
I can write down what mycurrent i is going to look like.
What is i going to look like?Well, I know v2,
I know v minus.v minus is the same as v plus.
And v plus is the i expressiongiven here.
So, I can write i as v2 minus vminus divided by R1.
Let me keep track of those twoand then go ahead and compute
vOUT.So, my goal in life is compute
vOUT as a function of the twoinput voltages v1 and v2.
And just for kicks I have goneahead and computed some of the
intermediate node voltages andcurrents.
How do I write vOUT?What is vOUT?
vOUT is simply v minus fromKVL.
vOUT is simply v minus minusthe drop across this resistor.
So, the drop across thatresistor is simply iR2.
From good-old KVL from thefirst lecture,
a voltage minus the drop acrossthe resistor is equal to vOUT.
Therefore it's simply v minusminus iR2.
One thing to be very cautiousabout, I will tell you right
now, is that the output hererelates to the inversion of the
voltage across this resistor R2.Be very, very careful in that
if I have a voltage across thisresistor here that impacts vOUT
with a minus sign attached toit.
Notice that iR2 is the voltageacross R2 and vOUT relates to
the negative of that.Be very cautious.
That's one of the commonestsilly mistakes I have seen
people make in solving problemslike this.
Let's go ahead.I know v minus and I don't know
i.Let me substitute for i for
now, and that is v2 minus vminus divided by R1 times R2.
Let me go ahead and collect allthe v minuses.
v minus, I get a one here,minus minus becomes a plus,
and so I get R2 divided by R1out there.
And then I minus v2 R2 dividedby R1.
That is vOUT.Now let me go ahead and
substitute for v minus.And that is simply v1 R2
divided by R1 plus R2.That is v minus.
And this character here issimplified to be R1,
R1 plus R2 minus v2 R2 dividedby R1.
What do we get?I cancel these two suckers out
and what I end up with is v1 R2divided by R1 minus v2 R2
divided by R1,which is simply R2/R1(v1-v2).
What is interesting here isthat what I have ended up
building is a very primitivesubtractor.
So, my output relates to v1minus v2 multiplied by the
constant factor given by R2divided by R1.
Again, as I pointed out to youat the beginning of this
lecture, no knew foundationstoday, no new theories,
no new disciplines,no new laws.
We are just going to take whatyou have learned --
Three simple things,infinite gain,
infinite input resistance,zero output resistance,
plus this new thing v plusequals v minus.
And just being armed with thosefour principles we are just
going to charge ahead andanalyze a bunch of circuits.
It is purely intellectual andpure applications today.
This is one way of doing it.There is another way of solving
it.We can solve the circuit.
Remember, whenever you see alinear circuit and you see two
sources or three sources,just think superposition,
right?You see a linear circuit and
two or three sources,think superposition.
We should be able to applysuperposition to this.
The op amp is simply anotherbuilding block.
It's a linear circuit.So, let's see if we get the
same answer.Let's try to solve the circuit
using superposition and see ifwe get the same answer.
To do superposition what I amgoing to do is build two
subcircuits.One subcircuit in which v1 is
zero, and that subcircuit lookslike this.
If I set v1 to be zero then Iget R1 parallel R2 going to
ground.So, if v1 is set to zero then
R1 goes to ground.And I get R1 parallel R2 here.
And of course I have v2 asbefore.
And this was R1,this was R2,
and let me call that vOUT1.Oh, I'm sorry.
Let me call it vOUT2corresponding to that component
of the output that relates to v2acting alone.
Remember superposition?Build two subcircuits,
one that depends on v2 andanother one that depends on v1.
Let's do the second one,too.
Second one is v2 going to zero.Here is my little op amp.
And what I will do is simplyflip the op amp just to see if
you can identify someinteresting patterns.
Just flip the op amp around.And this is v1 as before.
And recall that v1 was going tothe plus node through a resistor
R1.And then I had a R2 to ground.
And then let me short v2 toground.
And when I short v2 to groundwhat happens?
When I short v2 to ground whathappens is that the tail of R1
here goes to ground.And so it is as if the output
is connected to the node v minusthrough a resistor,
so it as if the output v R2 isconnected to the minus input
through a resistor.We will draw it like this.
And the minus input goesthrough a resistor R1,
to ground.If you thought that patterns
were important in the earlierpart of the course doing voltage
divider patterns and currentdivider patterns and amplifier
pattern, the source followerpattern, op amps is all about
patterns.You should remember two or
three simple patterns and beable to write down the
expression for those just byobservation.
So, this is one common patternthat you have seen before in the
very first lecture.And I just wrote it down in
that manner.Let me go ahead and solve this
circuit.It turns out that this is also
a pattern.I will analyze it today but in
the future v2 going to this nodethrough R1 and then R2 to the
output.You have probably also seen
this in your recitation.This one is called an inverting
connection and this one here iscalled a non-inverting
connection.Let's go ahead and do vOUT2.
vOUT2 is simply given by,notice that since this is
ground, no current flowing here,this voltage is zero.
If this voltage is zero,this voltage is zero by the v
plus equals v minus method.If this is zero,
the current that goes throughhere is v2 divided by R1.
And that same current must flowthrough the resistance R2 as
well.If the current v2 divided by R1
flows through this resistor,the drop across this resistor
is simply given by,let me hide this for a second,
is simply given by v2.So, v2 divided by R1 is the
current here.This is zero.
So, the drop across thisresistor is v2 R1 multiplied by
R2.That's a drop across this
resistor.This voltage is simply zero
minus a drop across theresistor.
So, it's zero minus the dropacross the resistor and that
gives me v2.Again, remember this minus sign
comes in when I want to convertthis to get the output voltage
from that.This is a very common pattern.
It's called an invertingconnection where the output is
some factor of the input voltageand the factor is given by R2
divided by R1.Let's go ahead and analyze this
guy now.What is vOUT1 equal to?
I should have called this vOUT1because it relates to v1.
vOUT1.There is a v plus here.
From our first lecture I knowthat vOUT1 relates to v plus in
the following way.I know that it is v plus times
the sum of the resistancesdivided by R1.
Based on the first lecture thisis true.
vOUT1 is simply an amplifiedversion of v plus where the
amplification factor is given byR1 plus R2 divided by R1.
And I know v plus is simply avoltage divider action here.
And I can take a simple voltagedivider action here because the
current going in is zero.Looking in here this is as if
it's an infinite resistance,so it is as if the element
simply does not exist.The voltage here is simply v1
divided by R1 plus R2 multipliedby R2, our voltage divider
pattern.So, I get v1 times R2 divided
by R1 plus R2 times R1 plus R2divided by R1.
These two cancel out whichgives me vOUT1 is simply v1 R2
divided by R1.To get vOUT I add up the two.
vOUT is vOUT1 plus vOUT2,which is my goal.
And that is simply v1 R2 by R1minus v2 R2 by R1.
Thankfully what we have here isthe same as here.
Again, there is really nothingnew that I am going to cover
today.Simply apply,
apply, apply,four simple principles.
Here I have used superpositionand I am showing you a circuit.
So, it turns out with op ampsyou should really remember that
pattern.You will see it again and again
and again.And each time you see it,
it will save you six minutes ofhaving to solve the circuit
without knowing the pattern.So, remember this pattern.
You can pick up another threeor four minutes by remembering
this pattern here.This pattern is simply v2 R2
divided by R1.Imprint those two patterns into
your brains.OK, so those are a couple of
simple circuits using the opamp.
We built a subtractor.The next step,
let's go ahead and try to buildan integrator.
Using this little buildingblock we can go ahead and try to
build a bunch of circuits.We can build filters,
A to D converters and so on.Let's build an integrator.
Abstractly I need to build thisbox.
Which when fed a vI,I want that box to integrate
and give me a vO which is vIintegrated over time.
That is what I want to build.How do I go about building it?
What I would like to do next isgive you some flavor for design.
How do you go about designingthings with an op amp?
Knowing that you do not knowthe pattern for this yet,
how do you go about designingthings?
Well, let's start with thefollowing intuition.
The intuition that I begin withis that if I have a current i,
and remember that capacitorsand inductors related to,
you saw differentiation andintegration happening when we
dealt with capacitors andinductors.
So, I think we have to invoke acapacitor here or an inductor.
In this example I invoke acapacitor.
Notice that if I stick acapacitor in here this current
is i, capacitance C,then my voltage vO is given by
what?Voltage is simply the integral
of the current flowing throughit or vice versa i is C dv/dt.
If i is C dv/dt then v issimply one by C integral.
If I can pass the currentthrough a capacitor then the
voltage across the capacitormust be a current.
Notice then that vO is relatedto i dt.
I have some multiplyingconstants and so on,
but fundamentally what I havefound is if I can stick a
current through a capacitor thenthe voltage across the capacitor
relates to the integral of thecurrent.
OK, that's interesting.So, I have an integral in
there.But I have a current.
Notice my goal was to integratea voltage.
What I figured out how to dowas if I can turn that voltage
into a current --If I can turn that voltage into
a proportional current and thenpump that current through a
capacitor I will get theintegration that I want.
How do I convert my vI to i?How do I do that?
Well, let's take a stab at it.Here is my vI.
Let's take the resistor R.And remember I need to stick
the capacitor here.I have some current I here.
I don't know what the currentis yet.
And I stick a voltage here.And what I am trying to do is
trying to see if I stick avoltage and a resistance in
series then there is somerelationship between the current
and this voltage.Recall that I am trying to make
this current be directlyproportional to the voltage vI.
But it turns out that i here isnot equal to vI divided by R.
If i was vI divided by Rsomehow, I am done.
If i was vI divided by R,by some magic,
then I have converted myvoltage to a current,
I feed that current through mycapacitor and vO is my integral
that I am looking for.But unfortunately i is not
equal to vI divided by R.You know that.
i relates to vI minus thecapacitor voltage divided by R.
So, i is not simply vI dividedby R for all time but i is
really vI minus the capacitorvoltage divided by R.
And, in fact,when we did RC circuits you
wrote this equation to representthe dynamics of the circuit,
RC dvO by dt plus vO equals vI.We wrote down this circuit for
a first order RC,wrote this equation for a first
order RC circuit.Now, it does turn out,
to wrap up on this wild goosechase that we went on,
it does turn out that if thisterm here is much bigger than
that term.If this term is much bigger
than that term then I can ignorethat term and write down RC dvO
by dt more or less equal to vI.If that were true,
this would be true,and then vO would be more or
less equal to one by RC integralof vI dt.
Again, if this were true.If this were true for all time
then vO would be integral of vIdt.
Again, remember this is all awild goose chase.
Just write down WGC there justso you don't get confused.
I am on this wild goose hunthere trying to find a way to get
a current from a voltage which Ican then feed into a capacitor.
This was one thing I knew,but this was not what I want.
But it does turn out to be whatI want when vO is very,
very small.So, I see some glimmer of hope
but not quite.It turns that in R and C,
if I make R and C very,very big, if I have a huge time
constant, with a huge timeconstant the voltage vO looks
like an integral of vI,but only when I have a very
huge time constant.So, I give up on that track.
Instead I try something else.
Another try.I would like you to notice if
you take your op amp,here is your op amp,
if you take this op amp and youstick the positive terminal to
ground, under reasonablefeedback, under reasonable
negative feedback what do younotice about the current?
If I had a current i flowinghere what did you notice?
Look at this picture.I had a current i flowing in
here, v2 divided by R1.And because this resistance was
infinite all the current wentthrough the upper terminal.
So, this is zero volts.And by the v plus equals v
minus method this is also moreor less equal to zero.
And I have a current i flowingin here, nothing goes here,
so then the i must flow upthere.
So, all I am doing here iscausing a reflection of the
current from this grounded node.My current is being reflected
into, or deflected if you feellike it, the upper edge here
after coming in through thisedge.
That is interesting.We are just one step away from
the key insight.
I have an i coming in here,an i going out there.
Notice that,as I said before,
this is zero volts.How do I get my voltage vI to
look like a current,to become proportional to a
current?It is simple now.
All I do is put a voltage vIand put a resistor R out there.
If I do that,and since this is zero,
the current i is given by vIdivided by R.
I have gotten to where I wantto be.
So, by using an op amp andusing the fact that the minus
node here, v minus is at thesame potential as v plus when
there is negative feedback thenI can stick a resistor here.
And because this is zero thecurrent here is simply vI
divided by R.I have gotten to the first
place.Now all I need to do is simply
pump this current through acapacitor and I get the integral
of the, the voltage becomes anintegral of the current.
That is easy.I stick my capacitor here and I
get my answer out there as vO.Notice that when I do this,
let's say this is plus/minusVC.
This is zero.So, vO is minus VC.
Again, I will keep emphasizingit maybe 17 times throughout
this course that if this is zerothen the output here is related
to the negative of this voltage,common, common,
common mistake.I will be very upset after
doing all this if I see thismistake happen in any of the
future homeworks or finals orwhatever.
This should not happen.So, vO is a minus sign here VC.
And I know that if I have acurrent i through a capacitor
what is VC?If I have current i through a
capacitor than this is simply ti dt.
And i by design is --So, I have my integrator.
It is a two-step process.I stuck a resistor here,
so the current became equal tovI divided by R.
Then I took that current andpumped it through a capacitor
through this terminal here,and the voltage across the
capacitor for a current i isgiven by this expression.
This is Capacitors 101.OK Capacitors 101 says that the
voltage across the capacitor issimply one by C integral i dt.
Another way of looking at it isthe voltage across the capacitor
is C, I'm sorry,the current through a capacitor
is C dv/dt.This is simply the integral
form of that equation.And I am done with my
integrator.So, this is another very common
building block.Remember this.
Most of the circuits we will beseeing with op amps simply
involve something here and somethere.
And the output in thisinverting connection is the
output times,if it is a resistance it is
simply R2 divided by R1,if it's a capacitor I get the
integral form looking like this.Yes.
Can someone tell me where thenegative sign went?
The blackboard ate it up.Good catch.
After all that lecture aboutwatching the negative sign.
After this little bit of fauxpas here, now I will be doubly
mad if you guys make thatmistake.
All right.Now that we have built the
integrator, I could give thisout as a homework problem.
And you should be able todesign a differentiator based on
what you've learned here.You now have the tools to go
and do some design like this,but we don't have any more
homeworks left so I guess I willgo ahead and solve this for you
right here and do the design foryou.
The building block that we needlooks like this,
d/dt here.Let me take a vI and stick a vI
in there.That's what I want to build.
And what I built here is thatdifferent integrator box.
And what I would like to do nowis build a differentiator box.
How do I go about doing it?I will go really slow here so
you will have some time to thinkabout it for yourselves and see
if you folks are crack op ampcircuit designers already,
if you have the right instinctshere.
Again, when you seedifferentiation integration
think capacitors or inductors,it doesn't matter.
In fact, as a homeworkexercise, you may want to go
back and see how you can get asimilar effect using inductors.
Can you play with inductors andget a similar effect?
So, inductors are devices thatare a dual of the capacitor.
Whatever we will do withcapacitors, there must be a
corresponding way withinductors.
You can try it out in yourspare time.
Let's go back to this one here.I will stick with the capacitor
way of looking at things.I need a differentiation now.
Remember this.If I have a vI and I stick this
across a capacitor,I have a current C and some
voltage vc across the capacitor,what does i relate to?
i is simply C dv/dt and vc inthis case is simply C dvI/dt.
If I can stick a voltage acrossa capacitor, if my input voltage
is stuck across a capacitor thenthe resulting current relates to
dvI/dt.Here we have the opposite
problem.By doing this simple trick,
I can obtain a current that hasthe right form.
Now what I need to do issomehow convert that current
into a voltage because theabstraction that I need is a
voltage to voltage.The next step,
what I need to do is somehowconvert a current to a voltage.
How do I go about doing that?Again, remember for the op amp,
if I have a current i flowinghere then by the reflection
property i gets pushed up intothis edge, provided that the
whole circuit is working withdescent negative feedback.
Given this trick what I can dois say look, suppose I did this.
Remember, my goal here is howdo I convert a current to a
voltage?I have a current i coming in
here, and I can turn that into avoltage because I know the
current must come out here,I know this current must come
out there.All I have to do is stick a
resistor in there.If I stick a resistor in there
what is vO equal to?vO is simply iR,
right?That's right.
vO, I get i here,so i pumps through here.
Remember, what comes in heremust get reflected up because
the current going in here iszero.
All the i must come out here.So, that i must pump through
this resistor.The drop across this resistor
is iR.That's the voltage drop across
that resistor.And since this at a virtual
ground the output here is simplyzero minus this drop which is
minus iR.So, I have gotten to where I
want to be.I have my current i being
converted to a voltage.I have taken my current,
and I have been able to convertthat into a voltage by sticking
a resistor in here.As a final step,
I simply need to produce thecurrent.
And that is pretty easy to do.Abstractly what I need to do,
again, this is design here sowe will talk about abstract
stuff.If I had a voltage vI,
I need to produce a currentwhich relates to C dvI/dt.
And I know I can do that bysimply doing this.
By doing this I know my i is CdvI, correct?
If I can get this effect,I put this in quotes because
that's my pattern.I am looking for a pattern,
where a voltage vI is directlyapplied across a capacitor.
And when that happens thecurrent relates to C dv/dt.
Let's go back to our op amppattern here,
op amp circuit.So far I have achieved --
I just repeated this out there.And so somehow I need to take
this pattern here and learn fromthat pattern and apply the
pattern here.So, what I can do is,
this is a ground node,correct?
Now, the poor little capacitor,what does it care,
whether it's a ground node or avirtual ground node?
As long as it's a zero voltnode down here what does it
care?What I am going to do is stick
this point, not here but into avirtual ground node.
I am going to grab that point,take it here and stick it here.
The poor little capacitordoesn't know the difference.
I have really suckered thelittle beast.
This is vI.Remember this.
My i through the capacitor isproportional to C dv/dt.
Instead what I have done istaken this guy and stuck it here
to get something like this.Just remember these four or
five little tricks.And you apply them in op amp
circuits again and again andagain and again.
So, this is vI,this is my virtual ground.
As far as this poor littlecapacitor is concerned,
it is chugging along merrilythinking that it is connected to
ground.Little does it know it is only
a virtual ground,all right?
But the current i here issimply C dvI/dt.
And that current,the C dvI/dt,
that current flows through hereand gives me vO as iR.
So, vO is simply minus R.Let me substitute for i there,
C dvI/dt.OK, so notice then that my vO
is now proportional to dvI/dt.So, vO is some RC time constant
times dvI/dt.Therefore, I have my
differentiator circuit.Remember this as a closing
thought.Remember this v plus more or
less equal to v minus trick.And to the extent possible
simply use that trick to analyzeop amp circuits under feedback
and not in saturation.Just remember these two.
Very quickly for the demo,I have a square wave input here
to the op amp,that's my vI to the integrator.
And this is the output vO.The integral of a square wave
is a triangular wave,as you can see.
And we will do the same thingfor a differentiator.
And for the differentiator,I input the square wave to this
differentiator circuit.And I get this,
wherever there is a sharp rise,I get this huge negative spike
and a positive spike because ofthe minus sign.
So, this is the differentiatorcircuit.
Then I feed this into the opamp.
OK.Thank you.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347align:start position:0% hi welcome back today's problem is about
align:start position:0%hi welcome back today's problem is about
align:start position:0%hi welcome back today's problem is aboutsolving homogeneous linear systems ax
align:start position:0%solving homogeneous linear systems ax
align:start position:0%solving homogeneous linear systems axequals B equals 0 but it's also an
align:start position:0%equals B equals 0 but it's also an
align:start position:0%equals B equals 0 but it's also anintroduction to the next lecture and
align:start position:0%introduction to the next lecture and
align:start position:0%introduction to the next lecture andnext recitation section which are going
align:start position:0%next recitation section which are going
align:start position:0%next recitation section which are goingto be about solving non homogeneous
align:start position:0%to be about solving non homogeneous
align:start position:0%to be about solving non homogeneouslinear systems ax equals B the problem
align:start position:0%linear systems ax equals B the problem
align:start position:0%linear systems ax equals B the problemis fill the blanks type and it says the
align:start position:0%is fill the blanks type and it says the
align:start position:0%is fill the blanks type and it says theset s of all points with coordinates XY
align:start position:0%set s of all points with coordinates XY
align:start position:0%set s of all points with coordinates XYand Z such that X minus 5y plus 2z
align:start position:0%and Z such that X minus 5y plus 2z
align:start position:0%and Z such that X minus 5y plus 2zequals 9 is a blank in r3 it is in a
align:start position:0%equals 9 is a blank in r3 it is in a
align:start position:0%equals 9 is a blank in r3 it is in acertain relation to the other blank s0
align:start position:0%certain relation to the other blank s0
align:start position:0%certain relation to the other blank s0of all the points with coordinates XY
align:start position:0%of all the points with coordinates XY
align:start position:0%of all the points with coordinates XYand z that satisfy the following linear
align:start position:0%and z that satisfy the following linear
align:start position:0%and z that satisfy the following linearequation x minus 5y plus 2z equals 0
align:start position:0%equation x minus 5y plus 2z equals 0
align:start position:0%equation x minus 5y plus 2z equals 0after we solve this we have the second
align:start position:0%after we solve this we have the second
align:start position:0%after we solve this we have the secondpart of the problem which says all
align:start position:0%part of the problem which says all
align:start position:0%part of the problem which says allpoints of X have a specific form XYZ
align:start position:0%points of X have a specific form XYZ
align:start position:0%points of X have a specific form XYZequals blank 0 0 plus some parameter x
align:start position:0%equals blank 0 0 plus some parameter x
align:start position:0%equals blank 0 0 plus some parameter xblank 1 0 plus some other parameter x
align:start position:0%blank 1 0 plus some other parameter x
align:start position:0%blank 1 0 plus some other parameter xblank 0 1 and we need to fill fill out
align:start position:0%blank 0 1 and we need to fill fill out
align:start position:0%blank 0 1 and we need to fill fill outall 6 blanks now you should pause the
align:start position:0%all 6 blanks now you should pause the
align:start position:0%all 6 blanks now you should pause thevideo fill in the blanks and then come
align:start position:0%video fill in the blanks and then come
align:start position:0%video fill in the blanks and then comeback and see some pretty pictures that I
align:start position:0%back and see some pretty pictures that I
align:start position:0%back and see some pretty pictures that Iprepared for you
align:start position:0%
align:start position:0% and we're back so you probably pick this
align:start position:0%and we're back so you probably pick this
align:start position:0%and we're back so you probably pick thisup in lectures already if you have a
align:start position:0%up in lectures already if you have a
align:start position:0%up in lectures already if you have athree-dimensional space with three
align:start position:0%three-dimensional space with three
align:start position:0%three-dimensional space with threedegrees of freedom and put in one
align:start position:0%degrees of freedom and put in one
align:start position:0%degrees of freedom and put in oneconstraint so put in one equation you
align:start position:0%constraint so put in one equation you
align:start position:0%constraint so put in one equation youget something that has two degrees of
align:start position:0%get something that has two degrees of
align:start position:0%get something that has two degrees offreedom something that's two-dimensional
align:start position:0%freedom something that's two-dimensional
align:start position:0%freedom something that's two-dimensionalif this equation is linear
align:start position:0%if this equation is linear
align:start position:0%if this equation is linearrather than quadratic or cubic or
align:start position:0%rather than quadratic or cubic or
align:start position:0%rather than quadratic or cubic orexponential this something is something
align:start position:0%exponential this something is something
align:start position:0%exponential this something is somethingtwo-dimensional and flat something
align:start position:0%two-dimensional and flat something
align:start position:0%two-dimensional and flat somethingtwo-dimensional and flat in r3 is also
align:start position:0%two-dimensional and flat in r3 is also
align:start position:0%two-dimensional and flat in r3 is alsocalled a plane or a two plane similarly
align:start position:0%called a plane or a two plane similarly
align:start position:0%called a plane or a two plane similarlys 0 is also a plane now what's the
align:start position:0%s 0 is also a plane now what's the
align:start position:0%s 0 is also a plane now what's therelation between s and s 0 if they're
align:start position:0%relation between s and s 0 if they're
align:start position:0%relation between s and s 0 if they'regiven by these two equations well first
align:start position:0%given by these two equations well first
align:start position:0%given by these two equations well firstlet's look at the general positions in
align:start position:0%let's look at the general positions in
align:start position:0%let's look at the general positions inwhich two planes in r3 can be first one
align:start position:0%which two planes in r3 can be first one
align:start position:0%which two planes in r3 can be first oneis that they're intersecting along the
align:start position:0%is that they're intersecting along the
align:start position:0%is that they're intersecting along theline what's going to happen here is that
align:start position:0%line what's going to happen here is that
align:start position:0%line what's going to happen here is thatall points on this plane are points
align:start position:0%all points on this plane are points
align:start position:0%all points on this plane are pointswhose coordinates satisfy the equation
align:start position:0%whose coordinates satisfy the equation
align:start position:0%whose coordinates satisfy the equationof this plane the points in this plane
align:start position:0%of this plane the points in this plane
align:start position:0%of this plane the points in this planeare points were scored in it satisfied
align:start position:0%are points were scored in it satisfied
align:start position:0%are points were scored in it satisfiedthe equation of this plane and the
align:start position:0%the equation of this plane and the
align:start position:0%the equation of this plane and thepoints on the line are points whose
align:start position:0%points on the line are points whose
align:start position:0%points on the line are points whosecoordinates satisfy the system of this
align:start position:0%coordinates satisfy the system of this
align:start position:0%coordinates satisfy the system of thisequation and this equation the other
align:start position:0%equation and this equation the other
align:start position:0%equation and this equation the otherposition in which two points can be easy
align:start position:0%position in which two points can be easy
align:start position:0%position in which two points can be easyis that they're not intersecting at all
align:start position:0%is that they're not intersecting at all
align:start position:0%is that they're not intersecting at alldid they're parallel so let's start by
align:start position:0%did they're parallel so let's start by
align:start position:0%did they're parallel so let's start bytrying to find this line here the
align:start position:0%trying to find this line here the
align:start position:0%trying to find this line here theequation of the equation of excuse me
align:start position:0%equation of the equation of excuse me
align:start position:0%equation of the equation of excuse methe equation of a of one plane is X
align:start position:0%the equation of a of one plane is X
align:start position:0%the equation of a of one plane is Xminus 5y plus two Z equal nine the
align:start position:0%minus 5y plus two Z equal nine the
align:start position:0%minus 5y plus two Z equal nine theequation of the other one is X minus 5y
align:start position:0%equation of the other one is X minus 5y
align:start position:0%equation of the other one is X minus 5yplus 2z equals 0 now you can just look
align:start position:0%plus 2z equals 0 now you can just look
align:start position:0%plus 2z equals 0 now you can just lookat it and see how many solutions it's
align:start position:0%at it and see how many solutions it's
align:start position:0%at it and see how many solutions it'ssupposed to have or you can try doing
align:start position:0%supposed to have or you can try doing
align:start position:0%supposed to have or you can try doingelimination and after one step of
align:start position:0%elimination and after one step of
align:start position:0%elimination and after one step ofelimination get 0 equals 9 which never
align:start position:0%elimination get 0 equals 9 which never
align:start position:0%elimination get 0 equals 9 which neverhappens there cannot exist numbers x y&z
align:start position:0%happens there cannot exist numbers x y&z
align:start position:0%happens there cannot exist numbers x y&zsuch that this combination of them
align:start position:0%such that this combination of them
align:start position:0%such that this combination of themproduces 0 and the same combination of
align:start position:0%produces 0 and the same combination of
align:start position:0%produces 0 and the same combination ofthem
align:start position:0%them
align:start position:0%themnine at the same time so this red line
align:start position:0%nine at the same time so this red line
align:start position:0%nine at the same time so this red linehere doesn't exist and the situation of
align:start position:0%here doesn't exist and the situation of
align:start position:0%here doesn't exist and the situation ofthese two planes S&S zero is this one
align:start position:0%these two planes S&S zero is this one
align:start position:0%these two planes S&S zero is this onethey're parallel so let's add the word
align:start position:0%they're parallel so let's add the word
align:start position:0%they're parallel so let's add the wordparallel in here
align:start position:0%parallel in here
align:start position:0%parallel in hereand let's move on to the other half of
align:start position:0%and let's move on to the other half of
align:start position:0%and let's move on to the other half ofthe problem the other half said all
align:start position:0%the problem the other half said all
align:start position:0%the problem the other half said allpoints of s have this specific form now
align:start position:0%points of s have this specific form now
align:start position:0%points of s have this specific form nowlet me call this point here p0 if all
align:start position:0%let me call this point here p0 if all
align:start position:0%let me call this point here p0 if allpoints of s have this form we can plug
align:start position:0%points of s have this form we can plug
align:start position:0%points of s have this form we can plugin any parameters C 1 and C 2 here and
align:start position:0%in any parameters C 1 and C 2 here and
align:start position:0%in any parameters C 1 and C 2 here andwe're going to get a point of the plane
align:start position:0%we're going to get a point of the plane
align:start position:0%we're going to get a point of the planeso in particular we can plug in C 1 and
align:start position:0%so in particular we can plug in C 1 and
align:start position:0%so in particular we can plug in C 1 andC 2 equal to 0 what we get then is that
align:start position:0%C 2 equal to 0 what we get then is that
align:start position:0%C 2 equal to 0 what we get then is thatthe point XYZ equals p 0 is a point of
align:start position:0%the point XYZ equals p 0 is a point of
align:start position:0%the point XYZ equals p 0 is a point ofthe plane s so p 0 is in s what do I
align:start position:0%the plane s so p 0 is in s what do I
align:start position:0%the plane s so p 0 is in s what do Iknow about the point p 0 well the fact
align:start position:0%know about the point p 0 well the fact
align:start position:0%know about the point p 0 well the factthat it's in s means that it's
align:start position:0%that it's in s means that it's
align:start position:0%that it's in s means that it'scoordinates X minus 5y plus 2 Z equal 9
align:start position:0%coordinates X minus 5y plus 2 Z equal 9
align:start position:0%coordinates X minus 5y plus 2 Z equal 9that's the equation of s but we also
align:start position:0%that's the equation of s but we also
align:start position:0%that's the equation of s but we alsoknow that y and z are equal to 0 and 0
align:start position:0%
align:start position:0% solving this system we get the x
align:start position:0%solving this system we get the x
align:start position:0%solving this system we get the xcoordinate of this point P of this point
align:start position:0%coordinate of this point P of this point
align:start position:0%coordinate of this point P of this pointp 0 is 9 and we can just add 9 here ok
align:start position:0%p 0 is 9 and we can just add 9 here ok
align:start position:0%p 0 is 9 and we can just add 9 here okso we just have two blanks left to fill
align:start position:0%so we just have two blanks left to fill
align:start position:0%so we just have two blanks left to fillbefore I fill them let me show you a
align:start position:0%before I fill them let me show you a
align:start position:0%before I fill them let me show you apicture that I drew here so we have
align:start position:0%picture that I drew here so we have
align:start position:0%picture that I drew here so we havethese two planes s 0 and s which are
align:start position:0%these two planes s 0 and s which are
align:start position:0%these two planes s 0 and s which areparallel they're given by these
align:start position:0%parallel they're given by these
align:start position:0%parallel they're given by theseequations and the plane s 0 has a point
align:start position:0%equations and the plane s 0 has a point
align:start position:0%equations and the plane s 0 has a point0 in it because the equation is X minus
align:start position:0%0 in it because the equation is X minus
align:start position:0%0 in it because the equation is X minus5y plus 2z equals 0 so it satisfied by 0
align:start position:0%5y plus 2z equals 0 so it satisfied by 0
align:start position:0%5y plus 2z equals 0 so it satisfied by 00 0 the plane s has this point p 0
align:start position:0%0 0 the plane s has this point p 0
align:start position:0%0 0 the plane s has this point p 0it which is nine zero zero we just
align:start position:0%it which is nine zero zero we just
align:start position:0%it which is nine zero zero we justfigured this out and there's this vector
align:start position:0%figured this out and there's this vector
align:start position:0%figured this out and there's this vectorconnecting one plane to the other now
align:start position:0%connecting one plane to the other now
align:start position:0%connecting one plane to the other nowsince those two planes are parallel and
align:start position:0%since those two planes are parallel and
align:start position:0%since those two planes are parallel andthere's this vector going between them
align:start position:0%there's this vector going between them
align:start position:0%there's this vector going between themwhat we can see is that a way a good way
align:start position:0%what we can see is that a way a good way
align:start position:0%what we can see is that a way a good wayto get any point in S is to go to any
align:start position:0%to get any point in S is to go to any
align:start position:0%to get any point in S is to go to anypoint in s zero and go up by this vector
align:start position:0%point in s zero and go up by this vector
align:start position:0%point in s zero and go up by this vectornow let me write this down it's what I
align:start position:0%now let me write this down it's what I
align:start position:0%now let me write this down it's what Ijust said is that any point in S is of
align:start position:0%just said is that any point in S is of
align:start position:0%just said is that any point in S is ofthe form go use this vector to go up
align:start position:0%the form go use this vector to go up
align:start position:0%the form go use this vector to go upplus any point in s 0 and if we compare
align:start position:0%plus any point in s 0 and if we compare
align:start position:0%plus any point in s 0 and if we comparethis to this expression here we also get
align:start position:0%this to this expression here we also get
align:start position:0%this to this expression here we also getp 0 plus this linear combination so this
align:start position:0%p 0 plus this linear combination so this
align:start position:0%p 0 plus this linear combination so thishere has to be a point in s 0 now we're
align:start position:0%here has to be a point in s 0 now we're
align:start position:0%here has to be a point in s 0 now we'releft with a question of how to
align:start position:0%left with a question of how to
align:start position:0%left with a question of how toparameterize all points in s 0 what are
align:start position:0%parameterize all points in s 0 what are
align:start position:0%parameterize all points in s 0 what areall the points in s 0 and what does this
align:start position:0%all the points in s 0 and what does this
align:start position:0%all the points in s 0 and what does thisproblem have to do with solving
align:start position:0%problem have to do with solving
align:start position:0%problem have to do with solvinghomogeneous linear equations well let me
align:start position:0%homogeneous linear equations well let me
align:start position:0%homogeneous linear equations well let mewrite this equation of s 0 in a slightly
align:start position:0%write this equation of s 0 in a slightly
align:start position:0%write this equation of s 0 in a slightlydifferent way let me write it as 1 minus
align:start position:0%
align:start position:0% 5/2 X Y Z equals 0 and let me think of
align:start position:0%5/2 X Y Z equals 0 and let me think of
align:start position:0%5/2 X Y Z equals 0 and let me think ofthis as a matrix of the system it's a
align:start position:0%this as a matrix of the system it's a
align:start position:0%this as a matrix of the system it's avery tiny matrix but it's a matrix and
align:start position:0%very tiny matrix but it's a matrix and
align:start position:0%very tiny matrix but it's a matrix andthink of it as a matrix dot vector
align:start position:0%think of it as a matrix dot vector
align:start position:0%think of it as a matrix dot vectorequals 0 and trying to find all
align:start position:0%equals 0 and trying to find all
align:start position:0%equals 0 and trying to find allsolutions of the system well let's do
align:start position:0%solutions of the system well let's do
align:start position:0%solutions of the system well let's dorow reductions here it's already as
align:start position:0%row reductions here it's already as
align:start position:0%row reductions here it's already asupper triangular as these tiny matrices
align:start position:0%upper triangular as these tiny matrices
align:start position:0%upper triangular as these tiny matricesget this is a pivot so we have a pivot
align:start position:0%get this is a pivot so we have a pivot
align:start position:0%get this is a pivot so we have a pivotvariable X
align:start position:0%
align:start position:0% these are free variables Y and Z and if
align:start position:0%these are free variables Y and Z and if
align:start position:0%these are free variables Y and Z and ifyou remember how to solve these systems
align:start position:0%you remember how to solve these systems
align:start position:0%you remember how to solve these systemswe for each free variable we get one
align:start position:0%we for each free variable we get one
align:start position:0%we for each free variable we get oneparticular solution so we get one
align:start position:0%particular solution so we get one
align:start position:0%particular solution so we get oneparticular solution when we plug in Y is
align:start position:0%particular solution when we plug in Y is
align:start position:0%particular solution when we plug in Y isone and all the other free variables are
align:start position:0%one and all the other free variables are
align:start position:0%one and all the other free variables arezero plugging it in in here we just get
align:start position:0%zero plugging it in in here we just get
align:start position:0%zero plugging it in in here we just getthat in that case X so we get X minus 5
align:start position:0%that in that case X so we get X minus 5
align:start position:0%that in that case X so we get X minus 5times 1 plus 2 times 0 equals 0 so X is
align:start position:0%times 1 plus 2 times 0 equals 0 so X is
align:start position:0%times 1 plus 2 times 0 equals 0 so X isequal to 5
align:start position:0%equal to 5
align:start position:0%equal to 5and the other solution is for setting
align:start position:0%and the other solution is for setting
align:start position:0%and the other solution is for settingall three variables equal to 0 except Z
align:start position:0%all three variables equal to 0 except Z
align:start position:0%all three variables equal to 0 except Zwhich we set equal to 1 and then we get
align:start position:0%which we set equal to 1 and then we get
align:start position:0%which we set equal to 1 and then we getX minus 5 times 0 plus 2 times 1 equals
align:start position:0%X minus 5 times 0 plus 2 times 1 equals
align:start position:0%X minus 5 times 0 plus 2 times 1 equals0 so we get that in this case x equals
align:start position:0%0 so we get that in this case x equals
align:start position:0%0 so we get that in this case x equals-2 and any solution of this system is
align:start position:0%-2 and any solution of this system is
align:start position:0%-2 and any solution of this system isgoing to be of the form some constant
align:start position:0%going to be of the form some constant
align:start position:0%going to be of the form some constanttimes this plus some other constant
align:start position:0%times this plus some other constant
align:start position:0%times this plus some other constanttimes s and if we walk back to our
align:start position:0%times s and if we walk back to our
align:start position:0%times s and if we walk back to ouroriginal problem here we see that these
align:start position:0%original problem here we see that these
align:start position:0%original problem here we see that theseparameters these numbers here have been
align:start position:0%parameters these numbers here have been
align:start position:0%parameters these numbers here have beenset up exactly so that we can just take
align:start position:0%set up exactly so that we can just take
align:start position:0%set up exactly so that we can just takethese numbers and just copy them over 5
align:start position:0%these numbers and just copy them over 5
align:start position:0%these numbers and just copy them over 5and minus 2 and this is the general form
align:start position:0%and minus 2 and this is the general form
align:start position:0%and minus 2 and this is the general formof any point of the plane s it's go up
align:start position:0%of any point of the plane s it's go up
align:start position:0%of any point of the plane s it's go upthis vector and then add a point in s 0
align:start position:0%this vector and then add a point in s 0
align:start position:0%this vector and then add a point in s 0in the parallel plane that passes
align:start position:0%in the parallel plane that passes
align:start position:0%in the parallel plane that passesthrough the origin this finishes our
align:start position:0%through the origin this finishes our
align:start position:0%through the origin this finishes ourproblem but what I would encourage you
align:start position:0%problem but what I would encourage you
align:start position:0%problem but what I would encourage youto do now is to go on to the next
align:start position:0%to do now is to go on to the next
align:start position:0%to do now is to go on to the nextlecture watch the next recitation video
align:start position:0%lecture watch the next recitation video
align:start position:0%lecture watch the next recitation videoand then come back here and think about
align:start position:0%and then come back here and think about
align:start position:0%and then come back here and think aboutwhat what is it that we really did here
align:start position:0%what what is it that we really did here
align:start position:0%what what is it that we really did hereon this half of the board thank you1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400The followingcontent is provided
under a CreativeCommons license.
Your support will help MITOpenCourseWare continue
to offer high qualityeducational resources for free.
To make a donation or toview additional materials
from hundreds of MIT courses,visit MIT OpenCourseWare
at ocw.mit.edu.
PROFESSOR: Alright,and with that,
I think we'll be ready tostart on lecture seven.
Not really a lecture,we're just talking
about lessons fromthe Sprint Tournament.
And you could whine andcomplain about the map set
and I would totally support you.
Because that map set was crazy.
So, I'm just goingto have a seat here
and I'll bring up this littleWord document that I've got.
Where we're going to talkabout a few aspects of maps,
a few aspects of teams.
So let's zoom right on in.
So, map dependent stuff,which is written here.
So, we saw a bunch of stuff thatreally killed a bunch of teams.
We had mines inthe way of spawn.
Make sure you checkthat you don't
try to spawn a uniton top of a mine.
That's another thing, if aunit is on top of a mine,
for whatever reason, heshould probably try to move.
In previous years,we've had spawn delays,
so that when aunit is spawned it
can't move for a certainnumber of rounds.
But not this year, hecan move immediately.
So if you're on top of a mine,and you have a hit point number
x, and the defuse time isy, and the number of rounds
it would take to kill youwith the mine doing damage z,
you would just dothe math and see
whether it's worthwhileto try to defuse it.
Because you can'thave multiple units
defuse the mine ondifferent rounds.
It doesn't continuedefusion progress.
So anyway, they'll just die.
And we saw somereal hero mines that
have been promotedto Supreme Commander
and they're now commandingfleets in the Pacific.
Another thing was encampments.
So, sometimes the encampmentsblock off other things.
I mean, certainly wesaw a lot of teams
lose because they builtencampments around their base
and couldn't get out.
OK, so it seemslike a dumb thing
when you're lookingat it, but how
do you check for it in the code?
What's the best way?
I mean, it would beobvious to just try
to maintain a diagonal linestraight from you to the enemy
and never laybases on that line.
But maybe that's the only base.
So, I don't knowexactly what the best
way around thatkind of problem is.
Yeah so, the encampmentscan block each other off,
or you could blockoff the enemy.
We saw some ofthem, you couldn't
get to those other ones.
Let's see if I canopen up that map.
Oh gosh, what are the chancesI'm going to be able to-- No,
the chances are zero.
Yeah, I'll do it inPaint because it's just
the general idea.
This was one of themaps that I did design.
I didn't design all of them.
This was the one thatlooked like-- Oh, I
guess I can justuse continual lines.
Oh man, this is going to begreat, it's going to be great,
I'm looking forward to it.
Yeah, it was just like that.
And then the encampmentswhere arranged a little bit
like this.
Yeah, yeah, it was like this.
These were the encampments andthey were connected this way.
So there was a pretty short--
[STUTTERING]
Distance between Team A and B.So, Team A and B were there.
We had hero mines H and Hthat would kill entire armies.
Actually, I'd saidthat they went on
to be Supreme Commandersin the Pacific,
but then they were subsequentlyarrested for war crimes,
and executed.
But their descendants liveon, the map is still there.
So there you have it, thecycle of life and history.
So anyway, the point thatI was trying to make,
before I confusemyself here, was
that B would go ahead andbuild a bunch of encampments
and then he wouldn't be ableto get to these ones back here.
He couldn't get to thembecause he couldn't find them.
So, that's definitelysomething to worry about.
Maybe what you shoulddo is say, I'm just
sort of speaking offthe top my head here,
is if you can't getthere and you're a robot
and you're tryingto path around them,
maybe you should senda signal to this fellow
that he should suicide, andthen the team should remember,
from now on intothe future of time,
that they shouldn't tryto build something there.
And then maybe that'llbe the new route
to the expansion of newcolonies and exploring space
for the benefit of humanity.
So, we see that theycan be blocked off,
don't know exactly howto fix that problem.
We saw other issues,like Team 0 or 116.
They shouted attack andthey died at round 2,002.
That was too sad.
I have the match here.
And it was likethey were cut off
and maybe that was an exception.
So, definitely wantto look for exceptions
that will take placeif you're cut off.
And maybe just communicateto the other bases,
hey, I'm cut off,please kill yourself.
And I'm sure they'll comply.
Luckily, Battlecode isnot like the actual world
where it would be really hardto make that argument to them.
They're like, yeah,but, but it's me.
I've heard a little bitabout rush distance.
We had one map thatwas called something
like, I don't rememberwhat it was called,
but we kept callingit Bad Ideas.
Where the map was like this.
Oh man, that map was fantastic.
I didn't make this one.
It had a big minefieldin the middle
and then there was aand b located here.
And then on the veryedges of the map,
there were encampmentsin these corners.
And so, the idea was that ifyou actually take some of your,
you're pretty closehere, this distance
was, I don't know15, or something.
And so, if you would sendyour guys out in this way,
by the time you built theencampment-- first of all,
you're losing soldiers,second they're
not going to help youdefend, the enemy's
just going to goahead and kill you.
So, if you see thisdistance, I mean,
I think a decent setof heuristics for a map
should be the following.
Here's map heuristics.
[SLOWLY SPELLS HEURISTICS]
I think that you couldsay, distance to enemy
and distance toclosest encampment.
[SLOWLY SPELLS ENCAMPMENT]
And then you could do, Iguess that's pretty much
all you need.
Because I think, distanceto enemy is unimportant.
What you should dois number of mines
to the enemy and thatencapsulates distance.
And so, then you could be like,OK, if this distance is big
and this number issmall, then there you go.
So, all you've got to do is say,that number minus that number.
And now, you're startingto have something
that you can compare to ifit's big, if this quantity is
greater than some number,then do something.
Anyway, you guys get the idea.
We had a couple of maps wherewe had lanes next to the mines.
I think we do that quite a bit.
Some of the maps that wegave you initially, you
could just walkstraight to the enemy
if you path around the mines.
And the lanes weren't thatcomplicated, all you have to do
is make one little turn andthen you're going straight
to the enemy, all the way.
And we saw some teamsuse this, but we also
saw them putencampments on the lanes
and then theycouldn't walk there.
I think there was one verycritical match and that match
went something like this.
Are some of youobsessive compulsive?
You're get a little bitannoyed by these little bits?
OK, there you go.
I think on the mapthat I'm describing,
it had these late like this.
And so, these are themines that I'm drawing
and then between thosewe saw the encampments
that you could capture.
Some I'm just going to makeit slightly more symmetrical.
We had Team a over hereand Team b over here.
And the teams were just linedup exactly with the mines.
So, that if you countedthe mines directly
between you and the enemy,it was a large number,
but if you counted thisnumber, it was a zero number.
So what Team a starteddoing, and I'll just
recap because not all of youwill have seen that match,
is they started defusingthese mines this way,
but simultaneously, theywere capturing encampments.
So, I believe theydidn't think that there
was a straightpath to the enemy.
Because whenever theycaptured something,
they also got theseas soon as possible,
so they could neverreally get around.
And simultaneously,B was building up
a minefield andresearching nuke.
Yeah, nukes for the win.
AUDIENCE: [LAUGHTER]
PROFESSOR: So, I thinkit was pretty weird.
We ended up seeing, Iguess you could classify it
as almost threestrategies, there's a rush,
there's an econ strategy, andthen there's a nuke strategy.
There's overlap, ofcourse, but it almost
seems like there arethree strategies.
In this map, forthis particular map,
we saw that econ-- he'sbuilding these encampments,
if he didn't build thosehe would have gone straight
to the enemy, it would have beengreat-- this econ strategy was
defeated by the nuke.
So, I'm just goingto do an arrow.
Econ on a large map wouldkill a rush and on a small map
a rush would kill a nuke.
Is this Rock, Paper, Scissors?
No, but given a map set it canbe rock, paper, scissors, e.
It could be scissors, e.
Anyway, the pointis that whenever
we have something likethis, if you're not
taking into account the maps,so that it's just picking it
at random, then oneresult that you get
is the tournamentcan not make sense.
It's more than just somesimple concept in your head,
that the tournamentisn't making sense.
Because the basisof a tournament
is that when it's done youknow who's the best, right.
It's supposed to bethat teams, they've
got a fundamental goodness,and that the top team is best.
But if you have three teams,rock, paper, and scissors,
and you hold a tournament, whatis the point of the tournament?
You're not to find anythingout at the end and, of course,
you all know this.
And my point is that youfeel it so viscerally
when it ends up happening.
So, the only solutionis to use that map data
and to say, OK, Iknow it's a short map,
or I know it's a large map, orsomething along those lines.
That's the only thingyou've got to do.
And I'm veryconfident that we're
going to see a whole lot ofthat in the following matches.
Not in the ones we'regoing to watch today,
in the ones that aregoing to be submitted
to the subsequent tournaments.
So, we saw the lanesnext to the mines.
We saw some really goodpositioning of artillery.
It made the differencebetween victory and loss
in a lot of cases.
And I'd like topoint out, especially
in the presence ofmy simulator here,
that a little artillerycan go a long way.
So, I don't knowhow many of you have
had a chance to look at thelatest update of my Battlecode
simulator, but it worksthe following way.
So here, I'm going tocompare two strategies.
This strategy is to build robotsand no generators or suppliers
and this strategyis just to continue
building two standsfor a supplier.
So, there you can see thefirst strategy is in green.
How does that show up?
That shows up pretty well.
First strategy in green isto just build the soldiers
and you hit the maximum.
And then, the secondstrategy here,
you can see now in this updatedversion of this Battlecode
simulator, that youactually do lose some units.
You lose units thatyou would have had,
those soldiers are destroyedin capturing the encampments.
And then, you onlypay it off later.
So, here you see the150 rounds, or so,
between starting to buy thosethings and having it pay off.
And you can similarlysee that that round
number is going to change.
If you only buildtwo of these things,
it's going to be quitedifferent and, well, I
guess it ends up payingoff at about the same time.
That's curious,that's pretty curious,
but I'm sure its basis in fact.
Let's just double check here.
The suppliers do reduceyour spawn delay.
So, here on the left,I've provided a table.
And this is all availableon the internet.
So, you don't needMathematica, because I did also
save this is a PDF.
But you can make thisyourself in Microsoft Excel,
or something like that, whereyou see the number of suppliers
on the left, goingfrom zero up on through
to some incredibly large number.
Which we did see in thistournament, if you guys saw.
I really love to watchsome of those macro games.
And then, we see on the oldspec what the spawn delay would
have been and thenthe latest spec.
So, the spec used to be10 times 0.95 to the n,
where n is thenumber of suppliers.
The latest spec is 100divided by 10 plus n.
So, the effect is that now,with the latest spawn delay,
we go down from 10 faster.
So, you see here, we're at sixwhen the old one was at seven.
But later on we're higher.
So, we level off much sooner.
And so, we're at two herewhen the other one is at one.
So, there's a crossover and it'sfavoring getting them earlier.
Anyway, my point iswe can go with number
of suppliers andthe spawn delay.
So, when I get onesupplier I should
see a spawn delaythat improves by one.
And so, you can say,OK, the headquarters
is producing hitpoints per round.
That's the point ofthe headquarters.
I mean, sure number ofunits is a different metric
than number of hit points.
Because units dealdamage, not hit points,
but it's similar because you'redealing damage and taking
damage, and there you go.
It's all a question of microwhen you get right down to it,
it's all very clearand straightforward.
So, hit pointsper round is four.
If you build a single artillery.
OK, you build a singlesupplier, now your spawn delay
is nine so you're producing 4.4repeating hit points per round.
So, that's an additional 0.4repeating hit points per round.
That's what you've got outof building that supplier.
You got this.
And the next one youbuild will get you this.
I mean, if you build thisone, you get even more.
I mean, some of them that youbuild don't get you anything.
So, you can see, incrementalhit points per round.
But look, all these numbers,none of them are that big.
Whereas, if you gotsomething like an artillery,
it can get you a large numberof hit points per round.
Because really whatyou're interested in
is not just hitpoints for your team,
it's the differencebetween your team
and the enemy team hit points.
So if you build artillerythat does get shots off,
I mean, if itshoots all the time,
then it's going to be dealing40 damage every 20 turns.
And that's infinity, isn't it?
That's 40, 40 over, that'stwo hit point per turn.
That's a lot.
I mean, of course,it's not going
to do that because a lot ofthe time it isn't shooting.
But if it's shooting only20 percent of the time,
then it's two times onefifth and now you have 0.4.
So, it's starting tobe competitive to get
an artillery comparedto a supplier.
So that's just one wayof looking at things.
Definitely worth thinkingabout, I should say.
Because one of theseartilleries can be,
as we've seen in some of thesematches, worth its weight.
So now, the question is, isthis code working properly?
And I think the answeris no, actually,
in characteristic fashion.
So, here I built one supplierand the production rate
of robots is approximatelyidentical to the way
that it was.
So I'm just going todebug this a second.
Let's see here.
I think we havehere, OK, so that's
the supplier numberthere and the question is
if that suppliernumber is there,
and the spawn time is beingupdated, then why wouldn't it
take effect.
Because that certainly doeslook like the latest spec.
Well, in any case, I thinkit will be safe for us just
to start with one and that'sa decent fudge factor.
Let's do that.
Let's start with-- Oh my god,I'm terrible, terrible person.
Let's see it happen.
I'll figure it out later.
So there, now we see alittle bit of a difference.
And we get the secondone that should have, OK,
that had a big effect.
Was it supposed to?
It was.
The third one shouldhave no effect.
Let's just double check that.
And then, what we'regoing to end up doing
is we'll watch some matches.
OK, so let's goback to having two.
And now, we'll goto having three.
And yeah, the slopedidn't change.
I don't think the slope changed.
It just moved leftand right because we
had to lose another soldier.
So, that's good.
I think there wasjust an offset of one.
I guess that makes perfectsense to me for some reason.
Yeah, I'll understand it.
In fact, let's pretendI understand it now.
It's just a questionof when we're
pretending I'm understandingit, not a question of whether.
Alright, so, let'sgo ahead and watch
some matches becauseI really want
to illustrate a few interestingthings about mines, and micro,
and so on.
So let's go.
All of you can do it.
I don't know ifyou've seen this,
but you simply goto Tournaments,
and you go to Results, andyou click on Sprint Bracket,
and now you haveaccess to all the
matches that you can download.
I mean it's not as great asbeing able to, for example,
get everybody else's code so youcan play against it infinitely,
but it's pretty good.
And you can also convert thismatch data into XML files
that you can parseto find matches
that match a certaincharacteristic.
For instance, let'sjust do an example.
I guess we'll justpick any random match,
let's pick the final match.
Oh, I don't know, thefinal match was-- I mean,
I think what endedup happening is
we started having teams thatrushed get to the finals.
And I think thatwas map dependent.
In the future, it may beless so that rush teams are
really making itup to the finals.
And there may be other,like an econ team--
We see one of the best econteams here, hey I just met you,
was actually a crossbetween rush and econ.
We saw them, sometimes, buildabsolutely massive numbers
of macro buildings, andother times we saw them not.
I see one question.
AUDIENCE: Are you going to havebest of five matches later?
PROFESSOR: Mr. Pipe Nexus?
AUDIENCE: Best of five matches.
PROFESSOR: Oh, bestof five matches.
That's been introducedas a concept.
Sorry about my misunderstanding.
Best of five matchesmay be introduced later,
but it's still onthe table because it
would require a large reworkingof our tournament code.
Because, of course,we write things
in the most flexible andreusable way possible.
AUDIENCE: [LAUGHTER]
And the questionabout the previous one
that the supplierscost upkeep, right?
PROFESSOR: Yeah,I think they do.
We can actually gostraight into a match
and just double check that.
Because all we haveto do is go to one
of those matches whereone of the teams walls
itself in and just look at that.
Because then they havesuppliers, but not soldiers.
So, let's go to that one.
I think I have itloaded already.
Those poor fellows.
I'm sorry Team 0, I'msorry, but here you go.
They have a supplierand they are team 116.
And they're steadyat 225 resources.
Whereas, I don'tknow, is that more
than they would be spendingif they were doing nothing?
I think it might be.
There's a chancethat it could be.
I'm going to go with yes.
But that's a guess.
I don't know.
I don't know.
It probably is.
It probably takes upkeep.
I guess that'sanother thing that
may be wrong with my simulator.
Anyway, I'm tired ofsaying that I'm wrong.
Let's talk about how I'm right.
Come on.
Come on guys.
Alright, so let'sopen up a match.
I want to start before teamsthat are rushing are winning.
Citizen Snips, forexample, I think,
was doing some decent macro.
So, let's open that one up.
I think I was prettyimpressed with that team.
There were also some teamsthat were brand new that
came from the bottomof the ladder.
And I think we'll havea chance today to talk
about those alittle bit as well.
So, I'm just goingto make sure that I'm
looking at the latest one.
Oh man, please sort them.
Would you mind sortingthem, computer?
Thank you.
Man, I tell you, there's aproblem with subordination
these times.
So yeah, we see Team Snips, onthe right, is getting vision.
Vision was not avery popular upgrade,
but they're building theseartillery in the front,
and then they're buildingsupplier in the back.
I think that a prettyinteresting approach.
And because of themap layout, they're
ending up using theartillery quite a bit.
So, we see a good shotthere, it's not bad.
It does seem todeal some damage.
No, it deals no damageto allied units.
So that's great.
But I think later onwe might see, yeah,
I don't know if thatwas such a great shot.
Because we took out twoenemies at the cost of two
allied units.
So, I don't know, that seemedlike breaking even in my eyes.
So, there's somethingyou can do there
with writing artillery codeto try to avoid allied units.
Maybe, I don't know, youshoot at-- You could literally
compute the value of every tile,but it seems pretty expensive.
So, I'm not sure exactly whatthe best way to do that is.
So, we see them gettingvision, one of the rare teams
to get vision.
And we see them upgradingthat, interlaced
with building their other robotsand their other structures.
So, I don't know how Ifeel about interlacing
one thing and another.
So, I guess the ideais that it's not
quite as fast asresearching it straight out,
but it's not quiteas slow as getting it
after you get all your robots.
But actually, when itcomes right down to it,
if you build, let's getout a simple program here,
such as Paint.
If you build four robots,1, 2, 3, and 4, and you
research 25%, which I'llindicate as maybe there's
a completion bar.
And you research, I don't know,this much, and then this much,
and then this much,and then you're done.
How is that any differentfrom researching,
from getting robot,robot, robot, robot,
and then gettingout the full bar?
I don't think it'sincredibly different
and it may be just that itgives you more flexibility
to make decisions part way.
Because maybe ifyou do this thing,
which I should changethe color here.
Maybe if you get three ofthese straight out then
now you're fixedand you can't finish
this for a certainamount of time.
Whereas here, you giveyourself more flexibility
to cancel this part way through.
But I just feel like thisis the stronger move.
Because if you go up againstthis team versus that team,
then if there's an engagementat time, this time,
then right then and there you'regoing to have four on three.
And so, when itcomes down to here,
you're going tohave two guys left
and he's going to have one guy.
And it's going to be prettyclear who's going to win.
And it doesn't matterthat both of you
have this stuff at the end.
It's just not goingto matter, so I
don't know how I feelabout the interlacing.
So, we see a bunch of that.
And we also seehere that Team 70
is a team that either rushes,or goes for a heavy macro play.
And I get the feelingthat on this map,
they've decided that the rushdistance, the distance from one
team to the other, is not huge.
It's not that big.
And so, and there aren'tthat many mines either.
So, I think this is the reasonwhy they're doing this rush.
I think it's pretty impressivethat even though they're
down on units, pretty often wesee two units from blue and one
unit from red,nevertheless, red is
able to hold offthis blue attack.
I think Team 70 has somereally excellent micro.
And I will remind you thatTeam 70 has one author who
was a former memberof a team with Corey.
Who spoke yesterday at lecture.
And you remember that Coreytalked all about micro.
Micro being the importantthing that wins matches.
We're going to seethat again and again.
You saw that theSprint Tournament.
And I have ways ofindicating again to you,
in video that we watch today,that that was incredibly key
in a lot of circumstances.
We saw that happen.
And so, it makesperfect sense that we
would see red havesome really good micro.
But at the sametime, he's not going
to make any inroads against thisplayer who's doing artillery.
And you've got to wonderwhether that's detectable.
Whether he can tell thathe's dying to artillery.
And whether he cantell the main base,
hey, this is ourartillery, so we've
got basically two choices.
One, we bunch up alot of units and we
make sure we attack all atonce and spread out enough
so we're not taking splashdamage from that artillery.
Or, we've got to getshields, or we've
got to do a massive econ play.
Basically, we've gotthose three choices.
And neither of those choices,neither of those three,
are among the choiceof just simply sending
one unit at a time.
So, I think a lot--
Now see, did yousee that happen?
That's pretty surprising.
You see the enemy attackand you see red outnumbered.
So, this is twoenemies to one red.
OK, and the twoenemies are grouping
around the enemy headquarters.
Because they're notreally prioritizing
attacking that one red guy.
They're just going towardthe enemy, it seems.
It's not, I mean,it's not that obvious
that they'reprioritizing enemy units.
So what ends up happeningis this one red guy
is managing to kite andattack only one blue guy.
See that?
And, I guess, there'sprobably awesome stuff
that you could read in theirindicator strings here.
Remember that when weshow the tournament,
the indicator stringbar is not there.
That's just not part ofthe tournament viewer.
But if you watch the replay,you can read their indicator
strings and you might learnsome about what those robots are
trying to think about,or trying to do.
So, here you see the red isreally kiting these guys.
And he's almost usinghis headquarters
as a defensive structure.
You can see here,he's almost come back
because he's got two unitsand this guy's capturing
an encampment and youcan't cancel that.
So, he's almostrecovering here and just
through the use of micro.
I think it's very impressive.
And it's only because hewalks into that artillery fire
again that it seems likehe has some trouble.
I mean, there are multiple waysof reading the system, reading
what happened in this match.
But, I think that waspretty interesting.
This is one of the onlyshields that we ever see.
I don't see any reason why bluewould have decided to build it,
especially in this location,especially given this guy
has no artillery, especially,especially, especially.
So, I think this game'spretty much foregone.
And I think this oneis also foregone.
OK, here's a great example.
So he has built three suppliers.
OK, three suppliersout of Team 216.
And there you go, he has 180.
Whereas, at the beginning, Ithink you were stable at 194.
So there we have our definitiveanswer to that question.
I think you are stable at 194,so these do take hit point,
they do take and upkeep,these supplier units
that he does end up doing.
So, that's good.
That makes me feel happy.
So that goes onto a round three.
I mean, yeah, you'vegot to check that.
OK, I've said it before,don't want to repeat
myself, very good.
So, Team 70, both teams aredeciding this is a macro map.
Pretty interesting,because once again,
we saw team 70 not do macro.
But look at this, he's notrunning straight for macro.
He's got this decision in mind.
That's one generatorand four suppliers.
Wow, let's just rewind, justrewind just a little bit,
just a little bit right now.
So yeah, he's gettingthe generator first
and then those three.
Meanwhile, he's getting fusion.
He's already got fusion.
And I think heprioritizes that upgrade.
It's pretty strange becauseyou see him, I think,
get it before evenis first unit.
So here, we'relooking at round 20.
Round 15,16, 17, he stillhasn't built a unit.
Whereas, blue has builttwo units already.
It's questionable whetherprioritizing fusion
is going to be that good,because he prioritizes
fusion but then doesn'tactually use all that energy.
He's still at 1,600.
Does he ever actually use it?
Maybe.
It's going to be later.
And this team couldbe even more powerful
than it was, perhaps,if it perhaps
did that a little bit later.
So yeah, let's go back andlet's think about this.
Because this setup here is meant
to strike at a certain time.
And the time whenhe's meant to strike,
imagine setting up thisway, where you're like,
OK, I know that depending onthe number of macro buildings
I build, that will giveme an attack timing.
Where it'll be theperfect moment for me
to attack because I'm justrunning out of resources,
I'm just hittingthe peak of units.
Well, maybe that attacktiming should exactly
match how long Iestimate it will
take for me to get to the enemy.
Now, you could usethe headquarters
to say, to justcalculate explicitly,
it will take me thislong to get the enemy,
I had better have somemacro up by that time.
And that could beexactly what he's doing.
So, let's do a littlecheck in Mathematica,
where we'll say he's going tobuild four of these suppliers
and he's going tobuild one generator.
So there, we see thathe's going to cross over
and he's going to be evenwith the enemy at 200.
So, let's hope that he attacksthe enemy closer to 300.
Let's see what happens.
So there, he's just pausing.
All his units are pausing.
It's round 269, they'renot doing anything.
It's round 300, they'restill not doing anything.
I guess it's because he's takingmore bases that he's decided,
OK, I have something,that's a lot of units.
I'm pretty sure thisis a defensive move.
That he's just goingto move out here
and he's expectingthese to defend him.
Unfortunately,that's not exactly
on the midpointbetween the two armies.
And you've got to wonder whetherthat's a deliberate idea,
or whether he's chosento go in this direction
for some other reason.
Because we're going to seeblue go ahead and take out
a lot of thosebases, a lot of that
stuff that he had on the bottom.
So, we see once againthat red ends up using,
and does in mostof his matches, he
ends up using his reinforcingstream as a defensive tool.
If he didn't havethat stream of units
continually comingout of the base,
there's no way he wouldbe able to defend this.
Because these guysare not programmed
to turn around and come back.
Once again, blue has thisgreat, look at this positioning.
I think it's probably notjust great positioning.
It's probably just thatevery other time he's
building one or the other.
Because we see anotherartillery here,
and here, and here, andhere, and here, whereas red
has not built asingle artillery.
So the question is,is it the building
of one thing oranother that has made
the difference in this match?
Because we'restarting to see red
is starting to geta lot more units.
And that artillery isnot always shooting.
So, I think it's apretty open question
whether it wasactually worth it.
Because in this longmatch, it ends up
being that red prevails.
So yeah, I mean, that'spretty interesting how red
has got a relativelysimple move.
He's just picking rush or econ.
And when he goes econ,he goes econ all the way,
and when he goes rush,he goes rush all the way,
and his micro is fantastic.
And those little things alone,little, though I may call them,
are really significant.
OK, so that's spending along time on just one match.
Let's look a little bit,let's look a little bit
at Game of Death.
Game of Death is a teamthat started out really low.
So, let's see here,Game of Death.
So, we can click on themhere under Battlecode Teams.
We see that they were13 and 3, their ranking
was at the bottom ofthe scrimmage ranks.
So, let's have a look at howthey made it up to round four
from the very bottom round.
They had a bad seedat the beginning
and they made it allthe way up to here.
How were they able to do that?
Because they must bedoing something right.
What's this turnaround?
Let's, have a look at this.
So, I'm going to goover here and I'm
going to run that match.
And I'm pretty sure we'llhave time to talk about all
of the interesting thingsthat happen in this one
and in the next ones.
So, here on the right,we have that team,
that new teamwhich is upsetting,
one after another, other team.
And he's going tobuild suppliers,
so he's built two suppliers,and he's building a few mines
around the headquarters.
And it looks likehe's just rolling
over team 172 whichwas Drunkasaurus.
Drunkasaurus is anotherone of these rush players,
and you'd expect rush to bepretty effective on this map.
So what happened?
I think it's worth mentioningthat a rush player would
do well.
If this rush player is notreally pathing around mines,
if that's not theway that they're
planning to play thegame, then they probably
ought to get defusion.
I mean they've spent afew rounds buying fusion,
doesn't make thatmuch sense to me.
I think you might get onefree around at the beginning.
It seems like a lotof people will just
put one point into something.
But the amount oftime it takes him
to get the enemy he can computebecause he just went straight
there.
So, he can compute that timeand he can say, alright,
was that worth it.
It's also worthmentioning that, I think,
in a lot of theseengagements, he's
busy defusing minesduring combat.
And like we saidbefore, you can't
attack while you'redefusing a mine.
So, part of the bestreason of getting defusion
is so that you only havefive rounds of inaction.
So that, let's say,nobody's around.
It's perfectly safe, greattime to defuse a mine.
So, you startdefusing that mine.
Now, you see the enemy.
You can't cancel thedefusion process.
So, if you were going todo a 12-turn diffusion
and you see the enemy andhe's at a distance of,
wait, what's the distance?
All we have to do is look it up.
So, let's go to myUseful Specs document,
which is neitherhandy nor dandy.
It's, in fact, much moreserious and much more useful
than both of thoseterms would suggest.
So, range 14 isyour sight range.
You can see a unitthat's three tiles away.
I can zoom in alittle bit more here.
It's rastered, so itlooks kind of silly.
I always think it's interestinghow when you raster something,
sometimes it becomesorange on one side
and blue on the other side.
I'm sure some of you inthis room understand it.
And I'm sure that someof you in this room
don't care to understandit and never want to.
So, he's three unitsaway, right, the enemy
is three unitsaway, and you just
started defusingthe round before.
So if that's a12-round defusion,
then by the time hegets to you, you've
still got seven or nine roundsleft, if you subtract correctly
and depending on the turncounts, and whatever.
That's a lot of timethat you're just
going to spend doing nothing.
And how long does it takefor the enemy to kill you?
They deal six damage perround, you have 40 hit points.
I can't divide, but that soundslike seven-ish, seven rounds.
Well, look at that, so you had12, you didn't see anybody,
they had time to approachand kill you and go away
before you finished.
That's really lousy.
Even if they getone hit off on you,
that's going to makea huge difference
because this is aknife edge game.
It's a game of instabilitiesbecause we don't start you off
with a command center thatdeals damage, for example.
We don't give you thatmany defensive advantages.
So, as soon as the enemy getsa couple more units in you,
it's just going to startpushing in that direction,
unless they startmaking mistakes.
So, that's one ofthe reasons why
defusing a mine withoutdefusion and without vision
is a problem.
Let's say you have bothvision and defusion.
I mean, of course, they'revery expensive upgrades,
but let's say you've got them.
Well now, it's onlygoing to take five rounds
to defuse somethingand you have can
see a unit that'sfive tiles away.
So, let's say he's overhere, you don't see him,
you start defusing.
Now, he's starting to show upand he's moving toward you.
By the time he gets there,you're done defusing
and you can start shooting.
That's a pretty big difference.
And I think that'sone of the reasons why
we see a lot ofsuccessful rush teams
go ahead and get that defusion.
Whereas, we see Drunkasaurushere not getting defusion.
We see decent microon both teams' side.
I don't know exactly if this isgood micro coming out of both,
there's certainly alot of motion going on.
It's anybody's guess.
Here both teamsare defusing mines.
They're justwatching each other,
maybe they're playing Parcheesiwith the mine defusion,
exchanging tips on hownot to get blown up.
AUDIENCE: [LAUGHTER]
PROFESSOR: I think it'sa very odd thing to see,
I think it's quite strange.
But yeah, the pointhas been made,
the point has beenabundantly made.
Another thing, ifyou're retreating
and you are adjacentto the enemy,
I think we've seenthis a lot, and I
think that is what's goingon in some of these cases,
maybe this guy isadjacent to the enemy
and maybe he's retreatingbecause he's got one energon.
He's like, get methe hell out of here.
I think he's maybe or wastrying to retreat at some point,
but it's a bad ideato defuse a mind when
you're adjacent to the enemy.
Don't start, just don't start.
It's like smoking,just don't start.
Yes, this advertisementbrought to you
by the AmericanSociety for lungs.
I don't know, I justthought that sounded right.
So yeah, here once again we seethis is the same two players.
But in this case, the blueteam just, I don't know,
he's dancing, or something.
It's not super effective.
He's building nukes.
Somehow he's decided, yeah,now's the time to get nukes.
AUDIENCE: [LAUGHTER]
PROFESSOR: I've gottenPickaxe, but I'm not using it.
So, I think, but no, to be fair,I think, what he's trying to do
is lay a bunch ofmines into a minefield.
And he's doing thatusing his Pickaxe.
But, I think, maybehe's thinking,
alright, there's alot of neutral mines,
these are supposed to help meout, I shouldn't destroy them.
But nevertheless, the red teamis able to just roll this over,
so it does go on to athird a third match.
But what a difference.
What a difference we see here.
He's getting closeto his maximum.
But we see he'soptimized for this.
Look at his units.
He's using 500 bytecodes,that's effectively zero.
So, he's going to be able toget up to the full 40 units.
And that strengthof that 40 units,
what is the strengthpoint of that 40 units?
Well, let's simply go backhere to here, to here.
That 400 round counter?
That's exactly whenyou hit your maximum
if you haven'tbuilt any upgrades.
And that's exactly when hearrives at the enemy base.
So, unless we start changingthe maps, not getting upgrades
is going to be fine for you.
As long as you'renot doing what he
did in the last round,which was somehow bad.
I mean, you've got tohave that clump of units.
And, I think, one thingthat we see again and again,
is once a team losesits clump of units
it sends them in one by one.
Now, it's not obviousbut that's a bad idea.
Because we've seenteams win that way.
So, what do you do?
OK, now that was prettyone-sided, what happened there?
Did blue have more unitsor did red have more units.
OK, let's go and saythis is three by five.
So that's 15 units becausethese three go into it,
and that's 18.
So, that's 18 units.
This is three by fivewith three missing,
so that's 15 units plus,OK, that's 18,19, 20.
So, this guy's got 20.
I guess that accounts for theseguys that blue left behind.
So red's got a slight advantage.
All teams are defusing mines,these two could be fighting.
There is no reason forthem not to be fighting.
Now, red has managed to killthis guy off very handily,
because of that advantage.
We saw before, inCorey's lecture,
how he's talkingabout this being
a very unstable situation,where if you've got
one gap between the two.
The person who closesthat gap first will win.
So, let's see if somebody'sgoing to close that gap.
Well, now look at howmuch damage blue is doing?
That's prettyimpressive and, I think,
part of that is we're seeingthat a lot of red's units
are just spending timedefusing, this one and this one,
in particular, also this one,which is right in the middle.
These three in the back,definitely not ones to ignore.
So yeah, blue endsup coming in here
and capitalizes ona little advantage.
Now, red, OK, redis still attacking.
There's a point in this battle.
One of things aboutbattles is that you
know where the enemy is.
Right, so you canmake that count.
You can count them,you can say, alright,
we're about to lose this battle.
Here's an interestingquestion for you.
You're losing abattle, what do you do?
Do you call forreinforcements and say, OK,
if we have more reinforcements,we won't lose as badly?
Or, do you say tothe reinforcements,
please go back tothe base and regroup,
it's your only chance to live?
I mean, I don't think we have,I'm hitting the b button,
there's no broadcastgoing on in the whole map.
But you could imaginethe case where
they would be like,OK, I'm telling
my allies get thehell out of there.
And this guy, so, he seesa very bad situation,
and here he's two tilesaway from an enemy.
He's got the choice.
Do I move?
Close that gap?
I mean, that's abad idea, right?
From Corey's lecture, youdon't close a gap of two,
because then you won'thave the attack advantage.
That's not a good idea.
But what's he going to do?
So, let's click on it.
Oh, look at that.
He moved in.
And what's he going to do again?
Oh, he's kiting alittle bit well,
he's only fightingone of the enemy.
That's not so bad, but heends up being destroyed.
I mean, what can he expect.
I think it wouldbe very reasonable
for you to writecode that says, OK,
if the enemy is there,what am I going to do.
A lot of times we'veseen teams back away.
They try to do a retreat.
Of course, a retreat doesn'twork if you're already engaged.
Let's say you're not engaged.
OK, we're smart people, we don'tretreat when we're engaged,
that would be a bad idea.
We keep with it.
We have our commitment.
But we back out.
Where do we back out?
We've seen teams, time andagain, try to back away
and then they get stuck, becausethere's mines in the way.
They only cleared a very narrowpath through to the enemy.
So, why not rememberthe path that you
took to get to that enemy,so that you can then, just
follow that backwards?
You have omnidirectionalview, so that might work.
It might not, it mightbe a terrible idea.
But I'm just puttingit out there.
Because you can save maplocations pretty easily,
to an array.
And then, it's, OK, justpop that array back.
So, you're pushingto an array and then
you're popping thearray values back,
so it's its own orderedlist of where I've been,
and where I want togo back to, and what
I want to do with mylife, and whether I
want to visit Parisand eat baguettes.
So it's a full integratedsystem for traveling the world.
And, I think, redcould definitely
benefit from that, especiallyin a case like this.
I mean, would he be ableto come back from this?
Probably no.
I mean, just a little bitof macro from blue, I think,
ends up making ahuge difference.
But nevertheless,it's worth mentioning.
So, why does rednot win this map?
We've seen rush teams do well.
I think it's justbecause blue actually
built any units at all.
But there you have it.
Good game.
That's a good game.
Let's make sure that we'regetting to everything.
So, we've seen some gameswhere we had a run around.
Where one team wouldrun around, would
circumvent the otherteam, and deal damage
to the headquarters.
As we've said before, thewin condition is as follows.
I don't think we've beenthat straightforward on what
the win conditions are.
First and foremost, it'sa headquarter hit point.
So if you can get onehit off the enemy,
that's a good timeto just back out.
Maybe, the time now isto just lay some mines
and play defensively.
As long as you have registereda hit on the enemy headquarters.
Let's say, if your soldiermoves to the enemy headquarters
and is adjacent, that's a nicetime for him to broadcast,
hey, I was adjacent to theenemy headquarters, ergo,
I did damage to him.
That's a given.
That's always true.
Unless the enemy has a med bayadjacent to his headquarters,
dealing damage-- No,that's not going to work?
AUDIENCE: [INAUDIBLE]
PROFESSOR: Well,there you go folks,
you've heard it from the wordsof somebody knowledgeable.
So yeah, so there yougo, so you would know,
so you could message andyou could play defensively.
Headquarter hit pointsfirst and foremost,
number of encampments,second, number of mines,
third, number ofrobots, third, fourth.
Good one.
Yeah, so we saw some runarounds.
We saw some teamsrunning around the enemy.
And we've also seen,especially at the lower
levels of the bracket, if yourheadquarters is under attack,
it is of paramountimportance, tantamount
to paramount importance, thatyou come back and defend it.
Definitely worthsending a signal.
Allied soldiers, eitherprotect me or just declare
yourselves null andvoid and you're not
going to get a Christmas bonus.
So, like I said before, Gameof Death was a great team.
We saw them get really far.
Velociraptors,Drunkasaurus, and Cortege,
we saw them rush and bevery effective with that.
There are ways of makinga rush more effective,
we saw them do those things.
I think it was very impressive.
We saw Soda, which wasa really good team.
They did well in thenewbie tournament last year
and I'm excited to seethem back again this year.
There were certainthings they didn't
do that we're kind ofstrange and a lot of teams
here probably felt thatthey could have done better.
These little edge casesend up being so important.
On Little Forts, they'restanding right next
to the enemy, thiswas so sad, they're
standing right next tothe enemy while the enemy
researchers nuke.
And they're surrounding them,they've got tons of units,
but they just didn't move in.
I mean, there's this certainstate machine code, maybe
a couple of mines, maybethey had indigestion.
There's clearly a good reason,but they just didn't do it.
And checking for those edgecases is just so hard to do.
I think is all going tobe so cleared up though.
We're going to seesome great stuff.
Hey, I Just Met You, again,we saw their bipolar response
to maps.
I thought that wasjust fantastic,
absolutely fantastic.
I want to finish bytalking a little bit
about the way the gamemight change in the future.
So, you saw certain specsand you saw certain maps.
This is the kind of thing thatwe change after the Sprint
Tournament or theSeeding Tournament,
where we go, OK, we wantto tweak this a little
to make sure thegame is interesting.
That's our big focus.
We want the gameto be interesting.
We don't want it to be random.
We want to showcase howamazing you guys are.
So if it ends up being thecase that rushes are the best
and that a littlebit of microcode
makes a differencebetween winning and losing
100% of the time, I don'tthink that that's great.
I don't like that.
So, let's say thatthere could be changes.
Now, when you hearthat, you probably go,
aha, he's going to tellme the changes that
are going tohappen, but he's not
allowed to tell methe changes, so he's
going to tell themhypothetically,
but they will actually happen.
But no, that's not the case,I'm just coming up with them
hypothetically, I guarantee it.
OK, so the changes are,OK, we've got a nuke.
The nuke is 400 rounds.
OK, we have themaximum soldier count
for a rush is at 400 rounds.
We've seen that using myMathematica simulator,
we've seen it withsoldiers, I'm sure you've
written it yourself.
I mean, it'stechnically 200 rounds
if you're computingdigits of pi.
Yeah, because, aswe've said before, that
would mean that you havea whole lot less tabs.
So, that's 400 rounds.
The minimum distancebetween headquarters is 10.
The maximum distancebetween headquarters
is, I think we said it was200 rounds of walking mining.
I think that's whatwe said it was.
So, in the currentset, you're not
going to get a mapthat's 400 on the side.
I think the maximumwe said is 70.
So, if it were 70 ona side, then there
would be exactly 70mines between you
and the enemy times 5rounds per mine is 350.
So that's absoluteworst, worst, worst,
that it could possibly be andthat would look like this.
That would be allgrey, full of mines.
And that's just notgoing to happen.
Realistically, we're goingto put in some silly path,
and you can just walk there.
So, with the currentspec, the point
that I'm trying to make-- Imean, OK, you could add 25
because it'll take youa little bit of time
to research defusion,so you can get
to the other side-- but mypoint is that this is only 350.
And so, you're really only goingto have 200 rounds of walking.
And the fact is we don't want toget that close to that number,
so we end up 99% ofthe time, right now
we're making it 100rounds of walking.
AUDIENCE: Thatwould be six, right?
Because you're moving forfive rounds and then you move,
right?
PROFESSOR: OK, sure so it's six.
Very good.
So that's a six and that'sa 420 + 25 = ugly, no,
it's a-- I don'tknow, it's ugly.
You made my diagram ugly.
You know what?
I'd rather be correctthan beautiful.
I mean, oh, I can't have both?
OK, so anyway.
AUDIENCE: [LAUGHTER]
PROFESSOR: My poor diagram.
I knew you well.
Yeah so, there you go.
See, just looking atthese numbers here
you can add themup and you get 730
and it doesn't mean anything.
No, I'm kidding.
You can see thesenumbers, they just
don't make sensefor econ strategies.
They just don't make sense.
So, what we mightdo, and what I've
been telling the others I wouldlike to do, is set nuke to 600,
let's say nuke were 600.
This can stay at-- itdoesn't matter what things
are in absoluteterms, it matters
what they are comparedto other terms--
so the soldier rush,OK, let's keep that 400.
The nuke is 600, let's makethe maximum distance 300.
So now, these arechanging at the same rate,
the nuke and the distance arechanging at the same rate.
So nukes will beno more favored.
What will be favored is now it'sfarther to get to the enemy.
And you still have thesame number of, maybe
a smaller number ofsoldiers relative
to what the other guy has.
So, this would favor econ.
If we increase nukeand the distance then
that will favor econ strategy.
And so, then I thinkwe'll start to see
some more interesting gameswhere there's just a couple
more encampments being taken.
And this competition ismoving in wonderful directions
and it's moving that wayunder the fiery engines
of your spirit.
Thank you for attendingthe last lecture
and I'll be around herefor questions afterward.
AUDIENCE: [LAUGHTER]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347align:start position:0% other other challenges include uh
align:start position:0%other other challenges include uh
align:start position:0%other other challenges include uhlearning how to do data
align:start position:0%learning how to do data
align:start position:0%learning how to do dataanalysis um you perform an experiment in
align:start position:0%analysis um you perform an experiment in
align:start position:0%analysis um you perform an experiment insuch a way that it hopefully gives you
align:start position:0%such a way that it hopefully gives you
align:start position:0%such a way that it hopefully gives youdata that is worth analyzing um and data
align:start position:0%data that is worth analyzing um and data
align:start position:0%data that is worth analyzing um and dataanalysis begins with with with that U
align:start position:0%analysis begins with with with that U
align:start position:0%analysis begins with with with that Udid you even perform the experiment in a
align:start position:0%did you even perform the experiment in a
align:start position:0%did you even perform the experiment in agood way um but then there's just
align:start position:0%good way um but then there's just
align:start position:0%good way um but then there's justtechnicalities of I have I have a table
align:start position:0%technicalities of I have I have a table
align:start position:0%technicalities of I have I have a tableof numbers that my apparatus gave me how
align:start position:0%of numbers that my apparatus gave me how
align:start position:0%of numbers that my apparatus gave me howdo I Anze that you know I have to get it
align:start position:0%do I Anze that you know I have to get it
align:start position:0%do I Anze that you know I have to get itinto a piece of software I have to tell
align:start position:0%into a piece of software I have to tell
align:start position:0%into a piece of software I have to tellthat software make me a plot compute an
align:start position:0%that software make me a plot compute an
align:start position:0%that software make me a plot compute anaverage uh just basic mechanical things
align:start position:0%average uh just basic mechanical things
align:start position:0%average uh just basic mechanical thingswe don't care what programming language
align:start position:0%we don't care what programming language
align:start position:0%we don't care what programming languagethey use um whatever they use we we
align:start position:0%they use um whatever they use we we
align:start position:0%they use um whatever they use we wepromise to help them out uh with the
align:start position:0%promise to help them out uh with the
align:start position:0%promise to help them out uh with thebasics of it um but really some of the
align:start position:0%basics of it um but really some of the
align:start position:0%basics of it um but really some of thebasic tasks they're doing in whatever
align:start position:0%basic tasks they're doing in whatever
align:start position:0%basic tasks they're doing in whateverprogramming language that is they're
align:start position:0%programming language that is they're
align:start position:0%programming language that is they'rethey're usually not very sophisticated
align:start position:0%they're usually not very sophisticated
align:start position:0%they're usually not very sophisticatedtasks on the scale of computer
align:start position:0%tasks on the scale of computer
align:start position:0%tasks on the scale of computerprogramming they're usually very simple
align:start position:0%programming they're usually very simple
align:start position:0%programming they're usually very simplethings uh but if you don't know how to
align:start position:0%things uh but if you don't know how to
align:start position:0%things uh but if you don't know how todo it they're very daunting tasks uh we
align:start position:0%do it they're very daunting tasks uh we
align:start position:0%do it they're very daunting tasks uh wewant students in this class to struggle
align:start position:0%want students in this class to struggle
align:start position:0%want students in this class to strugglewith the material to
align:start position:0%with the material to
align:start position:0%with the material toum to to you know really work at the
align:start position:0%um to to you know really work at the
align:start position:0%um to to you know really work at thethings that are useful to learning we
align:start position:0%things that are useful to learning we
align:start position:0%things that are useful to learning wedon't want them to struggle with things
align:start position:0%don't want them to struggle with things
align:start position:0%don't want them to struggle with thingsthat are just my computer won't compile
align:start position:0%that are just my computer won't compile
align:start position:0%that are just my computer won't compilemy paper um you know we we don't we
align:start position:0%my paper um you know we we don't we
align:start position:0%my paper um you know we we don't wedon't want them to struggle with things
align:start position:0%don't want them to struggle with things
align:start position:0%don't want them to struggle with thingsthat are not useful to learning so again
align:start position:0%that are not useful to learning so again
align:start position:0%that are not useful to learning so againwe have a long series of small tasks
align:start position:0%we have a long series of small tasks
align:start position:0%we have a long series of small tasksthat gets people up to speed uh with
align:start position:0%that gets people up to speed uh with
align:start position:0%that gets people up to speed uh withsome instructor help um gets them up to
align:start position:0%some instructor help um gets them up to
align:start position:0%some instructor help um gets them up tospeed quickly on these multiple small
align:start position:0%speed quickly on these multiple small
align:start position:0%speed quickly on these multiple smalltasks um so that they are spending their
align:start position:0%tasks um so that they are spending their
align:start position:0%tasks um so that they are spending theirtime learning in an efficient way and
align:start position:0%time learning in an efficient way and
align:start position:0%time learning in an efficient way andnot just spending their wheels and and
align:start position:0%not just spending their wheels and and
align:start position:0%not just spending their wheels and andjust getting frustrated and uh and
align:start position:0%just getting frustrated and uh and
align:start position:0%just getting frustrated and uh andlearning to hate the subject instead of
align:start position:0%learning to hate the subject instead of
align:start position:0%learning to hate the subject instead oflove the subject like we do123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787align:start position:0% the textbook itself is a good
align:start position:0%the textbook itself is a good
align:start position:0%the textbook itself is a goodintroduction for literacy
align:start position:0%introduction for literacy
align:start position:0%introduction for literacyokay
align:start position:0%okay
align:start position:0%okaybut i feel that the um
align:start position:0%but i feel that the um
align:start position:0%but i feel that the umexcept for the first month for the
align:start position:0%except for the first month for the
align:start position:0%except for the first month for thediscourse they have to cram 250
align:start position:0%discourse they have to cram 250
align:start position:0%discourse they have to cram 250characters as hard but after that i
align:start position:0%characters as hard but after that i
align:start position:0%characters as hard but after that ithink the pace slowed down
align:start position:0%think the pace slowed down
align:start position:0%think the pace slowed downa lot and i think they have
align:start position:0%a lot and i think they have
align:start position:0%a lot and i think they havehuge potential because the funny things
align:start position:0%huge potential because the funny things
align:start position:0%huge potential because the funny thingsteaching heritage learner is to discover
align:start position:0%teaching heritage learner is to discover
align:start position:0%teaching heritage learner is to discovertheir potential because for regular
align:start position:0%their potential because for regular
align:start position:0%their potential because for regularstudents
align:start position:0%students
align:start position:0%studentsthey only have this much they cannot
align:start position:0%they only have this much they cannot
align:start position:0%they only have this much they cannotknow beyond what they don't know because
align:start position:0%know beyond what they don't know because
align:start position:0%know beyond what they don't know becausethey learn everything from you but for
align:start position:0%they learn everything from you but for
align:start position:0%they learn everything from you but forheritage learner it's very different
align:start position:0%heritage learner it's very different
align:start position:0%heritage learner it's very differentthey have this foundation this this much
align:start position:0%they have this foundation this this much
align:start position:0%they have this foundation this this muchyou don't know each person so they might
align:start position:0%you don't know each person so they might
align:start position:0%you don't know each person so they mightknow the words they just cannot you know
align:start position:0%know the words they just cannot you know
align:start position:0%know the words they just cannot you knowsimultaneously or like naturally think
align:start position:0%simultaneously or like naturally think
align:start position:0%simultaneously or like naturally thinkof but they heard this word before so
align:start position:0%of but they heard this word before so
align:start position:0%of but they heard this word before sofor that
align:start position:0%for that
align:start position:0%for thatit's their potential they have the
align:start position:0%it's their potential they have the
align:start position:0%it's their potential they have thepotential in it so so once you discover
align:start position:0%potential in it so so once you discover
align:start position:0%potential in it so so once you discovertheir potential they can go really fast
align:start position:0%their potential they can go really fast
align:start position:0%their potential they can go really fastso what i like to change is i'm going to
align:start position:0%so what i like to change is i'm going to
align:start position:0%so what i like to change is i'm going toin addition to this textbook because
align:start position:0%in addition to this textbook because
align:start position:0%in addition to this textbook becauseit's it's it's important for students to
align:start position:0%it's it's it's important for students to
align:start position:0%it's it's it's important for students tohave a foundation because if they have a
align:start position:0%have a foundation because if they have a
align:start position:0%have a foundation because if they have abook they feel much better there's
align:start position:0%book they feel much better there's
align:start position:0%book they feel much better there'scertain thing they can control i don't
align:start position:0%certain thing they can control i don't
align:start position:0%certain thing they can control i don'twant to give them you know for a higher
align:start position:0%want to give them you know for a higher
align:start position:0%want to give them you know for a higherlevel we start giving them an individual
align:start position:0%level we start giving them an individual
align:start position:0%level we start giving them an individualarticles for the you know streamline
align:start position:0%articles for the you know streamline
align:start position:0%articles for the you know streamlinethree or four
align:start position:0%three or four
align:start position:0%three or fourthey can handle it but for the beginner
align:start position:0%they can handle it but for the beginner
align:start position:0%they can handle it but for the beginnerthey can't they want to have a book so
align:start position:0%they can't they want to have a book so
align:start position:0%they can't they want to have a book sobut in addition to this book i want to
align:start position:0%but in addition to this book i want to
align:start position:0%but in addition to this book i want toadd
align:start position:0%add
align:start position:0%addmore text
align:start position:0%more text
align:start position:0%more textrelevant to the topics to the books
align:start position:0%relevant to the topics to the books
align:start position:0%relevant to the topics to the bookswhich i did actually uh last term that i
align:start position:0%which i did actually uh last term that i
align:start position:0%which i did actually uh last term that iadded two actual texts talking about
align:start position:0%added two actual texts talking about
align:start position:0%added two actual texts talking aboutum how to address people
align:start position:0%um how to address people
align:start position:0%um how to address peoplein chinese and these are
align:start position:0%in chinese and these are
align:start position:0%in chinese and these areconsidered more like authentic material
align:start position:0%considered more like authentic material
align:start position:0%considered more like authentic materialand they learn a lot and then
align:start position:0%and they learn a lot and then
align:start position:0%and they learn a lot and thenechoes what they know about chinese they
align:start position:0%echoes what they know about chinese they
align:start position:0%echoes what they know about chinese theydon't talk about in the textbook because
align:start position:0%don't talk about in the textbook because
align:start position:0%don't talk about in the textbook becausethis is more this is a newer
align:start position:0%this is more this is a newer
align:start position:0%this is more this is a newertext just you know recently published
align:start position:0%text just you know recently published
align:start position:0%text just you know recently publishedand i think i would do that more add
align:start position:0%and i think i would do that more add
align:start position:0%and i think i would do that more addthat more into the course
align:start position:0%that more into the course
align:start position:0%that more into the courseit's a two text books
align:start position:0%it's a two text books
align:start position:0%it's a two text booksit's called modern readers and they're
align:start position:0%it's called modern readers and they're
align:start position:0%it's called modern readers and they'reeach books have a different levels of
align:start position:0%each books have a different levels of
align:start position:0%each books have a different levels ofthe text
align:start position:0%the text
align:start position:0%the textso i use the text according to their
align:start position:0%so i use the text according to their
align:start position:0%so i use the text according to theirlevels so for the chinese
align:start position:0%levels so for the chinese
align:start position:0%levels so for the chinese107 streamline one i use the one talking
align:start position:0%107 streamline one i use the one talking
align:start position:0%107 streamline one i use the one talkingabout addressing people which is their
align:start position:0%about addressing people which is their
align:start position:0%about addressing people which is theirlevel because it's a dialogue
align:start position:0%level because it's a dialogue
align:start position:0%level because it's a dialoguefor the streamline 2 i started using
align:start position:0%for the streamline 2 i started using
align:start position:0%for the streamline 2 i started usingsocial media talking about personal page
align:start position:0%social media talking about personal page
align:start position:0%social media talking about personal pagetalking about
align:start position:0%talking about
align:start position:0%talking aboutyou know
align:start position:0%you know
align:start position:0%you knowbasically you want to go go on a trip
align:start position:0%basically you want to go go on a trip
align:start position:0%basically you want to go go on a tripyou go online and find people pull the
align:start position:0%you go online and find people pull the
align:start position:0%you go online and find people pull theblog you know the chinese they put blog
align:start position:0%blog you know the chinese they put blog
align:start position:0%blog you know the chinese they put blogand say what do you need to do before
align:start position:0%and say what do you need to do before
align:start position:0%and say what do you need to do beforethese things it's authentic material
align:start position:0%these things it's authentic material
align:start position:0%these things it's authentic materialyeah so i i
align:start position:0%yeah so i i
align:start position:0%yeah so i ilike to add those more because it's
align:start position:0%like to add those more because it's
align:start position:0%like to add those more because it'srelevant to their life
align:start position:0%relevant to their life
align:start position:0%relevant to their lifeand these old books is good at learning
align:start position:0%and these old books is good at learning
align:start position:0%and these old books is good at learningcharacters
align:start position:0%characters
align:start position:0%charactersbut they're not really
align:start position:0%but they're not really
align:start position:0%but they're not reallylike they said well it's good to learn
align:start position:0%like they said well it's good to learn
align:start position:0%like they said well it's good to learnchinese cultures but
align:start position:0%chinese cultures but
align:start position:0%chinese cultures butit's so old they always
align:start position:0%it's so old they always
align:start position:0%it's so old they alwaysit's so old i can't imagine those days
align:start position:0%it's so old i can't imagine those days
align:start position:0%it's so old i can't imagine those dayswhy do we have to do this you know i say
align:start position:0%why do we have to do this you know i say
align:start position:0%why do we have to do this you know i sayi know but you know the topic just
align:start position:0%i know but you know the topic just
align:start position:0%i know but you know the topic justit's out of date
align:start position:0%it's out of date
align:start position:0%it's out of datebut a good part is it's uh
align:start position:0%but a good part is it's uh
align:start position:0%but a good part is it's uhit's a foundation for them to learn how
align:start position:0%it's a foundation for them to learn how
align:start position:0%it's a foundation for them to learn howsometimes i joke with them i said
align:start position:0%sometimes i joke with them i said
align:start position:0%sometimes i joke with them i saidjust learn the characters it's good for
align:start position:0%just learn the characters it's good for
align:start position:0%just learn the characters it's good foryou
align:start position:0%
align:start position:0% so so i think i would like to um not get
align:start position:0%so so i think i would like to um not get
align:start position:0%so so i think i would like to um not getrid of textbook completely because i
align:start position:0%rid of textbook completely because i
align:start position:0%rid of textbook completely because ithink they will feel you know panicky
align:start position:0%think they will feel you know panicky
align:start position:0%think they will feel you know panickybecause there's no textbook they don't
align:start position:0%because there's no textbook they don't
align:start position:0%because there's no textbook they don'tknow what's next they need to do they
align:start position:0%know what's next they need to do they
align:start position:0%know what's next they need to do theyhave a textbook they have something they
align:start position:0%have a textbook they have something they
align:start position:0%have a textbook they have something theycan always refer to and then i have more
align:start position:0%can always refer to and then i have more
align:start position:0%can always refer to and then i have moreand add more these so-called authentic
align:start position:0%and add more these so-called authentic
align:start position:0%and add more these so-called authenticmaterial1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866The 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: So dideveryone turn in PSET1?
Yes?
Good.
OK, so there is a PSET1critique due in a few days.
My advice?
You already did PSET1.
You remember what youwrote out on the proof.
Look at the solution.
Write one paragraph today,and you're done with it.
Then you go focus on PSET2.
If you leave itoff until Tuesday,
you're going to have toread your proof again,
remember what you're thinking.
It's a lot more work.
Just do it now, getit out of the way,
and put PSET1 behind you.
AUDIENCE: Is the critiqueonly for the proof?
Or is this for all of them?
PROFESSOR: Nope.
Just the proof.
So you have to compareyour proof with our proof?
AUDIENCE: Is there anassignment for that?
Or do we just know to do it?
PROFESSOR: Uh.
PSET1 be Stellar.
Oh, no, sorry.
It's not in Stellar.
It's on our new gradingsite that just went out.
So you have to go toour new grading site,
and you have to typein your critique there.
And it's one paragraph.
You should aimfor one paragraph.
If you're doing morethan that, then you're
doing something wrong.
And it's LATEX Plus math mode.
So you can use math mode,and that's about it.
OK, any more questionsabout the critique?
It's a new thing.
We care about it because it willmake our grading life easier.
And because it'll force you tolook at the solutions and see
what you understoodand what you didn't.
So we care about it.
Don't ignore it.
Yes?
AUDIENCE: Like, howmuch is it weighted?
How much does it counttoward the grade?
PROFESSOR: If youdon't have a critique,
we will most likelygive you a 0 for proof.
AUDIENCE: [INAUDIBLE].
PROFESSOR: If your proof is badand your critique of the proof
is good, then youmight get something.
If your proof is bad andyou have no critique--
actually if your proofis whatever it is and you
have no critique, you get a 0.
AUDIENCE: Yeah. [CHUCKLE]
PROFESSOR: Any morequestions about that?
OK.
Who needs help rememberingwhat the document distance
problem is?
OK.
Everyone who went to lectureor to [INAUDIBLE] remembers.
That's good.
Who went to lecture last time?
Cool.
That's good.
So we did insertionsort and merge sort
from a theoretical standpoint.
Today we're going to look atthe code for the insertion sort
and, if we have time, lookat the code for merge-sort,
and use the same strategy as wedid last time to analyze them,
look at the running time, makesure the running time matches
the theory, and see howpseudocode turns into Python.
So you all have your listings.
Last time in documentdistance, we covered Main,
and we covered mostof the functions
except for count frequency.
Can anyone remind me whatthe call graph looked like?
So the call graphis the tree that I
had up on the left,and it started at Main.
Thank you.
So Main calls word frequenciesfor file, which in turn calls?
AUDIENCE: Well, it'sprobably line list.
PROFESSOR: OK.
AUDIENCE: And count frequency.
PROFESSOR: So we pretend wedon't see the read file called.
We assume that the datais already in memory
or that the calltakes time that's
proportional to the running--to the length of the file.
And we only look at get-wordfrom line list and count
frequency.
OK.
Who else does Main call?
AUDIENCE: Vector angle?
PROFESSOR: And the vector angle?
AUDIENCE: Inner product.
PROFESSOR: OK.
Let's put up the constantsfor-- for the document distance
problem that we used last time.
So we said that thedocument has W words.
And then when you takethat list of words
and you turn it intoa distance vector,
you will get assignedto a document vector.
You will get L elements, whichbasically means L unique words.
So L is the documentvector length.
And we assume we're using anatural language like English,
so all the wordsare bounded in size.
Like 5 to 10characters, for example.
And to make ourlife easier, we say
all the words have the samesize W. So w is the word length.
Using these numbers,can anyone remind me
what we said the costsfor these methods are?
And we didn't analyzecount frequency,
so it's OK to nottake my word for it
and not tell me whatI said last time.
But I would like numbers forword frequencies from file,
get word from line list, vectorangle, and inner product.
AUDIENCE: Was that mu squared?
That was last time.
PROFESSOR: OK.
Which-- which one?
Does anyone-- doesanyone else want to try?
Let's not do guessing.
I'll pull them upif nobody remembers.
I spent an entire hour onthat, and you guys did too.
It was painful.
AUDIENCE: I know.
But we had to, like, youknow, add them up, and then--
PROFESSOR: Yeah.
So we did a lot ofwork for those numbers.
So get word from line listwas order of W squared.
Does anyone remember why?
What made it take so much time?
AUDIENCE: 'Cause youappend it to the word list.
For, like, you add it tothe end to go through.
PROFESSOR: OK.
So you add it.
So what?
AUDIENCE: So, like,every time you need it,
you, like, do word list equalsword list plus words in line.
PROFESSOR: OK.
Excellent.
So get words fromline list, line five.
There's a plus there.
And that plus sign messesup the performance.
So that's why it's w squared.
Count frequency,we didn't cover it,
you had to take my word for it.
So we will cover it now.
And, inner product.
So suppose you have two vectorsof line-- length L1 and L2.
How much time does it taketo compute the inner product?
AUDIENCE: L1, L2 time.
PROFESSOR: OK.
So how much time doesvector angle take?
AUDIENCE: L1 L2 time.
PROFESSOR: L1 L2.
So it makes three calls, right?
You get the two things.
First, it computes the innerproduct of the two lists.
And then it has to compute theinner product of each vector--
of each documentvector with itself.
Because that's what's onthe bottom of the fraction.
So what's the runningtime for that?
AUDIENCE: Plus L1squared, plus L2 squared.
PROFESSOR: Plus L1squared, plus L2 squared.
So someone was really helpfullast time and asked me,
can you make thissimpler with some math?
And I said, I don't knowso I don't think I will.
But I looked at-- my, Ilooked at my high school math
afterwards, and it turns outthat these-- so L1 squared
plus L2 squared are guaranteedto be greater than L1 L2
as long as thesenumbers are positive.
And we're workingwith document list,
so they're always positive.
So this will go away.
So let's assume count frequencyis w squared or smaller.
So the total running time forword frequencies from file
is w squared.
What's the runningtime for everything?
AUDIENCE: Would justbe, like, w squared
plus L1 squared plus L2 squared?
PROFESSOR: Almost.
AUDIENCE: Actually, it dependson which one's greater, right?
PROFESSOR: Well, almost.
So here W works, assuming youget one document with W words.
But word frequencies fromfiles is called twice, once
for each document.
First document has W1 words,second document has W2 words.
So what's the running time?
AUDIENCE: W1 squaredplus W2 squared.
PROFESSOR: W1 squaredplus W2 squared.
So I take this, and I add this.
Right?
Except when I add this, ifI want to add L1 squared,
I know L1 is the numberof unique documents--
of unique words in the document.
And W1 is the total numberof words in the document.
W1 guaranteed to begreater or equal than L1,
so it's going to dominate.
I don't need to add it.
Same for L2.
This is it.
OK.
You guys don't seem toremember the numbers for these.
So that means I didn'ttorture you enough last time.
So let's do more.
Let's look at count frequency.
And let's computethe cost for that.
So what we did last time was, wewent through each line of code.
We thought, howmuch time does it
take to execute the line once?
And how many timesdoes the line run?
And then we compute the productof that, add everything up,
and that's the costfor the function.
First off, beforeI put numbers here,
what does the method to do?
AUDIENCE: It takesa list of words--
PROFESSOR: OK.
AUDIENCE: For eachitem in that list,
checks to see ifit's-- you know,
list of words thatit's-- counted, right?
PROFESSOR: OK.
So you're telling mewhat the code does.
AUDIENCE: Yeah.
PROFESSOR: Try tolook at Main or try
to look at wordfrequencies for files.
So look at it top-down, and tellme what the purpose of it is.
What's the goal?
AUDIENCE: Making a listof-- and each object
is a list with aword and a number.
PROFESSOR: OK.
Excellent.
So big picture, I havethe first document.
I read it in.
I break it up into words.
And I have a list of words.
That's what wordfrequencies for file
gives me-- sorry, that's whatyou get words from line list
gives me.
List of words.
The fox is in the hat.
And this gets passedto count frequency,
and count frequencygives me, you said,
an object, which is a list.
Of lists, where eachof them has the word
and how many times it shows up.
So I would have "the" showsup twice, "fox" shows up
once, "is" shows uponce, "in" shows up once,
and-- I need a shorterexample-- "hat" shows up once.
So it takes this andturns it into that.
So on line 2, I have alist L that's initialized.
And then, at theend, it's returned.
So I'm going to guess that Lis going to look like this.
Line 3, for new word in wordlist, iterates over the input.
So iterates over this.
And then, line 4 checksto see, for each new word,
it looks at the list thatI have under construction.
So exam-- for example, ifI ran through all the words
and then I'm trying toput in hat right now,
I wouldn't have it here.
What line 4 does is, itlooks at all the entries.
And it says, if Ican find the words--
so if I can find theword hat somewhere here--
then increment the number.
If I can't, thenmake a new entry
and say that the word shows uponce, because it's the first
I see it.
So this is what the code does.
Now let's see howfast it does that.
So line 2 initialize theoutput to an empty list.
What's the cost for that?
AUDIENCE: [INAUDIBLE].
PROFESSOR: Very good.
How many times?
For new word in word lists.
Cost?
AUDIENCE: [INAUDIBLE].
I know the cost is 1.
PROFESSOR: OK, so we are-- here,it's a bit confusing, right?
We're saying that, oh, there'sdoes iteration over a list.
And each step of theiteration is constant time,
but the iterationhappens L times.
I'm sorry, not L times.
The length of the list times.
How many-- how manyelements are in word lists?
I heard a very low W, soI will pretend I heard it.
Or I hope I heard W. Soword list, the words I
got from the document,W. How about the if.
So, it looks at theword that I have-- oh.
This code is confusing becauseI forgot a line, right?
Pretend that between line--oh, no, sorry, I didn't.
New word is-- new wordis assigned in line 3.
So new word in line 3 iscompared to the first element
of the entry that'sassigned in line 4.
So hat is compared withthe, fox, so on, so forth.
And if the comparison istrue, it runs line 6 and 7.
And if not, it keeps looping.
So line 5, the if how,many times does it run?
Just the comparison.
AUDIENCE: W.
PROFESSOR: W.
AUDIENCE: Oh, no, no, no.
No.
I'm thinking of line 4.
PROFESSOR: Oh.
Yeah.
I'm getting confused too.
So let's start with line 4.
Sorry.
Shouldn't do line 5.
AUDIENCE: --new word,then you're not-- like,
you're not going torun through that again.
PROFESSOR: Yeah.
Let's worry aboutthat right afterwards.
Let's do line 4 first.
Sorry, I jumped over line 4.
So, line 4 definitelyruns W times
because it's inside the forloop from line 3 to line 9.
So everything here willdefinitely run W times.
But how many timesdoes it run overall?
So, line 4 iterates overall the entries here.
How many times does that happen?
AUDIENCE: 1 plus Wover-- times 10/2,
because it's just worst case,L-- the length of L increases
by 1 every time.
[INAUDIBLE]
PROFESSOR: OK, so I like thatyou started with worst case.
Normally I wouldsay exactly that.
Worst case or W. But wehad a different constant
for the number of wordsthat you have in the end.
So let's say something a littlebit better than W. Let's say,
let's put the lower bound on it.
So yeah, worst case, allthe words are different.
But what if they'renot all different?
And what if in the endI know I have L words?
CLASS: [INAUDIBLE].
PROFESSOR: Worst case.
Almost.
So, I know I have a Wfrom the outer loop.
For each word in theouter loop, how many times
does the inner loop execute?
How many times do I haveto go through something
in the inner list?
So I know here I haveW words, suppose here I
have L elements in the vector.
For each one ofthese, how many times
do I have to go through--So how many elements do I
have to go through here?
AUDIENCE: Depends onwhere you are, though.
For the first word, youonly have to go through one.
PROFESSOR: Yep.
But--
AUDIENCE: For the secondword, you have to through--
PROFESSOR: Yep.
But I heard the worst case.
And I like that,because it's easier
to reason about the worst case.
And most of the time it'ssort of like the average case.
AUDIENCE: So then,length of list-- L.
PROFESSOR: The length of thelist, and that's L. Worst case,
the first words that I seewill be L different words.
And then all thewords that I see
will be the same as thewords that I saw before.
So worst case, the listwill grow to L very fast,
and then I'll keepseeing L L L. And I'll
ignore what was therein the beginning,
and I'll say L times.
So I know the second listis bounded by L in length,
the first list isbounded by W in length.
So worst case thisruns L times W times.
And what's thecost of iterating?
AUDIENCE: What is thedifference between L and W?
L is the document vector length,and W is the number of words.
But isn't the number ofelements in the document vector
the number of words?
PROFESSOR: How about this case?
What's W?
AUDIENCE: 6, yeah.
PROFESSOR: So L is the numberof unique words in a document.
And I heard areally cool argument
that I liked last time.
Does anyone remember?
About L?
If we're really dealing with anatural language like English,
how many words doI have in English?
AUDIENCE: Well, Ithink, at the max,
there's actually around250,000, but a lot of them
are not used anymore.
PROFESSOR: OK.
So 250,000, right?
Max.
So that's a constant.
If I have a documentthat contains
all the writings of all theauthors that were ever done,
and say that's a billion words,L is still going to be 250,000.
Right?
So L can be verydifferent from W.
That's why we're keepingtrack of them separately.
One W L times W. What'sthe cost of iterating?
So we know how manytimes line 4 runs,
but what's the cost of onestep of iterating in the list?
1.
Very good.
Line 5.
How many times does it run?
AUDIENCE: W times L?
PROFESSOR: Yep.
Same as line 4, right?
The if is run all the time.
And lines 5 and 6 only runsometimes, but-- sorry,
line 6 and 7 only run sometimes,but line 5 runs all the time.
What is the cost?
AUDIENCE: We cansay it's constant.
PROFESSOR: We cansay it's constant.
I like we can sayit's constant, but why
is it that we cansay it's constant?
Why don't I just say 1,if-- this is an empty list.
This is a number.
AUDIENCE: Dependson the word length.
PROFESSOR: OK.
It depends on the wordlis-- length, very good.
AUDIENCE: And we'reassuming that words
are all the same length.
PROFESSOR: OK.
AUDIENCE: And?
So, 1 times L W. Little w.
PROFESSOR: OK, very good.
So we do assume that all thewords are the same length.
But unless I tell you thatthe length is really small,
which I did, you can't say 1.
So, when you said we can sayit's constant, it's right.
We can say, but wealso have to say why,
or at least thinkwhy, that's the case.
So it's W-- we're going to useW here and when we copy it here,
we're going to forget about it.
AUDIENCE: Can you puta top bar on the W,
just so I can tell thatit's not the other W.
PROFESSOR: OK But you have tobe responsible for reminding
me to put that.
AUDIENCE: OK.
PROFESSOR: OK.
So string comparison,not constant.
If I have two verylong strings that
only differ in thelast character,
I have to go through themcharacter by character
by character until I findthe last character that's
different.
Because until I look at that,the strings might be equal.
So comparing twolong strings takes
time that's proportional tothe length of the strings.
OK, so line 5 costsw, tricky part,
runs L times W part--L times W times.
How about line 6 and 7?
I didn't ask line 6, Iasked line 6 and 7 together,
because there is a trick there.
AUDIENCE: I think it'sconstant for line 6, right?
PROFESSOR: Why?
AUDIENCE: 'Cause it's a number.
And one place in the entry.
We've already grabbed the entry.
PROFESSOR: So the costof running it once is 1.
Good.
I can tell you that that'sthe same case for 7.
How many times do they run?
This is the hard part.
AUDIENCE: Wait, does breakline break out of one loop?
PROFESSOR: Yep.
Break breaks out of theloop between lines 4 and 7.
I have a question.
AUDIENCE: Is L supposedto be not in line with if?
Yes.
PROFESSOR: It is supposedto be where it is.
I will talk-- yes.
So what happens is, thatelse is in line with a for.
And if the for loopruns to completion,
then it does get executed.
If there's a breaksomewhere inside the for,
then it doesn't get executed.
So the idea behindthat is, usually
use this for finding stuff.
So you iterate over a list,and when you find something,
break out of the loop.
You did something, youbreak out of the loop.
If you didn't find it,you can put an else
and then say what code happens.
And you don't have towrite code on your own
to check if you brokeout of the loop.
So if break executes,then it's going
to take us out of the loop.
It's going to ignore the else.
And it's going to runthe loop on line 3 again.
So it's going to doanother iteration.
So line 6 and 7, how many times?
AUDIENCE: W minus L?
PROFESSOR: W minus L.
AUDIENCE: Like, ifit's the difference
in number of words andnumber of-- unique words.
PROFESSOR: Smart.
You gave the precise answerright the first time.
W minus L. Very good.
And what happens once--what happens once this runs?
Why do I know-- why do I knowthat the if won't be-- Oh.
Sorry, I'm gettingmyself confused.
So it's going to run Wminus L times total, right?
Total times overallwithout this W thing here,
so I should putan arrow and say--
Now suppose Ididn't notice this.
Is there another way Ican get the decent bounds?
So this is the right,perfect answer.
You have this, you're done.
You don't need to think further.
Suppose you don't have this.
What else can you do?
AUDIENCE: But wedon't have what?
PROFESSOR: If I didn'tnotice that, hey, there
are L words-- Thereare L new words,
W words total, so W minusL words repeat themselves.
So this is how many timesthe if is going to be true.
If I didn't havethat, then I could
see that line 7 breaksout of the loop.
So if that if runsonce, then we're done.
We're out of the loop.
It's not going to run again.
So a bound that's not asprecise as the one you gave me
is 1 times W, because itruns, at most, once per loop.
Does people see this?
So this is an easy wayto cop out of thinking.
And I don't like to think morethan necessary, because you
have finite time ona test or in life,
and you don't want to spendtoo much time on one thing.
We covered the loop.
Let's look at else and append.
I already got ahelpful question,
so I explained whenthe else would run.
The running time for else.
Else is a flow--control flow statement.
It's like break,so Python will keep
track of whether aloop completed or not
in constant time.
I'll give you that.
That's in the cost model.
How many times doesthis else run, at most?
OK, L. Good.
Perfect.
How about line 9?
Loop stops here.
How about line 9?
How many times does it run?
That's easy.
AUDIENCE: [INAUDIBLE].
PROFESSOR: Yep.
And what does it do?
It's an append.
What's the cost for append?
AUDIENCE: Constant.
PROFESSOR: OK Line 10runs how many times?
What's the cost?
AUDIENCE: 1?
PROFESSOR: You guys didn'tlisten to me last time.
So I was saying you haveto look at the notes
and you have to practice this.
Because you have to havethis model in your mind.
So that when you'rewriting code,
this has to happenautomatically.
You shouldn't have tothink explicitly about it.
Because if you do, you'renot going to do it.
AUDIENCE: For theelse, shouldn't it
be W tim-- I mean, it wouldbe called W times not L times?
Because you want to lookat the outer loop and not
the inner loop?
So it can-- you call all--once at the end of the total--
the inner for.
Right?
So, so it could be-- happen Wtimes, maximum, not L times.
'Cause the L is the for loopthat the else coincides with.
And the else wouldonly happen once
for every totaliteration of that.
PROFESSOR: OK soyou're proposing W
as the bound forthe else, right?
Here.
AUDIENCE: Yeah.
PROFESSOR: So I could say,hey, it runs, at most,
once for outer loop.
So it's, at most, W times.
This is a nice, easy argument.
We have a bound.
L is a tighter bound.
And when I got L,what happened here
was the same kind ofthinking that you did earlier
to get this.
So this bound is good,this bound is tighter.
This bound is good,this bound is tighter.
And the argument behindthis one is that, hey, this
else only happens for new words.
If there's no new-- if theword that I looked at is old,
then break is going to execute.
And else is notgoing to execute.
So that's why I can say L.
The beauty ofasymptotics is that I
can use either of thebounds and I'll still
get the correct running time.
So I'm not going tofuss over it too much.
I like the tighter ones, becauseit means you guys are thinking.
And you're lookingat the algorithm,
and you're understanding it.
But if you don'thave them, you'll
still get the correctrunning times.
So I think that's nice.
PROFESSOR: OK, let's get therunning time for everything.
Can someone do it in one step?
Then let's do it step by step.
So let's computepartial products.
What are they?
AUDIENCE: 1.
W. LW.
L, W, little w-- with the bar.
AUDIENCE: (LAUGHING)With the bar.
PROFESSOR: Awesome.
AUDIENCE: W minus L. W. L, L, 1.
PROFESSOR: OK, so if I add themup, this is all asymptotic.
So the biggestone will dominate.
In general, I canjust take a max
instead of doingactual addition.
So who dominates here?
AUDIENCE: The fourth one down?
PROFESSOR: Fourth-- OK.
Yep.
So line 5 is the biggest timeconsumer in this algorithm.
And I know it's W times w-bar.
So now I'm goingto copy it here.
What did I say I'll dowhen I'm copying it here?
AUDIENCE: [INAUDIBLE].
PROFESSOR: Yep.
So I'm assuming Englishfive- to ten-character words.
W L. And W L issmaller than w squared,
so the assumption thatI had before is correct.
I don't have tochange anything here.
That is good.
So we noticed last time,and already forgot by now,
that the biggest problem inthis whole implementation
was the plus in getwords from line list.
Suppose we forgot about it andwe have this big pile of code,
how do I go aboutmaking it faster?
Method one, gothrough every method.
Do this.
Compute the running times, andsee which one's the slowest.
Does this scale to1,000 lines of code?
Not so much.
We're going to be giving youroughly 1,000 lines of code
for PSET2, and we're goingto ask it to make it faster.
Do want to understandeverything?
No.
Instead what you wantto do is run the code
through a profiler.
So we have a computer.
The computer cantell you which line
takes the most time to run.
So you don't have todo it on pen and paper.
Whenever we can automate, do so.
So we'll teach youhow to run a profiler.
It's in the notes.
And if you look inthe code outputs right
after [INAUDIBLE], you'llsee a profiler output.
So what that tells youis for each function,
how much time does it take--that's the total time?
And there's thecumulative time, which
is how much does it taketogether with its children?
In this case for wordfrequencies from file, order
of W-- this is howmuch time it takes
including thefunctions it's called.
So this is the cumulative time.
Cumulative time is useful ifI'm during runtime analysis.
Is not so useful ifI'm looking at where's
the slowness in my program?
Because if you lookat cumulative time,
you might see the slownessin one of the functions that
get-- that word frequenciesfrom file called.
So the cumulative timefor this is really big,
but the total time-- thetime that's spent inside it--
is not that bad.
Instead if youlook at total time,
you'll see that the worstfunction is-- surprise,
surprise-- get wordsfrom line list.
So 5 lines to look at--hey, there's a plus there.
I remember from lecturethat plus copies over lists,
and it's kind of slow, so maybeI should use something else.
Does d remember whatelse we should use?
We talked about thatlast recitation.
Extend.
Document distance 2 .
The only difference betweenit an document distance 1
is get words fromline list, line 5.
That plus turned into an extend.
One character turned to six,so about eight keystrokes,
30% runtime improvement.
Very good return on investment.
Everything else isgoing to be harder.
So let's look at that line,because that line dominated
the running time of getwords from line list.
And think what's, then,your running time for it
now that I have extend?
Does anyone remember what getwords from line list does?
AUDIENCE: It gets thewords out of the document.
PROFESSOR: OK .
It gets the wordout of the document.
So it reads a document thatlooks like a regular text file,
and it gets this out of it.
The way it does that isit goes through each line,
reads the line as a string,breaks up the string
into a list of words,and then combines
all those listsof words together.
Get words from string,line 4, returns
the number of words in a line.
Sorry, the list of wordsin the line, and then
extend combinesthe lists together.
Let's add some constantsthat we had last time.
I think we had that K is thenumber of words per line.
And Z is the numberof total lines.
So this K is actually-- Wover Z. No, I don't like that.
That's work.
So Z is K W overK. And we argued
that we're not goingto talk about K
too much, because a documentneeds to fit on a screen
or needs to fit ona piece of paper.
So the line length hasto be finite, right?
Otherwise, if I have a documentthat has 10,000 character
lines, I can't evenwrite it on this board.
Even though it's really long.
So K, the number of words ina line, is going to be finite.
But we'll need itfor this analysis.
So line 4 returns a listwith the words on a line.
How many elements in that list?
This returns a listwith how many elements?
AUDIENCE: Could K[INAUDIBLE] words on line.
PROFESSOR: So even ifI ask easy questions,
you guys have to answer.
Because otherwise I'llstall until you do.
So 4 gives me a listwith K elements,
and 5 appends that smalllist to the big list of words
in the entire document.
Before I used plus andthat did something bad.
Now I'm using extend.
What's the cost ofone extend called?
AUDIENCE: Constant?
Order of K?
PROFESSOR: I want to knowyour Python implementation.
AUDIENCE: If Python didit like a linked list ,
like doubly linked lists,could be order constant?
PROFESSOR: I like your question.
So if Python lists wereactually linked lists--
so if the namewasn't confusing--
then yes, merging twolists would be constant.
But then accessing one elementin the middle of a list
would not be constant anymore.
Say I want to accesselement number
200 in a list of10,000 elements.
I have to go through200 elements.
We didn't do linkedlists when we
ran it, so don't worry about it.
So they decided that it'sless confusing to have
lists actually be arrays.
So Python lists, array in CLRS.
AUDIENCE: That can usetheir storage contiguously?
PROFESSOR: Yep.
AUDIENCE: So when you copy,why can't you copy a block?
Why do you have toaccess each other?
Does that make sense?
PROFESSOR: So, youcan copy a block,
but in order to copya block, you still
have to move everything.
So if your blockis 10,000 elements,
you still have to move 10,000bytes times element size.
And the CPU works on 4 bytesat a time or 8 bytes at a time.
OK.
But this is theright kind of thing
to be thinking about whenyou're doing the cost model.
And this is what youwant to have in your head
when you're writing Python.
So, good.
I like your question.
I wanted to saythat at some point,
but I didn't getthe occasion yet.
Lists in Python arenot lists in CLRS.
OK.
So with that longexplanation, an extend
is a list-- is a sequenceof appends, right?
If you have twolists and you want
to extend the firstlist to the second list,
extend basically goes througheach element in the second list
and calls appendon the first list.
The list is length K, thesecond list is length K,
so K appends aregoing to happen.
And append is constant time.
Total cost, K.
Now many times does line 5 run?
AUDIENCE: [INAUDIBLE].
PROFESSOR: Very good.
So what is thetotal running cost
of the algorithm if thisis the line that dominates?
I don't want to doevery other line,
so I'll promise that thisis the line that dominates.
What is the total running time?
AUDIENCE: [INAUDIBLE].
PROFESSOR: OK.
Very good.
K times L. And that is?
Oh, K. So I shouldn't havesaid K times L, sorry.
L is not the number of lines.
L is the number here, soZ is the number of lines.
So it's K times Z. Whichmeans I'm using bad letters,
so please bear with me.
We'll forget aboutthem in a minute.
So K times Z equals?
AUDIENCE: W.
PROFESSOR: W. Sowhat do I write here?
AUDIENCE: [INAUDIBLE].
PROFESSOR: OK.
Good.
Very good.
What do I write here?
Word frequencies from file.
AUDIENCE: W L.
PROFESSOR: OK.
What do I write here?
AUDIENCE: W 1.
AUDIENCE: We have to-- put L1 squared and L 2 squared back
in.
PROFESSOR: OK, do we?
Well, the-- No.
W, you want to always bebigger than L. I hope.
PROFESSOR: Yep.
So if I put itin, L 1 squared is
L 1 L 1, which issmaller than W 1 L 1.
But I have to think aboutit before doing that.
I can't ignore this completely.
So this is document distance 2.
The asymptotic complexityimproved, the running time
improved.
Next thing that happensto make this faster
is-- I'm not giving youthe profiler output,
but you have to take my word forit that the longest methods are
count frequencyand inner product.
So what I'm goingto do first is I'm
going to make innerproduct faster.
But in order to dothat, I have to make
word frequenciesfor file slower.
And that is becauseI happen to know
an algorithm for inner productthat is a lot faster, if only
you can promise me that in thislist, the words are ordered.
The words are sorted.
So what happens in that list1 is, the moment I see a word,
if it's not in the listI add it at the end.
So the words here show uppretty much in the order
that they show up in the file.
Well, if instead Icould have something
that looks like-- what is it?
Fox.
In.
His.
Hat is somewhere here.
So if these wordswould be in this order,
together with theword that I'm missing,
then I can combine two lists.
I can do an innerproduct a lot faster.
Let's see how that would work.
And I'm already getting confusedmy words, so let's do a trick.
Let's say that instead ofwords, we'll use numbers.
So instead of saying"the," I'm going
to say the is the 50thword in the dictionary.
So I'm going to use number 50.
Because I want to write numbers.
The numbers areeasier to deal with.
So say the firstdocument that I have--
the fox is in the hat-- aswords number 3, 4, 6, 8, and 9.
And they show up twice,once, once, once.
9, once.
And say I'm trying to computethe inner product of this
with a document thathas word number 2
showing up once, word number3 showing up once, word number
6 showing up once, wordnumber 7 showing up once,
word number 8 showing up once.
OK, the algorithm for innerproduct that we talked
about last time was, gothrough each element in one
of the vectors, find anelement with the same word
in the second vector,and if you can find it,
then take the number oftimes the words show up
and multiply them.
So here I have a 3, 2.
I would find this elementhere that has 3, 1.
I have these everywhere.
And I take the 2 and the1 and I multiply them.
So the 3s have to be the same,then I think the 2 and the 1,
and I multiply them.
And for all the elementswhere that's case,
I add up the resultsof the multiplication.
So step one, go througheach element in a vector.
That's not going to getfaster if this other vector is
sorted, right?
But the step of looking up thesecond element can be sped up.
The first and easiest way Ican speed this up is, hey,
this is sorted.
If I'm looking up three,why not do a binary search?
What would be thecost if I do that?
So here I have L1 element,here I have L2 elements.
What's the cost of doingone binary search here?
AUDIENCE: Log of L2?
PROFESSOR: OK.
And how many times doI do a binary search?
AUDIENCE: [INAUDIBLE].
PROFESSOR: So if I gothrough each element here
and I do a binary search, whichis a nice and easy algorithm
that I can explainin 10 seconds,
I'm already faster than L1 L2.
So it's worth sorting.
Now, the algorithmthat we use in class
takes time proportionalto L1 plus L2.
So that's eventrickier, and it's
going to take a bitmore time to explain.
Does-- did anyone understandthe algorithm for class
and wants to help me explain it?
Didn't think so.
OK.
So idea is that both ofthese vectors are sorted.
So if I have a 3 here and Ifound my 3 here, next time when
I get to 4, I knowfor sure that 4 is not
going to be anywhere here,because this vector is sorted.
Say I couldn't find4, then I go to 6.
If 6 is here, when Ihave to look for 8,
I know for sure that 8 is notgoing to be anywhere up here.
So what I do is, I have apointer here that remembers,
where's the last elementthat I have seen?
Does this make sense to people?
So when I start hereand I look at 3,
I have a pointer here that says,I didn't see anything here.
I look at 2, it's not 3.
It's smaller.
I look at 3.
I found it, good.
I do my product.
Then I go look for thenext element here, 4.
I look at 6.
6 is bigger than 4.
So I know for sure that nothingbelow it is going to be 4.
So I can stop right hereand keep my pointer here.
Then I go to 6 here.
And I look here.
Where did I stop?
I stop here.
This element matches this.
I do my product.
Keep it in.
Now I go to 8 here.
I was at 6.
6 is smaller than 8.
7 is smaller than 8.
8 is equal to 8.
I found something.
Sweet.
I do a product.
And then I stop.
And I look at the next element.
I know for sure that nothinghere is going to be 9,
so I can keep looking down.
I hit the end of my list.
OK.
Whatever I have down here--it's going 9, 10, 11, 12--
is not going to be in thislist, because it was sorted.
So I can stop.
AUDIENCE: How doyou keep going--
What algorithm so you useto keep looking down on L2?
PROFESSOR: Plus 1.
AUDIENCE: So what if--
PROFESSOR: I keep going down.
AUDIENCE: What if the leftside was 3, 4, 6, 9243?
PROFESSOR: 9,000, what?
AUDIENCE: Just a big number.
AUDIENCE: Right.
Then you have toincrement by 1 each time--
PROFESSOR: So I'mnot incrementing
the number I'm looking at.
Here, I looked at 6.
Then I'm looking for 8.
And after I found 8,I'm looking for 19,000.
So I'm going to go down,either until I find 90,000
or until I stop.
AUDIENCE: So are you goingto go down one at a time,
PROFESSOR: Yep.
AUDIENCE: --why notdo a binary search?
PROFESSOR: Because ifI do a binary search,
the analysis that says it'sfast is not going to work.
It turns out that this givesme the optimal running time.
If I do a binary search, supposeI have a list that's like this.
1, 2, 3, 4, 5, all theway down to 10,000.
Ugh, I can't write.
And I have another listthat's like this- 1, 2, 3, 4,
all the way down to 10,000.
1, 1.
I do a binary search,takes log N. I look at 2.
I do a binary search, takesalmost log N. I look at 3,
do a binary search, takesalmost log N. So on, so forth.
So this is--
AUDIENCE: But if yourleft list had been
PROFESSOR: Log N plus log N.
AUDIENCE: --10,000.
PROFESSOR: Yeah.
AUDIENCE: You'dhave taken N time.
PROFESSOR: Yes.
Well, this algorithmtakes N time,
even if I have tolist like this.
It takes 10,000plus 10,000 time.
Whereas this algorithm willtake time that's actually
proportional to10,000 log 10,000.
You believe me.
So, a way to look at thisis to do bounds and say,
for the elements1 through 5,000,
it's going to do a binary searchfor more than 5,000 elements.
So, the time-- the runningtime is definitely bigger
than N over 2 log N over 2.
Constant.
This becomes log Nminus 1 and log N.
That is a good question.
I wondered about that the firsttime I saw merge-sort too.
And I was thinking,hey, I'm going
to do a binary searchhere because it's faster,
and I'm going to make a fasteralgorithm than anyone has ever
seen.
Well, if you do theanalysis, not so much.
But you need to thinkabout it, and you
need to know why that'strue or that's not true.
So I like your question.
Thank you.
So now let's get down sothe plain old merge-sort
that everyone-- sorry,merge that everyone knows.
So if we go throughthese one by one,
how many times am I going tobe advancing this pointer?
In total?
AUDIENCE: L2?
PROFESSOR: L2 times.
So this pointer canonly go down, right?
So worst case is goingto go down L2 times.
And then I'm donewith the list, return.
How many elements am Igoing to look through?
So how many times does thispointer going to advance?
AUDIENCE: L1?
PROFESSOR: This one.
AUDIENCE: But I thought, like--
AUDIENCE: Then you getextra ones in between.
PROFESSOR: What ifL2 is bigger than L1?
What if--
AUDIENCE: Oh, right.
OK, never mind.
The reason I saidL2 was because--
PROFESSOR: You're thinking afterI'm going through this list,
I'm out, right?
AUDIENCE: Right,that's what I thought.
PROFESSOR: So, your answerworks if this list, say, has
10 elements and this has 10,000.
And I go through thisone really quickly.
But if this list has 10 elementsand this list has 10,000,
and they both startwith 1 through 10,
I have to say a 1 becausethat's a better bound.
So I have to say this.
AUDIENCE: Could yousay the opposite value
of the differencebetween the two of them?
Because if you're goingto stop at 1 has 10
and the other one has10,000, and let's say
that only the firstten are actually equal,
then you're going to gothrough that list, find all 10,
and you stop.
That would be 9,000--
PROFESSOR: I could say aboutthat if I'm looking at one
case, but the magic trickis-- let's-- we're looking
at the worst case.
So worst case, ifI have 10 elements,
they'll be all the waydown in the other list.
Or they won't be there at all.
And I have to go downthrough all the list.
AUDIENCE: OK.
PROFESSOR: So worstcase, L1 plus L2.
Let me see if Ihave any time left.
Nope.
So, what I would like you to dois go through insertion sort.
Insertion sortmatches the textbook.
Look at the definition in thetextbook, look at the code,
convince yourself it's the same.
Look at the runningtime, convince yourself
it's N squared.
Then look at inner productand convince yourself
that this is what it does.
Go through this line byline, see where they match,
put the cost on.
Make sure that thecost is L1 plus L2.
And last, go throughmerge-sort and notice
that merge in [INAUDIBLE]6 is exactly the same
as inner product.
So this pointermagic that I did here
is exactly what'shappening inside merge.
And understand merge-sort.
Look at the textbook,look at the notes,
and see how they match.
OK.
Thanks, guys.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811align:start position:0% hi welcome back to recitation in lecture
align:start position:0%hi welcome back to recitation in lecture
align:start position:0%hi welcome back to recitation in lectureamong other things you've been learning
align:start position:0%among other things you've been learning
align:start position:0%among other things you've been learningabout Computing components of of one
align:start position:0%about Computing components of of one
align:start position:0%about Computing components of of onevector in the direction of another
align:start position:0%vector in the direction of another
align:start position:0%vector in the direction of anotherVector so I have a a straightforward
align:start position:0%Vector so I have a a straightforward
align:start position:0%Vector so I have a a straightforwardproblem about that for you here um so
align:start position:0%problem about that for you here um so
align:start position:0%problem about that for you here um sowe've got two vectors the vector 2 I
align:start position:0%we've got two vectors the vector 2 I
align:start position:0%we've got two vectors the vector 2 Iminus 2 J + K and we've got the vector I
align:start position:0%minus 2 J + K and we've got the vector I
align:start position:0%minus 2 J + K and we've got the vector I+ J plus K and so what I'd like you to
align:start position:0%+ J plus K and so what I'd like you to
align:start position:0%+ J plus K and so what I'd like you todo for me is to compute the
align:start position:0%do for me is to compute the
align:start position:0%do for me is to compute thecomponent of this first Vector in the
align:start position:0%component of this first Vector in the
align:start position:0%component of this first Vector in thedirection of this second Vector so why
align:start position:0%direction of this second Vector so why
align:start position:0%direction of this second Vector so whydon't you pause the video take some time
align:start position:0%don't you pause the video take some time
align:start position:0%don't you pause the video take some timeto work that out come back and we can
align:start position:0%to work that out come back and we can
align:start position:0%to work that out come back and we canwork on it
align:start position:0%
align:start position:0% together welcome back so hopefully you
align:start position:0%together welcome back so hopefully you
align:start position:0%together welcome back so hopefully youhad some luck with this problem now this
align:start position:0%had some luck with this problem now this
align:start position:0%had some luck with this problem now thisproblem is is is pretty straightforward
align:start position:0%problem is is is pretty straightforward
align:start position:0%problem is is is pretty straightforwardreally all you have to do is is remember
align:start position:0%really all you have to do is is remember
align:start position:0%really all you have to do is is rememberwhat the definition of component is and
align:start position:0%what the definition of component is and
align:start position:0%what the definition of component is anda and after that it's it's smooth
align:start position:0%a and after that it's it's smooth
align:start position:0%a and after that it's it's smoothsailing so in particular the component
align:start position:0%sailing so in particular the component
align:start position:0%sailing so in particular the componentof of one dire of one vector in the
align:start position:0%of of one dire of one vector in the
align:start position:0%of of one dire of one vector in thedirection of another is the is the
align:start position:0%direction of another is the is the
align:start position:0%direction of another is the is thelength of what you get when you project
align:start position:0%length of what you get when you project
align:start position:0%length of what you get when you projectthis Vector onto that one well plus a
align:start position:0%this Vector onto that one well plus a
align:start position:0%this Vector onto that one well plus asign right so if if it's pointing if the
align:start position:0%sign right so if if it's pointing if the
align:start position:0%sign right so if if it's pointing if theprojection is in the same direction then
align:start position:0%projection is in the same direction then
align:start position:0%projection is in the same direction thenit's positive or or if it's in the
align:start position:0%it's positive or or if it's in the
align:start position:0%it's positive or or if it's in theopposite direction it's negative um so
align:start position:0%opposite direction it's negative um so
align:start position:0%opposite direction it's negative um soso let me draw a picture of what I what
align:start position:0%so let me draw a picture of what I what
align:start position:0%so let me draw a picture of what I whatI mean by that so if you have a
align:start position:0%I mean by that so if you have a
align:start position:0%I mean by that so if you have avector
align:start position:0%vector
align:start position:0%vectorv and you have another
align:start position:0%v and you have another
align:start position:0%v and you have anotherVector W then the projection of v on to
align:start position:0%Vector W then the projection of v on to
align:start position:0%Vector W then the projection of v on toW is what you get if you make a drop a
align:start position:0%W is what you get if you make a drop a
align:start position:0%W is what you get if you make a drop aperpendicular line there and then it's
align:start position:0%perpendicular line there and then it's
align:start position:0%perpendicular line there and then it'sjust this this Vector here so that's the
align:start position:0%just this this Vector here so that's the
align:start position:0%just this this Vector here so that's theprojection and then the component is is
align:start position:0%projection and then the component is is
align:start position:0%projection and then the component is isthe length of that projection again with
align:start position:0%the length of that projection again with
align:start position:0%the length of that projection again withthis sign if if necessary um and so we
align:start position:0%this sign if if necessary um and so we
align:start position:0%this sign if if necessary um and so wecan see since this is going to be a
align:start position:0%can see since this is going to be a
align:start position:0%can see since this is going to be aright triangle here we can see that that
align:start position:0%right triangle here we can see that that
align:start position:0%right triangle here we can see that thatthis Vector has length that's just given
align:start position:0%this Vector has length that's just given
align:start position:0%this Vector has length that's just givenby the the length of V so the length so
align:start position:0%by the the length of V so the length so
align:start position:0%by the the length of V so the length sorather
align:start position:0%
align:start position:0% the
align:start position:0%the
align:start position:0%thecomponent of
align:start position:0%
align:start position:0% v in Direction
align:start position:0%v in Direction
align:start position:0%v in Directionw is so it's just the length of V right
align:start position:0%w is so it's just the length of V right
align:start position:0%w is so it's just the length of V rightthat's the length of the hypotenuse
align:start position:0%that's the length of the hypotenuse
align:start position:0%that's the length of the hypotenusetimes the cosine of the angle between
align:start position:0%times the cosine of the angle between
align:start position:0%times the cosine of the angle betweenthem so it's time cosine of
align:start position:0%them so it's time cosine of
align:start position:0%them so it's time cosine ofnow this length of V * cosine th this
align:start position:0%now this length of V * cosine th this
align:start position:0%now this length of V * cosine th thisshould remind you of something this
align:start position:0%should remind you of something this
align:start position:0%should remind you of something thislooks very much like this formula we
align:start position:0%looks very much like this formula we
align:start position:0%looks very much like this formula wehave for the dot product right so
align:start position:0%have for the dot product right so
align:start position:0%have for the dot product right soanother way of writing this is to say
align:start position:0%another way of writing this is to say
align:start position:0%another way of writing this is to saythat this is equal to V do W so V do W
align:start position:0%that this is equal to V do W so V do W
align:start position:0%that this is equal to V do W so V do Wis the length of V time the length of w
align:start position:0%is the length of V time the length of w
align:start position:0%is the length of V time the length of wtime the cosine of the angle and so here
align:start position:0%time the cosine of the angle and so here
align:start position:0%time the cosine of the angle and so herewe just have the length of V time the
align:start position:0%we just have the length of V time the
align:start position:0%we just have the length of V time thecosine of the angle so we have to divide
align:start position:0%cosine of the angle so we have to divide
align:start position:0%cosine of the angle so we have to dividethis through by the length of
align:start position:0%this through by the length of
align:start position:0%this through by the length ofw so this is this uh so this is what the
align:start position:0%w so this is this uh so this is what the
align:start position:0%w so this is this uh so this is what thecomponent is and and this is the simple
align:start position:0%component is and and this is the simple
align:start position:0%component is and and this is the simpleformula for it if you're if you're given
align:start position:0%formula for it if you're if you're given
align:start position:0%formula for it if you're if you're givenVNW uh in in some easy to use form and
align:start position:0%VNW uh in in some easy to use form and
align:start position:0%VNW uh in in some easy to use form andindeed in this problem we're given V
align:start position:0%indeed in this problem we're given V
align:start position:0%indeed in this problem we're given Vandw just in in their their nice
align:start position:0%andw just in in their their nice
align:start position:0%andw just in in their their nicecoordinate form so so we're given that
align:start position:0%coordinate form so so we're given that
align:start position:0%coordinate form so so we're given thatour vector v that we want the component
align:start position:0%our vector v that we want the component
align:start position:0%our vector v that we want the componentof is 2 i - 2 J plus K and and the
align:start position:0%of is 2 i - 2 J plus K and and the
align:start position:0%of is 2 i - 2 J plus K and and thedirection W that we're looking at is I
align:start position:0%direction W that we're looking at is I
align:start position:0%direction W that we're looking at is Iplus J plus K so in our case we just
align:start position:0%plus J plus K so in our case we just
align:start position:0%plus J plus K so in our case we justhave to we just have to compute the
align:start position:0%have to we just have to compute the
align:start position:0%have to we just have to compute thethese these expr
align:start position:0%these these expr
align:start position:0%these these exprv.w and and the length of w in order to
align:start position:0%v.w and and the length of w in order to
align:start position:0%v.w and and the length of w in order toto put them into this formula and then
align:start position:0%to put them into this formula and then
align:start position:0%to put them into this formula and thenwe'll be done so in our
align:start position:0%
align:start position:0% case v. W well that's straightforward
align:start position:0%case v. W well that's straightforward
align:start position:0%case v. W well that's straightforwardbecause of because we're given V and W
align:start position:0%because of because we're given V and W
align:start position:0%because of because we're given V and Win coordinates so this is just 2 * 1
align:start position:0%in coordinates so this is just 2 * 1
align:start position:0%in coordinates so this is just 2 * 1plus - 2 * 1 + 1 * 1 so that's okay 2 -
align:start position:0%plus - 2 * 1 + 1 * 1 so that's okay 2 -
align:start position:0%plus - 2 * 1 + 1 * 1 so that's okay 2 -2 + 1 is 1 and the length of w well you
align:start position:0%2 + 1 is 1 and the length of w well you
align:start position:0%2 + 1 is 1 and the length of w well youknow it's just your usual length formula
align:start position:0%know it's just your usual length formula
align:start position:0%know it's just your usual length formulais 1 2 + 1 2 + 1 2 all thing square
align:start position:0%is 1 2 + 1 2 + 1 2 all thing square
align:start position:0%is 1 2 + 1 2 + 1 2 all thing squarerooted which is equal to S > of 3 so
align:start position:0%rooted which is equal to S > of 3 so
align:start position:0%rooted which is equal to S > of 3 sowe've got v. W and we have the length of
align:start position:0%we've got v. W and we have the length of
align:start position:0%we've got v. W and we have the length ofw and so then we just need to put them
align:start position:0%w and so then we just need to put them
align:start position:0%w and so then we just need to put themright into this formula that the
align:start position:0%right into this formula that the
align:start position:0%right into this formula that thecomponent of v in the direction of w is
align:start position:0%component of v in the direction of w is
align:start position:0%component of v in the direction of w isis given by this expression
align:start position:0%
align:start position:0% so the component of I'm I'm not going to
align:start position:0%so the component of I'm I'm not going to
align:start position:0%so the component of I'm I'm not going towrite it out with I's J's and K's I'm
align:start position:0%write it out with I's J's and K's I'm
align:start position:0%write it out with I's J's and K's I'mgoing to write 2 minus 2
align:start position:0%
align:start position:0% 1 in
align:start position:0%1 in
align:start position:0%1 inDirection one one one is well we just
align:start position:0%Direction one one one is well we just
align:start position:0%Direction one one one is well we justhave to divide the the dot product by
align:start position:0%have to divide the the dot product by
align:start position:0%have to divide the the dot product bythe length of of the direction Vector so
align:start position:0%the length of of the direction Vector so
align:start position:0%the length of of the direction Vector soit's 1 / the < TK of
align:start position:0%it's 1 / the < TK of
align:start position:0%it's 1 / the < TK of3 so that's that I'll end there123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131align:start position:0% if you have a potential the transmission
align:start position:0%if you have a potential the transmission
align:start position:0%if you have a potential the transmissioncoefficient for a potential for Z naught
align:start position:0%coefficient for a potential for Z naught
align:start position:0%coefficient for a potential for Z naughtis equal to 13 PI over 4 that's a square
align:start position:0%is equal to 13 PI over 4 that's a square
align:start position:0%is equal to 13 PI over 4 that's a squarewell of certain depth and we've
align:start position:0%well of certain depth and we've
align:start position:0%well of certain depth and we'verepresented it this way remember n must
align:start position:0%represented it this way remember n must
align:start position:0%represented it this way remember n mustbe greater than or equal then to Z
align:start position:0%be greater than or equal then to Z
align:start position:0%be greater than or equal then to Znaught over pi so this would be 13
align:start position:0%naught over pi so this would be 13
align:start position:0%naught over pi so this would be 13halves and 13 halves means that we can
align:start position:0%halves and 13 halves means that we can
align:start position:0%halves and 13 halves means that we canstart with n equal 7 8 9 and all those
align:start position:0%start with n equal 7 8 9 and all those
align:start position:0%start with n equal 7 8 9 and all thoseremember this n counts which bounces of
align:start position:0%remember this n counts which bounces of
align:start position:0%remember this n counts which bounces ofthe infinite square well we are talking
align:start position:0%the infinite square well we are talking
align:start position:0%the infinite square well we are talkingabout that the energy that you must use
align:start position:0%about that the energy that you must use
align:start position:0%about that the energy that you must usefor your integers are positive energy so
align:start position:0%for your integers are positive energy so
align:start position:0%for your integers are positive energy sopositive energies mean that you have
align:start position:0%positive energies mean that you have
align:start position:0%positive energies mean that you havesufficiently large n and they'll end
align:start position:0%sufficiently large n and they'll end
align:start position:0%sufficiently large n and they'll endthat is sufficiently large is 7 in this
align:start position:0%that is sufficiently large is 7 in this
align:start position:0%that is sufficiently large is 7 in thiscase so you can then determine from this
align:start position:0%case so you can then determine from this
align:start position:0%case so you can then determine from thisformula what is the value of e n over V
align:start position:0%formula what is the value of e n over V
align:start position:0%formula what is the value of e n over Vnaught so for example a 7 over V naught
align:start position:0%naught so for example a 7 over V naught
align:start position:0%naught so for example a 7 over V naughtturns out to be 0.15 9 7 6 e 8 over V
align:start position:0%turns out to be 0.15 9 7 6 e 8 over V
align:start position:0%turns out to be 0.15 9 7 6 e 8 over Vnaught
align:start position:0%naught
align:start position:0%naughtturns out to be 0.51 4 7 9 3 and D 9
align:start position:0%turns out to be 0.51 4 7 9 3 and D 9
align:start position:0%turns out to be 0.51 4 7 9 3 and D 9over V naught is 0.91 7 1 6 so if you
align:start position:0%over V naught is 0.91 7 1 6 so if you
align:start position:0%over V naught is 0.91 7 1 6 so if youplot it you have here e or capital
align:start position:0%plot it you have here e or capital
align:start position:0%plot it you have here e or capitalenergy over V naught and you want to
align:start position:0%energy over V naught and you want to
align:start position:0%energy over V naught and you want toplot the transmission probability and it
align:start position:0%plot the transmission probability and it
align:start position:0%plot the transmission probability and itbegins with 0
align:start position:0%begins with 0
align:start position:0%begins with 0the question second we go and then it
align:start position:0%the question second we go and then it
align:start position:0%the question second we go and then itmay reach one and it will reach one at
align:start position:0%may reach one and it will reach one at
align:start position:0%may reach one and it will reach one ateach one of those values so if here's
align:start position:0%each one of those values so if here's
align:start position:0%each one of those values so if here'sone 0.15 there will be 0.15 0.51 and
align:start position:0%one 0.15 there will be 0.15 0.51 and
align:start position:0%one 0.15 there will be 0.15 0.51 and0.92 so you get this and here another
align:start position:0%0.92 so you get this and here another
align:start position:0%0.92 so you get this and here anotherone and here another one so property
align:start position:0%one and here another one so property
align:start position:0%one and here another one so propertylike that so that's a typical graph for
align:start position:0%like that so that's a typical graph for
align:start position:0%like that so that's a typical graph forthe transmission probability it
align:start position:0%the transmission probability it
align:start position:0%the transmission probability itoscillates and it reaches one at several
align:start position:0%oscillates and it reaches one at several
align:start position:0%oscillates and it reaches one at severalpoints forever and never the amplitude
align:start position:0%points forever and never the amplitude
align:start position:0%points forever and never the amplitudebecome smaller so it's really overall
align:start position:0%become smaller so it's really overall
align:start position:0%become smaller so it's really overalltending to one so of so these two people
align:start position:0%tending to one so of so these two people
align:start position:0%tending to one so of so these two peoplewere talking about rum sour and Townsend
align:start position:0%were talking about rum sour and Townsend
align:start position:0%were talking about rum sour and Townsendthey were lift from the 1800 and 60s to
align:start position:0%they were lift from the 1800 and 60s to
align:start position:0%they were lift from the 1800 and 60s to1940 s and 50s and they did their famous
align:start position:0%1940 s and 50s and they did their famous
align:start position:0%1940 s and 50s and they did their famousexperiment in 1921 so their experiment
align:start position:0%experiment in 1921 so their experiment
align:start position:0%experiment in 1921 so their experimentwas elastic scattering of low energy
align:start position:0%was elastic scattering of low energy
align:start position:0%was elastic scattering of low energyelectrons off of rare gas atoms so RAM
align:start position:0%electrons off of rare gas atoms so RAM
align:start position:0%electrons off of rare gas atoms so RAMsour and Townsend in 1921 they scattered
align:start position:0%sour and Townsend in 1921 they scattered
align:start position:0%sour and Townsend in 1921 they scatteredcurd elastically that means the
align:start position:0%curd elastically that means the
align:start position:0%curd elastically that means theparticles didn't change their identities
align:start position:0%particles didn't change their identities
align:start position:0%particles didn't change their identitiesif you then create more particles just
align:start position:0%if you then create more particles just
align:start position:0%if you then create more particles justelectrons came in and electrons went out
align:start position:0%electrons came in and electrons went out
align:start position:0%electrons came in and electrons went outelectrons and these are low energy
align:start position:0%electrons and these are low energy
align:start position:0%electrons and these are low energyelectrons
align:start position:0%electrons
align:start position:0%electronsturns off of of rare gas atoms so these
align:start position:0%turns off of of rare gas atoms so these
align:start position:0%turns off of of rare gas atoms so theseare noble gases their shells are
align:start position:0%are noble gases their shells are
align:start position:0%are noble gases their shells arecompletely filled and their brother
align:start position:0%completely filled and their brother
align:start position:0%completely filled and their brotherinert very unreactive high ionization
align:start position:0%inert very unreactive high ionization
align:start position:0%inert very unreactive high ionizationenergies no low energy states you can
align:start position:0%energies no low energy states you can
align:start position:0%energies no low energy states you canscatter this atom into so basically it's
align:start position:0%scatter this atom into so basically it's
align:start position:0%scatter this atom into so basically it'svery unreactive atom and you can imagine
align:start position:0%very unreactive atom and you can imagine
align:start position:0%very unreactive atom and you can imagineit as a very beautiful spherical cloud
align:start position:0%it as a very beautiful spherical cloud
align:start position:0%it as a very beautiful spherical cloudif you just Electra there's a protons
align:start position:0%if you just Electra there's a protons
align:start position:0%if you just Electra there's a protonsand nucleus here and an electron cloud
align:start position:0%and nucleus here and an electron cloud
align:start position:0%and nucleus here and an electron cloudso how does this look to an electron
align:start position:0%so how does this look to an electron
align:start position:0%so how does this look to an electronwell you know from electrostatics that
align:start position:0%well you know from electrostatics that
align:start position:0%well you know from electrostatics thatif you have total charge 0 and it's
align:start position:0%if you have total charge 0 and it's
align:start position:0%if you have total charge 0 and it'stotally spherically symmetric no
align:start position:0%totally spherically symmetric no
align:start position:0%totally spherically symmetric noelectric field outside so the electron
align:start position:0%electric field outside so the electron
align:start position:0%electric field outside so the electroncomes in feels nothing and as soon as
align:start position:0%comes in feels nothing and as soon as
align:start position:0%comes in feels nothing and as soon asyou penetrate this at any point here the
align:start position:0%you penetrate this at any point here the
align:start position:0%you penetrate this at any point here theelectric field points in or well it
align:start position:0%electric field points in or well it
align:start position:0%electric field points in or well itactually points out but the electron
align:start position:0%actually points out but the electron
align:start position:0%actually points out but the electronwill feel a force in because the charge
align:start position:0%will feel a force in because the charge
align:start position:0%will feel a force in because the chargein the outside shell doesn't produce any
align:start position:0%in the outside shell doesn't produce any
align:start position:0%in the outside shell doesn't produce anyfield but now the protons in the nucleus
align:start position:0%field but now the protons in the nucleus
align:start position:0%field but now the protons in the nucleusbeat the fact of the electron so there's
align:start position:0%beat the fact of the electron so there's
align:start position:0%beat the fact of the electron so there'sa force in force aimed at those in so
align:start position:0%a force in force aimed at those in so
align:start position:0%a force in force aimed at those in sobasically this is like a deep square
align:start position:0%basically this is like a deep square
align:start position:0%basically this is like a deep squarewell or spherical well representing the
align:start position:0%well or spherical well representing the
align:start position:0%well or spherical well representing theatom the atom can be for some sort of
align:start position:0%atom the atom can be for some sort of
align:start position:0%atom the atom can be for some sort ofspherical well that attracts the
align:start position:0%spherical well that attracts the
align:start position:0%spherical well that attracts theelectrons so what these people did were
align:start position:0%electrons so what these people did were
align:start position:0%electrons so what these people did werewere throwing this electrons and they
align:start position:0%were throwing this electrons and they
align:start position:0%were throwing this electrons and theyconsider this electron scattered a lot
align:start position:0%consider this electron scattered a lot
align:start position:0%consider this electron scattered a lotwhen they bounce back
align:start position:0%when they bounce back
align:start position:0%when they bounce backon the other hand if they continued if
align:start position:0%on the other hand if they continued if
align:start position:0%on the other hand if they continued ifthe electrons pass by they said nothing
align:start position:0%the electrons pass by they said nothing
align:start position:0%the electrons pass by they said nothinghas happened so the reflection
align:start position:0%has happened so the reflection
align:start position:0%has happened so the reflectioncoefficient for them the reflection
align:start position:0%coefficient for them the reflection
align:start position:0%coefficient for them the reflectioncoefficient reflection coefficient is a
align:start position:0%coefficient reflection coefficient is a
align:start position:0%coefficient reflection coefficient is aproxy a good representation for for the
align:start position:0%proxy a good representation for for the
align:start position:0%proxy a good representation for for thescattering cross-section so the
align:start position:0%scattering cross-section so the
align:start position:0%scattering cross-section so thereflection coefficient what they found
align:start position:0%reflection coefficient what they found
align:start position:0%reflection coefficient what they foundexperimentally was a reflection
align:start position:0%experimentally was a reflection
align:start position:0%experimentally was a reflectioncoefficient R that as a function of
align:start position:0%coefficient R that as a function of
align:start position:0%coefficient R that as a function ofenergy was very high and people thought
align:start position:0%energy was very high and people thought
align:start position:0%energy was very high and people thoughtthat this moment ok these are like
align:start position:0%that this moment ok these are like
align:start position:0%that this moment ok these are likeparticles colliding with particles the
align:start position:0%particles colliding with particles the
align:start position:0%particles colliding with particles theenergy shouldn't make much difference
align:start position:0%energy shouldn't make much difference
align:start position:0%energy shouldn't make much differenceyou know you either collide or you don't
align:start position:0%you know you either collide or you don't
align:start position:0%you know you either collide or you don'tcollide and you bounce back up or you
align:start position:0%collide and you bounce back up or you
align:start position:0%collide and you bounce back up or youdon't bounce back and so they thought
align:start position:0%don't bounce back and so they thought
align:start position:0%don't bounce back and so they thoughtthat this would be flat but nevertheless
align:start position:0%that this would be flat but nevertheless
align:start position:0%that this would be flat but neverthelessit actually went down enormous ly and
align:start position:0%it actually went down enormous ly and
align:start position:0%it actually went down enormous ly andthen it went up again so they found that
align:start position:0%then it went up again so they found that
align:start position:0%then it went up again so they found thatfor about electrons with about 1 evie
align:start position:0%for about electrons with about 1 evie
align:start position:0%for about electrons with about 1 eviethat's very low energy electrons but
align:start position:0%that's very low energy electrons but
align:start position:0%that's very low energy electrons butthen going pretty fast and E 1 e V
align:start position:0%then going pretty fast and E 1 e V
align:start position:0%then going pretty fast and E 1 e Velectron is going like at 600 kilometers
align:start position:0%electron is going like at 600 kilometers
align:start position:0%electron is going like at 600 kilometersper second so the reflection was going
align:start position:0%per second so the reflection was going
align:start position:0%per second so the reflection was goinglike this and they had no explanation
align:start position:0%like this and they had no explanation
align:start position:0%like this and they had no explanationwhy it was so sensitive with energy and
align:start position:0%why it was so sensitive with energy and
align:start position:0%why it was so sensitive with energy andwhy there would be a funny effect going
align:start position:0%why there would be a funny effect going
align:start position:0%why there would be a funny effect goingon that the reflection would suddenly go
align:start position:0%on that the reflection would suddenly go
align:start position:0%on that the reflection would suddenly godown and just basically the particles
align:start position:0%down and just basically the particles
align:start position:0%down and just basically the particleswould get transmitted but if you think
align:start position:0%would get transmitted but if you think
align:start position:0%would get transmitted but if you thinkof
align:start position:0%of
align:start position:0%ofreflection here as continuous line and
align:start position:0%reflection here as continuous line and
align:start position:0%reflection here as continuous line andtransmission as dotted line the
align:start position:0%transmission as dotted line the
align:start position:0%transmission as dotted line thetransmission that must add to the
align:start position:0%transmission that must add to the
align:start position:0%transmission that must add to thereflection to be one would be going up
align:start position:0%reflection to be one would be going up
align:start position:0%reflection to be one would be going uphere and would have reached near one at
align:start position:0%here and would have reached near one at
align:start position:0%here and would have reached near one atthis value of the energy so the
align:start position:0%this value of the energy so the
align:start position:0%this value of the energy so theexplanation eventually was this effect
align:start position:0%explanation eventually was this effect
align:start position:0%explanation eventually was this effectthat you should do well and there's a
align:start position:0%that you should do well and there's a
align:start position:0%that you should do well and there's aresonant effect on the well and for some
align:start position:0%resonant effect on the well and for some
align:start position:0%resonant effect on the well and for someenergies the resonance is such as it
align:start position:0%energies the resonance is such as it
align:start position:0%energies the resonance is such as itallows the particles to just go through
align:start position:0%allows the particles to just go through
align:start position:0%allows the particles to just go throughand not the scatter so this had to wait
align:start position:0%and not the scatter so this had to wait
align:start position:0%and not the scatter so this had to waitsome time because experiment was done in
align:start position:0%some time because experiment was done in
align:start position:0%some time because experiment was done in1921 and shredding her and everybody
align:start position:0%1921 and shredding her and everybody
align:start position:0%1921 and shredding her and everybodystarted doing good work in 1925 and wave
align:start position:0%started doing good work in 1925 and wave
align:start position:0%started doing good work in 1925 and wavemechanics took a while but eventually it
align:start position:0%mechanics took a while but eventually it
align:start position:0%mechanics took a while but eventually itwas recognized that basically its
align:start position:0%was recognized that basically its
align:start position:0%was recognized that basically itsresonant transmission what is happening
align:start position:0%resonant transmission what is happening
align:start position:0%resonant transmission what is happeningthere and well you if you want to get
align:start position:0%there and well you if you want to get
align:start position:0%there and well you if you want to getthe numbers right if you want to get
align:start position:0%the numbers right if you want to get
align:start position:0%the numbers right if you want to getthat evie better you have to do a
align:start position:0%that evie better you have to do a
align:start position:0%that evie better you have to do aspherical model of the square finite
align:start position:0%spherical model of the square finite
align:start position:0%spherical model of the square finitesquare well you have to lose fear achill
align:start position:0%square well you have to lose fear achill
align:start position:0%square well you have to lose fear achillwell and do it a little more precisely
align:start position:0%well and do it a little more precisely
align:start position:0%well and do it a little more preciselybut then the agreement is pretty
align:start position:0%but then the agreement is pretty
align:start position:0%but then the agreement is prettyreasonable12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502The 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: I'm Ernst Frankel.
I'll be teachingnext two lectures.
I'd like to encourage you tocontact me outside of class
if you have any questions,if you want to meet.
And also, please, duringclass, ask questions.
It's a somewhat impersonalsetting with the video cameras
and the amphitheater, buthopefully we can overcome that.
This unit is going to focuson moving across scales
in computationalbiology, looking
from computationalissues that deal
with the fundamentals of proteinstructure at the atomic level
to the level of protein-proteininteractions between pairs
of molecules, proteinDNA interactions
and small molecules,and then ultimately
into protein network.
So we've got a lotof ground to cover,
but I think we'll be able do it.
As you've seen in the syllabus,the first couple of lectures
are really a detailedlook at protein structure,
molecular levelanalysis, and then we'll
move into some of theseother levels of higher
order, including proteinDNA interactions and gene
regulatory networks.
I think may of you are probablyfamiliar with this quote,
that "nothing inbiology makes sense
except in the lightof evolution."
And I'd like to offer amodified version of that, which
is little in biology make senseexcept in light of structure,
protein structure,DNA structure.
We've, of course, seen this veryearly on in molecular biology
when the structure of DNA wassolved, and immediately became
clear why it was thebasis for heredity.
But protein structures have beeneven more lasting impact time
and time again, many,many more events,
which have reallyrevolutionized the understanding
of particularbiological problems.
So one example that wasstunning at the time
had to do with the mostfrequently mutated protein
in cancer.
This is the p53 gene.
It's mutated in abouthalf of all cancers,
and what was observedearly on-- this
was in the days beforegenomic sequencing
when it was actuallyvery expensive and hard
to identify mutations in tumors.
So they focused onthis particular gene,
and they observed thatthe mutations clustered.
So this is the structure ofthe gene from the n-terminus--
the protein from then-terminus and the c-terminus,
and the bars indicate thefrequency of mutations.
And you can see that they'reall clustered pretty much
in the center of this molecule.
Now, why is that?
It was enigmatic until thestructure was solved here
at MIT by Carl Paboand his post-doc
at the time, Nikola Pavletich,and they showed, actually,
that these correspondto critical domains.
And in a secondpaper, they actually
showed why the mutations occurin those particular locations.
So if you look at theplot on the upper left,
here's the proteinsequence; above it,
the frequency ofmutations; below it,
the secondarystructure elements.
And you'll see thatmutations occur
in regions that don't have anyregular secondary structure
and can occurfrequently in regions
with secondarystructure or not all
in regions withsecondary structure.
So the mere fact that there'sa secondary structure element
does not define whythere're mutations.
But when thethree-dimensional structure
was solved in thecomplex with DNA,
over here on the right--this is the protein
structure on the left, theDNA structure on the right,
and in yellow are some ofthese highly mutated residues.
It turns out that all of thefrequently mutated residues
are ones that occur atthe protein DNA interface.
All right, so ina single picture,
we now understandwhat was an enigma
for years and years and years.
Why are the mutations soparticularly clustered
in this protein innon obvious ways?
Since that is the interfacebetween the protein
and the DNA, thesemutations upset
the transcriptional regulationthrough the action of p53.
So if we want to understandprotein structure in order
to understand proteinfunction, where
are we going to getthese structures from?
So the statistics on howproteins themselves-- I
show here.
This is from the-- I'll call itthe PDB, the Protein Database.
Its full name is theRCSB Protein Database,
but it's usuallyjust called the PDB.
And here, it shows that,at the time of this slide,
around 80,000structures have been
determined by x-raycrystallography.
The next most frequent methodwas NMR, Nuclear Magnetic
Resonance, which identifiedabout 10,000 structures,
and all the othertechniques produce
very, very fewstructures, hundreds
of structures ratherthan thousands.
So how do these techniques work?
Well, they don't magicallygive you a structure.
Right?
They give you information thatyou have to use computationally
to derive the structure.
Here's a schematicof how structures
are solved by x-raycrystallography.
One has to actually growa crystal of the protein
or the protein andother molecules
that you're interestedin studying.
These are not giantcrystals like quarts.
They're even smallerthan table salt.
They're usually barelyvisible with the naked eye,
and they're very unstable.
They have to be kept insolution or, often, frozen,
and you should a veryhigh powered x-ray
beam through them.
Now, most of the x-rays are--what are they going to do?
They're going to pass rightthrough because x-rays interact
very weakly with matter.
But a few of the x-rayswill be diffracted,
and from that weakdiffraction pattern,
you can actually deducewhere the electrons were
that scattered the x-raysas they hit the crystal.
And so this is apicture, the lower right,
of electron density cloud inlight blue with the protein
structures snakingthrough it, and what
you can calculate,after a lot of work,
from these crystallographicdiffraction
patterns is the locationof the electron density.
And then there's acomputational challenge
to try to figure out thelocation of the atoms that
would have given riseto that electron density
that then, when hit withx-rays, would have given rise
to the x-raydiffraction pattern.
So it's actually aniterative process
where one arrives at the initialstructure and then calculates,
from that structure,where the electrons would
be, from theposition of electrons
where the diffraction patternwould be when the x-rays hit
it, and determines how wellthat predicted diffraction
pattern agrees with theactual diffraction pattern,
and then continuously iterates.
And so this is obviously ahighly computational problem
because you notonly have to find
positions that are maximallyconsistent with the observed
diffraction pattern, but alsopositions that are actually
consistent with physics.
So if we have a pieceof a molecule here,
we can't just putour atoms anywhere.
They need to be positionedwith well defined distances
for the bonds, thebond angles, and so on.
So it's a highly coupledproblem that we have to solve,
and we'll look at some ofthe techniques that underlie
these approaches, althoughwe'll look specifically
at how to solve x-raycrystal structures.
I mentioned the secondmost common technique
is nuclear magneticresonance, and this
is a technology that doesnot require the crystals,
but requires a veryhigh concentration
of soluble protein, whichpresents its own problems.
And the informationthat you get out
of a nuclear magneticresonance structure
is not the electrondensity locations,
but it's actuallya set of distances
that tell you the relativedistance between two
atoms, usually protons,in the structure,
and that's what's representedby these yellow lines here.
And once again, we've got ahard computational problem
where we need to figure out astructure of the protein that's
consistent with allthe physical forces
and also puts particularprotons at particular distances
from each other.
So we talk about solvingcrystal structures,
solving NMRstructures, because it
is the solution to avery, very complicated
computational challenge.
So these techniquesthat we're going
to look at, whilenot specifically
for the solution ofcrystal and NMR structures,
underlie those technologies.
What we're going tofocus on is actually
perhaps an even morecomplicated problem,
the de novo discoveryof protein structures.
So if I start offwith a sequence,
can I actuallytell you something
important and accurateabout the structure?
Now, there's a nicesummary in a book called
Structural Bioinformaticsthat really
deals with a lot of the issuesaround computational biology
is relates to structure,that highlights many
of the differences between thekinds of algorithms we've been
looking at up until now inthis course and the kinds
of approaches thatwe need to take
in our understandingof protein structure.
So the first andmost fundamental
obvious thing isthat we're dealing
with three-dimensionalstructures,
so we're moving away from thesimple linear representations
of the data anddealing with more
complicatedthree-dimensional problems.
And therefore, we encounterall sorts of new problems.
We no longer adiscrete search space.
We have a continuoussearch space,
and we'll look atalgorithms that
try to reduce that continuoussearch space back down
to a discrete one to makeit a simpler problem.
But perhaps mostfundamentally, the difference
is that now we have to bringin a lot of physical knowledge
to underlie our algorithms.
It's not enough to solve thisas a complete abstraction
from the physics,but we actually
have to deal with the physicsin the heart of the algorithms.
And we'll look at theissues highlighted
in red in the rest of this talk.
Another thing that'sgoing to emerge
is that it wouldbe nice if there
was a simple mapping ofprotein sequence to structures,
and if that were thecase, you'd imagine
that two proteins that arevery different in sequence
would have different structures.
But in fact, that'snot the case.
You can have two proteinsthat have almost no sequence
similarity at all but adoptthe same three-dimensional
structure, so clearly, it's anextremely complicated problem
made more complicatedby the fact
that we don't knowall the structures.
It's not like we'reselecting from a discrete set
of known structures to figureout what our new molecule is.
We have, in potential,infinite number
of confirmations and proteinchains we need to deal with.
OK, so I hope that you've had achance to look at the material
that I've posted online forreview of protein structure.
If you haven't, please do so.
It'll be very helpfulin understanding
the next few lectures,and I'll assume
that you're familiar withthe basic elements, protein
structure, whatalpha helices are,
what beta sheets are, primarystructure, secondary structure,
and so on.
And I'll also encourageyou to become familiar
with amino acids.
It's very hard to understandanything in protein structure
without having some knowledgeof what the amino acids are.
The textbook hasa nice figure that
summarizes the many overlappingways to describe the features
in amino acids, so pleasefamiliarize yourself with that.
So these are resourcesthat we posted online.
Also, the ProteinDatabank, the RCSB,
has fantastic resourcesonline for beginning
to understand proteinstructure, so I
encourage you to lookat their website.
In particular, intheir website, they
have tools that you candownload to visualize protein
structures, andthat's going to be
a critical component ofunderstanding these algorithms,
to actually understand whatthese structures look like.
I've highlighted, too,that I find particularly
easy to use PyMOLand Swiss PDB Viewer.
You can not onlylook at structures
with these techniques, youcan actually modify them.
You can do homology modeling.
So before we get into algorithmsfor understanding protein
structure, we needto understand how
protein structuresare represented.
I've already mentioned thatthere are these repeating units
that I'd like you alreadyknow about-- alpha helices,
beta sheets.
We won't go intothose in any detail.
But the two morequantitative ways
of describing proteinstructure have
to do with athree-dimensional coordinates,
the XYZ coordinatesof every atom,
and internalcoordinates, and we'll
go through those alittle bit of detail.
So again, this PDBwebsite has a lot
of great resourcesfor understanding
what thesecoordinates look like.
They have a good descriptionof what's called a PDB file,
and those PDB files looklike this at the outset.
They have what is now calledmetadata, but at the time
was just information abouthow the protein structure was
solved.
So it'll tell you what organismthe protein comes from,
where it was actuallysynthesized if it wasn't
purified from that organism, butif it was made recombinantly,
details like that, details abouthow the crystal structure was
determined.
The sequence-- most ofthis won't concern us,
but what will concern us isthis bottom section shown here
in more detail.
So let's just look at whateach of these lines represents.
The lines that containinformation about the atomic
coordinates all beginwith the word ATOM,
and then there's aindex number that
just is referenced foreach line of the file,
tells you what kind of atom itis, what chain in the protein
it is, and the residue number.
So here, it's startingwith residue 100.
The sequence herecan be arbitrary
and may not relate to thesequence of the protein
as it appears inSWISS-PROT or Gen Bank.
And then the nextthree columns are
the ones that aremost important to us,
so these are the XYZcoordinates of the atom.
So to identify theposition of any molecule
in three-dimensionalspace, obviously you
need three coordinates,and so those
are what those threecoordinates are.
And they're followed by thesetwo other numbers, which
actually are very interestingnumbers because they tell us
something about how certainwe are that the molecule is
really-- the atom is really atthat position in the crystal
structure.
So the first of theseis the occupancy.
In a crystal structure,we're actually
getting the informationabout thousands and thousands
of molecules that are in therepeating units of the crystal,
and it's possiblethat there could
be some variation in thestructure between one
unit of the crystaland the next.
So you could have a sidechain that, in one crystal,
is over here and inthe next crystal--
a repeating unit of thecrystals over there.
If there are discreteconfirmations,
then you imagine that thesignal will be reduced,
and you'll actuallyget some superposition
of all the possibleconfirmations.
So number one heremeans that there
seems to be onepredominate confirmation.
But if there is more than one,and their discrete-- if they're
continuous, it'lljust look like noise.
It'll be hard todetermine the coordinates.
But if they'rediscrete positions,
then you might find, forexample, an occupancy of 0.5
and then another linewith the other position
with an occupancy of 0.5.
So that's when there'sdiscrete locations where
these atoms are located.
The B factor's calledthe thermal factor,
and it tells you howmuch thermal motion there
was in the crystalat that position.
Now, what does that mean?
If we think about acrystal structure,
there'll be some parts ofit that are rock solid.
In the center, it'shighly constrained.
The dense core of theprotein, not too much
is going to be changing.
But on the surfaceof the protein,
there can be residuesthat are highly flexible.
And so as those are beingknocked around in the crystal,
they are scattering the x-raysin slightly different ways.
But they're not indiscrete confirmations,
so we're not going to seemultiple independent positions.
We'll just see someaverage positions.
And that kind of noise canbe accounted for with these B
factors, where high numbersrepresent highly mobile parts
of the structure,and low numbers
represent very stable ones.
A very low number herewould be, say, a 20.
These numbers of 80--typically, things like that
occur at the endsof molecules where
there is a lot ofstructural flexibility.
So we have this oneway of describing
the structure of a protein wherewe specify the XYZ coordinates
of every one of these atoms,and we'd have these other two
parameters to represent thermalmotion and static disorder.
Now, are those coordinatesuniquely defined?
If I have thisstructure, is there
exactly one way to writedown the XYZ coordinates?
Hands?
How many people say yes?
How many people say no?
Why not?
AUDIENCE: You can rotate it.
PROFESSOR: You can rotate it.
You set the origin.
Right?
So there's no uniqueway of defining it,
and that'll come up again later.
OK, now, this isa very precise way
of describing thethree-dimensional coordinates
in protein, but it's not a veryconcise way of representing it.
Now, why is that?
Well, as the staticmodel represents,
there are certain partsof protein structures
that are really not goingto change very much.
The lengths of thebonds change very little
in protein structures.
The angles, the tetrahedrallycoordinated carbon,
doesn't suddenlybecome flat, planar.
These things happen very-- theremay be very small deformations.
So if I had to specify the XYZcoordinates of this carbon,
I really don't havetoo many degrees
of freedom for wherethe other carbon can be.
It has to lie in a sphereat a certain distance.
So instead of representingXYZ coordinates of every atom,
I can use internal coordinates.
So here in this slide,we have amino acids--
the amino nitrogen,the carbonyl carbon.
So this is a single amino acid.
Here's the peptide bondthat goes to the next one.
And as this diagramindicates, the bond
between the carbonylcarbon of one amino acid
and the amide nitrogenof the next one
is planar, so that angleisn't even rotating.
So that's one degree of freedomthat we've completely removed.
The angles that rotate in thebackbone or called phi and psi;
phi over here,and psi over here.
So those are twodegrees of freedom
that determine howthis amino acid is--
the confirmationof this amino acid.
So instead of specifyingall the coordinates,
I can specify thebackbone simply
by giving two numbers to everyamino acid, the phi and psi
angles, with theassumption that the omega
angle, this peptidebackbone, remains constant.
And similarly forthe side chains,
and we'll go into thisin more detail later,
we can then give thecoordinates, the rotation,
of rotatable bondsin the side chain
and not specify everyatom as we go out.
OK, so we've got these twodifferent ways of representing
protein structure, and we'llsee that they're both used.
Any questions on this?
Great.
OK, so if we're lookingat protein structures,
one question we wantto ask is how do we
compare two proteinstructures to each other?
So I already mentionedthat proteins
can have similarstructure, whether or not
they are highlysimilar in sequence.
So if I have two proteins thatare highly homologous, that
do have a high level of sequencesimilarity-- for example,
these two orthologs,this one from cow
and this one from rat--you can see, at a distance,
they both have verysimilar structures.
They also have 74%sequence similarity,
so that's not surprising.
But you can get proteinsthat have very low sequence
similarity.
They're stillevolutionary related,
like these orthologs, twodifferent species that
have the same protein, orparalogs, a single species that
have two similar copies,but non identical copies,
in the same protein thatmaintain the same structure
when they only have about 20%to 30% sequence similarity.
And you can get even moredistant relationships.
So here are twoproteins, both in
human, evolutionarily related,but only 4% sequence identity.
And yet at a distance,they look almost identical.
And those are evolutionaryrelated proteins,
but we can also have thingsthat are called analogs, which
have no evolutionaryrelationship,
no obvious sequencesimilarity, and yet adopt
almost identicalprotein structures.
So this adds to the complexityof the biological problems
that we're goingto try to solve.
All right, so howdo I quantitatively
compare two protein structures?
So the commonmeasurement is something
called RMSD, RootMean Square Deviation,
and here, I have aset of structures
that were solved by NMR.
And you can see that there'sa core of the structure that's
well determinedand then there are
pieces of the structurethat are poorly determined.
There weren't enoughconstraints to define them.
And these proteinshave all been aligned,
so the XYZ coordinates havebeen rotated and translated
to give maximal agreement.
And what's theagreement measure?
It's this Root MeanSquare Deviation.
So I need to define pairs ofatoms in my two structures.
If it's, in this case, the samestructure, that's really easy.
Every atom has a matchin this structure that
was solved withthe same molecule.
But if we're dealing withtwo homologous proteins,
then that becomes alittle bit more tricky.
We need to define which aminoacids are going to match up.
We can also define whether wecare about changes in the side
chains, or whether we only careabout changes in the backbone,
whether we're goingto worry about
whether the protons inthe right places or not.
And you'll see thatthese alignments can
be done with either onlyheavy chain, heavy atoms,
meaning excluding the hydrogens,or only main chain atoms,
meaning excluding theside chains completely.
But once we've defined thepairs of corresponding atoms,
then we're going to take thedifference in the distance
squared, sum of thesquares of the distances
between the correspondingatoms and their x-coordinate,
their y-coordinate, andthey're z-coordinate.
Take the squareroot of that sum,
and that's going to give usthe Root Mean Square Deviation.
And of course, we have tominimize that Root Mean Square
Deviation with theserigid body rotations
to account for the factthat I could have my PDB
file with theorigin of this atom.
Or I could have my PDB filewith the origin of that atom,
and so on.
OK.
Any questions so far?
Yes.
AUDIENCE: Do we consider everysingle atom in the molecule?
PROFESSOR: So we have a choice.
The question was do weconsider every single atom
in the molecule?
We don't have to do,and it depends, really,
on the problem thatwe're trying to solve.
So if we're looking forwhether two proteins have
the same fold, we might notcare about the side chains.
We might restrict ourselvesto main chain atoms.
But if we're trying todecide whether two crystal
structures are in goodagreement with each other,
or say, as we'llsee a few minutes,
we're going to try to predictthe structure protein,
and we have the experimentallydetermined structure
of the same protein,and we want to decide
whether those twoagree, in that case,
we might actuallywant to make sure
that every single atomis in the right position.
So it'll depend on the questionthat we're trying to answer.
Good question.
Any other questions?
OK.
All right, so sofar, I've shown a lot
of static pictures of molecules.
I do want to stressthat molecules actually
move around a lot, so I'lljust show a little movie here.
[VIDEO PLAYBACK]
[END VIDEO PLAYBACK]
PROFESSOR: OK, so thatwas, in part, an excuse
to play a little NewAge music in class,
but more fundamentally,it was to remind you
that, despite thefact that we're
going to show you a lot ofstatic pictures of proteins,
they're actuallyextremely dynamic.
And they have welldefined structures,
but they may have more thanone well defined structure,
especially those moleculesthat are doing work.
They're actuallymoving things along.
They have multiple structures.
And so when we considerthe protein structure,
it's an approximation,and we're always
going to mean the proteinstructures, not singular one.
OK, so what determinesthe protein structure?
Well, I've toldyou it's physics.
Fundamentally, it'sa physical problem,
so the optimal protein structurehas to be an energetic minimum.
There has to be no netforce acting on the protein.
The force is negative derivativeof the potential energy,
so that derivative has to be 0.
So we have to have a minimumof protein structure.
Now, that doesn't mean thatthere's exactly one minimum.
Those proteins that had multipleconfirmations in that movie
obviously had multiple minimathat they could adopt depending
on other circumstances,but there
has to be at leasta local minimum.
So if we knew this U, thispotential energy function,
and we could takethe derivative of it,
we could identify the proteinstructure or the protein
structures by simplyidentifying the minima
in that potentialenergy function.
Now, would that lifewere so simple, right?
But we will see that there areways of parameterizing the U
and using it to optimizethe structure so it finds
this, at least local, minimum.
And we're goingto look primarily
at two different ways ofdescribing the potential energy
function.
One of them, we're going to lookat the problem like a physicist
one, and the otherway, we're going
to look at it as astatistician would.
So the physicist wants todescribe, as you might imagine,
the physical forces thatunderlie the protein structure,
and so as much aspossible, we're
going to try towrite down equations
that represent those forces.
Now, we're notalways going to be
able to do that becausea lot of forces involved
are quantum mechanical.
The mere fact thetwo solid objects
don't pass through each other isbecause of exclusion principles
that deal withquantum mechanics.
We're not going to write downquantum mechanical equations
for every atom in ourprotein structure,
but we will write down equationsthat approximate those.
And whereverpossible, we're going
to try to tie theterms in our equations
into somethingidentifiable in physics,
and a very good example of thisapproach is the CHARMM program.
And these approachesactually were the ones
that won the Nobel Prize inchemistry this past year.
At the other end of the spectrumare the statistical approaches.
Here, we don't really carewhat the underlying physical
properties are.
We want equations thatcapture what we see in nature.
Now, often, these twoapproaches will align very well.
There'll be some approximationsthat the physicist makes
to capture a fundamentalphysical force.
That's simply the best way todescribe what you see nature,
and so those two terms may lookindistinguishable in the CHARMM
version or my favoritestatistical approach, which
is Rosetta.
So we'll see that someterms in these functions
agree betweenCHARMM and Rosetta.
Well, there'll be placeswhere they fundamentally
disagree on how to describethe molecular potential energy
function because one is tryingto describe the physical forces
and the other one is trying todescribe the statistical ones.
Do we have any native speakersof German in the audience?
AUDIENCE: I'm a speaker.
PROFESSOR: You want toread the joke for us?
AUDIENCE: Yeah.
Institute for QuantumPhysics, and it says
"You can find yourselfhere or here."
PROFESSOR: OK.
AUDIENCE: [LAUGHTER]
PROFESSOR: All right,so for the video,
it's the Institutefor Quantum Mechanics.
And you go to a map at MIT,and it'll say, you find,
"You are here."
Right?
But in the Institute forQuantum Mechanics, it says
"You're either here or here."
So that's thephysicist approach.
We really do have to thinkabout those quantum mechanical
features, whereas onthe right-hand side
is the statisticians approach.
It says "Data don'tmake any sense.
We'll have to resortto statistics."
OK?
So the statisticiancan get pretty far
without understanding theunderlying physical forces.
All right, so let's lookat this physicist approach
first, so we're going to breakdown the potential energy
function into bonded termsand non-bonded terms.
So the bonded terms,as they sound,
are going to be atoms thatare close to each other
in the bonded structures, socertainly these two atoms,
because they're connectedby a single bond,
are going to be bonded terms.
But we'll see groups of threeor four atoms near each other
will also be bonded terms.
And the non-bondedterms will be when
I have another molecule thatcomes close, but isn't directly
connected.
What are the physicalforces between these two ?
So these bonded termsthen first break down
into a lot of sub terms.
I'll show you thefunctional forms here.
We'll just look at afew of them in detail
and then give you a senseof what the other ones are.
So this first oneis the bonded term
that describes, actually, thedistance between two bonded
atoms.
Now, again, thisis fundamentally
quantum mechanicalproperty, but it
would be toocomputationally expensive
to describe thequantum mechanics
and not really necessary becauseyou can do pretty well by just
describing thisas a stiff spring.
So that's what this quadraticform of the equation
represents.
So we simply defineb naught here
as the equilibriumposition between these two
atoms, particular types.
There would be two tetrahedralcoordinated carbons,
and that would bedetermined by looking
at a lot of very,very high resolution
structures in smallmolecule crystals
so we know what the typicaldistance for this bond is.
We get that as a parameter.
There would be a big filein the CHARMM program
that lists all those parametersfor every one of these bonded
terms, and then if there'sa small deviation from that,
because the moleculesstretched a bit
in your refinementprocess, there
would be a penalty topull it back in just
like a spring pulls it back in.
Now, it turns out thatwhen you go this route,
you have to actually comeup with a lot of equations
to maintain the geometrybecause, again, we're
going to have to not only worryabout these distance bonds,
but we need toworry about angles.
So we've got the angle betweenthis bond and this bond.
What keeps that in place?
So we need to add anotherterm that's a second term here
to make the anglebetween these fixed,
and then we haveto deal with what
are called dihedral anglesto make sure that these four
atoms lie in theallowed geometry.
And so each one ofthese terms accounts
for something like that.
This last term overhere makes sure
that the phi and psi anglesare consistent with what
we see in quantum mechanics ascorrected for any deviations
that we see in thesesmall molecules
so a lot of terms with a lotof parameters they're trying
to capture the best descriptionof what we observe in each one
is motivated bythe fact that there
is some quantum mechanicalprinciple underlying it.
So-- yes?
AUDIENCE: Why isthe [INAUDIBLE]?
PROFESSOR: I actually don'tknow the answer to that.
But there's a referencethere that I'm
sure will give you the answer.
OK, now what aboutthese non-bonded terms?
So non-bonded termsof the set are
molecules that are distant fromeach other in the structure
of the protein, butclose to each other
in three-dimensional space.
And there are twofundamental forces here.
The first one is called theLeonard Jones potential,
and the second one ofthe electrostatic one.
And the Leonard Jones potentialitself has these two terms.
One is an R6 term, a negativer to the 6th dependency.
The other one ispositive nr to the 12th.
The negative r to the 6this an attractive potential.
That's why it'snegative, and it's
because of smallinduced dipoles that
occur in the electron cloudsof each of these atoms that
pull the molecules together.
And the 1 over r tothe 6th dependency
has to do with the physicsof two dipoles interacting.
The r over 12 termis an approximation
to a quantum mechanical force.
So the reason the two moleculesdon't pass through each other,
as we said already, is becausequantum mechanical forces.
That would be veryexpensive to compute,
so we come up with a termthat's easy to compute.
And of course, anr 12 term is simply
the square of anr to the 6th term,
so if you already computed 1over r to the 6th between two
atoms, you just square that, andyou get 1 over r to the 12th.
So it's verycomputationally efficient,
and you adjust theparameters, these r mins,
so that it works out so thatthese things agree reasonably
well with thecrystal structures.
And these are crystalstructures of small molecules
that we know in great detail.
And then theelectrostatics is what
you might expectfor electrostatics.
It's got a potential thatvaries as 1 over the distance,
and as the productof those charges,
these can be full charges orthey can be partial charges.
And there's a termhere, this epsilon,
which is the dielectricconstant, and that represents
the fact that, in vacuum,there'd be much greater
force pulling twooppositely charged molecules
together than in water becausethe water's going to shield.
And so theseelectrostatic terms,
this dihedral dielectricpotential term,
can vary from one, which isvacuum, to, say, 80 for water.
And setting thatis a bit of an art.
OK, so what do thesepotentials look like?
Those are shown here.
This is the, in dark lines,the sum of the van der Waals
potential.
It consists of thatattractive term,
which has the rover 6 dependency,
and the repulsive termwith the r over 12.
And why does it go up sohigh at short distances?
AUDIENCE: [INAUDIBLE].
PROFESSOR: Right,because you can't
have molecules that overlap.
You'll see thatthere's a minimum,
so there's an optimaldistance barring
any other forcesbetween two atoms.
So that's roughly whatthese hard sphere distances
represent in the scale models.
And then theelectrostatic potential
also, obviously,has attractive term,
but it's going toblow up as you get
to small values,increasingly favorable.
And so the net sum ofthose two is shown here,
the combination of van derWaals and electrostatics.
It, again, has a strongminimum but becomes
highly positive as youget to close distances.
OK, any questionson these forces?
Yes?
AUDIENCE: Do the van derWaals equal the Leonard Jones
potential?
Or is that something else?
PROFESSOR: Yeah,typically, those two terms
are used interchangeably.
Yeah.
Other questions?
OK.
All right, so that'show the physicist
would describe thepotential energy function.
Rosetta, as I toldyou, is an example
of the statistical approach.
It rejects all thissharp definition
of trying to compute exactlythe right distance between two
atoms by having a stiffspring between them
and says let's just fixa lot of these angles.
So we're going to fix thedistance between two atoms.
There's no pointin having them vary
by tiny, tiny fractionsin the bond length.
We're going to fix atetrahedral coordination
of our tetrahedral carbons.
We're not going to let themdeform because that never
would happen inreality, and so we're
going to focus oursearch over the space
entirely over therotatable bonds.
So remember, howmany rotatable bonds
did we have in the backbone?
We had two, right?
We had the phi andthe psi angles,
and then the sidechains then will
have rotatable bondsover the side chains.
So in this example,this is a cysteine.
Here's the backbone.
Here's the sulfur.
And we have exactly onerotatable bond of interest
because we don't really carewhere the hydrogen is located.
So we've got this chi 1 angle.
If there were moreatoms out here,
this would be calledchi 2 and chi 3.
And these can rotate, butthey don't rotate freely.
We don't observe, incrystal structures,
every possible rotationof these angles,
and that's what this ploton the left represents.
For this side chain, there'sa chi 1, a chi 2, and a chi 3,
and the dark regions representthe observed confirmations
over many, manycrystal structures.
And you can see it'shighly non uniform.
Now why is that?
I see people withtheir hands trying
to figure it out in the back.
So why is that?
Figure that's whatyou guys are doing.
If not, it's veryinteresting sign language.
So if we look down one ofthese tetrahedral carbon-carbon
bonds, we have apparentlya free rotation.
But in fact, somethese confirmations,
we're going to have alot of steric clashes
between the atoms on one carbonand the atoms on the other,
and so this is not afavorable confirmation.
The favorableconfirmation is offset,
and that propagates throughoutall the chains in the protein.
So there'll be certain anglesthat are highly preferred,
and other ones that are not.
These highly preferredangles are called rotamers,
and so we'll use the term a lot.
It stands forrotational isomers.
And so now, we've turnedour continuous problem
of figuring out what theoptimal angle is for this chi 1
rotation into a discreteproblem where maybe there
are only two or three possibleoptions for that rotation.
And so now, wecan decide is this
better than thisone or this one?
Questions on rotamersor any of this?
Excellent.
OK, so how do we determine--we've decided then
we're going todescribe the protein
entirely by theseinternal coordinates--
the phi, the psi, the backbone,the chi angles of the side
chain.
We still need a potentialenergy function, right?
That hasn't told us how tofind the optimal settings,
and we're going to try toavoid the approach of CHARMM,
where we actually lookat quantum mechanics
to decide whatall the terms are.
So how do they actuallygo about doing this?
Well, they take a number of highresolution crystal structures,
and they characterizecertain properties
in those crystal structures.
For example, theymight characterize
how often a certainaliphatic carbon-- how often
aliphatic carbons arenear amide nitrogens,
and they mightmeasure the distance--
they do measure the distancebetween these amide nitrogens
and aliphatic carbons acrossall the crystal structures
and determine how oftenthose distances occur.
And you can actually turnthose observations, then,
into a potential energyfunction by simply
using Boltzmann's equation.
So we can figureout how frequently
we get certaindistances on the x-axis
is distance, on the y-axis isfrequency, number of entries
in the crystal structure,and then by Boltzmann's Law,
we can compute thedensity of states
over some reference, which isactually very hard to define.
And you can look at someof the references referred
to in the slides to figure outhow currently that's defined,
but we have to find somearbitrary reference state
to figure out the probabilityof being any one of these states
is going to be a function,a logarithmic function,
of the frequencyof those states.
All right, so we've got anenergy term that's determined
solely by theobservations of distances,
that doesn't say I know thatthis one's charge and this one
isn't.
It just says here'san oxygen attached
to a carbon with double bonds.
Here's a carbon that's not.
How often are they atany particular distance?
And we go through lots andlots of other properties,
and we'll go into detail nowto what those other terms are
to look through highresolution crystal structures,
see what certainproperties are, turn those
into potential energyfunctions that we can then
use to identify the optimumrotations for the side
chain and the backbone.
Oh, and I should also pointout that when we do this,
we'll have different termsfor different things.
We'll have a term for distancesbetween different kinds
of atoms.
We'll have terms for someof these other pieces
of potential energy that we'lldescribe in subsequent slides,
and we're goingto need to decide
how to weight all of those,all those independent terms,
to get them to giveus reasonable protein
structures when we're done.
And that, once again, isa curve fitting exercise,
finding the numbersthat best fit the data
without any guiding physicalprinciple underneath it.
So you'll be using PyRosetta.
And in PyRosetta,you'll see the terms
on the board forthe potential energy
functions, thedifferent features
of the potentialenergy function,
and I'll step youthrough a few of these
just so you knowwhat you're using.
There'll also be filesin PyRosetta installation
that will give you therelative weights for each
of these terms.
OK, so these firstare the van der Waals,
and here, the shape of the curvelooks just like we saw before.
It has to, in somesense because they're
trying to solve thesame physical problem,
but the motivationis very different.
There's no attempt todecide that it should be a 1
over r to the 6th because ofdipole-dipole interactions.
And simply, how do I findthe function that accurately
represents what Isee in the database?
So again, computed, this isthe fa attractive and the fa
repulsive, andthose are determined
based on thestatistics of what's
observed in thecrystal structures.
This one, the hbond, breaks downinto backbone and side chain,
long range and short range.
And the goal of thehbonds-- so hydrogen bonds
are one of the principaldeterminants of protein
structure, and you'll seethat in the reading materials
that are posted online.
And one of the criticalthings about a hydrogen bond
is that it needs tobe nearly planar.
So the line between-- theangle between this atom,
which has the hydrogenattached, and this one, which
is the free electronpair, has to be
as close to linear as possible.
And the more itdeviates from linear,
the weaker thehydrogen bond will be.
And so this hydrogenbonding potential
has terms that describe thedistance between the atoms that
are donating andaccepting the hydrogen
as well as theangle between them,
and it's been parameterizedto represent, separately,
things that are far from eachother, close to each other,
things that are sidechain, or main chain.
And here's where it'sreally the statistician
against the physicist.
Why divide up sidechain and main chain?
There's no physical principlethat drives you to do that.
It's simply because that's whatgives the best fit to the data,
so the statistician is notafraid to add terms that
make their modelsbetter fit reality,
even if they don't represent anyfundamental physical principle.
And we'll see it getseven more dramatic
with some these other terms.
So this is theRamachandran plot,
which you'll alsosee in your reading.
It represents theobserved frequencies
of phi and the psi angles.
And as you know that thereare only a couple positions
on this phi and psi plotthat are frequently observed,
representing the differentregular secondary structures
primarily, alpha helix andbeta sheet is indicated.
And rather than trying tocapture the fact that protein
should form alphahelices by having
really good forces allaround, they simply
prefer angles that are observedin the Ramachandran plot.
So we're going to give apotential energy function
that's going to penalize youif your phi and psi ends up
over here, and reward youif your phi and psi ends up
in one of these positions.
So from the physicist,this is cheating,
and for the statistician,it makes perfect sense.
Shouldn't laugh at that.
OK, and this same will betrue for the row numbers.
So we said that,for the side chains,
there are certain anglesthat we prefer over others
because that's what weobserve in the database.
Again, we're not goingto try to get them
by making sure that there'srepulsion between these two
atoms when they're eclipsed.
We're going to getthere simply by saying
the potential energyis lower when you're
in one of thesestaggered confirmations
than you're one of theeclipse confirmations.
OK, now, the placewhere the difference
between the statistician andthe physicist is most dramatic
comes when we look atthe salvation terms.
So a lot of what goes onin protein structure--
determines proteinstructure, I should say,
is the interaction ofthe protein with water.
It's bathed in a bath of55 molar water molecules,
highly polar.
They normally are hydrogenbonding with each other.
When the protein sitsin there, the protein
has to start hydrogenbonding with them.
And where do we findhydrophobic residues
in a protein structure,with your hands?
Outside or inside?
Inside, right?
So the hydrophobic residue'sall going to be buried inside.
Why is that?
Well, it's actuallyreally, really hard
to describe in termsof fundamental physical
principles.
In fact, it's really hard todescribe the structure of water
by fundamentalphysical principles.
Simulations that tryto get water to freeze
were only successfula few years ago.
So we've tried tosimulate water using
basic physical principles.
It's very hard toget it to form ice
when you lower thetemperature, so it's
going to be even harder,then, to represent
how a complicated proteinstructure immersed in the water
actually interacts withthose water molecules.
So you've got all thesewater molecules interacting
with polar residuesor non-polar residues.
The physicist reallystruggles to represent those.
And just to showyou why that is,
let me show you,again, a little movie.
Unfortunately, no newage music with this one.
I apologize.
So what's shown hereis a sphere immersed
in a bunch of water molecules.
The red is the oxygen.
The little white partsare the hydrogens.
You can see themwiggling around.
And what's the fundamentalfeature that you observe?
All right, they'reforming almost a cage
around thishydrophobic molecule.
Why is that?
Yeah?
AUDIENCE: It's hardfor them to interact
with a non-polar residue.
PROFESSOR: Right, soit's hard for them
to interact with anon-polar residue.
So the water moleculeswant to minimize
their potential energy.
They're going todo that by forming
hydrogen bonds with something.
In bulk solvent, they form itwith other water molecules.
Here, they can't form anyhydrogen bonds with a sphere,
so they have to dance tothis complicated dance
to try to form hydrogenbonds with each other
with this thing stuckin middle of them.
And this is, at its heart,the fundamental driving force
between the hydrophobiceffect, that
which causes the hydrophobicresidues to be buried inside
of the protein.
Very, very hard, asI said, to simulate
using fundamentalphysical forces.
So what does thestatistician do?
The statistician has a mixtureof experimental observation
and statistics attheir benefit, so we
can measure how hydrophobicany molecule is.
We can take carbons and dropthem to non-polar solvents,
into polar solvents, anddetermine what fraction of time
a molecule will spendin a polar environment
versus a non-polarenvironment, and from that,
get a free energy forthe transfer of any atom
from a hydrophobic environmentto a hydrophilic environment.
That can give us is deltaG Ref, shown over here.
OK, now, in aprotein, that molecule
is not fully solvent exposedeven when it's on the surface,
because water moleculestrying to come
at it from this directioncan't get to it,
from this directioncan't get to it.
So the transferenergy for this carbon
to go from fully solventexposed to buried
is different fromthe isolated carbon.
And so the statisticiansays, OK, I'll
come up with a functionto describe that.
I will describe whatelse is near this atom
in the rest of theprotein structure.
That's what the termon the right does.
It's a sum over allother neighboring atoms
and describes the volumeof the neighboring group.
Is the thing next to itreally big or really small?
Usually not described,necessarily,
at the level of atoms.
It might be sidechains depending
on which program is doing it.
But I have some measure ofthe volume of the neighbors.
If that volume is reallylarge, then this thing
is already in ahydrophobic environment
even when it's takingwater because it's
surrounded by bulky things.
If the neighborsare small, then it's
a more hydrophilic environmentwhen it's taking in water,
and that's going tomodulate this free energy.
Is this function clear?
OK, so by combining thisobservation from small molecule
transfer experimentsand these observations
based on the structureof the protein,
we can get an approximationfor the hydrophobic effect.
How expensive is itto have this piece
of the protein in solventversus in the hydrophobic core?
And again, we never had todo any quantum mechanical
calculations.
We never had to actuallyexplicitly compute
the interaction of thismolecule with solvent.
We don't need anywater in the structure.
It's simply the geometryof the protein that's
going to give us a goodapproximation to the energy
function.
All right, so you can lookthrough all the details
of these online in theRosetta documentation
that we provided to geta better sense of what
all these functionsare, but you can
see there are a lot of terms.
It's increasingly incremental.
You find somethingwrong with your models.
You add a term to tryto account for that.
Again, not driven necessarilyby the physical forces.
OK, so what have we seen so far?
We've seen themotivation for this unit,
to begin withprotein structures,
that the proteinstructure really
helps us understand thebiological molecules that we're
looking at.
These structures are going toinfluence our understanding
of all biology, so we needto be good at predicting
these protein structuresor solving them
when we have experimental data.
The computationalmethods that we're
going to use--we're going to focus
on solving protein structuresde novo, predicting them,
but those sametechniques are going
to underlie themethods that are used
to solve x-raycrystallography in an MR.
And fundamentally then, wehave these two approaches
to describing thepotential energy.
That's the statistician andthe physicist's approach.
And remember, thekey simplifications
of the statistician are thatwe used a fixed geometry.
We're not trying tofigure out the XYZ
coordinates of every atom.
We're simply trying tofigure out the bond angles.
We're going to userotamers, so we're
going to turn ourcontinuous choices often
into discrete ones.
And we're going to derivestatistical potentials
to present the potentialenergy, which may or may not
have a clear physical basis.
All right, so let's start witha little thought experiment
as we try to get into some ofthese prediction algorithms.
So I have a sequence.
It's about, I don't know,100 amino acids long,
and here are twoprotein structures.
One is predominantlyalpha helical.
One is predominantly beta sheet.
How could I tell-- this isnot a rhetorical question.
I want you to think for second.
How could I tell whetherthe sequence prefers
the structure on the top orthe structure on the bottom?
So we have, actually, alot of the tools in place.
Yes, in the back.
AUDIENCE: Can you, based onpreviously known sequences,
know which sequence ispredominant in which
[INAUDIBLE]?
PROFESSOR: OK, sothe answer was we
could look at previouslyknown sequences.
We can look for homology,and that's actually
going to be a verypowerful tool.
So if there is a homologue inthe database that is closely
related to this protein, andit has a known structure,
then problem solved.
What if there isn't?
What's my next step?
Yes?
AUDIENCE: What if youstart with a description
of the secondary structure,say the helices and the sheet,
and you counted how often aparticular amino acid showed up
in each of those structures?
Could you then computemaybe a likelihood
across a stretch of amino acids?
PROFESSOR: Great.
So that answer waswhat if I looked
at these alpha helicesand beta sheets
and computed how oftencertain amino acids occur
in alpha helicesversus beta sheets,
and then I looked inmy protein structure
and checked whether I havethe right amino acids that
are more favorable thanalpha helices or beta sheets.
And we'll see that's an approachthat's been used successfully.
That's secondarystructure prediction.
OK, other ideas.
Yep?
AUDIENCE: So if you have theposition of the 3D structure,
you can feed your sequencethrough the structure
and then put it throughyour energy function,
see which one is thelower [INAUDIBLE].
PROFESSOR: Excellent.
So another thing I can do is, ifI have these two structures, I
have their precisethree-dimensional structures,
I could try to put mysequence onto that structure,
actually put the rightside chains for my sequence
into that backbone confirmation.
And then what would I do?
I would actually measurethe potential energy
of the protein in top structureand the potential energy
of the protein inthe bottom structure.
If the potentialenergy is higher,
is that the favorable structureor the unfavorable structure?
Favorable?
Unfavorable?
Right, it's the unfavorable.
So I want the lowerfree energy structure.
OK, so let's thinkabout-- that's correct,
and that's where we're headed.
But what are going to besome of the complexities
of that approach?
So first of all, whatabout these side chains?
I have to now take abackbone structure that
had some other aminoacid sequence on it,
and I have to put thesenew side chains on.
Right?
If I put those on in thewrong way-- let's say,
this is the true one--let's say one of these
is the true structure.
Let's begin witha simplification.
All right, so let's say yourfiendish labmate has actually
solved the structureof your protein,
but refuses tell youwhat the answer is.
AUDIENCE: [LAUGHTER]
PROFESSOR: And she actuallyhas solved two structures,
neither one of which she's goingto give you the sequence to.
But she's giving you thecoordinates for both of them.
They're the same length.
And so she asks you,ha, you took 791.
You can figure this out.
Tell me whether thatyour sequence is actually
in this structureor that structure.
She says one of themis exactly right.
You just don't know which one.
OK, so she gives you thebackbone coordinates,
so you go.
You put your aminoacid sequence, say,
with Swiss [? PDB. ?] You add tothe backbone all the right side
chains.
But now, you have tomake a bunch of decisions
for these sidechain confirmations.
If you make the wrongdecision, what happens?
Well, you stick this atom closeto where some other atom is.
Now, you've got anoptimization problem, right?
You believe that oneof these backbone
coordinates iscorrect, but you've
got a very highly coupledoptimization problem.
You need to figure out the rightrotations for every single side
chain on this protein, andyou can't do it one by one.
You can't take a greedy approachbecause if I put this side
chain here, and I put thisside chain here, they collide,
but if this was wrong andsupposed to be over there,
then maybe this is theright conformation.
So I have a coupledproblem, so it turns out
to be computationallyexpensive thing to compute.
So we're going to look atwhat to do if we know backbone
confirmation, but we don't knowthe side chain confirmation.
We can try to solve thatoptimization problem,
and you'll actually dothat in your problem set.
Now, what if thebackbone confirmation
isn't exactly correct?
So let's say you do whatwas first suggested,
and you search thesequence database.
You take this sequence, andyou find that it actually
has two homologs, twothings with similar sequence
similarity.
There are two proteinswith 20% sequence identity
that have completelydifferent structures.
This one has 20%sequence identity,
and this one has 20%sequence identity.
So you have no way of decidingwhich one's which, right?
And neither one is going to bethe right protein structure.
So you know that by putting theside chains onto these protein
structures, you do have to solvethose problems with side chain
optimization, but what,obviously, is the other thing
that you're going toneed to have to solve?
All right, you're going toneed to solve the backbone
optimization problem, andthis becomes even more
coupled because whenI move this backbone,
then the sidechains move with it.
So now, I've got a very,very complicated optimization
problem to deal with.
The search space is enormous,and even if I discretize it,
it's still very, very large.
In fact, there'ssomething famous
called the Levinthal Paradox.
Of course, CyLevinthal, who was once
upon a time a professor hereand then moved to Columbia--
he did a back of theenvelope calculation
for extremely simple modelsof protein structure.
If you imagine the proteinswere to randomly search over
all possible confirmationswith very rapid switching
between possibleconfirmations, it
would take basicallythe lifetime
of the universe for aprotein to ever fold.
So proteins don'tdo random searches
over all possible confirmations,and they can check out
confirmationsincredibly rapidly.
So we certainly can'tdo that, so we'll
look at theoptimization techniques.
All right, so we discussedhow to use energy optimization
functions to try to decidewhich one's correct,
and that even if thestructure is the correct one,
we have the side chainoptimization problem.
If the structure's the incorrectone, we've got two problems.
We've got the backboneconfirmation and the side
chain.
This is frequently calledfold recognition or threading.
This choice of, you'vegot a protein structure.
You want to decide ifyour sequence matches
this one or that one.
There are a coupleof other problems
that we're going to look at.
So this was already raised byone of the students, the idea
that we try to predictthe secondary structure
of this protein, so we'lllook at secondary structure
prediction algorithms.
This was a very early areaof computational effort
in structuralbiology, and we'll see
that the early methodsare remarkably good.
We can look fordomain structures,
and this is reallya sequence problem.
So we can lookthrough our sequences,
and rather than looking forsequence identity or similarity
with knownstructures, we can see
whether there arecertain patterns,
like the hiddenMarkov models that you
looked at in aprevious lecture, that
can allow us to recognize thedomain structure of a protein
even without an identicalsequence in the database.
So we won't go over thatkind of analysis anymore,
and then we'llspend a good amount
of time looking at ways ofsolving novel structures.
So if you don't have afiendish friend who solved
your structure for you,and there is no homologue
in the database,all is not lost.
You actually can now predictnovel structures of proteins
simply from the sequence.
All right, so a littlehistory as to the prediction
of protein structure.
It really startswith Linus Pauling,
who went on to win theNobel Prize for this work.
And this is in the era-- thispaper was published in 1951.
This was what computerslooked like in 1951,
and that thing probablyhas a lot less computing
power than your iPhoneor your Android.
So Linus Pauling didnot solve the structure
of the alpha helix, predictthat alpha helices existed,
using computers.
He actually did itentirely with paper models.
And in fact, he solved this--he got the key insights
for the alpha helix whenhe was lying sick in bed.
That's a very productive sickleave, you might imagine.
He was using papermodels, but it
wasn't all donewhile lying in bed.
So he and others,the field as a whole,
have spend a lot of timeobserving small molecule
distances, so theyhave some idea what
to expect in protein structures.
They didn't know thethree-dimensional structure,
but they knew a lotof the parameters
about how far apart things were.
And they also knewthat hydrogen bonds
were going to be extremelyfavorable in protein
structures.
And so he looked fora repeating structure
that would maximize thenumber of hydrogen bonds
that occur within theprotein backbone chain.
And he knew, also, thebackbone-- that the amide bonds
would be planar and so on.
So there were a lot ofprinciple that underlay this,
but it was reallya tour de force
of just thinkingrather than computing.
Another really importantcontribution early on
was made by Ramachandran,was at Madras University,
and his insight hadto do with the fact
that not all backboneconfirmations were
equally favorable.
So remember, we havethese two rotatable bonds
in the backbone.
We have the phi angleand the psi angle.
And this plotshows that there'll
be certain confirmationsof phi and psi angles
that are observed withinthese dashed lines,
and then the otherconfirmations, which are almost
never observed.
Now, how did he figure that out?
Once again, it wasn'twith computation.
It was simply with papermodels and figuring out
what the distances would be, andthen carefully reasoning over
those possible structures.
So you can get very far inthis field, initially, back
then, by simple hard thought.
OK, so with thesetwo observations,
we knew that therewere going to be
certain kinds of regularsecondary structure
and that not allbackbone confirmations
were equally favorable.
OK, but now, we want to advanceactually predicting structures
of particular proteins, not justsaying that proteins in general
will contain alpha helices.
So how do we goabout doing that?
So the firstadvances here, we're
trying to predict thestructure of alpha helices,
and this paper inthe 1960s introduced
the concept of a helical wheel.
Now, the idea here,if you'll imagine
that this eraseris an alpha helix,
I'm going to look down thebackbone of the alpha helix.
And I'll see thatthe side chains
emerge at regular positions.
There's going to be100 degree rotation
between each sequentialresidue in the backbone
as it goes around helix.
It's going to be displacedand rotated by 100 degrees,
and I could plot,on a piece of paper,
the helical projection,which is shown here.
So here's the first amino acid.
100 degrees later, the second.
100 degrees later, the third.
And I can ask whether theresidues on that backbone
have a sequence thatputs all the hydrophobics
and hydrophilics on thesame side, as in this case,
or on different sides.
Now, what differencedoes it make?
Well, if I have analpha helix that's
lying on the surfaceof a protein,
this could have one sidethat's solvent exposed and one
side that's protected.
So we would expect that someof these alpha helices lying
on the service wouldbe amphipathic.
Half of them would behydrophobic, hydrophobic,
and half of themwould be hydrophilic.
And purely, as someonesuggested from the pattern
of the amino acids, and here thehydrophobicity of the pattern
of the amino acids, we couldmake reasonable predictions
of whether this protein forms aparticular kind of alpha helix,
an amphipathic alpha helix.
Now, is that going to helpus for all alpha helices?
Obviously not, because Ican have alpha helices that
are totally solventexposed, and I
can have alpha helicesthat are totally protected.
So this pattern will occur insome alpha helices, but not
all.
So another ideathat was raised here
and was used earlyon with great success
was to actually figure outwhether certain amino acids
have a particular alphahelical propensity.
Do they occur morefrequently in alpha helices?
At the time, it wasalso thought maybe
you could find propensitiesfor beta sheets
and other structures.
So compute the statisticsover for every amino acid,
shown as a row here.
How often is it observedin the database?
How often does itoccur in alpha helix?
And how often does it occurin beta sheet or in a coil?
And from these, then, wewould compute probabilities
and compute using, perhaps,Bayesian statistics to compute
the posterexpectation for having
a certain sequencein alpha helix.
They didn't quite useBayesian statistics here.
They came up with arather ad hoc approach,
and when you readit in hindsight,
it seems kind of crazy.
But actually, youhave to remember
when this was being done.
This is being done before abig influence of mathematicians
into structural biology.
This is 1974, and they usedmore physical reasoning.
They knew somethingabout how alpha helices
formed from chemistry.
They knew that,typically, there's
nucleation event, where a smallpiece of helix forms initially,
and then that extends.
They knew that therewere these propensities
for certain amino acidsto form alpha helices,
and other amino acids, whichtended to break the helix.
And they came up withan ad hoc algorithm
that counted how oftenyou had strong helix
formers, how often you breakers.
You can see all thedetails in the references.
The amazing thing is, with thisvery ad hoc thing and a very,
very small databaseof protein structures,
you could look at thetotal number of residues
that they're looking atover all the structures,
there's 2,473 andresidues, not structures.
And now, we havemany, many more times
than that ofstructures of proteins.
Even with that,in 1974, they were
able to achieve 60%accuracy in predicting
the secondarystructure of proteins,
so it's really anastounding accomplishment.
And to put that inperspective, there
was an evaluation of a wholebunch of secondary structure
prediction algorithmsdone about a decade ago,
and things haven't changedthat much since then, where
between 1974 and2003, almost 30 years,
they went from 60%accuracy to 76% accuracy.
OK, well, that's notbad, but it's not a lot
for-- you'd expectmaybe over 30 years,
you could do a lot better.
So the simple approachreally captured
the fundamentals of predictingsecondary structure.
There's a lot of workthat's been done since,
and I encourage you tolook in the textbook
if you're interested, to lookat all the newer algorithms that
have tried to solve thesecondary structure prediction
problem.
OK.
All right, so secondarystructure prediction, then--
you can look in the textbookfor the modern methods,
but the fundamental ideas werelaid down by Chou and Fasman
in the 1974 paper.
We're already said that lookingat the kinds of approaches
that we discussedearlier in the course
can help you solvedomain structures.
I would like to focus on,at the end of this lecture
and the beginning-- and the nextlecture about how to actually
solve novel structures frompurely amino acid sequence,
and we're going togo back to the idea
that there is a potentialenergy function.
We now have both the CHARMMapproach and the Rosetta
approach to proteinstructure, and so there
is some proteinfolding landscape.
There's an energy function.
If you have differentconformations,
you'll be at differentpositions in landscape,
and we'd like tofigure out how to go
from some starting confirmationthat may be arbitrary and find
our way to the minimumenergy structure.
All right, so there are goingto be three fundamental things
that we'll talk aboutin the next lecture.
We're going to talk aboutenergy minimization,
how to use these potentialenergy functions that we
started off with to gofrom approximate structures
to the refined structure.
That's the thoughtproblem I gave you.
You have the structure, butyou have the wrong side chains.
Could you minimize them?
And so that's makingsmall changes.
We'll discussmolecular dynamics,
which actually tries to simulateall the forces on a protein
and to actually carryout a physical simulation
of the process.
That's the CHARMMapproach, and we'll
see some interestingvariants on that.
And then we'll look atsimulated annealing, which
is an optimization techniquethat's actually quite broad,
but can be appliedhere, to search
over large, largeconformational spaces,
much further than a proteinwould actually evolve
in a molecular dynamicsimulation that's
simulating protein function.
You allow the protein, now,to jump between confirmations
that have no realpotential to transfer
between in a normal roomtemperature in water,
but can be done, obviously,easily in the computer.
So I'll stop here.
Any questions before we close?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219align:start position:0% so I'd say that one of the most
align:start position:0%so I'd say that one of the most
align:start position:0%so I'd say that one of the mostimportant things for communication
align:start position:0%important things for communication
align:start position:0%important things for communicationinstructors who are partnering with
align:start position:0%instructors who are partnering with
align:start position:0%instructors who are partnering withtechnical faculty is for everybody to
align:start position:0%technical faculty is for everybody to
align:start position:0%technical faculty is for everybody tohave a shared understanding of the
align:start position:0%have a shared understanding of the
align:start position:0%have a shared understanding of theassignment genres that you're working
align:start position:0%assignment genres that you're working
align:start position:0%assignment genres that you're workingwith so if students understand who
align:start position:0%with so if students understand who
align:start position:0%with so if students understand whothey're talking to and what the purpose
align:start position:0%they're talking to and what the purpose
align:start position:0%they're talking to and what the purposeand the context of the communicative act
align:start position:0%and the context of the communicative act
align:start position:0%and the context of the communicative actare rather than just saying like it's an
align:start position:0%are rather than just saying like it's an
align:start position:0%are rather than just saying like it's anoral presentation as though that's like
align:start position:0%oral presentation as though that's like
align:start position:0%oral presentation as though that's likesome kind of descriptive term in any way
align:start position:0%some kind of descriptive term in any way
align:start position:0%some kind of descriptive term in any waythe more they understand that the better
align:start position:0%the more they understand that the better
align:start position:0%the more they understand that the betteroff they're going to be because then you
align:start position:0%off they're going to be because then you
align:start position:0%off they're going to be because then youcan start to ask them what practically
align:start position:0%can start to ask them what practically
align:start position:0%can start to ask them what practicallyspeaking is likely to work for getting
align:start position:0%speaking is likely to work for getting
align:start position:0%speaking is likely to work for gettingthe message across to that audience but
align:start position:0%the message across to that audience but
align:start position:0%the message across to that audience butthat involves that like all the
align:start position:0%that involves that like all the
align:start position:0%that involves that like all theinstructors be on the same page and so
align:start position:0%instructors be on the same page and so
align:start position:0%instructors be on the same page and sosort of sitting down with the
align:start position:0%sort of sitting down with the
align:start position:0%sort of sitting down with theinstructors at the beginning of the
align:start position:0%instructors at the beginning of the
align:start position:0%instructors at the beginning of thesemester or beforehand and just getting
align:start position:0%semester or beforehand and just getting
align:start position:0%semester or beforehand and just gettingfrom them a really clear understanding
align:start position:0%from them a really clear understanding
align:start position:0%from them a really clear understandingof how they conceived of the assignment
align:start position:0%of how they conceived of the assignment
align:start position:0%of how they conceived of the assignmentand how they conceived of the genre and
align:start position:0%and how they conceived of the genre and
align:start position:0%and how they conceived of the genre andhow they conceived of you know who the
align:start position:0%how they conceived of you know who the
align:start position:0%how they conceived of you know who thestudents are talking to and why makes
align:start position:0%students are talking to and why makes
align:start position:0%students are talking to and why makesall the difference1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411align:start position:0% [Applause]
align:start position:0%[Applause]
align:start position:0%[Applause]stationary states are gonna keep us
align:start position:0%stationary states are gonna keep us
align:start position:0%stationary states are gonna keep usquite busy probably a couple of weeks
align:start position:0%quite busy probably a couple of weeks
align:start position:0%quite busy probably a couple of weeksbecause it's a place when you get the
align:start position:0%because it's a place when you get the
align:start position:0%because it's a place when you get theChristian about solving for your
align:start position:0%Christian about solving for your
align:start position:0%Christian about solving for yoursituation
align:start position:0%situation
align:start position:0%situationso the stationary states are simple
align:start position:0%
align:start position:0% solutions very nice
align:start position:0%solutions very nice
align:start position:0%solutions very niceso what already by the definition
align:start position:0%so what already by the definition
align:start position:0%so what already by the definitionwell we be given the definition and the
align:start position:0%well we be given the definition and the
align:start position:0%well we be given the definition and theimpression of a stationary state will
align:start position:0%impression of a stationary state will
align:start position:0%impression of a stationary state willform see the workstation air is not the
align:start position:0%form see the workstation air is not the
align:start position:0%form see the workstation air is not thesame as standing stationary something
align:start position:0%same as standing stationary something
align:start position:0%same as standing stationary somethingmaybes kind of moving but things don't
align:start position:0%maybes kind of moving but things don't
align:start position:0%maybes kind of moving but things don'tchange statically sometimes does not
align:start position:0%change statically sometimes does not
align:start position:0%change statically sometimes does notmove stationary states have time
align:start position:0%move stationary states have time
align:start position:0%move stationary states have timedependence that is very simple you see
align:start position:0%dependence that is very simple you see
align:start position:0%dependence that is very simple you seeso the definition of a stationary state
align:start position:0%
align:start position:0% [Applause]
align:start position:0%[Applause]
align:start position:0%[Applause]say pass a factorize space and comment
align:start position:0%say pass a factorize space and comment
align:start position:0%say pass a factorize space and commentdependences so this subway of X and T is
align:start position:0%dependences so this subway of X and T is
align:start position:0%dependences so this subway of X and T isa stationary state if you can write the
align:start position:0%a stationary state if you can write the
align:start position:0%a stationary state if you can write thetime
align:start position:0%
align:start position:0% I will position this so this is a
align:start position:0%I will position this so this is a
align:start position:0%I will position this so this is astationary state but the stationary the
align:start position:0%stationary state but the stationary the
align:start position:0%stationary state but the stationary thespatial dependence but and solve the
align:start position:0%spatial dependence but and solve the
align:start position:0%spatial dependence but and solve theSchrodinger equation the solution of
align:start position:0%Schrodinger equation the solution of
align:start position:0%Schrodinger equation the solution ofwhich so what we need to understand is
align:start position:0%which so what we need to understand is
align:start position:0%which so what we need to understand iswhat this factorize dependent spouses
align:start position:0%what this factorize dependent spouses
align:start position:0%what this factorize dependent spousesfor the Schrodinger equation so this
align:start position:0%for the Schrodinger equation so this
align:start position:0%for the Schrodinger equation so thisstationary states have time dependence
align:start position:0%stationary states have time dependence
align:start position:0%stationary states have time dependencebut the thing that makes the stationary
align:start position:0%but the thing that makes the stationary
align:start position:0%but the thing that makes the stationaryis that if you look at some observable a
align:start position:0%is that if you look at some observable a
align:start position:0%is that if you look at some observable ahermitian operator and you say okay the
align:start position:0%hermitian operator and you say okay the
align:start position:0%hermitian operator and you say okay thestate has time the
align:start position:0%state has time the
align:start position:0%state has time theso maybe that observable will have
align:start position:0%so maybe that observable will have
align:start position:0%so maybe that observable will havetime-dependent no the syllables
align:start position:0%time-dependent no the syllables
align:start position:0%time-dependent no the syllablesdon't have time to vote that is the nice
align:start position:0%don't have time to vote that is the nice
align:start position:0%don't have time to vote that is the nicething about stationers data so what we
align:start position:0%thing about stationers data so what we
align:start position:0%thing about stationers data so what wecall time-dependent observables which
align:start position:0%
align:start position:0% are all observables with a familiar
align:start position:0%are all observables with a familiar
align:start position:0%are all observables with a familiardespondency and manfully position I
align:start position:0%despondency and manfully position I
align:start position:0%despondency and manfully position Ididn't want any of the different
align:start position:0%didn't want any of the different
align:start position:0%didn't want any of the differentobservables see when you write it like
align:start position:0%observables see when you write it like
align:start position:0%observables see when you write it likethat so time-dependent
align:start position:0%
align:start position:0% independent observer so the observable
align:start position:0%independent observer so the observable
align:start position:0%independent observer so the observableis time independent but the expectation
align:start position:0%is time independent but the expectation
align:start position:0%is time independent but the expectationvalue the term dependence comes from the
align:start position:0%value the term dependence comes from the
align:start position:0%value the term dependence comes from thestates
align:start position:0%states
align:start position:0%statesthe state of side effects and the half
align:start position:0%the state of side effects and the half
align:start position:0%the state of side effects and the halftime dependence and sometimes it just
align:start position:0%time dependence and sometimes it just
align:start position:0%time dependence and sometimes it justdoesn't from us but for stationary
align:start position:0%doesn't from us but for stationary
align:start position:0%doesn't from us but for stationarystates okay so enough of saying things
align:start position:0%states okay so enough of saying things
align:start position:0%states okay so enough of saying thingsand let's get so we look at this bar
align:start position:0%and let's get so we look at this bar
align:start position:0%and let's get so we look at this bar[Music]
align:start position:0%[Music]
align:start position:0%[Music][Applause]
align:start position:0%[Applause]
align:start position:0%[Applause]- squared over x squared plus V of X and
align:start position:0%- squared over x squared plus V of X and
align:start position:0%- squared over x squared plus V of X andnow I will consider states that have
align:start position:0%now I will consider states that have
align:start position:0%now I will consider states that havedoes not at this moment otherwise
align:start position:0%
align:start position:0% stationary States has dependents so
align:start position:0%
align:start position:0% that's okay so what we do breaks is to
align:start position:0%that's okay so what we do breaks is to
align:start position:0%that's okay so what we do breaks is tosimply substitute the value of the wave
align:start position:0%simply substitute the value of the wave
align:start position:0%simply substitute the value of the wavefunction into the differential equation
align:start position:0%function into the differential equation
align:start position:0%function into the differential equationand see what we get so on the left hand
align:start position:0%and see what we get so on the left hand
align:start position:0%and see what we get so on the left handside we will get by h-bar the
align:start position:0%side we will get by h-bar the
align:start position:0%side we will get by h-bar theside-effects goes out Det
align:start position:0%
align:start position:0% [Applause]
align:start position:0%[Applause]
align:start position:0%[Applause]and now this factor ancient side accent
align:start position:0%and now this factor ancient side accent
align:start position:0%and now this factor ancient side accentlease two things imagine the function of
align:start position:0%lease two things imagine the function of
align:start position:0%lease two things imagine the function oftime comes a function of X sitting here
align:start position:0%time comes a function of X sitting here
align:start position:0%time comes a function of X sitting herebut the function of time can remove that
align:start position:0%but the function of time can remove that
align:start position:0%but the function of time can remove thatso the function of that can you move the
align:start position:0%so the function of that can you move the
align:start position:0%so the function of that can you move theCrossFit community later it doesn't do
align:start position:0%CrossFit community later it doesn't do
align:start position:0%CrossFit community later it doesn't doanything to it as age of sine of X this
align:start position:0%anything to it as age of sine of X this
align:start position:0%anything to it as age of sine of X thisis a chart and the class we had no time
align:start position:0%is a chart and the class we had no time
align:start position:0%is a chart and the class we had no timedependence in the potential of an
align:start position:0%dependence in the potential of an
align:start position:0%dependence in the potential of anassumption this whole thing is a
align:start position:0%assumption this whole thing is a
align:start position:0%assumption this whole thing is afunction of X
align:start position:0%function of X
align:start position:0%function of X[Applause]
align:start position:0%
align:start position:0% alright next step divide this whole
align:start position:0%alright next step divide this whole
align:start position:0%alright next step divide this wholeequation by the total wave function by
align:start position:0%
align:start position:0% itself but if you divide by side with
align:start position:0%itself but if you divide by side with
align:start position:0%itself but if you divide by side withtanks on the little side here it is a 1
align:start position:0%tanks on the little side here it is a 1
align:start position:0%tanks on the little side here it is a 1over G so you get I h-bar one on the
align:start position:0%over G so you get I h-bar one on the
align:start position:0%over G so you get I h-bar one on theright hand side the kinds of the gene
align:start position:0%right hand side the kinds of the gene
align:start position:0%right hand side the kinds of the geneand you get a 1 over side 1 over sine of
align:start position:0%and you get a 1 over side 1 over sine of
align:start position:0%and you get a 1 over side 1 over sine ofX age sideways and now you look at this
align:start position:0%X age sideways and now you look at this
align:start position:0%X age sideways and now you look at thisequation and this equation is saying
align:start position:0%equation and this equation is saying
align:start position:0%equation and this equation is sayingsomething very strange the left hand
align:start position:0%something very strange the left hand
align:start position:0%something very strange the left handside is a function of time only the
align:start position:0%side is a function of time only the
align:start position:0%side is a function of time only theright hand side is a function of space
align:start position:0%right hand side is a function of space
align:start position:0%right hand side is a function of spaceonly how time a function of time equal
align:start position:0%only how time a function of time equal
align:start position:0%only how time a function of time equalto a function of space the only way we
align:start position:0%to a function of space the only way we
align:start position:0%to a function of space the only way wecould be is if both are not a function
align:start position:0%could be is if both are not a function
align:start position:0%could be is if both are not a functionof what they were supposed to mean
align:start position:0%of what they were supposed to mean
align:start position:0%of what they were supposed to meanthere are just numbers any function of
align:start position:0%there are just numbers any function of
align:start position:0%there are just numbers any function oftime cannot be equal to function of X in
align:start position:0%time cannot be equal to function of X in
align:start position:0%time cannot be equal to function of X ingeneral it doesn't make sense so each
align:start position:0%general it doesn't make sense so each
align:start position:0%general it doesn't make sense so eachside must be equal to a constant and
align:start position:0%side must be equal to a constant and
align:start position:0%side must be equal to a constant andit's the same constant so each side this
align:start position:0%it's the same constant so each side this
align:start position:0%it's the same constant so each side thisis all equal to constant and we'll call
align:start position:0%is all equal to constant and we'll call
align:start position:0%is all equal to constant and we'll callthe constant
align:start position:0%
align:start position:0% and this e has units of energy with
align:start position:0%and this e has units of energy with
align:start position:0%and this e has units of energy withunits of energy is equal so here we are
align:start position:0%units of energy is equal so here we are
align:start position:0%units of energy is equal so here we areconstant with units of energy
align:start position:0%
align:start position:0% [Applause]
align:start position:0%[Applause]
align:start position:0%[Applause]you can see the energy here over time so
align:start position:0%
align:start position:0% [Applause]
align:start position:0%[Applause]
align:start position:0%[Applause][Music]
align:start position:0%
align:start position:0% we'll see what works correctly it's a
align:start position:0%we'll see what works correctly it's a
align:start position:0%we'll see what works correctly it's afirst order differential equation just
align:start position:0%first order differential equation just
align:start position:0%first order differential equation justone constant
align:start position:0%
align:start position:0% that's it and this is part of solving
align:start position:0%that's it and this is part of solving
align:start position:0%that's it and this is part of solvingfor stationary states you solve for G of
align:start position:0%for stationary states you solve for G of
align:start position:0%for stationary states you solve for G ofT the through dependence was easy to
align:start position:0%T the through dependence was easy to
align:start position:0%T the through dependence was easy tosolve for but the exit pelvis is
align:start position:0%solve for but the exit pelvis is
align:start position:0%solve for but the exit pelvis iscomplicated in general there you have to
align:start position:0%complicated in general there you have to
align:start position:0%complicated in general there you have todo some work you have to solve the
align:start position:0%do some work you have to solve the
align:start position:0%do some work you have to solve thedifferential equation it's not that easy
align:start position:0%differential equation it's not that easy
align:start position:0%differential equation it's not that easyso many people most people call this the
align:start position:0%so many people most people call this the
align:start position:0%so many people most people call this thetime independent
align:start position:0%
align:start position:0% so that's the time-independent
align:start position:0%so that's the time-independent
align:start position:0%so that's the time-independentschrodinger equation or each society
align:start position:0%schrodinger equation or each society
align:start position:0%schrodinger equation or each societywill need side and this solving this
align:start position:0%will need side and this solving this
align:start position:0%will need side and this solving thisdifferential equation can be challenging
align:start position:0%differential equation can be challenging
align:start position:0%differential equation can be challengingor something very interesting because
align:start position:0%
align:start position:0% the only reasonable solutions that this
align:start position:0%the only reasonable solutions that this
align:start position:0%the only reasonable solutions that thisequation has are for somebody's analogy
align:start position:0%equation has are for somebody's analogy
align:start position:0%equation has are for somebody's analogywith matrices should tell you that's
align:start position:0%with matrices should tell you that's
align:start position:0%with matrices should tell you that'sprobably what's going to happen because
align:start position:0%probably what's going to happen because
align:start position:0%probably what's going to happen becauseyou remember eigenstates and eigenvalues
align:start position:0%you remember eigenstates and eigenvalues
align:start position:0%you remember eigenstates and eigenvaluesof little numbers this equation is an
align:start position:0%of little numbers this equation is an
align:start position:0%of little numbers this equation is aneigen function equation and it's
align:start position:0%eigen function equation and it's
align:start position:0%eigen function equation and it'spossible that it has two solutions for
align:start position:0%possible that it has two solutions for
align:start position:0%possible that it has two solutions forsome particular values of the energy let
align:start position:0%some particular values of the energy let
align:start position:0%some particular values of the energy letme write the whole solution there if you
align:start position:0%me write the whole solution there if you
align:start position:0%me write the whole solution there if yousolve these two things the whole
align:start position:0%solve these two things the whole
align:start position:0%solve these two things the wholesolution sine of X and P is now constant
align:start position:0%solution sine of X and P is now constant
align:start position:0%solution sine of X and P is now constanttimes of side effects
align:start position:0%
align:start position:0% [Music]
align:start position:0%
align:start position:0% but this side effects solves this
align:start position:0%but this side effects solves this
align:start position:0%but this side effects solves thisequation so this is the stationary state
align:start position:0%
align:start position:0% the stationerity the eggs himself is
align:start position:0%the stationerity the eggs himself is
align:start position:0%the stationerity the eggs himself isequal to 1 that is this should be the
align:start position:0%equal to 1 that is this should be the
align:start position:0%equal to 1 that is this should be thecase even this should be interesting
align:start position:0%case even this should be interesting
align:start position:0%case even this should be interestingsolutions of the Schrodinger equation we
align:start position:0%solutions of the Schrodinger equation we
align:start position:0%solutions of the Schrodinger equation weexpect that we could particles will
align:start position:0%expect that we could particles will
align:start position:0%expect that we could particles willdescribe wave packets or computer states
align:start position:0%describe wave packets or computer states
align:start position:0%describe wave packets or computer stateswith them and let's see what we saw when
align:start position:0%with them and let's see what we saw when
align:start position:0%with them and let's see what we saw whenwe try to normalize side will be
align:start position:0%we try to normalize side will be
align:start position:0%we try to normalize side will benormalizing the sizes so what do we get
align:start position:0%
align:start position:0% sighs started this side of X and now is
align:start position:0%sighs started this side of X and now is
align:start position:0%sighs started this side of X and now ise to the I II T over H bar let's
align:start position:0%e to the I II T over H bar let's
align:start position:0%e to the I II T over H bar let'saccomplish for me
align:start position:0%accomplish for me
align:start position:0%accomplish for menow on the other hand suppose
align:start position:0%
align:start position:0% of this other term these side-effects e
align:start position:0%of this other term these side-effects e
align:start position:0%of this other term these side-effects eto the minus i PT and now the good thing
align:start position:0%to the minus i PT and now the good thing
align:start position:0%to the minus i PT and now the good thingabout this you see this integral should
align:start position:0%about this you see this integral should
align:start position:0%about this you see this integral shouldbe normalized to one should to make
align:start position:0%be normalized to one should to make
align:start position:0%be normalized to one should to makesense under it's a great thing that the
align:start position:0%sense under it's a great thing that the
align:start position:0%sense under it's a great thing that thetime dependence drops out and it would
align:start position:0%time dependence drops out and it would
align:start position:0%time dependence drops out and it wouldnot have dropped out if the energy had
align:start position:0%not have dropped out if the energy had
align:start position:0%not have dropped out if the energy hadnot been real if the energy was not me
align:start position:0%not been real if the energy was not me
align:start position:0%not been real if the energy was not methough I would have had to put here a
align:start position:0%though I would have had to put here a
align:start position:0%though I would have had to put here astar and here I would have had East R
align:start position:0%star and here I would have had East R
align:start position:0%star and here I would have had East Rminus e of some function of time and how
align:start position:0%minus e of some function of time and how
align:start position:0%minus e of some function of time and howcan a function of time equal to one
align:start position:0%can a function of time equal to one
align:start position:0%can a function of time equal to onewould be a problem so he must be real
align:start position:0%would be a problem so he must be real
align:start position:0%would be a problem so he must be realbecause otherwise you don't cancel his
align:start position:0%because otherwise you don't cancel his
align:start position:0%because otherwise you don't cancel histime dependence which happily and
align:start position:0%time dependence which happily and
align:start position:0%time dependence which happily andcancels it just tells you that it will
align:start position:0%cancels it just tells you that it will
align:start position:0%cancels it just tells you that it willbe X star X sine of X must be one which
align:start position:0%be X star X sine of X must be one which
align:start position:0%be X star X sine of X must be one whichis a very nice thing so in the
align:start position:0%is a very nice thing so in the
align:start position:0%is a very nice thing so in thestationary state the normalization
align:start position:0%stationary state the normalization
align:start position:0%stationary state the normalizationcondition for a whole time dependent
align:start position:0%condition for a whole time dependent
align:start position:0%condition for a whole time dependentstationary state is that the spatial
align:start position:0%stationary state is that the spatial
align:start position:0%stationary state is that the spatialpart is not123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699align:start position:0% now the
align:start position:0%now the
align:start position:0%now thethe last thing that i'm going to tell
align:start position:0%the last thing that i'm going to tell
align:start position:0%the last thing that i'm going to tellyou about is why this matters
align:start position:0%you about is why this matters
align:start position:0%you about is why this mattersand just like the goodie bags when i
align:start position:0%and just like the goodie bags when i
align:start position:0%and just like the goodie bags when istarted teaching this class three years
align:start position:0%started teaching this class three years
align:start position:0%started teaching this class three yearsago i wanted to also
align:start position:0%ago i wanted to also
align:start position:0%ago i wanted to alsoprotect a certain fundamental
align:start position:0%protect a certain fundamental
align:start position:0%protect a certain fundamentalpart of each lecture and i call it why
align:start position:0%part of each lecture and i call it why
align:start position:0%part of each lecture and i call it whymy why this matters moment
align:start position:0%my why this matters moment
align:start position:0%my why this matters momentsometimes it goes on for more than a
align:start position:0%sometimes it goes on for more than a
align:start position:0%sometimes it goes on for more than amoment
align:start position:0%moment
align:start position:0%momentbut i really really want every lecture
align:start position:0%but i really really want every lecture
align:start position:0%but i really really want every lectureto connect what we just learned
align:start position:0%to connect what we just learned
align:start position:0%to connect what we just learnedto a big picture most of the time it's
align:start position:0%to a big picture most of the time it's
align:start position:0%to a big picture most of the time it'ssome application or some
align:start position:0%some application or some
align:start position:0%some application or someglobal challenge right
align:start position:0%global challenge right
align:start position:0%global challenge righti want you to see those connections that
align:start position:0%i want you to see those connections that
align:start position:0%i want you to see those connections thatwhat you're learning is directly
align:start position:0%what you're learning is directly
align:start position:0%what you're learning is directlyrelevant to some big thing
align:start position:0%relevant to some big thing
align:start position:0%relevant to some big thingso my why this matters moment is a is
align:start position:0%so my why this matters moment is a is
align:start position:0%so my why this matters moment is a isreally related to these discoveries
align:start position:0%really related to these discoveries
align:start position:0%really related to these discoveriesthemselves
align:start position:0%themselves
align:start position:0%themselvesokay please give me until 11 55 i will
align:start position:0%okay please give me until 11 55 i will
align:start position:0%okay please give me until 11 55 i willalways let you go on time 11 55 but
align:start position:0%always let you go on time 11 55 but
align:start position:0%always let you go on time 11 55 butplease don't start putting stuff away
align:start position:0%please don't start putting stuff away
align:start position:0%please don't start putting stuff awaybecause it's distracting to everybody
align:start position:0%because it's distracting to everybody
align:start position:0%because it's distracting to everybodyso two and a half minutes
align:start position:0%
align:start position:0% we name the age we live in often by the
align:start position:0%we name the age we live in often by the
align:start position:0%we name the age we live in often by theelement by the atom
align:start position:0%element by the atom
align:start position:0%element by the atomby the material by the material
align:start position:0%by the material by the material
align:start position:0%by the material by the materialthat was most useful at the time
align:start position:0%that was most useful at the time
align:start position:0%that was most useful at the timethe stone age the bronze age the iron
align:start position:0%the stone age the bronze age the iron
align:start position:0%the stone age the bronze age the ironage
align:start position:0%age
align:start position:0%agei would say we've moved through the
align:start position:0%i would say we've moved through the
align:start position:0%i would say we've moved through theindustrial age the age of plastics the
align:start position:0%industrial age the age of plastics the
align:start position:0%industrial age the age of plastics theage of silicon
align:start position:0%age of silicon
align:start position:0%age of siliconas a material scientist an engineer i
align:start position:0%as a material scientist an engineer i
align:start position:0%as a material scientist an engineer ilove this i love that you name
align:start position:0%love this i love that you name
align:start position:0%love this i love that you namethe age you live in by the material that
align:start position:0%the age you live in by the material that
align:start position:0%the age you live in by the material thatmattered
align:start position:0%mattered
align:start position:0%matteredbut i also love that we will never do
align:start position:0%but i also love that we will never do
align:start position:0%but i also love that we will never dothat again
align:start position:0%that again
align:start position:0%that againever and the reason is that we live in a
align:start position:0%ever and the reason is that we live in a
align:start position:0%ever and the reason is that we live in atruly unique age now a different age
align:start position:0%truly unique age now a different age
align:start position:0%truly unique age now a different ageone in which we can put atoms we can
align:start position:0%one in which we can put atoms we can
align:start position:0%one in which we can put atoms we canrealize feynman's dream
align:start position:0%realize feynman's dream
align:start position:0%realize feynman's dreamand put atoms anywhere we want the
align:start position:0%and put atoms anywhere we want the
align:start position:0%and put atoms anywhere we want thequestion is
align:start position:0%question is
align:start position:0%question isnot can we make it as much anymore as it
align:start position:0%not can we make it as much anymore as it
align:start position:0%not can we make it as much anymore as itis
align:start position:0%is
align:start position:0%iswhat should we make we live in the age
align:start position:0%what should we make we live in the age
align:start position:0%what should we make we live in the ageof atomic design
align:start position:0%of atomic design
align:start position:0%of atomic designand that is really important i mentioned
align:start position:0%and that is really important i mentioned
align:start position:0%and that is really important i mentionedthe phone and the 63 elements
align:start position:0%the phone and the 63 elements
align:start position:0%the phone and the 63 elementsyou know look this is called a
align:start position:0%you know look this is called a
align:start position:0%you know look this is called arevolution
align:start position:0%revolution
align:start position:0%revolutionthis is called this is called a
align:start position:0%this is called this is called a
align:start position:0%this is called this is called arevolution you went in 50 years
align:start position:0%revolution you went in 50 years
align:start position:0%revolution you went in 50 yearsfrom a dollar per transistor eight
align:start position:0%from a dollar per transistor eight
align:start position:0%from a dollar per transistor eightorders of magnitude cheaper
align:start position:0%orders of magnitude cheaper
align:start position:0%orders of magnitude cheaperin 2012 it became cheaper to print
align:start position:0%in 2012 it became cheaper to print
align:start position:0%in 2012 it became cheaper to printa transistor on a chip than a character
align:start position:0%a transistor on a chip than a character
align:start position:0%a transistor on a chip than a characterin a newspaper
align:start position:0%in a newspaper
align:start position:0%in a newspaperthat's a revolution but that revolution
align:start position:0%that's a revolution but that revolution
align:start position:0%that's a revolution but that revolutionit started as a processing revolution
align:start position:0%it started as a processing revolution
align:start position:0%it started as a processing revolutionwith one really important element
align:start position:0%with one really important element
align:start position:0%with one really important elementsilicon
align:start position:0%silicon
align:start position:0%siliconand now it's a materials revolution with
align:start position:0%and now it's a materials revolution with
align:start position:0%and now it's a materials revolution with63.
align:start position:0%63.
align:start position:0%63.it's a chemistry revolution and the
align:start position:0%it's a chemistry revolution and the
align:start position:0%it's a chemistry revolution and thereason this
align:start position:0%reason this
align:start position:0%reason thismatters so much what are these things is
align:start position:0%matters so much what are these things is
align:start position:0%matters so much what are these things isbecause
align:start position:0%because
align:start position:0%becauseso many of the problems that we face
align:start position:0%so many of the problems that we face
align:start position:0%so many of the problems that we facein this world today so many of the
align:start position:0%in this world today so many of the
align:start position:0%in this world today so many of theglobal challenges
align:start position:0%global challenges
align:start position:0%global challengeswill rely on new chemistry
align:start position:0%will rely on new chemistry
align:start position:0%will rely on new chemistryand on new materials those
align:start position:0%and on new materials those
align:start position:0%and on new materials thoseare the bottlenecks those are the
align:start position:0%are the bottlenecks those are the
align:start position:0%are the bottlenecks those are thebottlenecks in cost and efficiency and
align:start position:0%bottlenecks in cost and efficiency and
align:start position:0%bottlenecks in cost and efficiency andprocessing
align:start position:0%processing
align:start position:0%processingright in properties and those are the
align:start position:0%right in properties and those are the
align:start position:0%right in properties and those are thekinds of things that we're going to be
align:start position:0%kinds of things that we're going to be
align:start position:0%kinds of things that we're going to betalking about
align:start position:0%talking about
align:start position:0%talking aboutall throughout the fall and that is our
align:start position:0%all throughout the fall and that is our
align:start position:0%all throughout the fall and that is ourconstruction set and we will build this
align:start position:0%construction set and we will build this
align:start position:0%construction set and we will build thison friday so see you guys all on friday
align:start position:0%
align:start position:0% you1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043The 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: So goodafternoon, everybody.
You see the topicfor today's class
on the screen--entangled photons.
Just to remindyou, when we talked
about single photons andMach-Zender interferometers,
we realized that when we have anonlinear interferometer where
one mode, you can say onebeam, affects the phase shift
in the interferometerfor the other photon.
Then we get anonlinear situation,
and we can create photon stateswhich no longer factorize.
So we have a systema, a system b,
and we can no longer writedown the total wave function
in a wave function forsystem a times system b.
And this is somethingvery interesting,
and this is what wefeature in this section.
So we finished the last classby defining entanglement.
And just to remind you, wesaid something is entangled
if it is impossible to writeit in a product of two wave
functions.
So therefore, if you have somecorrelation between the two
systems, then wecall the two systems
and the state of thesystem entangled.
Now this is a definitionwhich needs explanation,
so we went throughsome examples.
And we showed that certainstates which on first sight
look entangledare not entangled,
because if you tryharder, you find
the way to factorize the state.
So I want to continuenow in explaining
different aspectsof the definition,
in particular what it meansto have a system which
has two subsystems, a and b.
Before I do that, do you haveany questions up to that point?
So we want to talk about somestandard entangled state.
And the most basicstate is a single state.
So if you have a state whichis 0 1 minus 1 0 normalized,
this is anEinstein-Podolsky-Rosen state.
This needs some explanation.
We have oftenencountered, in physics,
states which are simplya superposition of if you
interpret 0 1 asspin up or spin down,
you encounter that quite often.
And I want to explainto you now what
is not an entangled statefor the reasons of using
entanglement as a resource.
So first of all, Iwant to point out
this state is nota single photon,
because we have entangledhere two qubits.
Let me just contrast it.
If you have a singlephoton after beam splitter,
the single photonafter beam splitter
is in a superposition ofmode a, mode b, 0 1 minus 1 0
divided by square root 2.
But now 0 is the vacuum.
So we have not asystem which can
be decomposed into twopartial systems a and b.
You may even separate thesystem and then manipulate
your single qubits individuallyby putting phase shifts on
and doing other operations.
If you have this state which isa superposition between having
a photon, not having a vacuum,and having a vacuum state,
you cannot-- the vacuum stateitself is not a separate
system.
You cannot take the vacuumand perform operations
on the vacuum.
So I know it hasbeen confusing for me
when I heard about itfor the first time.
We have, so to speak,here an entangled mode,
but not an entangled state.
It's a singlet state.
It has some aspectsof entanglement,
but it is not the entanglementwe have defined is a resource.
So let me just repeat-- thismay be an entangled mode,
but to be in an entangledstate requires systems
where you have two partswhich you can separate.
The second commentis we have situations
where we have twodifferent parts,
but they can't bephysically separated.
So part of our definition ofentanglement as a resource
is that the state must be oftwo physically distinct systems.
And we want to haveparts which can
be separately addressed,manipulated, and measured.
In other words, if you readout one part of an EPR pair,
the other part still exists.
So that's sort of what we want.
Let me illustratethat with examples.
For instance, in the heliumatom, you have two electrons.
And the ground state-- if I usespin notation, is a singlet.
So that's this.
But does the groundstate of helium
fulfill our definitionof an entangled state?
Well, if you find a wayto switch off the Coulomb
potential, and thenthe electrons separate
from each other, they stillmaintain their spin singlet
character, then you cantake them, measure them,
take measurements,manipulate them.
But since nobody hascome up with a good idea
how to switch off theCoulomb potential in an atom,
you can neverseparate the states.
And it is physicallyimpossible to address this
so the two electrons seethem separately and such.
So this state is notentangled, because it's not--
the two systemscannot be separated.
What is usually a goodchoice for entanglement--
and this is why we discussit here with photons--
is you have photon states.
Photons always fly away.
Photons are in a certainsuperposition state.
You can always separate them,and take them individually.
So let's assume we havetwo photons, two modes.
We have two photons--actually, the two photons can
be in one spatialmode, but we are now
playing with the polarization--horizontal, vertical.
So if we have a statewith horizontal- vertical
polarization, this is a niceentangled state of two photons.
So what did means isthat we have photon each.
One is vertical.
And one is horizontal.
But you don't know which one.
If you would justlook at one photon,
it would be 50%horizontal, 50% vertical.
It would be completelyunpolarized,
which would be a randomstate, which would require
and density matrixfor its description.
But if one photon ishorizontal, the other one
is vertical and vice versa.
So it's a pure state, butall the pureness of the state
comes from theentanglement and not
from what one photondoes by itself.
So these are twophotons in one mode,
and they arepolarization entangled.
Or this brings us back to ourdual [? Rail ?] single photon
states.
We have two photons, two qubitsand each is in two modes.
So our 0 state-- andjust to make sure
that you do not confuse it withno photon, our logic 0 state,
so L means logic here--is that the photon
is in the second mode, andthe 1 state of our logic state
means that the singlephoton is in the other mode.
So we can now havean entangled state,
which is now this 0 1 1 0 state.
But these are nowlogic states, which
means that the 0 has one photon.
It has a photon inone of the modes,
and the one has a photonin the other mode.
So each state herehas two photons,
but then the twophotons have-- 0 1
and 1 0 are switched in thetwo parts of the wave function.
And we actually sawin the last unit
how Kerr medium andan interferometer
can generate this state.
So yes?
AUDIENCE: [INAUDIBLE]
PROFESSOR: Thereare two such states.
I mean, I will later tellyou what the four famous Bell
states are.
There is one which hasa plus sign and one
which has a minus sign.
So when we talk aboutspins in singlet state,
it's often morenatural the minus sign.
Here what naturallyemerged was the plus sign,
but they are bothsort of Bell states
and therefore, they havewhat Einstein-Podolsky-Rosen
introduced into it.
So tolerate both signs.
They are two differentstates, but for the purpose
of the current discussion,they have the same property--
they're maximally entangled.
Other questions?
OK, so let me point out that theproperties of entangled states
always involve two qualities.
One is the non-local character,because we have correlation
between two subsystems which maybe together when they interact,
but then they can be separated.
So we have correlationswhich happen between the two
systems which area distance apart.
And we later come back when wetalk about Gauss inequalities
and that we know that physicshas non-local aspects.
And secondly, if youcan separate two parts
and they interactwith the environment,
the environment mayinteract with them
differently in thosetwo different parts.
And therefore, entangled statesare always regarded as fragile
against decoherence.
And it's a technical challengehow do you find states?
How do you implement entangledstates which are robust?
Just to give youone example, if you
have an entangled state whichis based on electron spin,
you may be more than1,000 times more sensitive
to magnetic field fluctuationsin your laboratory
than if you have qubits whichare entangled states which
are based on nuclear spin.
So that's a big researcharea to find states which
are less sensitive, or evenyou immune against decoherence.
OK, so I've mentioned to youthat entangled states are
states which youcannot factorize.
But now we can sort of startplaying with that definition.
And we say, OK, if you havean entangled state which
is up-down plus down-up, butnow the contribution of down-up
has only a tiny,little amplitude.
So it's almost apure state which
can be factorized with a littlebit of an extra configuration
which prevents usfrom factorizing that.
I mean, that doesn't looklike good entanglement.
It looks at thewhole entanglement
of the state dependson very small admixture
to the wave function.
And so what wewant to address now
is how can we quantify that?
How can we look atthis data and say, hey,
this is sort of not astrongly entangled state.
It has only a weakamount of entanglement.
So let's not forget,entanglement is a resource.
Entanglement allows youto do teleportation.
Entanglement allows you todo more precise measurements.
And what I want to conveyyou, if a state is only
weakly entangled,it doesn't help
you much to achieve precisionbeyond the standard limit,
effective teleportation,and such things.
Before I introduce severalmeasures for entanglement,
let me talk aboutentanglement purification.
It's a very nicesubject which tells you
that if you haveweakly entangled state,
you can make themmore entangled.
And actually, theeffort you have
to spend to make a weaklyentangled state more entangled
can actually act as ameasurement how entangled
was your state inthe first place.
So the purificationis introducing us
with one measurementfor entanglement,
as I just said, but italso gives you an idea how
quantum state canbe manipulated.
Purification is alsothe first example
we encounter in thiscourse for new insight
into quantum physics.
A lot of people thoughtquantum physics, at least
non-relativisticquantum physics that
was invented in the '20sin the last century,
and by now we'veunderstood it all.
But there was an aspectof quantum physics,
which I think nobody understood.
And this is when you havea quantum state, which
may decohere, a quantum statewhich may no longer be pure,
that you have waysto error correction.
You have ways to get thepure quantum state back.
And ultimately, Imean, in the early days
when I learnedquantum physics, I
thought if you have aquantum state, that's nice.
But if the quantum-nesshas decayed away,
you can't get it back.
But this is something welearn now from the new methods
and new approach inquantum information science
that you can do quantumerror correction.
You can have a stagewhich has decohered
and you can get back to it.
And there is somethingwhich-- it's not yet
that which we're discussingtoday-- but in purification,
you have states which haveinferior entanglement,
but you don't need toget stuck with that.
You can take several ofthe purely entangled states
and create the maximallyentangled state out of it.
So that's what Iwant to show you.
So you should lookat it as one example
that wow, it'sreally cool how we
can have quantum stateswith inferior quality.
And by doing quantumoperation on those states,
we get something whichis more entangled,
and therefore, if that's ourpurpose, has a higher quality.
So to introducepurification, I'm
simply mentioning what are--for two qubits-- the standard,
maximally entangled states.
In 10 minutes or so,we talk about how do we
measure entanglement,and indeed, those states
will come out as beingmaximally entangled.
But you already get the idea.
Maximally entangledmeans they're not
factorizable and notjust by a small margin.
They may be two equalparts of-- you always
need two equal partsof 0 1 and 1 0,
and this state hasmaximally entangled.
It's maximally non-factorizable.
So the four states whichare actually the Bell
states-- the famous Bellbasis-- are 0 1 plus minus 1 0
and 0 0 plus minus 1 1.
Just to remind you if if youhave two systems, each of them
has two states.
You can think of spin-- spinup, down for particle one,
spin up down for particle two.
That Hilbert spaceis four-dimensional.
So you need afour-dimensional basis.
And the trivial basis is up up,down down, up down, down up.
But what is relevantfor entangled states,
we often use thebasis of Bell states.
And this is a newbasis which spans
the four-dimensionalHilbert space,
but each of those basesfunction is maximally entangled.
OK we should correctlynormalize them.
And that state is oftencalled psi plus minus.
And this here is phi plus minus.
OK, so now let's get apurely entangled state.
And let this state 0 0 plus 1 1.
But we will havean example where
b may be very, very small.
So those states, this stateis entangled for all choices
of a and b.
So the question is now how canwe take such an arbitrary state
where a and b-- one of themmay be small, and create
a standard Bell state?
So what we haveto assume for that
is that we have a largesupply of such states.
And so let's assume we havelarge supply, identical copies.
And now we want totake two such copies.
And what I want to outlineyou is the following--
you take sort oftwo of your copies,
and you do a measurement.
And I will tell you what kindof qubit operation we need,
what kind ofmeasurement we perform.
And then when the outcome of themeasurement is such and such,
you say-- OK let me be specific.
So if you take twocopies, we have a total
of two states withtwo photons each.
And now we performa quantum operation
on two of the photons, andthe other two photons we leave
untouched.
So now it depends when themeasurement of the two photons
has a good outcome, weknow those other two
photons are maximally entangled.
They're in a Bell state.
If the outcome of themeasurement is bad,
it tells us the twophotons are not entangled,
and we throw them away.
So therefore, we havea finite probability
by performing measurementsthat a pair of our sample
state with thecoefficient a and b
will result into a maximallyentangled state-- in a Bell
state.
And I want to describe nowwhat is the protocol, what
is the procedureto implement that.
And what we willfind-- and this is
what I think you should expecthere-- if the initial state has
very bad entanglement in thesense that b is very small,
we will need many, manyattempts doing many measurements
on our pair of states beforewe produce a Bell state.
It's probabilistic,but the probability
to succeed in preparing aBell state will depend on-- we
will see-- theproduct of a and b.
Any questions?
Yes.
AUDIENCE: Does the assumptionof large supply of the state
violate no-cloning in any sense?
PROFESSOR: Thequestion is, does it
violate the no-cloning theorem?
No, it doesn't,otherwise I would not
say we have a large supply,because the no-cloning theorem
is absolute.
But it simply means wecannot have one state,
and then clone and clonemore and more copies.
Let me be specific.
If you have anexperiment which produces
a certain superpositionstate, you
can just push the button onyour experiment many times,
and produce, in theidentical create,
as many states as you want.
If you have spin-upstate-- well,
this is now for two photons,but if you have a spin-up state,
you can make asmany copies as you
want of the state which hasbeen rotated by a certain angle.
So therefore, instate preparation,
by going throughthe exact procedure,
we can just create as manycopies of a state we want.
The no-cloning [INAUDIBLE]meant the following--
I give you one statewhich may be a spin which
has been rotatedat a certain angle.
You know nothingabout the state.
And now you should tryto make a copy out of it.
And the answer is you can't,because any measurement you do
is-- if the particlewere spin up
and you would measurespin up or speed down,
you could say I got spin up.
Now I produce 10spin up particles.
But you don't knowalong which axis
the spin has been prepared.
So unless you know which axisthe spin has been oriented,
and if you choose another axis,you have irreversibly lost
information whichcannot be retrieved.
I don't know if ithelps you, but if you
have a certain state, andyou're going to measure it
without destroying it, youneed a quantum non-demolition
measurement.
If you're in energy eigenstate,you can measure energy.
If you're in a spin eigenstatewhich points along Z,
you can measure the directionof the spin in the Z direction
without destroying it.
So if you can do a quantumnon-demolition measurement
on a state, you could clone it.
But that violates the assumptionthat if I give you an arbitrary
state, you do not knowby definition what kind
of measurement is anon-demolition measurement.
You just take yourchance, you try
to take a Stern-Gerlachexperiment, separate the spins
in the Z component,and then it turns out
I gave you a state whichis polarized along x.
So that's a subtle, butimportant difference.
Other questions?
So we take two copies andlet's bring in Alice and Bob.
So the first photon weassociate with Alice.
And the second photonis associated with Bob.
So if you take twocopies-- we have now
is an Hilbert space, afour-dimensional Hilbert
space, a direct product.
And if you just takethe state and calculate
the direct product, you get fourterms-- 0 0 1 1, 0 0 1 1, 1 1
0 0, and 1 1 1 1.
And the coefficientsare given here.
Let me just underlinethat it if you
think we have some statewith some entanglement,
and we separate thesystem, one goes to Alice
and one goes to Bob.
So the one which Alice hasis the first part of it
those states.
And Bob has the other part.
So the protocol is now thatAlice and Bob first, they're
not doing a measurement.
They're not readingout the system.
They perform aunitary operation.
And what Alice andBob have formed
is the controlled NOToperation on the two qubits.
Let me just write itdown and then explain it.
Perform what is called thecontrolled NOT or CNOT gate.
And I've explained beforein the last section how
the controlled NOTcan be performed
using a non-linearMach-Zehnder interferometer.
So Bob and Alice bothrun their two photons
with the non-linearMach-Zehnder interferometer.
So what is a controlled NOT?
Let me remind you.
If you have two qubits, thefirst one is the control.
If the control is 1,you flip the second one.
If the control is 0, you donothing to the second one.
So the controlledCNOT transforms.
So since the first qubitis the control qubit, out
of those four combinations,the controlled NOT only
does something if Alice'scontrols and Bob's controls
is 1, and then thesecond bit is flipped.
If Alice's and Bob'scontrols are 0,
they do nothingto the second bit.
So therefore, the 1 1 0is transformed into 1 1 1,
and the 1 1 1 1 istransformed into 1 1 0 0.
So that's the first operation.
Let me just indicate it.
So what has happened here, the0 0 has been flipped into 1 1
and the 1 1 has beenflipped into 0 0.
That's the first step.
The second step isthat now Alice and Bob
measure their target qubit.
What does that mean?
We have a controlledNOT operation.
In the controlledNOT operation, we
have the first oneis the control qubit.
The second one is thetarget of the operation.
So in our, the wayhow we write it,
Alice's target isthe third in line,
and Bob is the fourth in line.
So now Alice and Bobmeasure the target qubits.
Let me just be specific.
So Alice has numberone and number three.
Bob has number two andfour, and the target qubits
are the third and fourth.
So what is the probability thatAlice and Bob measure both 1 1,
that they both findthe target qubit of 1?
Well, it is this oneand it is this one
where the controlledNOT has flipped it.
So one has the probabilitya squared b squared.
The other one has probabilitya squared b squared.
So with probability 2 asquared b squared-- well,
let's allow a andb to be complex.
They obtain 1 and 1.
So in this case, whatis left is here 0 0.
What is here left is 1 1.
You may just needan intermediate line
to write down what the stateis after the measurement.
But if you read itoff here, you find
that when theyobtain 1 1 1, that
implies the post measurementstate is then 0 0 plus 1 1
divided by square of 2, andthis is one of our Bell states.
So what we had is we hada system of four photons
after a qubit operation,the controlled NOT.
Alice and Bob do a measurementtogether on two of the photons.
Collins.
And if the outcome ofthis measurement is 1 1,
the rest of the systemis in the Bell state.
So we assume thatAlice and Bob have
a large supply of those copies.
So let's assume that theystart with n copies of psi.
And then, because theprobability is m over n,
they successfully obtain mcopies of the Bell state.
And the question is,what is the probability
in the limit ofa large ensemble.
And we will see in a fewmoments that this is actually
a measurement of how entangledthe original space is.
Any questionsabout purification?
Well, then let'smeasure entanglement.
The basic ideahere is that if you
have a state up/down plusdown/up, it's a pure state.
But this pure statehas a correlation
between the two subsystems.
And the idea isnow entanglement is
that there is a correlationbetween the two subsystems.
And you can say well,it would be a good way
to characterize entanglement ifI only look at one subsystem.
In this case, youlook at one subsystem,
and you would just randomlysee spin up, spin down.
Spin up spin down is describedby the unity density matrix,
which is, therefore, themost random state on earth.
So if you have a pure state andyou only look at one subsystem,
the more randomthe subsystem is,
the more the purenessof the initial state
comes from correlations,comes what is entanglement.
So therefore, what Iwant to introduce now
as a measure of entanglement isthat we take the total system
and then we performthe partial trace.
We only look at one subsystem.
And the purer the subsystemis, the less entangled
it is, because inthe ultimate limit
that our system factorizes intotwo pure states, when we look
at the subsystem, westill have a pure state.
So the purity of the subsystemin terms of pure state
is now a measureof entanglement.
The purer the subsystem is,the less entangled it was.
So the basic idea hereis entanglement is
related to correlations.
And if you take halfof a Bell state--
so if two particles whichare an EPR pair and we
take half of it-- then halfof it is completely random.
So let me illustrate that.
So if you take onehalf of-- let's just
take one of the Bellstates, phi plus,
which was the superpositionof 0 0 plus 1 1.
So let me be specific, becausewe need it for the definition.
We describe this ensemble ofthis system in a pure EPR state
by a density matrix.
The density matrixis nothing else
than you take your total system.
So this is now thedensity matrix.
So in our case, psi ab is just the state.
And now we describethe subsystem
by performing apartial trace on rho.
The partial trace isover the system b.
And that means we take alleigenfunctions k b of state b,
sum over all k's, andthis is our partial trace.
So therefore, we would takeour statistical operator
from the line above, andperform the partial trace
where those states arethe state 0 and 1 of b.
So these are the states of b.
So when you do that,you just insert that.
You find that whatyou get is 1/2.
a has been traced out,so b has been traced out.
And what we obtain for a isjust from the two terms above.
This gives that,and this gives that.
And you immediately realize thatthis is 1/2 times the identity
matrix.
So therefore, wehave shown that this
is a completely random state.
So now we can characterizethe randomness
of the partial trace of thedensity operator obtained
by performing the partial tracewith the standard von Neumann
entropy.
As a reminder, thevon Neumann entropy
for statistical operator rhois defined as the expectation
value of rho log rho, where wetake the logarithm with respect
to the base 2.
So this is the traceof rho log rho.
Or if we use theeigenvalues of rho,
we multiply eigenvalues with thelogarithm of the eigenvalues.
So for a pure state,the entropy is 0,
because a pure state hasone eigenvalue, which is 1,
and the log of 1 is 0, sowe get 0 for pure state.
For completelymixed state, we're
talking about a state whichhas two dimensions, so it
can be up and down.
A completely unique state hasprobabilities of 1/2 each.
And then we say the entropyof this state is one,
or we call it one bit.
Yes.
AUDIENCE: About thevolume [INAUDIBLE]
expectation of rholog rho is called
a trace [INAUDIBLE] expectationof log rho, expectation
of [INAUDIBLE] trace of theoperator times density matrix.
PROFESSOR: OK, so thisis just a reminder
of how we measure entropyof density matrix.
And now we applyit to entanglement.
We define now the entanglementfor the entanglement
e over state psi a b to bethe entropy of the density
matrix for system a aftertracing out system b.
And for pure state, this is-- itdoesn't matter whether we trace
out a or b if you startwith a pure state.
The entanglement, the entropyof the statistical operator
rho a and rho b are the same.
I tried for amoment to prove it.
I saw it quoted somewhere.
I didn't succeedin a split second,
so either Ioverlooked something,
or it's a little bit moreinvolved to show that.
So therefore, touse the inverts,
our definition says that theentropy, so the entanglement,
is nothing else than the entropyof the reduced density matrix.
And we immediately see ifwe have any of the four Bell
states, by performing thepartial trace over one qubit,
we obtain the identity matrix.
So therefore, the entropyof all the Bell states is 1.
Let me state withoutproof-- when we come back
to the purificationscheme the result
is that the probability orthe optimum probability--
if you do stupidmeasurements on your states,
of course you get nothing.
But the optimum strategy tocreate pure Bell states out
of your reservoir ofpoorly entangled states--
so for an optimum strategy, thesuccess probability m over n
actually turns out to benot a different measure
of entanglement.
It is the entanglementwhich we have just
defined through the entropyof the partial trace.
So therefore-- and Ithink this is nicely
illustrated with thepurification scheme--
entanglement is a real resource.
When you have betterentanglement to start with,
then you can get more copies.
You can get morepure Bell states
out of your supply ofpoorly entangled states.
So therefore, you losemore if your states are not
fully entangled.
You lose more of them,and therefore, the success
of the purificationscheme makes it clear
how entanglement is a resource.
If you have entanglement,it's precious.
You had to dosomething to get it.
I didn't point outentanglement is not
something which one numbercharacterize it, it's all.
We introduced to youalready another measurement
of entanglement throughthe Schmidt number,
which was inhomework number two.
And usually when youhave different measures
for entanglement, they'renot one to one related.
It seems that, similarly whenwe measured non-classic light,
we had a G2 function.
We had [INAUDIBLE]bunching, antibunching.
We have negativequasi probabilities.
And it's often clearthat one system which
is truly non-classical,fulfills all the criteria,
but how the quantitativemeasurements are related
to each other is really subtle.
In the case of entanglement,for a long time it
has even been a bigquestion in research--
if you have anarbitrary density matrix
with a complicatedmany-body system,
how can you even characterizethe entanglement?
We are focusinghere on pure states
where things are fairly simple.
But in the general situationof a many-body system,
it can be quite challengingjust define and measure
entanglement.
Any questions?
Yes.
AUDIENCE: If you have ageneral [INAUDIBLE] that's
not necessarily apure state, can you
show that it'salways the reduced
trace of the bigger [INAUDIBLE]?
PROFESSOR: Say again, if Ihave a general state which is--
AUDIENCE: You have a subsystem--let's say you have two spins,
and then you havea density matrix
for the first-- or actually justto say that you have one spin
and you have a densitymatrix for that single spin,
it's a matrix, notnecessarily a pure state.
Let's say it's a mixed state.
Then you can introducea fake second spin
and show that this matrix is thetrace of a matrix [INAUDIBLE]
and maybe just put that one ina pure state and do some stuff,
do some calculationsmore easily.
PROFESSOR: Yes.
If you have adensity matrix, you
can always regard it as apartial trace of a bigger
system.
That means you always representyour state as a pure state,
but it is entangledwith a bigger system.
However, what the big systemis, is by no means unique.
I'm missing thetechnical word-- it's
called unravelingthe density matrix.
You can always represent thedensity matrix written down
in forms of pure state.
But this unraveling ofthe density matrix-- no,
actually, its related.
When I said yes, I thoughtabout the unraveling
of the density matrix.
You can always writedown a density matrix
as a mixture of pure states,but which are the pure states
is not unique.
So when you say mydensity matrix is
half of the atoms are spinup and half of the atoms
are spin down, somebody elsewould say, no, that's not true.
Half of the atoms are spin[INAUDIBLE] and spin x
and some are in spin minusx, and those representations
are equivalent.
So I was just thinking of thatas to write down the density
matrix in the pure state basis.
But you are asking about--
AUDIENCE: [INAUDIBLE] whathe's asking about [INAUDIBLE]
PROFESSOR: Somehow, butI was thinking of that,
but I think the answerto your question is yes.
So you said, you confirmed that.
AUDIENCE: Yes, butI am forgetting
the name of the theorem here.
AUDIENCE: Isn't it justpurification again?
AUDIENCE: Yeah, it'srelated to purification.
You can prove that you'reusing purification.
AUDIENCE: [INAUDIBLE]
AUDIENCE: Usingpurification [INAUDIBLE]
but I'm completely forgettingthe names of [INAUDIBLE]
PROFESSOR: But wait.
We've talked hereabout-- just to be clear,
we've talked here aboutpurification of a pure state.
We started with apure state and we
purified it to be a Bell stateby doing certain measurements.
So we've not talked hereabout density matrices,
but it sounds very plausiblethat you can always
construct a bigger system.
But I should look it up andsee if there is an exact proof.
It's-- intuitivelyit sounds correct.
Other questions?
OK, so we have discussed thedefinition of entangled state.
We've talked about purificationof entangled states
and how to measure it.
I want to talk nowabout how we can
create entangledstates for atoms.
Maybe let me say the following--so by now we are convinced.
Entangled states are great,and we want to create them.
And for photons, I showed youthat some simple element--
beam splitters, Kerr medium--can create entanglement.
It's much harder todo that with atoms.
Now, we want todo it with atoms,
because atoms-- incontrast to light-- they're
pretty much staying still,whereas photons always
move at the speed of light.
And the only way tomake photons stand still
is you put them in acavity and then they
bounce back and forth.
But even in super cavitieswith the highest reflectivity
mirror, you get-- what arethe longest ring-down times
you get-- fraction ofa second, milliseconds,
depending kind ofin which domain
you work-- microwavedomain, optical domain.
Whereas atoms, you can hold ontoyour qubits for a long time.
So therefore, if youwant to use entanglement
as a resource forcertain protocols,
you want to have entangled atomswhere the entanglement would
like for a long time.
So the questionis now for atoms,
we do not have perfect beamsplitters and perfect Kerr
mediums.
Also, we can controlinteractions between atoms
for [INAUDIBLE] usingVSEPR resonances,
but that's another story.
But now let me ask a question,how do we entangle atoms?
And I want to firstshow you that if you
had the right system,things can be fairly simple.
This is a suggestion whichwas made almost 20 years ago,
and it goes likefollows-- if you
have a diatomic moleculeof two identical atoms,
in this casemercury, and mercury
doesn't have-- this moleculedoesn't have any electron spin,
but mercury has a nuclear spin.
And if you now photo-dissociatemercury and two mercury atoms
fly away, then you haveseparated a spin singlet
into two parts.
And now you havecreated the Bell state
up/down minus down/up.
So you could say this is sortof the example-- this realizes
very closely the example Igave you with the helium atom,
where I said you have anelectron in spin up and spin
down, but there was no wayto separate the electrons.
Therefore, you can say it is astate which has entanglement,
but it's not entanglementas a resource.
But right now, hereit becomes a resource
once you have found amethod to separate the two
parts of the wave function thatyou can give one to Alice, give
one to Bob, and they canperform the operations on it.
Well, if it looks sosimple, why don't we
have entangled atoms everywhere?
This experiment has beensuggested 20 years ago,
but nobody has done it,or some several groups
have worked on it.
You need a moleculewith suitable states.
You don't want any electronspin which interferes with that.
All you want to haveis two nuclear spins.
You want a singlet state here.
So those requirementsare not easily fulfilled
with real atoms.
Of course we liked-- and alsowho wants to work with mercury?
Mercury has transitionsin the ultraviolet.
I think there's only onegroup in the world who
has operated a magnetooptic trap with mercury.
So it's not your tabletop atom.
So therefore, let'snow talk about a method
how we can entangleatoms by using light.
So if you takeatoms, maybe we can
use the light whichhas been emitted
from the atoms, performingmeasurement on the light,
and then depending on theoutcome of the measurement,
we know the atoms are entangled.
So Professor [? Swann ?] callsthis the poor man's entangler.
I don't know why poor man's.
You still need quite abit of equipment to do it.
But at least it seemsthe poor man's solution
if you can't make theabove experiment work.
So this addressesa question that,
just for technicalreasons matter
is more difficult to entangle.
Whereas photons are easy.
Yeah so you can saythe idea is related
to the purification scheme.
We can't take a system of twoatoms, atom one and atom two
which are unentangled, and weshine some laser light on them,
excite them.
Then they emit photons.
So all we can dois-- we can only
talk to the atomswith the photons.
So the only thingwe can do now is
we can measure the two photons.
And then the situation will besimilar as in the purification
scheme, where Alice andBob did a measurement.
If Alice and Bob said bothof our target qubits are one,
then what was left behind wasin a pure, entangled Bell state.
And similarly, what you want todo here is we have two atoms.
There was nothing special aboutthem but they scatter light.
And if you now perform ameasurement on the photons
and the outcome of themeasurement is positive,
then we know for sure what hasbeen left behind is entangled.
That's the idea.
So it shares with thepurification scheme
that it is a probabilisticentanglement.
You run yourexperiment many times.
You do a measurement.
If the measurementis positive, you
say now I have anentangled state.
And maybe then you can move onto measure the entanglement.
You can move on to doteleportation, other things you
want to do withentangled states.
But if your measurementssays no, bad luck.
The probability hasn'tworked out this time.
You just press a buttonagain, scatter light
again of your two atomsand/or your two ions
and hope that the nextoutcome is positive.
So the idea is wewant to introduce now
a probabilistic method.
It's based on twoatoms emitting light.
And the result is witha certain probability
that we get entangled atoms.
Let me just scroll down andshow you one thing I want to--
When I prepare the notes andeverything is clear to me,
but then I want to explainit to you and say hey,
I have to motivate you.
If I just gothrough a few lines,
you wonder what it leads to.
So let me maybe firstgive you the explanation
I would have given youa little bit later.
What is an entangledstate is if the atoms are
in maybe one of two groundstates-- one atom is in one
ground state, the otherone is in the other one,
or it is flipped.
So we know one atom isin the ground state one.
One atom is in theground state two,
but we don't knowwhich one is in which.
It is in thesuperposition state.
So what you neednow in this scheme
is the following-- ifthe atoms scatter light,
they can go to twodifferent ground states.
And we know towhich ground state
they have gone, becausedue to selection rules,
they reach one ground statewith polarization one.
They reach one ground statewith polarization two.
So therefore, when we hadtwo atoms, they emit light
and we would measure thepolarization of the light,
we would know inwhich state they are.
But if you know atom1 is in state 1,
and atom 2 is in state2, this is not entangled.
So what we have to do is whenthe two atoms have emitted
photons, we have to mix thephoton at the beam splitter.
And after the beamsplitter, when
we measure that thephoton is polarized,
we know that one of the atomsis in one of the ground states,
but we don't know which.
So therefore, we can nowuse-- the photon carries
through the polarization theinformation in which ground
state the atom is.
But now we have to performoperations to the photons
that for fundamentalreasons, fundamental quantum
measurement, we know thereis one photon in one state,
but we have no wayto ever figure out
which atom hasemitted the photon.
So that's the idea,and the protocol
I want to show you now is whatdo we have to do to the two
photons to make surethat we never know,
that we can't find out whichatom has emitted the photon.
And we have to do littlebit more tricks also
to make sure that when we doa measurement on the photon,
we know the atoms arein the Bell state.
Questions about that?
So therefore, weneed a beam splitter.
So we can come back towhat we have already
introduced in the last section.
So each atom will emit a photon.
And I will actually showyou at the end of the class
that people haveentangled with that scheme
two ions which were intwo different ion traps.
So you have two distance atoms.
They emit light, and afterthe measurement process,
you know they are entangled.
And that's pretty cool.
So the situation how we do it iswe have two photons which come.
But the first thingwe have to make sure
is we have toscramble the photons.
We have to make surethat we can't find out
from which atom thephoton has come,
and this is done withthe beam splitter.
So there is one aspectof beam splitters
and two photons which haveto explain to you now.
And this is this famousHUM, Hong-Ou-Mandel.
This is the Hong-Ou-Mandelinterference.
It's a very famouseffect, and it's actually
very, very special.
So let me explainwhat happens when
we have two photonsin the same state--
two identical photons, samefrequency, same polarization--
coming to a beam splitter.
So we have alreadyall the tools.
So we have a beamsplitter characterized
by this angle theta, whichthrough cosine theta,
sine theta determines whatthe beam splitter is doing.
And all we want to do is weapply it now to the state 1 1.
So what we will find isthat there is a probability
to get one photon each.
Then there is a probability toget two photons in one output.
And it will actuallybe the same probability
with a minus sign in theamplitude to get 0 2.
And the matrix which actson each of the photons
has cosines and sines.
So what we get is productsof trigonometric functions.
And here for gettingtwo photons in one arm,
it's square root 2,cosine theta, sine theta.
And the spectacularthing here is
what happens when we havea balanced beam splitter.
If you have the50-50 beam splitter--
and this is called theHong-Ou-Mandel interference,
you have the situation whereyou have a beam splitter,
you have one photon,you have two photons.
And it is absolutelyimpossible that afterwards, you
have one photon in each arm.
So you send two photonson a beam splitter,
and after the beamsplitter is, you
have either two photonscoming out here,
or two photons coming out there.
You can say it's Poissonicstimulation photons and bosons.
That all plays a role.
If one photon goes one path,the other photons follow suit.
This is now very powerful,because it already
happens, of course, when thetwo photons are identical.
We had to use in thisformalism the photon is
in the same mode on each part.
But that means nowthe following--
if you set up photodetectors here,
and each photondetector makes click,
you know you hadone photon each.
And that tells you that the twophotons were not identical--
for instance, because theyhave different polarizations.
So if you want tonow, with the atoms,
get a Bell state, whereatoms decay-- one atom
decays to stateone, one atom decays
to state two-- thesignature of that
would be that wehave one atom each.
And if you do it right, one atomeach is an ingredient for 1 2
plus 2 1 for Bell state.
We can detect that we have onephoton each because at such
a beam splitter, it'sonly in this situation
that we can get one photonafter each beam splitter
if we start with twonon-identical photons.
Of course, by the way,experimentally there are quite
some challenges, even ifyou have identical photons
of the same polarization, ifthey arrive as a nanosecond
pulse, and they don't arriveexactly at the same time
at the beam splitter, thenyou first split one photon,
and then the next photon,and the two photons cannot
influence each other.
So there are a lot ofexperimental requirements
to realize thisideal experiment.
So as I was preparingfor today's class,
I actually saw a paper whichjust came out in "Science."
So in this month's"Science" they
discussed the Hong-Ou-Mandelinterference experiment
with fermions.
So let me justexplain what happens.
OK, now it fits.
So if you have twoidentical photons,
if you have two particles whichimpinge on the beam splitter--
they are the two input beamsfor the beam splitter--
you would say you havefour different outcomes.
One is both come outhere, both come out here.
Or they are bothreflected, or they are both
transmitted through.
And what happens is bosons--as I just pointed out--
bosons characterized byphotons can only do that.
Identical photonswant two bunch up.
They appear in pairs-- 50%left output, 50% right output.
Well, for fermions, theyjust do the opposite.
For fermions, you willalways get one particle each.
You may immediately,of course, explain it
with the Pauli ExclusionPrinciple, which does not
allow two particles tobe in the same state
after the beam splitter.
And you should contrast itwith classical particles.
When you have twoclassical particles,
you will actually find that allof those four possibilities,
each of them hasa 25% probability.
So it was a majorexperiment which
was featured in "Science"when people realized
that with electrons,they created electrons
in a semiconductorstructure, and showed
through somestatistical measurement
that this was thephysics which happened.
The measurement they didis, I forgot details--
if you have bosons and you geteither two here or two there,
you have more fluctuations inyour system than for fermions.
And they conclusivelyshowed that they
had realized the Hong-Ou-Mandelinterference for fermions.
I think we have to stop.
Let me just add one morething and then we are done.
So this Hong-Ou-Mandelinterference
is at the heart of howperform the measurement which
is ultimatelyentangling the atoms.
But we need one more element.
We need sort of to scramblethe photons in one more way,
and this is by adding circularpolarizers at the input.
So we assume for nowthat we start out
with linear polarizationin those states.
And here is our beam splitter.
Here is mode a and modebe, which we detect.
And before we measurethis Hong interference,
we put in quarter-waveplates which
provide circular polarization.
If you start with linearlypolarized light-- we
put in a polarizer-- afterthe circular polarizer,
we have this linearsuperposition
of horizontal andvertical at mode one,
and we have linearpolarization-- superposition
of linear polarizationin mode two.
So this is a situation at theinput of the beam splitter.
And if we expand it,we have probabilities
where the polarizationis different,
and where thepolarization is the same.
So we have two detectors here.
And if both detectorsclick, then we
know that the inputto the interferometer
was not H H nor V V,because in that case,
the Hong-Ou-Mandel interferencewould have directed
both photons to oneoutput, and we would not
have obtained clicks from both.
So therefore, whenboth detectors click,
we know that the quantum statebefore the interferometer--
before the beam splitter-- wasH V or V H-- or, of course,
in another basis, one of those.
And this is sort ofthe ingredient, which
I will show you onWednesday, which
can lead to probabilisticentanglement of atoms.
Any questions?
OK, one announcement-- wepost this week's homework
assignment later today.
It will be due in a week.
See you on Wednesday.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651align:start position:0% in this segment we introduce the concept
align:start position:0%in this segment we introduce the concept
align:start position:0%in this segment we introduce the conceptof continuous random variables and their
align:start position:0%of continuous random variables and their
align:start position:0%of continuous random variables and theircharacterization in terms of probability
align:start position:0%characterization in terms of probability
align:start position:0%characterization in terms of probabilitydensity functions or PDFs for short let
align:start position:0%density functions or PDFs for short let
align:start position:0%density functions or PDFs for short letus first go back to discrete random
align:start position:0%us first go back to discrete random
align:start position:0%us first go back to discrete randomvariables a discrete random variable
align:start position:0%variables a discrete random variable
align:start position:0%variables a discrete random variabletakes values in a discrete set there is
align:start position:0%takes values in a discrete set there is
align:start position:0%takes values in a discrete set there isa total of 1 unit of probability
align:start position:0%a total of 1 unit of probability
align:start position:0%a total of 1 unit of probabilityassigned to the possible values and the
align:start position:0%assigned to the possible values and the
align:start position:0%assigned to the possible values and thePMF tells us exactly how much of this
align:start position:0%PMF tells us exactly how much of this
align:start position:0%PMF tells us exactly how much of thisprobability is assigned to each value so
align:start position:0%probability is assigned to each value so
align:start position:0%probability is assigned to each value sowe can think of the bars in the PMF as
align:start position:0%we can think of the bars in the PMF as
align:start position:0%we can think of the bars in the PMF aspoint masses with positive weight that
align:start position:0%point masses with positive weight that
align:start position:0%point masses with positive weight thatsit on top of each possible numerical
align:start position:0%sit on top of each possible numerical
align:start position:0%sit on top of each possible numericalvalue and we can calculate the
align:start position:0%value and we can calculate the
align:start position:0%value and we can calculate theprobability that the random variable
align:start position:0%probability that the random variable
align:start position:0%probability that the random variablefalls inside an interval by adding all
align:start position:0%falls inside an interval by adding all
align:start position:0%falls inside an interval by adding allthe masses that sit on top of that
align:start position:0%the masses that sit on top of that
align:start position:0%the masses that sit on top of thatinterval so for example if we're looking
align:start position:0%interval so for example if we're looking
align:start position:0%interval so for example if we're lookingat the interval from A to B the
align:start position:0%at the interval from A to B the
align:start position:0%at the interval from A to B theprobability of this interval is equal to
align:start position:0%probability of this interval is equal to
align:start position:0%probability of this interval is equal tothe sum of the probabilities of these
align:start position:0%the sum of the probabilities of these
align:start position:0%the sum of the probabilities of thesethree masses that fall inside this
align:start position:0%three masses that fall inside this
align:start position:0%three masses that fall inside thisinterval on the other hand a continuous
align:start position:0%interval on the other hand a continuous
align:start position:0%interval on the other hand a continuousrandom variable will be taking values
align:start position:0%random variable will be taking values
align:start position:0%random variable will be taking valuesover a continuous range for example the
align:start position:0%over a continuous range for example the
align:start position:0%over a continuous range for example thereal line or an interval on the real
align:start position:0%real line or an interval on the real
align:start position:0%real line or an interval on the realline in this case we still have one
align:start position:0%line in this case we still have one
align:start position:0%line in this case we still have onetotal unit of probability mass that is
align:start position:0%total unit of probability mass that is
align:start position:0%total unit of probability mass that isassigned to the possible values of the
align:start position:0%assigned to the possible values of the
align:start position:0%assigned to the possible values of therandom variable except that this unit of
align:start position:0%random variable except that this unit of
align:start position:0%random variable except that this unit ofmass is spread all over the real line
align:start position:0%mass is spread all over the real line
align:start position:0%mass is spread all over the real linebut it is not spread in a uniform manner
align:start position:0%but it is not spread in a uniform manner
align:start position:0%but it is not spread in a uniform mannersome parts of the real line have more
align:start position:0%some parts of the real line have more
align:start position:0%some parts of the real line have moremass per unit length some have less how
align:start position:0%mass per unit length some have less how
align:start position:0%mass per unit length some have less howmuch mass exactly is sitting on top of
align:start position:0%much mass exactly is sitting on top of
align:start position:0%much mass exactly is sitting on top ofeach part of the real line is described
align:start position:0%each part of the real line is described
align:start position:0%each part of the real line is describedby the probability density function this
align:start position:0%by the probability density function this
align:start position:0%by the probability density function thisfunction plotted here which we denote
align:start position:0%function plotted here which we denote
align:start position:0%function plotted here which we denotewith this notation the letter F will
align:start position:0%with this notation the letter F will
align:start position:0%with this notation the letter F willalways indicate that we are dealing with
align:start position:0%always indicate that we are dealing with
align:start position:0%always indicate that we are dealing withthe PDF and the subscript will indicate
align:start position:0%the PDF and the subscript will indicate
align:start position:0%the PDF and the subscript will indicatewhich random variable we're talking
align:start position:0%which random variable we're talking
align:start position:0%which random variable we're talkingabout we use the probability density
align:start position:0%about we use the probability density
align:start position:0%about we use the probability densityfunction to calculate the probability
align:start position:0%function to calculate the probability
align:start position:0%function to calculate the probabilitythat X lies in a certain interval let's
align:start position:0%that X lies in a certain interval let's
align:start position:0%that X lies in a certain interval let'ssay the interval from A to B and we
align:start position:0%say the interval from A to B and we
align:start position:0%say the interval from A to B and wecalculated by finding the area
align:start position:0%calculated by finding the area
align:start position:0%calculated by finding the areaunder the PDF that sits on top of that
align:start position:0%under the PDF that sits on top of that
align:start position:0%under the PDF that sits on top of thatinterval so this area here the shaded
align:start position:0%interval so this area here the shaded
align:start position:0%interval so this area here the shadedarea is the probability that X takes
align:start position:0%area is the probability that X takes
align:start position:0%area is the probability that X takesvalues in this interval think of
align:start position:0%values in this interval think of
align:start position:0%values in this interval think ofprobability as snowfall there is one
align:start position:0%probability as snowfall there is one
align:start position:0%probability as snowfall there is onepound of snow that has fallen on top of
align:start position:0%pound of snow that has fallen on top of
align:start position:0%pound of snow that has fallen on top ofthe real line the PDF tells us the
align:start position:0%the real line the PDF tells us the
align:start position:0%the real line the PDF tells us theheight of the snow accumulated over a
align:start position:0%height of the snow accumulated over a
align:start position:0%height of the snow accumulated over aparticular point we then find the weight
align:start position:0%particular point we then find the weight
align:start position:0%particular point we then find the weightof the overall amount of snow sitting on
align:start position:0%of the overall amount of snow sitting on
align:start position:0%of the overall amount of snow sitting ontop of an interval by calculating the
align:start position:0%top of an interval by calculating the
align:start position:0%top of an interval by calculating thearea under this curve of course
align:start position:0%area under this curve of course
align:start position:0%area under this curve of coursemathematically area under the curve is
align:start position:0%mathematically area under the curve is
align:start position:0%mathematically area under the curve isjust an integral so the probability that
align:start position:0%just an integral so the probability that
align:start position:0%just an integral so the probability thatX takes values in this interval is the
align:start position:0%X takes values in this interval is the
align:start position:0%X takes values in this interval is theintegral of the PDF over this particular
align:start position:0%integral of the PDF over this particular
align:start position:0%integral of the PDF over this particularinterval what property should the PDF
align:start position:0%interval what property should the PDF
align:start position:0%interval what property should the PDFhave by analogy with the discrete case a
align:start position:0%have by analogy with the discrete case a
align:start position:0%have by analogy with the discrete case aPDF must be non-negative because we do
align:start position:0%PDF must be non-negative because we do
align:start position:0%PDF must be non-negative because we donot want to get negative probabilities
align:start position:0%not want to get negative probabilities
align:start position:0%not want to get negative probabilitiesin the discrete case the sum of the PMF
align:start position:0%in the discrete case the sum of the PMF
align:start position:0%in the discrete case the sum of the PMFentries has to be equal to one in the
align:start position:0%entries has to be equal to one in the
align:start position:0%entries has to be equal to one in thecontinuous case X is certain to lie in
align:start position:0%continuous case X is certain to lie in
align:start position:0%continuous case X is certain to lie inthe interval between minus infinity and
align:start position:0%the interval between minus infinity and
align:start position:0%the interval between minus infinity andplus infinity so letting a be minus
align:start position:0%plus infinity so letting a be minus
align:start position:0%plus infinity so letting a be minusinfinity and B plus infinity we should
align:start position:0%infinity and B plus infinity we should
align:start position:0%infinity and B plus infinity we shouldget a probability of one so the total
align:start position:0%get a probability of one so the total
align:start position:0%get a probability of one so the totalarea under the PDF when we integrate
align:start position:0%area under the PDF when we integrate
align:start position:0%area under the PDF when we integrateover the entire real line should be
align:start position:0%over the entire real line should be
align:start position:0%over the entire real line should beequal to one these two conditions are
align:start position:0%equal to one these two conditions are
align:start position:0%equal to one these two conditions areall that we need in order to have a
align:start position:0%all that we need in order to have a
align:start position:0%all that we need in order to have alegitimate PDF we can now give a formal
align:start position:0%legitimate PDF we can now give a formal
align:start position:0%legitimate PDF we can now give a formaldefinition of what a continuous random
align:start position:0%definition of what a continuous random
align:start position:0%definition of what a continuous randomvariable is a continuous random variable
align:start position:0%variable is a continuous random variable
align:start position:0%variable is a continuous random variableis a random variable whose probabilities
align:start position:0%is a random variable whose probabilities
align:start position:0%is a random variable whose probabilitiescan be described by a PDF according to a
align:start position:0%can be described by a PDF according to a
align:start position:0%can be described by a PDF according to aformula of this type an important point
align:start position:0%formula of this type an important point
align:start position:0%formula of this type an important pointthe fact that a random variable takes
align:start position:0%the fact that a random variable takes
align:start position:0%the fact that a random variable takesvalues on a continuous set is not enough
align:start position:0%values on a continuous set is not enough
align:start position:0%values on a continuous set is not enoughto make it what we call a con
align:start position:0%to make it what we call a con
align:start position:0%to make it what we call a conDean use random variable for a
align:start position:0%Dean use random variable for a
align:start position:0%Dean use random variable for acontinuous random variable we're asking
align:start position:0%continuous random variable we're asking
align:start position:0%continuous random variable we're askingfor a bit more that it can be described
align:start position:0%for a bit more that it can be described
align:start position:0%for a bit more that it can be describedby a PDF that the formula of this type
align:start position:0%by a PDF that the formula of this type
align:start position:0%by a PDF that the formula of this typeis valid now once we have the
align:start position:0%is valid now once we have the
align:start position:0%is valid now once we have theprobabilities of intervals as given by a
align:start position:0%probabilities of intervals as given by a
align:start position:0%probabilities of intervals as given by aPDF we can use additivity to calculate
align:start position:0%PDF we can use additivity to calculate
align:start position:0%PDF we can use additivity to calculatethe probabilities of more complicated
align:start position:0%the probabilities of more complicated
align:start position:0%the probabilities of more complicatedsets for example if you are interested
align:start position:0%sets for example if you are interested
align:start position:0%sets for example if you are interestedin the probability that X lies between 1
align:start position:0%in the probability that X lies between 1
align:start position:0%in the probability that X lies between 1and 3 or that X lies between 4 & 5 so
align:start position:0%and 3 or that X lies between 4 & 5 so
align:start position:0%and 3 or that X lies between 4 & 5 sothis is the probability that X falls in
align:start position:0%this is the probability that X falls in
align:start position:0%this is the probability that X falls ina region that consists of two disjoint
align:start position:0%a region that consists of two disjoint
align:start position:0%a region that consists of two disjointintervals we find the probability of the
align:start position:0%intervals we find the probability of the
align:start position:0%intervals we find the probability of theunion of these two intervals by
align:start position:0%union of these two intervals by
align:start position:0%union of these two intervals byadditivity by adding the probabilities
align:start position:0%additivity by adding the probabilities
align:start position:0%additivity by adding the probabilitiesof the two intervals since these
align:start position:0%of the two intervals since these
align:start position:0%of the two intervals since theseintervals are disjoint and then we can
align:start position:0%intervals are disjoint and then we can
align:start position:0%intervals are disjoint and then we canuse the PDF to calculate the
align:start position:0%use the PDF to calculate the
align:start position:0%use the PDF to calculate theprobabilities of each one of these
align:start position:0%probabilities of each one of these
align:start position:0%probabilities of each one of theseintervals according to this formula at
align:start position:0%intervals according to this formula at
align:start position:0%intervals according to this formula atthis point you may be wondering what
align:start position:0%this point you may be wondering what
align:start position:0%this point you may be wondering whathappened to the sample space in all this
align:start position:0%happened to the sample space in all this
align:start position:0%happened to the sample space in all thisdiscussion well there is still an
align:start position:0%discussion well there is still an
align:start position:0%discussion well there is still anunderlying sample space lurking in the
align:start position:0%underlying sample space lurking in the
align:start position:0%underlying sample space lurking in thebackground and different outcomes in the
align:start position:0%background and different outcomes in the
align:start position:0%background and different outcomes in thesample space result in different
align:start position:0%sample space result in different
align:start position:0%sample space result in differentnumerical values for the random variable
align:start position:0%numerical values for the random variable
align:start position:0%numerical values for the random variableof interest and when we talk about the
align:start position:0%of interest and when we talk about the
align:start position:0%of interest and when we talk about theprobability that X takes values between
align:start position:0%probability that X takes values between
align:start position:0%probability that X takes values betweensome numbers a and B what we really mean
align:start position:0%some numbers a and B what we really mean
align:start position:0%some numbers a and B what we really meanis the probability of those outcomes for
align:start position:0%is the probability of those outcomes for
align:start position:0%is the probability of those outcomes forwhich the resulting value of X lies
align:start position:0%which the resulting value of X lies
align:start position:0%which the resulting value of X liesinside this particular interval so
align:start position:0%inside this particular interval so
align:start position:0%inside this particular interval sothat's what probability means on the
align:start position:0%that's what probability means on the
align:start position:0%that's what probability means on theother hand once we have a PDF in our
align:start position:0%other hand once we have a PDF in our
align:start position:0%other hand once we have a PDF in ourhands we can completely forget about the
align:start position:0%hands we can completely forget about the
align:start position:0%hands we can completely forget about theunderlying sample space
align:start position:0%underlying sample space
align:start position:0%underlying sample spacewe can carry out any calculations we may
align:start position:0%we can carry out any calculations we may
align:start position:0%we can carry out any calculations we maybe interested in by just working with
align:start position:0%be interested in by just working with
align:start position:0%be interested in by just working withthe PDF so as we move on in this course
align:start position:0%the PDF so as we move on in this course
align:start position:0%the PDF so as we move on in this coursethe sample space will be moved off stage
align:start position:0%the sample space will be moved off stage
align:start position:0%the sample space will be moved off stagethere will be less and less mention of
align:start position:0%there will be less and less mention of
align:start position:0%there will be less and less mention ofit and we will be working just directly
align:start position:0%it and we will be working just directly
align:start position:0%it and we will be working just directlywith PDFs or with pmf's if we are
align:start position:0%with PDFs or with pmf's if we are
align:start position:0%with PDFs or with pmf's if we aredealing with discrete random variables
align:start position:0%dealing with discrete random variables
align:start position:0%dealing with discrete random variableslet us now build a little bit on our
align:start position:0%let us now build a little bit on our
align:start position:0%let us now build a little bit on ourunderstanding of what PDFs really are by
align:start position:0%understanding of what PDFs really are by
align:start position:0%understanding of what PDFs really are bylooking at probabilities of small
align:start position:0%looking at probabilities of small
align:start position:0%looking at probabilities of smallintervals let us look at an interval
align:start position:0%intervals let us look at an interval
align:start position:0%intervals let us look at an intervalthat starts at some a and goes up to
align:start position:0%that starts at some a and goes up to
align:start position:0%that starts at some a and goes up tosome number a plus Delta so here Delta
align:start position:0%some number a plus Delta so here Delta
align:start position:0%some number a plus Delta so here Deltais a positive number but who are
align:start position:0%is a positive number but who are
align:start position:0%is a positive number but who areinterested in the case where Delta is
align:start position:0%interested in the case where Delta is
align:start position:0%interested in the case where Delta isvery small let us look at the
align:start position:0%very small let us look at the
align:start position:0%very small let us look at theprobability that X falls in this
align:start position:0%probability that X falls in this
align:start position:0%probability that X falls in thisinterval the probability that X lies
align:start position:0%interval the probability that X lies
align:start position:0%interval the probability that X liesinside this interval is the area of this
align:start position:0%inside this interval is the area of this
align:start position:0%inside this interval is the area of thisregion on the other hand as long as F
align:start position:0%region on the other hand as long as F
align:start position:0%region on the other hand as long as Fdoes not change too much over this
align:start position:0%does not change too much over this
align:start position:0%does not change too much over thislittle interval which will be the case
align:start position:0%little interval which will be the case
align:start position:0%little interval which will be the caseif we have a continuous density F then
align:start position:0%if we have a continuous density F then
align:start position:0%if we have a continuous density F thenwe can approximate the area of this
align:start position:0%we can approximate the area of this
align:start position:0%we can approximate the area of thisregion by the area of a rectangle where
align:start position:0%region by the area of a rectangle where
align:start position:0%region by the area of a rectangle wherewe keep the height constant the area of
align:start position:0%we keep the height constant the area of
align:start position:0%we keep the height constant the area ofthis rectangle is equal to the height
align:start position:0%this rectangle is equal to the height
align:start position:0%this rectangle is equal to the heightwhich is the value of the PDF at the
align:start position:0%which is the value of the PDF at the
align:start position:0%which is the value of the PDF at thepoint a times the base of the rectangle
align:start position:0%point a times the base of the rectangle
align:start position:0%point a times the base of the rectanglewhich is equal to Delta so this gives us
align:start position:0%which is equal to Delta so this gives us
align:start position:0%which is equal to Delta so this gives usan interpretation of PDFs in terms of
align:start position:0%an interpretation of PDFs in terms of
align:start position:0%an interpretation of PDFs in terms ofprobabilities of small intervals if we
align:start position:0%probabilities of small intervals if we
align:start position:0%probabilities of small intervals if wetake this factor of Delta and send it to
align:start position:0%take this factor of Delta and send it to
align:start position:0%take this factor of Delta and send it tothe other side in this approximate
align:start position:0%the other side in this approximate
align:start position:0%the other side in this approximateequality we see that the value of the
align:start position:0%equality we see that the value of the
align:start position:0%equality we see that the value of thePDF can be interpreted as probability
align:start position:0%PDF can be interpreted as probability
align:start position:0%PDF can be interpreted as probabilityper unit length so PDFs are not
align:start position:0%per unit length so PDFs are not
align:start position:0%per unit length so PDFs are notprobabilities their densities their
align:start position:0%probabilities their densities their
align:start position:0%probabilities their densities theirunits are probability per unit length
align:start position:0%units are probability per unit length
align:start position:0%units are probability per unit lengthnow if the probability per unit length
align:start position:0%now if the probability per unit length
align:start position:0%now if the probability per unit lengthis finite and the length Delta is sent
align:start position:0%is finite and the length Delta is sent
align:start position:0%is finite and the length Delta is sentto zero we will get zero probability
align:start position:0%to zero we will get zero probability
align:start position:0%to zero we will get zero probabilitymore formally if we look at this
align:start position:0%more formally if we look at this
align:start position:0%more formally if we look at thisintegral and we let B to be the same as
align:start position:0%integral and we let B to be the same as
align:start position:0%integral and we let B to be the same asa then we obtain the probability that X
align:start position:0%a then we obtain the probability that X
align:start position:0%a then we obtain the probability that Xis equal to a and on that side we get an
align:start position:0%is equal to a and on that side we get an
align:start position:0%is equal to a and on that side we get anintegral over a 0 length interval and
align:start position:0%integral over a 0 length interval and
align:start position:0%integral over a 0 length interval andthat integral is going to be zero so we
align:start position:0%that integral is going to be zero so we
align:start position:0%that integral is going to be zero so weobtain that the probability that X takes
align:start position:0%obtain that the probability that X takes
align:start position:0%obtain that the probability that X takesa value equal to a specific particular
align:start position:0%a value equal to a specific particular
align:start position:0%a value equal to a specific particularpoint that probability is going to be
align:start position:0%point that probability is going to be
align:start position:0%point that probability is going to beequal to zero
align:start position:0%equal to zero
align:start position:0%equal to zeroso for a continuous random variable any
align:start position:0%so for a continuous random variable any
align:start position:0%so for a continuous random variable anyparticular point has zero probability
align:start position:0%particular point has zero probability
align:start position:0%particular point has zero probabilityyet somehow collectively the infinitely
align:start position:0%yet somehow collectively the infinitely
align:start position:0%yet somehow collectively the infinitelymany points in an interval together will
align:start position:0%many points in an interval together will
align:start position:0%many points in an interval together willhave positive probability is this a
align:start position:0%have positive probability is this a
align:start position:0%have positive probability is this apuzzle not really that's exactly what
align:start position:0%puzzle not really that's exactly what
align:start position:0%puzzle not really that's exactly whathappens also with the ordinary notion of
align:start position:0%happens also with the ordinary notion of
align:start position:0%happens also with the ordinary notion oflength single points have zero length
align:start position:0%length single points have zero length
align:start position:0%length single points have zero lengthyet by putting together lots of points
align:start position:0%yet by putting together lots of points
align:start position:0%yet by putting together lots of pointswe can create a set that has a positive
align:start position:0%we can create a set that has a positive
align:start position:0%we can create a set that has a positivelength and the final consequence of the
align:start position:0%length and the final consequence of the
align:start position:0%length and the final consequence of thefact that individual points have zero
align:start position:0%fact that individual points have zero
align:start position:0%fact that individual points have zerolength using the additivity axiom the
align:start position:0%length using the additivity axiom the
align:start position:0%length using the additivity axiom theprobability that a random variable takes
align:start position:0%probability that a random variable takes
align:start position:0%probability that a random variable takesvalues inside an interval is equal to
align:start position:0%values inside an interval is equal to
align:start position:0%values inside an interval is equal tothe probability that a random variable
align:start position:0%the probability that a random variable
align:start position:0%the probability that a random variabletakes a value of a plus the probability
align:start position:0%takes a value of a plus the probability
align:start position:0%takes a value of a plus the probabilitythat a random variable takes a value of
align:start position:0%that a random variable takes a value of
align:start position:0%that a random variable takes a value ofB plus the probability that a random
align:start position:0%B plus the probability that a random
align:start position:0%B plus the probability that a randomvariable is strictly between a and B
align:start position:0%variable is strictly between a and B
align:start position:0%variable is strictly between a and Baccording to our discussion this term is
align:start position:0%according to our discussion this term is
align:start position:0%according to our discussion this term isequal to zero and this term is equal to
align:start position:0%equal to zero and this term is equal to
align:start position:0%equal to zero and this term is equal tozero and so we conclude that the
align:start position:0%zero and so we conclude that the
align:start position:0%zero and so we conclude that theprobability of a closed interval is the
align:start position:0%probability of a closed interval is the
align:start position:0%probability of a closed interval is thesame as the probability of an open
align:start position:0%same as the probability of an open
align:start position:0%same as the probability of an openinterval when calculating probabilities
align:start position:0%interval when calculating probabilities
align:start position:0%interval when calculating probabilitiesit does not matter
align:start position:0%it does not matter
align:start position:0%it does not matterwhether we include the endpoints or not123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816PROFESSOR: Today,we continue-- we're
going to do two things today.
One is protein folding and theother is interlocked chains.
So protein folding,we're continuing
on where we left off lasttime, which was essentially
looking at the mechanics, themechanical models of protein
folding, which wasfixed angle chains.
But basically ignoringall the forces that
go into actual protein folding.
Today, we're goingto look at some
of the very theoreticalwork on what
forces cause proteinsto fold and what
you can say about algorithms andcomplexities of those problems.
So obviously, a lot of peoplework on protein folding.
On the practical side,people look a lot
at defining energy functionsthat you minimize in order
to find what we believe wouldbe the right protein folding.
There's a lot of energyfunctions around,
and the key energies that--forces people look at
are torsion angles potentials,van der Waal interactions,
hydrogen bonds, hydrophobicity,secondary structure propensity,
and paralyze specificinteractions.
And then they take some weightedcombination of all those things
and try to findone that matches up
with what we see in real life.
The things we seein real life, we
get by crystallizingproteins, which
can take a really long time,like years of research.
Then you get one 3D image.
And that's what protein databank collects is all those 3D
images.
People try to train againstthat data, but I say,
we really don't knowwhat the right objective
is for real protein folding.
Given that, becauseI'm a theoretician,
we're going to look ata super simple model
that just models one of thosefeatures that I mentioned,
which is hydrophobicity.
Hydrophobia is fear of water.
And remember we havethis back on the protein,
the various amino acids hangingoff, some of those amino acids
are hydrophobic, meaningthey like to hide from water.
Now usually, your proteins livein a big bath of fluid, mostly
water, and so they're tryingto hide from the surroundings,
try to cluster on theinside of the folded shape,
whereas other hydrophilic aminoacids that like water, they
tend to go around the outside.
You can't alwaysdo this, but you
try to minimize the amount towhich the hydrophobic guys are
on the outside and maximizethe hydrophilic guys are
on the outside.
In the HP model, there arehydrophobic and hydrophilic
guys.
And actually, we'llcall h the hydrophobic
and P the hydrophilic.
It's very confusingbecause both of them
have h and p in the acronym,but p also apparently stands
for polar, polar oppositeof the hydrophobic guys.
Anyway, we just havethese two kinds of nodes,
and we just tryto model that one
feature, plus the bondsthat link together,
the backbone of the chain.
And so we're goingto model a chain
as just a sequence of nodes.
We're going to foldthat chain on a lattice.
Something like this.
Is it five?
Yeah.
And different of these nodescould be marked h or p.
And we usually could usetwo colors to denote that.
In this case, I made this guyh, this guy h, this guy h.
The score of a fold--so this is a folding.
We're always going tofold on the square lattice
today although people havelooked at other lattices,
in particular 3D cubiclattice and a little bit
on the triangular lattice.
I'll mention some reasonswhy the square lattice is
a little bit artificial,but in general, conjectures,
it doesn't really matterwhich lattice you fold on.
But you really wantto follow lattices
because we're going todefine the score in terms
of how many adjacent H nodesthere are on the lattice.
Score is the number ofcall them H-H bonds.
The intuition is if you havetwo hydrophobic nodes that
are next to each otherthat means they're not
next to the boundary,and so they're happier.
There's a more formalargument of that,
but this is an easydefinition of score.
You want to maximizethe number of H-H nodes
that are adjacenton the lattice.
Usually, there are some thatare adjacent along the chain.
Those we don't care aboutbecause they will always
be adjacent.
You have to fold this thingso that consecutive nodes
in the chain appearadjacent in the lattice.
So we usually ignore what Iwould call H-H edges which
are four, so you cancount them or not.
It doesn't really matter.
We want to maximize thenumber of these guys.
For this chain, that's probablythe maximum you can get.
In general, a typical nodehas two edge neighbors,
and it has two other neighbors.
And so at most, everyguy has-- every H node
has two bonds nextto it, which means
on average at mostone bond per H node
because we're double counting.
So that's the model.
The optimal foldinghas the maximum score.
And I'm going totalk about the theory
of this model in a moment.
Some practice you mightsay is this picture.
This is heuristic or localoptimization of maximizing.
Here, red nodes are H nodes thatwill be throughout the slides.
Red nodes are H nodes.
Blue nodes are P nodes.
That's a universal standard.
You can see, in thiscase conveniently--
it may look like some randompattern of reds and blues,
but you end up with all theblues pretty much covering
the outside, and so thereds cluster together,
and there's lots of H-H bonds.
They are not drawn here,but-- So that's nice.
And this looks likea typical protein
in that it globs together.
But of course, it's notcapturing every feature
of protein folding, justtrying to capture one of them.
But pretending thisis the whole story,
what can you say about optimalfolding in the HP model?
Well sadly, it's NP-hard.
So to find the actualoptimal folding of a given
string of red andblue nodes is NP-hard.
It's NP-hard in the3D cubic lattice.
That was by two MIT professors,Bonnie Berger and Tom Leighton
And then it was provedNP-hard hard in two dimensions
by whole bunch of people,I guess, from Berkeley.
So that's bad news.
And to me, that's a signthat nature probably
does not find theoptimal folding.
There are a couplepossibilities here.
Maybe they're extra forcesbeyond hydrophobicity
that make it easier tofind the optimal solution
or maybe nature's justfinding a local optimum, not
a global optimum.
Or maybe the proteins thatexist in real life that
have been evolved are designedso that local optima equal
global optima.
That's somewhat related.
Somehow nature gets around thisNP-hardness, I would think,
because I believenature's a computer.
Maybe not everyone does.
But it should be bounded bypolynomial time computation.
So unless P equals NP-- that'sanother possibility I guess.
It's unlikely that, tome, nature is doing this.
But maybe it'sfinding local optimum.
That seems to do pretty wellin this particular example.
AUDIENCE: Hey Erik?
PROFESSOR: Yeah.?
AUDIENCE: Are thereapproximation algorithms?
PROFESSOR: Good question.
Are there approximationalgorithms,
that's exactly whereI wanted to go.
There are lots of constantfactor approximations,
and I will show you one of them.
So I'm not going to showyou these hardness proofs
because they're abit complicated.
I don't have freediagrams of them.
But the constant factorapproximations, I do.
Where are we going?
Here.
And so, in particular, thebest approximation that's known
is a 1/3 approximation.
This is by MIT Ph.D.student [INAUDIBLE],
and from several yearsago-- eight years ago.
I believe it's still the best.
It's pretty simple,but quite elegant,
looks like protein folding.
So this is going to bewithin a factor of three
of the best you could hope for.
We write 1/3 because we'realways getting fewer bonds
than you might want ina maximization problem.
Some people call thisthree approximation.
I call it one of the otherdepending on the day the week.
So how could we achieve1/3 approximation?
Well, before I get to thisimage, let me tell you.
In general, when-- wehaven't talked too much
about approximationalgorithms in this class,
but a typical technique inapproximation algorithms is you
get some bound on whatthe optimal might be.
I already told you there's atmost one bond for each H node.
And that is indeed-- that'sroughly what we'll say.
Just because of thedegree argument,
every guy has bonddegree at most two.
So that means, at most,one edge per H node.
But we can be a little moreprecise on the square grid
because there aretwo types of nodes.
If you checkerboardcolor the square grid,
there's even nodesand odd nodes.
So in fact, we claim thatthe optimal solution,
which we call OPT, isalways at most twice the min
of the number of even H'sand the number of odd H's.
This is slightly smallerthan the number of H's.
If a number of H'sand not H's are equal,
then this will justbe the number of H's.
But if one is smallerthan the other,
this will be alittle bit smaller
or it could be a lot smaller.
They're saying, no even H's.
The point is if youhave an even parity H,
and it somehow has abond with some other H,
well obviously, that h hasdifferent parity from this one.
So only even and odd H'scould possibly bond together.
And then this is pretty obvious.
Let's see if I can formalize it.
So you have every bonddefines and even and an odd.
Every even and odd canonly get hit up to twice.
If there's more evens and odds,it's not going to help you.
In the best case, you pairthem up or alternate even odd,
even odd, even odd.
So you'll never be able touse more evens than odds,
maybe one more, not really.
And I think the best case isyou do a cycle of even odd,
even odd, even odd.
Then, there's an evennumber of them-- each,
an equal number of each.
And so you throwaway the excess.
You end up witha min of the two.
But you get a factor of twobecause every even guy has
two incident bondsin the best case,
and then you'renot double counting
because you count this even guy,maybe you count this even guy,
and they have disjoint bonds.
So it's twice the numberof evens or number
of odds, whichever is smaller.
So this is useful.
It's just what is the bestcase you could hope for OPT?
Now, what this 1/3approximation will get
is at least 1/3 this amount.
If you know you get atleast 1/3 this amount,
you know you get atleast 1/3 the optimal
because this is an upperbound on the optimal.
So that's with thealgorithm will do.
And so the generalidea of the algorithm
is to proceed in stages.
At a typical stage--So you pick some edge.
I don't think it'llmatter too much.
Pick some edge of thechain, and then you
start working your way down.
And general idea is you canmake big loops off to the sides
so that when you get back tothe center, these are H nodes.
So you get a bond there.
That's the general idea.
With that basic idea, youprobably get about 1/4
of this amount.
But we want to get 1/3,which is a little better.
I won't try toanalyze that formally.
But there's a lotof flexibility here
when we-- how longwe make this branch.
In order to makethis work out, what
I like is that the left branchhas a lot of-- pick one-- a lot
of even H's, and the rightbranch has a lot of odd H's,
or vice versabecause then we'll be
able to make lotsof the even guys
match up with the odd guys.
Here, we're fighting the parity.
And parity is oneof the reasons why
I think the square grid isa little bit artificial.
Let's say with the triangulargrid, you wouldn't have that.
There aren't just two classes.
But here, we canget around parity
by finding a breakpoint, this edge,
so that the number ofeven guys in the left
is about the number ofodd guys on the right.
I won't prove that, but it'sjust an intermediate value
argument.
See, you get that as youwalk counterclockwise
along the chain, youhave more even guys,
and walk clockwise around thechain, you get more odd guys.
Once you have that set up,you fall into four cases.
So we're supposing at thetop-- let me get to a case,
that I can reach.
Here's a typical case.
Suppose you justsucceeded in making
two H nodes join together.
Maybe that was yourfirst edge, whatever.
So it might not be H-H. Butnow, we're proceeding down,
and we want to aligna bunch of H nodes.
And we're going to do betterthan the picture I drew over
here, which was just gettingtwo H nodes to come together.
I actually want toget four H nodes
to come togetherwith three bonds.
That's what I will alwaysachieve, at least that.
Is that right?
Actually, no, thisis the good case.
I won't always achieve quitethat well, quite that good.
But here's the idea.
Suppose there's some reasonablylarge distance between this H
node and the next one.
I'm going to go down two stepsand then go around however
long it takes so that when Icome back, I get to an H node,
and same on the left side.
So these two chains mayhave different lengths
depending on whenthe next H node is.
Now, when I say thenext H node, I actually
mean the next oddH node on this side
and the next even H node on thisside so that they will line up.
This is assuming thatthe distance from this H
node to the next oneis greater than 1,
by parity that meansit's at least three.
So if it's three, it'sgoing to be one, two, three.
And that's it.
And so go straight down.
If it's more thanthree, you just
divide that distance in half,and you go back and forth.
And this sets the parity right.
So that's the set up.
Now, we have these two H nodes.
Now, when are the next H nodes?
Well, there's atleast one blue node
in between because of paritybecause we're looking again
at odd H nodes onthe right side,
even H nodes on the left side.
So maybe it's justone blue node,
and we would go like this, andhere we would go like that.
Or if it's morethan one blue node,
we just lay them out like this.
Goes to theappropriate distance,
so that when we comeback, we get a red.
So we have two red H nodes here.
I want to make two red Hnodes here no matter what.
If it's just gap of one,we would go straight, make
a corner, otherwise,we do these big loops.
And the result is Iget these four H nodes
in this pattern, just threebonds for four H nodes.
And before we analyzewhat exactly that means,
let me just tell youabout the other cases.
So this is the case when thereis more than one blue node
in between two H nodes.
The other rows andcolumns are when
the left side orthe right side has
just one blue nodefrom that red guy.
So let's go to thisone for example.
Here the left side has only oneblue node to the next red guy.
The right side hasat least three.
So then we'd go one, two,three, and we get there.
If it's a more thanthree, then we go
and we make that big loop.
Now we have thesetwo read nodes.
My goal now is toput a red node here.
If this chain only has one bluenode, I would make a corner.
Otherwise, I'd loop around, andthen I go onto the next step.
Here, I only got twobonds for three nodes,
so it's actually alittle worse in ratio.
In the case wherethey're both length one,
I just go straight down,make those two H nodes,
and then I use thesame trick as over here
to get that nicezig-zag pattern.
And this case is symmetricto this one, just flipped.
So in all cases, Ididn't skip anything.
I did all of the even Hnodes on the right side.
I did all of the odd nodes,H nodes, on the left side.
So I did skip something.
I skipped all of the oddguys on the left side
and all the even guyson the right side.
So I skipped halfof the H nodes.
So I get at least twobonds-- I'm calling them
H-H bonds-- for everythree interesting H nodes.
By interesting, I justmean even on the left,
odd on the right, which isreally for every six H nodes.
And so we get a factor of2/6, also known as 1/3.
Really here I mean6 even H nodes.
Let's say.
We used the same numberof even and odds.
And we had-- Is that right?
Sorry.
No, I guess I actuallymade H nodes here.
I always get a littleconfused here because there's
a factor of two, afactor of two here.
But in the end we get 1/3 bound.
So that's theapproximation algorithm,
and that's the best node.
It looks pretty nice.
It's like beta sheets, ifyou've seen proteins folding.
it depends, of course, onthe spacing of the H nodes,
but you get-- in particular,you get all the H nodes
on the inside pretty much.
I guess here is one exposed end.
And here there'sone exposed end.
These two cases, we'redoing especially well.
Maybe in real proteins, thegaps are always more than one.
I don't actually know.
I think in realitythere's different levels
of hydrophobicity, so that'smaybe not so well defined.
But any questions?
AUDIENCE: Is the exposed endconsidered the [INAUDIBLE]
above the dashed line or is it--
PROFESSOR: Yeah.
When I say exposedend, I mean here.
There's an adjacencyto the outside water.
Now of course, there mightactually be nodes here.
Then, that would notbe an exposed end.
But if this justwent straight up,
which it might in thispicture, then that
would be an exposed end.
I guess that might also be.
No, probably not.
Actually, interesting.
If these two guysare red, there's
always a blue node to theleft and right of them
in this construction,so actually, I
think that would not be exposed.
That's cool.
So actually, I thinkthere are no exposed
ends in this folding,except maybe at the very top
and bottom.
Except, we're only consideringhalf of the H nodes,
so there's the other halfwe have no idea about.
So hopefully, naturechose the parity right.
Or, if you think about this isin the triangular case, which
I don't think anyone'stried to adapt
this algorithm tothe triangular grid,
maybe you can getno exposed node.
So that would be pretty neat.
Of course reality, it probablydoes not fold on a lattice,
but it's an approximation.
Now, one of the observedfeatures in protein folding
is they tend to foldto the same shape.
It's actually a hardthing to measure,
but that's thegeneral consensus,
that at least most proteinsin a non diseased organism
fold always to thesame shape, at least
in the same environment.
So if you want to modelthat in the HP model,
and you pretend that, really, weare finding optimal solutions--
because it's alittle hard to define
what locally optimal means.
But that would be aninteresting direction.
It would be niceto find proteins
where locally optimalequals globally optimal,
but lacking definitionsof those terms,
no one has tried to prove that.
It could pick a good direction.
But if you believe inoptimality, then at least
you hope that theoptimal are unique.
So you take a typicalexample of the optimal,
like if they're all blue,then every folding is optimal.
So there's exponentiallymany of them.
But if you have any hopeof getting unique folding,
you'd really likeunique optimal foldings.
The theorem is these exist.
And the 2D squaredgrid, they exist
for all even n, forclosed chains-- mostly,
we care about open chains,but for closed chains,
you could prove theseexist for all even n--
and for open chains, theyexist for all doubly even n.
This is a theorem bya bunch of people.
Oswin Aicholzer, DavidBremner, me, Hank Meijer,
Vera Sacristan,and Michael Soss,
we talked about last time.
So here they arefor closed chains.
It's a pretty simple example,basically alternating red blue,
but at the end, you have twoblue nodes to make the corner.
That is not the optimal folding.
The optimal folding is this.
So there's onlytwo exposed ends.
There's one down here,and one on the top.
So there's no surprises thatit's optimal, a little less
obvious that it'suniquely optimal.
But there it is.
And this works for any even n.
In general, it depends a littlebit on your the n mod four, so
that's why we are drawingtwo pictures here,
to check that it works forboth congruences mod four.
It has to be evenfor closed chain
and must be even, sothis is really for all m
that there's closedchains, there
are unique-- there areexamples of HP chains
that have uniqueoptimal foldings.
Here, it's just to do you endgoing horizontal or n going
vertical?
Not a big difference.
I have a proof by picture thatthis is the optimal folding.
So remember thereare two-- we talk
about H-H edges and H-H bonds.
These are what wecall P-P edges.
And I remember when writing thispaper, one of the co-authors,
I won't say which one,saying call me juvenile,
but I don't want to have a paperthat talks about P-P edges.
And I convinced him to keep it.
So we have-- it'sreally only obvious
when you say it out loud,which sadly I have to do here.
But you have two of thoseedges, all blue edges,
we might also call them.
And they really shouldbe on the boundary
because you have to haveexposed ends on the boundary,
on the boundingbox is what I mean.
So if you put too many redguys on the bounding box,
you're going tolose lots of bonds.
So those two blue guysshould be on the boundary.
Some two edges haveto be on the boundary,
so it's best to havethe two blue ones.
So we could show you in optimalsolutions, that is the case.
Now, you decomposeinto two chains
that connect the two ends.
There's connectingthis end to the left
and connecting this end up andaround to the other blue node
at the end.
And if you check all ofthe red notes on this side
have even parity, let's say,and all the red nodes on this
die have odd paritybecause it alternates.
So there's no waythat you could have
bonds within oneof those chains.
That's not drawn here.
The other thing is becausethese two blue edges are
on the boundary, you cannothave a bond on the outside
because there'sno hope for that.
You can only have bonds on theinside of that closed loop.
Here, we're using thatit's a closed loop.
So you have bonds on the inside,and then you argue, well,
because it's bipartite graphand because it's planar,
you can't have anycrossings in these bonds
because you're embeddingthis thing in the plane,
really you basicallyhave to alternate.
There's actually two waysyou could try to alternate.
You start on this side orif you start on this side.
You try to realizethem geometrically.
When you do this alternation,you decompose your thing
into squares.
Only in one case does it work,and you get this picture.
And then once youhave the squares,
there's a unique wayto glue them together.
So that's how the proof goes.
It's pretty easy once youget the right limits in place
for closed chains.
Let me show you whathappens for open chains.
Take the same example for openchains, and it's almost unique.
In the double even case,like 16, it is unique.
In the only singlely even,so two mod four case,
like 18, you have this issue.
So the way we setup is we do not
have the blue blue atthe end to turn around.
That is the bestwe know how to do.
And there arethese two-foldings,
how you might achieve it.
So here, we wrap around and geta little triad of blues here.
Because we havea red n point, we
can actually getthree bonds into it.
Or, we can do theintended folding.
Now, it's a pretty small change,so it's approximately unique,
but that's the best we know foropen chains, only singly even
length.
Or for odd length, we also don'tknow anything that's optimal.
Of course there are thingsthat are almost optimal.
You just add a little end.
Won't make a big difference,but interesting open problem.
Also open, whether anyof these unique results--
uniqueness resultsextend to other grids,
like triangular grid.
That would be nice because herewe're really exploiting parity,
and that's kind of cheating.
Certainly, parity is notsuch a big deal in real life,
but I don't know.
Could be.
The approximation algorithm'sgeneralized to other grids,
not necessarily this one,but some constant factor
approximation havebeen obtained.
Uniqueness is open.
The really cool openquestion here, I think,
is protein design.
HP model is simple enoughwe can think about it.
And while folding-- findingthe optimal folding of a given
protein is NP-hard, if Iget to design the protein,
and say, well, I'd really liketo fold into-- I don't know.
The letter m-- how do I make aprotein fold into the letter m,
at least approximately?
So ideally, it should stillhave a unique optimal folding,
so we generalizethis result, but it
can match any target shape.
Here, we're matchinga diagonal line
up to some constantfactor resolution.
Can we match any shape upto some constant factor
resolution?
I think the answershould be yes.
And then you should be ableto solve that polynomial time.
In the same way that origamidesign is a lot easier
than origamifoldability, here, I
think protein designshould be a lot easier
than protein folding.
But no one has worked on that.
I think it's areally cool problem.
To bad I'm mentioning itso late in the semester,
but we can work on itin the problem session.
So ends my coverageof protein folding.
Obviously, there's tonsof work I'm not covering,
but I'm focusing on thevery algorithmic stuff.
Any questions before we go?
Yeah?
AUDIENCE: In these modelsyou have, are these
supposed to equalnumber of P and H,
can you get in situationswhere you're way
overbeared with Por H, and then it's
going to be harder tofind an optimal folding.
Or, is it notrealistic because these
are such-- these are smallsets of the entire protein?
PROFESSOR: Yeah.
So the questionis whether-- Does
it matter the ratio between thenumber of H nodes and P nodes.
I think the easy-- A surething is I don't know.
My guess is, inreality, the number of H
and P's are within a constantfactor of each other,
for some constant.
I don't think theconstant matters too much.
Although if there's anoverwhelming majority
of H's or P's, the problemmight become easier.
My guess also is inthe NP-hardness proof
although it's been awhile since I read it.
There's probably aconstant factor again.
But maybe you could showif there's-- for example,
if there's a constantnumber of h nodes,
I'll bet you can solveit in polynomial time.
That's maybe-- That'sa new open problem.
I should write it down.
Good question.
AUDIENCE: If there is awrong factor between them,
wouldn't we seethat at the model
because it just wouldn't work?
PROFESSOR: No, this model makessense for any number of reds
and H's and P's, but uniquenessis probably hard to obtain
if you have a small numberof H's or if you have a huge
number of H's.
If you don't have enough--
AUDIENCE: What if you haveH's on the order of the square
of the P's, then thereare at least two H's?
PROFESSOR: All right.
AUDIENCE: Kind ofmakes sense, right?
PROFESSOR: Yeah,actually we have
a theorem along those lines,which is not published
so that's why I'mnot talking about it.
You can achieve the numberof H's as square the number
of P's.
I imagine that's the limit--and still get uniqueness.
I imagine that's the limit.
We really ought towrite that result
that it's from seven yearsago, so unlikely at this point.
Other questions?
So we go ontointerlocked 3D chains,
which is related in thatit's in 3D and its chains.
So related to themechanical protein folding
we did last class,except here, mostly,
I'm going to think aboutuniversal joints again,
so I can do whatever I want.
I don't have to holdthe angles fixed.
At the end, I'llmention how things
change a little bit for whenyou have fixed angle chains.
But universals more fun.
So the motivationhere is we have
our good friend theknitting needles example,
or maybe our mortalenemy, depending
on how you liketo think of that.
One, two, three, four, five.
And remember-- nevermind the edge lengths.
I'm not going to worryabout edge links here.
With five bars, youcan lock the chain.
So an interestingquestion is what
if I had less than fivechains, say length 4 chains,
but I had more than one of them.
Now certainly, eachchain will be unlocked.
That's a known result byCantrell and Johnson '96.
'96, '98?
'96.
But what if I have two fourchains, can they interlock?
The answer turns out to be yes.
The original motivationfor this proble,--
it's a neat question by itself,but the original motivation is
something calledLubiw's problem.
Many of you met Anna Lubiw,she's one of my Ph.D. Advisors.
Last year, she washere on sabbatical.
And the questionis the following--
so she posed this backin 2000, a long time ago.
What is the minimumnumber of cuts
you have to make in a 3Dchain in order to unlock it?
I say unlocked meaning weknow they are locked chains.
Suppose I want to make theconfiguration space connected,
but I allow cheating andI allow cutting vertices.
How many do I have to cut?
And say the chain has n bars.
Then, as a function of n,how many cuts do I need?
And the answer at thispoint, in the worst case,
we know is between aboutn over 2 and n over 4.
So it's at least 4over n minus 1 over 4.
And it's at most 4n minus 3 over 2.
And I'll prove to youboth of those results.
So we know roughly its theta n.
It's in a constantfactor of n, but we
don't know exactlywhat the constant is,
still a neat problem.
Originally this motivationhere is, well, maybe-- there's
some theories thatin real proteins,
maybe they disconnect theirbonds for a little while
so they can pass throughand make things cross.
How many disconnectionswould you
need because that mightrequire a lot of energy?
The answer is a lot ifyou have a long protein.
in the worst case of course.
Real proteins have unit edgelengths almost equal angles,
so maybe the answerschange in that case,
but given that we don'teven know whether it's
a locked chain, inthose situations,
it's pretty hardfor us to answer
something morecomplicated like this.
So let me start withthe lower bound.
You need to make at leastn over 4 cuts almost.
Any ideas how to do thatbefore I show you the answer?
Given the one tool we have,which is the knitting needles.
AUDIENCE: Yeah, I meanif you [INAUDIBLE].
PROFESSOR: Justconnect a whole bunch
of knitting needles together.
Yeah.
Now, knitting needleshas five edges,
so that would naturallygive n over 5.
But if you're a little bitclever, you can share edges.
If you share the long edgesfrom one knitting needle
to the next, and you get about4 bars per knitting needle,
except the very first bar whichhave to count extra, and so
that's the n minus1 divided by 4.
Now if you don't cutone of the vertices--
and here, we'reconsidering vertex cuts--
if you don't cutone of those four
vertices of thatknitting needle,
the whole thing will belocked because that's
a knitting needle.
So you have to cut one of thosefour, and one of those four,
and one of those four just forthe pieces to not be locked.
The trouble is-- so the naturalalgorithm, if I give you
some big complicated chain,is cut every fourth vertex.
That we know does not work.
I think I have towait to see that one.
Let me tell you what'sknown about interlocking,
and then we'll get backto Lubiw's problem.
But at least we'veproved this part.
And next thing I want todo is prove this part.
And to show you howwe might do that, I
think I need a whole board.
We're going to think aboutan open chain of length 2--
let me make a littlemore room-- 2,
3, 4 interlocking with-- startwith an open chain of length 2,
3, or 4.
There's going to be otherresults, but it's a good start.
So for 2, 2 chains, Iclaim are always separable.
And I'm going to puta little asterisk
to mean another thing is true.
A 2 chain and a 3 chainis always separable.
A 2 chain and a 4 chainis always separable.
This matrix is symmetric.
A 3 chain versus a 3chain also is separable.
But everything else,you can interlock.
I guess I haven'tdefined interlock.
Be a good idea.
I call a bunch of-- acollection of chains
separable if they can all fly toinfinity away from each other.
So the distancesbetween them can
get arbitrarily large,otherwise they're interlocked.
And usually, that willmean that no pair of them
can fly away from each other.
Here, we're justthinking about two
at once, so it's eitherseparable or interlocked.
So this is a worryif you're thinking
about cutting this apart.
You cut every fourthbar-- fourth vertex,
if I get the countingright, I think
that means you have length4 chains connecting them.
Now, we know length 4chains can't be locked,
but they could be interlocked.
And so you couldactually build an example
where if you do the simplepattern of every fourth cut,
you will get interlocking.
It's still open whether youcould be clever and still
only make about n over 4cuts and get everything
to separate, but to solvethat, you'd have to get around
this boundary, this annoyingsituation, which we don't fully
have characterized.
We just have examples.
And we also thoughtabout-- and we'll
get to this later--if you try interlock
an open chain witha closed chain.
With two closedchains, it's trivial.
You can just make aknot, or make a link.
I guess is the proper term.
But an open versus a closed ismore interesting, especially
if that closed guyis not itself a knot.
I think up to length 5.
Yeah, I think thesmallest, locked,
closed chain is of length 6.
Never showed it to you,but that is a known fact.
So up to 5, we know thisthing is not by itself locked,
so it's not really cheatingcompared to an open chain.
Then, the answer is separable,separable, separable.
It's really hard to lockthings with a 2 chain.
2 chains, we call hairpins.
That's a 2 chain.
Everything else is interlocked.
Basically, the same resultshold whether one of your chains
is opened or closed becausenotice there's a shift here.
The smallest closedchains have length 3,
and the smallest open chainis really of length 2.
I guess you couldconsider single bars,
but they don't usually do much.
You're can just slide themout parallel to themselves.
So there's a shiftin the indices
here, and that's why there'sa shift in the matrix.
Sounds ominous.
A shift in the matrix,what will we do?
But they're basically the same.
So I'm going to show mostof these results to you.
The stars mean that even ifI give you-- get this right--
even if I give you a wholebunch more hairpins-- so
for this result, it'sthe most interesting.
I take a 3 chain, a 3 chain,and then a millionaire hairpins,
a million 2 chains.
Still, they can separate.
And all the resultswith stars, you
can add arbitrarilymany hairpins.
These two are the mostinteresting, a 4 chain
with any numberof hairpins, a 2,
3 chain with anynumber of hairpins.
These results donot hold or we don't
know how to prove it anyway.
That's the summary.
There's one question that'snot answered by this table
because it's how low canyou go and get interlocking.
This is saying, well, once youget to a 3 chain and a 4 chain,
you can interlock.
It's the minimum.
But what if you have a bunchof 2 chains or even just one?
Can I interlock it withsome chain of some length?
Let's say, I mean up to4 is the most interesting
because once you get to 5,you can have knitting needles.
But suppose I take longeropen chains down here,
but I require that they'renot themselves locked.
Can I interlockit with a hairpin?
It has practicalapplications to hair I guess.
And the answer is yes.
So this first exampleis a 16 chain.
That's the gray part.
Wow!
It's hard to evenfollow the ends.
Here's one end.
And here's another endand 16 bars in the middle.
And then the redthing is a 2 chain,
and this is a model ofthat thing, physical model.
And it's locked.
Sorry, it's interlocked,I should say.
I'm pretty sure you takeeither of the chains,
obviously with thehairpin, but also
for the reallycomplicated 16 chain,
it will unfold by itself.
But with a hairpin, it isheld open at that angle
and can't unfold.
The best bound so far is an11 chain versus a 2 chain.
It's conjectured to be optimal.
There's variousreasons to believe
at least this interlockingtrick where you-- basically,
all the hairpin can do ishold an angle open or try to.
And this seems to be thesmallest way to interlock it
up there and the smallest wayto interlock it on either side.
And these are zooms.
This is of one of these corners.
This is of the top part.
So those, bythemselves, if you're
trying to do thesethree interlock tricks,
these are minimal, we think.
But as an assembly, it'sconjectured to be optimal,
but we don't knowhow to prove that.
But at least theseguys are interlocked,
so 11 chain with a 2 chain.
So those don't fit on thetable because the table's not
large enough.
But let me startwith this result.
So the easiestthing to do is show
that if I have any finiteset of hairpins, 2 chains,
they never interlock.
This is actually an oldresult although it was never
phrased this way untilearlier this decade,
I guess, by de Brujin, a famousDutch mathematician from 1954.
He proved essentially this.
He proved a simplerversion which was then
generalized in 1984 byRobert Dawson in Canada.
And they provedsomething more general.
They said, well-- I will saya hairpin is star-shaped,
meaning if you were right here,here's your eye at this point,
you can see the entireinterior of the shape
without leaving the shape.
So that's a star-shaped figure.
And these guys proved thatfor star-shaped figures,
there's a way toalways separate them
without even changingany of the angles.
There's no folding involved.
You could thinkof rigid 2 chains.
They can all flyapart from each other.
How do you do it?
Some fun geometry.
You say, I have my favorite0, 0, 0 in three space.
I just want to scaleeverything from the point,
make space bigger.
What will happen tothese poor little chains?
They get bigger.
They'll get longer.
As they get longer,just cut them off again.
But the result isthat these points
will fly away from each other.
And so all of these twochains are going to separate.
The lengths get longer, but Ican always cut them shorter.
And if I scalespace, obviously if I
didn't haveself-intersection before,
I still won't haveself-intersection.
So it's a fun motion.
We tried to draw it in the book.
It's a little hard to draw.
So we have the red, green,and, blue-- hopefully,
you're not colorblind--hairpins hanging out.
They're not hitting each other.
Here's the origin.
We scale everything, so the blueguy goes to the dashed blue.
Green goes to the dashed green.
It looks weird.
It's all over the place.
And you're stretchingfor this point,
so as you go fartheraway, it's bigger.
Red guy expands tothe dashed red guy.
What's not shown here isthen you clip the red things.
Because everythinggets longer, you
can always clip tothe original lengths.
And that's a motionof these chains.
You're not changing the angle.
Scaling preserves angles.
And everything fliesway for each other.
So a very nice trickfrom a long time ago.
Once you get to 3 chains,this doesn't work.
And so if we want toprove this result, which
would subsume these guys, weneed to do a little more work.
Although a verysimilar trick works.
So let me show you why twoopen 3 chains separate.
Even if you add arbitrarilymany extra hairpins-- that's
the star-- Two 3chains always separate.
I guess suppose we'rein a generic situation.
Nothing aligns that shouldn't.
I have one 3 chain, orsomething like this.
And I have another one.
Let's make it interesting.
Is that possible?
Maybe.
Something like that.
Probably you want theseguys to be pretty long.
Do some crazy whatever.
That is two 3 chainsif I drew it right.
And the claim is you canalways separate them.
So here's the deal.
I have this middle bar.
There's a whole family of planesthat are parallel to that bar,
in fact, a lot of planes.
There's what?
Three dimensions of planes.
There's a two dimensionalfamily of planes
that are parallel to that bar.
There's a two dimensional familyof planes that are parallel
to that bar, meaningif you extend it,
it doesn't hit the planeor lies in the plane.
So there's actually a planethat is parallel to both bars.
In fact, there's a wholeone dimensional family
of that, if Ifigured it out right.
So you can actually find aplane that bisects the two bars.
So there's one on one side,one on the other side.
And even if the bars extended,it would not hit the plane.
So there's some planein the middle here.
Really hard to draw in 3D.
Actually, I thinkI have a picture.
It might be a littleeasier to see.
So it looks something like this.
You have to believe me.
This is general case.
You have the red chainand the blue chain.
The middle bars are onopposite sides of the plane,
and they're parallelto the plane.
Now what we do isscale, but we only
scale in z, sonon-uniform scaling.
This will not preserve angles.
Here, we're going to fold.
So the result, we scalefrom z equals zero,
so these guys get pushed down.
Those guys get pushed up.
Scaling in z, again, does notcause any self-intersection.
And because we madethese guys parallel,
these edge lengthswill be preserved.
That's the key.
The end bars willget longer, but I
don't care if they get longer.
I can always cut them shorter.
So that's the trick.
Yeah, they'll alwaysget longer, even
if they don't goto the other side.
So that's how you canjust pull them apart.
And also, if thereare 2 chains in here,
they will also just flyaway from each other.
So eventually,everything will get
far away unless they happento have the same z-coordinate,
but then it's degenerate.
Just perturbed a little bit.
Jason?
AUDIENCE: Is this thecase where the two
bars are coplanar and parallel?
PROFESSOR: Yeah.
I said at the beginninggeneric, so in particular,
I want to assume that theseguys are not coplanar,
otherwise, you could justperturb it a little bit.
As long as they're not touching,you can wiggle everybody.
Good point.
That's two 3 chains.
There's one more resultin the separability.
We've done all of theseseparability results here.
The next one would be this,which is the same as this.
So here we have a 4chain versus a 2 chain.
Basically, the same trick works.
I just have reorient to putmiddle bars in the xy plane.
So in other words,there's two middle bars.
They live in a planebecause they share a vertex.
So think of that as the planeand then scale perpendicular
to the that.
Same trick works.
So 4 chains versusvarious 2 chains.
Again, we preserve thelengths of the two middle bars
because they lie on the plane.
So there's no scalingthat happens in the plane,
and in the genericcase, everybody
will be off theplane, and they fly.
Cool.
So that proves all ofthese separability results.
I'm not going to do theseclosed chain ones here.
You can read the paperif you're interested.
At this point, we can goback to Lubiw's problem
and prove this result.
So basic algorithm iscut every other vertex.
You'll get a wholebunch of hairpins.
Hairpins, we know, separate.
But we can be slightlymore efficient
by leaving an initial segmentof 4 chain or two 3 chains.
I think it comes outto the same number.
And you end up saving threeif we computed this right.
So you get n minus 3 over 2.
I think our first bound on thisproblem was n minus 1 over 2,
and then we improved by 1although I have to n minus 3
over 2.
That has stood thebest bound since.
Basically, because withinterlocked stuff-- after that,
you get interlocked.
And if you're goingto avoid interlocking,
you have to be clever.
You can't just use the numbers.
So that is all we knowabout Lubiw's problem.
Now, I get to show you allthe fun interlocked examples.
We're going to do prettymuch all of these.
So we start with one ofthe prettiest examples,
the threefold symmetric.
This is three 3 chains.
So that's not even drawn here.
Because this table is aboutpairwise interactions.
We know that two 3 chains-- wejust proved two 3 chains cannot
interlock, butthree of them can.
That's the only case wherethat question is interesting.
So everybody else,you can interlock.
Unless you have 2 chains,and we know those don't help.
So three 3 chains interlock.
I'm not going to tryto prove that here.
It's a prettycomplicated argument
where you look atthe center edges.
You look at the convexwhole of those edges
and argue these guys can'tstick into the center.
It's a geometric argument.
If you're interested,check out this paper.
It's a pretty cool example.
This was a great-- finally,I had a good exercise
for using Rhino yesterdayand drawing this figure.
It was a lot of fun.
This is a 3 chain and 4 chain.
One, two, three, four.
Just two differentviews of the same thing.
And that proves this result,which is this result.
It's pretty close, pretty tight.
Again, it's ageometric argument.
It's tricky.
I'll go into it here.
We found these by buildinglots of straw models
and jiggling themaround with string
connecting the straws together.
But then we had to prove it.
For a while, we weren'tsure whether a 3 and a 4
could interlock.
I think first we had a 4and a 4 or maybe 4 and a 5,
and we kept workingour way down.
And now we know this isthe smallest you can get.
And now we go intothe closed results.
Because 4 and 4, that's ofcourse easier than 3 and 4.
So that's done.
This is containedin those results.
Now, we look at theclosed examples.
So this is going to be aclosed triangle interlocking
with an open 4 chain.
And here I'm going to giveyou some of the details
because this proof-- it'srelatively easy to prove
that this is interlock.
You can use a moretopological argument,
which is what we're used tofrom the knitting needles.
Remember we took a ball thatseparated the interior vertices
from the endpoints.
We said the endpointsreally can't get in
if we set the ball right.
And therefore, you could connectthe endpoints by a big rope,
and then you havean Trefoil knot,
and there's no way you canuntie the knot with that
having intersection somewhere.
You can argue the ropenever self intersects,
so it must be the chain.
We can do the samething with this example,
with a 4 chain interlockedwith a triangle.
And we'll sketch that proof.
So I want to prove that thosetwo guys are interlocked,
so suppose that somehow theyseparate from each other.
If there's a separatingmotion, there's
a motion where the triangleactually doesn't move at all.
So triangle's rigid,except that it
can move by rigid motion,translation and rotation.
But any motion I have, I canrecenter things by relativity
so that thetriangles stays fixed
and just thequadrilateral moves.
So that's nice because atriangle is a natural thing
to draw a spherearound, and I want
to argue if these barsare really, really long,
the endpoints will beoutside this big sphere.
So let me tell you how long.
I have my triangleI'm going to draw
a sphere thatcontains the triangle.
Say this sphere hasradius little r.
Big R is going to belittle r plus the sum
of the middle bars, whichshould sound familiar from what
we did with knitting needles.
This is of the 4 chain.
There's two middle bars.
Add up their lengths.
Add on r.
This is just a bignumber, capital R.
I'm going to make it bigger.
So I have my little triangle.
It has a tiny ball around it.
I'm going to draw apretty big sphere here
of radius 15 r, an evenbigger sphere of radius 20 r.
And I don't need to be preciseabout exactly where the center
is, but I guess it wouldbe the center of this ball.
Here's what I want to say.
I'm supposing the lengths ofthese edges is more than 20 r.
So initially, thosebars go outside the box.
The endpoints areoutside of the big ball.
Now, here's the claim.
As long as the endpoints ofthe really long-- the endpoints
of the 4 chain stay outside thisball, then the interior bars--
these two middle bars-- haveto stay inside this ball.
This is just likethe knitting needles.
As long as the superlong bars, the endpoints,
stay outside thisball, the middle bars
have to stay inside.
That's just because thosebars are so darn long.
And so for as longas that holds,
you can compute thetopology-- I'm not
going to try to draw it-- thetopology of-- in this picture,
if you connect to theends of the purple guys,
because they're outside thebig ball, the 15 r ball--
not sure I reallyneed the 20 r ball,
but the 15 r ball is the key--topology you get is this.
That is the linkbetween the circle,
which is this nice loop.
And the purple guyis that red loop
if you just figure out whatit looks like currently.
And as long as the endpointsof these guys don't go inside
and those guysremain on the inside,
basically until somethinginteresting happens,
the topology has to be that.
So at some point-- sorry,I said that slightly wrong.
As long as the middlebars stay inside the ball
and the endpoint stayoutside the ball, a 15 r,
this will be the case.
They are not saying nothinginteresting happened.
So violation, theonly way to open
this thing could be an endpointgoes inside or a middle bar
goes outside the ball.
Consider the momentwhen that happens.
If a middle bar, onein the middle vertices
is going to go outsidethis 15 r radius ball,
then you know thatall of the middle bars
are far away from thistriangle because those edges
very small comparedto capital R.
So we're 15 away.
If you have one middle vertexthat's outside, all of them
are pretty close to outside.
They're all going tobe in some smaller ball
here-- outsidethat smaller ball.
The alternative is thatone of the end-- that's
not a contradiction yet,but we'll come back to it--
the alternative is that oneof the endpoints of the bars
goes inside thisradius 15 r ball.
When that happens, becausethis bar is so long,
the other end of the bar willactually be outside the sphere.
And so then, again,all the middle guys
are outside the sphere.
So either way, you violate.
I assumed thisbefore, but now, I'm
saying if you try totake these guys out
or if you try topush this guy in,
the middle guys areoutside the ball already.
So consider a situation whenthe middle edges are all outside
the ball of radius 15 r.
The only thing that couldpenetrate some tiny sphere,
like this one of little r,only parts of the 4 chain
that could penetratethat are the long bars
because the middlestuff is too far away.
The long bars are super long,so they could conceivably
penetrate the triangle.
All we really care aboutis piercing the center
of the trianglebecause that's when
we get interesting topology.
We want to get thistopology, but sadly, you
could only get these topologies.
I guess luckily.
You can only get thosethree topologies,
which don't match this one.
And so there's no wayto get continuously
from one of these to the other.
That's the argument.
Let me say a littlemore which is
if neither of the two longbars hit the triangle,
then you trivially get this.
You don't get any linking.
If one of them strikes atriangle, you always get this.
If two of themstrike the triangle,
it's possible toget this or this
depending on how you link it up.
And I'm not goingto prove it here,
but that's all you can get.
And so if you can't getthis one, you're in trouble.
There's no continuousmotion from this to those
without crossing.
So that's how it goes.
And this is an example ofa topological argument.
You can use the samekind of argument
to prove this lastresult, which is this one.
But now this is not necessarilysymmetric because one's closed,
one's open.
So this is a closed 4 chainquadrilateral, in other words,
with an open 3 chain,which can also lock.
And again, you can usethe topological arguments.
A little messy because now thisis like a tetrahedron instead
of a triangle, but the sametricks work and topology,
luckily, doesn't match betweenthe inside and outside cases.
Cool.
So that is interlockingand pretty much
the entirety of this table.
Now, there's a way togeneralize this table,
which is instead of saying,oh, I have universal joints.
Everything's nice.
I start thinkingback to proteins
and say, well, what ifI had some fixed angles.
What if some of the chainsare fixed angles and others
are universal?
What if some of thechains were ridge?
Because we know that rigidhairpins can separate
without any folding whatsoever,what if some of them are rigid
and some of them are fixed angleand some of them are universal?
Well, we haven't done all ofthose results, but most of them
for pairs, we have gotuniversal and rigid.
I mean a fixed angle 2chain is a rigid 2 chain,
so there's onlytwo columns there.
Universal fixed angle rigid.
Universal fixed angle rigid.
And here we onlyget up to rigid.
Yeah, I'm not sure if it makesa huge difference out there.
Again, this is nota complete story.
There other resultsthat might fit in here.
How far down do those minuses goif you don't have rigid parts?
But let's see.
The plus meansthere's locked things.
The minus means theyalways separate.
It's a little more concise.
And we've sortedthe rows and columns
so that you get nice--conveniently you
get a nice diagonal pattern,not perfect diagonal,
but it's at least monotone.
It makes sense that arigid-- obviously, rigid
is more fixed thana fixed angle.
But it's not obviousthat a universal 4 chain
is going to lock more thana fixed angle 3 chain,
but turns out that is thecase for these examples.
Now, you could considertriples of them,
each with different properties.
Then, you get a threedimensional table.
That gets a little messier.
Probably not a hugenumber of results
are necessary along those lines.
Here, we just needed the 2chains plus the three 3 chains
were interlocked.
So there's more workto be done here,
but this was a lot of fun.
And if you want tosee the examples,
you should check out this paper.
This was basicallyfor fun and to see how
low could you go interms of number of edges
and various combinationsof different parts.
But it turns out this interlockstuff does have applications.
I'm not going tocall them practical
because it's aboutanother theory result.
And its result, I mentioned.
If you have some 3chain-- oh sorry.
Some three dimensional chain--let's say universal joints--
and you have twoconfigurations, configuration a
and configurationb, and you want
to know is there amotion from configuration
a to configuration b.
This is PSPACE-complete,result by a bunch of Berliners
from a few years ago.
And basically, what theydo is build a computer.
I don't have the gadgetshere to show you.
But they build a computerwith various moving parts
and what not.
To build the infrastructureof that computer,
the rigid part doesn't move.
They use interlocked chains.
Basically, if you want tobuild a nice, rigid framework,
like a truss, you can do itbecause you just take chains.
I'm only allowed to make chains.
I'm not allowed to make graphs.
But if I bring twoparts of the chain
really close to eachother, I can basically
tie a knot by makinglots of little links
and using say aninterlocked 3, 4 chain,
interlock 3 chain withan interlocked 4 chain.
In the same waywhen we're building
the locked 11 chainwith the lock 2 chain,
you're tying little knotsaround various points.
Here, we don't evenhave to be efficient,
just constant numbers are fine.
So you can build some rigidstructure like a tetrahedron
by taking one path here,making an interlock structure,
making interlock structure,interlock, interlock.
Could double traverse, I guess.
And you can interlockeverything using a chain.
Build a rigid structure.
Then, you go and buildthe flexible part.
And that's the fun computation.
But just to get offthe ground and to build
some rigid infrastructure,to build gadgets basically
in your hardness proof,they use interlocked chains,
which is pretty cool.
This is a really interestingresult, a very negative one.
It's really hard to foldfrom one shape to another,
but it uses this.
They also prove the same thingfor trees in two dimensions.
For that, they usedthe lock trees--
which we covered wayback, lecture three
or whatever-- these lock treesto build-- to basically fill
rigid angles, to force thingsto be at particular angles,
and then they have flexibleparts to do the computer stuff.
So it's fun.
They use our little examplesto build big computers.
Still open, ofcourse, is can I start
from a straightconfiguration of the chain
and can I get it to this.
So in other words, givena chain, can I unfold it.
We'd like to know whetherthat's polynomially
solvable or empty complete.
It is about characterizinglock chains in some sense.
This is about goingfrom arbitrary
configuration toarbitrary configuration.
And here, you'reallowed to build
rigid infrastructurewhich never moves.
Here, everything wouldhave to fall apart somehow,
so you can't useinterlock chains.
You can't use lock trees in 2D.
So this problem is still open.
Seems quitedifficult because you
can't build any infrastructurethe stays around forever.
Everything wouldhave to fall apart
if your machine terminates.
Any questions?
Wanted to talk aboutthat for a long time.
Now that we haveinterlock chains,
you get to see a little bitbehind the scenes of what's
happening.
If you want to seethe full proof,
check out that paper by[INAUDIBLE], [INAUDIBLE],
and [INAUDIBLE].
All right.
That's it.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363align:start position:0% in this video we'll create a heat map on
align:start position:0%in this video we'll create a heat map on
align:start position:0%in this video we'll create a heat map ona map of the United States we'll be
align:start position:0%a map of the United States we'll be
align:start position:0%a map of the United States we'll beusing the data set
align:start position:0%using the data set
align:start position:0%using the data setmurders dot CSV which is data provided
align:start position:0%murders dot CSV which is data provided
align:start position:0%murders dot CSV which is data providedby the FBI giving the total number of
align:start position:0%by the FBI giving the total number of
align:start position:0%by the FBI giving the total number ofmurders in the United States by state
align:start position:0%murders in the United States by state
align:start position:0%murders in the United States by statelet's start by reading in our data set
align:start position:0%let's start by reading in our data set
align:start position:0%let's start by reading in our data setwe'll call it murders and we'll use the
align:start position:0%we'll call it murders and we'll use the
align:start position:0%we'll call it murders and we'll use theread dot CSV function to read in the
align:start position:0%read dot CSV function to read in the
align:start position:0%read dot CSV function to read in thedata file murders dot CSV let's take a
align:start position:0%data file murders dot CSV let's take a
align:start position:0%data file murders dot CSV let's take alook at the structure of this data using
align:start position:0%look at the structure of this data using
align:start position:0%look at the structure of this data usingthe STR function we have 51 observations
align:start position:0%the STR function we have 51 observations
align:start position:0%the STR function we have 51 observationsfor the 50 states plus Washington DC and
align:start position:0%for the 50 states plus Washington DC and
align:start position:0%for the 50 states plus Washington DC and6 different variables the name of the
align:start position:0%6 different variables the name of the
align:start position:0%6 different variables the name of thestate the population the population
align:start position:0%state the population the population
align:start position:0%state the population the populationdensity the number of murders the number
align:start position:0%density the number of murders the number
align:start position:0%density the number of murders the numberof murders that used guns and the rate
align:start position:0%of murders that used guns and the rate
align:start position:0%of murders that used guns and the rateof gun ownership a map of the United
align:start position:0%of gun ownership a map of the United
align:start position:0%of gun ownership a map of the UnitedStates is included in our let's load the
align:start position:0%States is included in our let's load the
align:start position:0%States is included in our let's load themap and call it States map we can do so
align:start position:0%map and call it States map we can do so
align:start position:0%map and call it States map we can do sousing the map underscore data function
align:start position:0%using the map underscore data function
align:start position:0%using the map underscore data functionwhere the only argument is state in
align:start position:0%where the only argument is state in
align:start position:0%where the only argument is state inquotes let's see what this looks like by
align:start position:0%quotes let's see what this looks like by
align:start position:0%quotes let's see what this looks like bytyping STR States map this is just a
align:start position:0%typing STR States map this is just a
align:start position:0%typing STR States map this is just adata frame summarizing how to draw the
align:start position:0%data frame summarizing how to draw the
align:start position:0%data frame summarizing how to draw theUnited States to plot the map we'll use
align:start position:0%United States to plot the map we'll use
align:start position:0%United States to plot the map we'll usethe polygon geometry of ggplot so type
align:start position:0%the polygon geometry of ggplot so type
align:start position:0%the polygon geometry of ggplot so typeggplot and then in parentheses our data
align:start position:0%ggplot and then in parentheses our data
align:start position:0%ggplot and then in parentheses our dataframe is States map and then our
align:start position:0%frame is States map and then our
align:start position:0%frame is States map and then ouraesthetic is x equals long the longitude
align:start position:0%aesthetic is x equals long the longitude
align:start position:0%aesthetic is x equals long the longitudevariable in States math y equals lat
align:start position:0%variable in States math y equals lat
align:start position:0%variable in States math y equals latthe latitude variable and then group
align:start position:0%the latitude variable and then group
align:start position:0%the latitude variable and then groupequals group this is the variable
align:start position:0%equals group this is the variable
align:start position:0%equals group this is the variabledefining how to draw the United States
align:start position:0%defining how to draw the United States
align:start position:0%defining how to draw the United Statesinto groups by state then close both
align:start position:0%into groups by state then close both
align:start position:0%into groups by state then close bothparentheses here and we'll add Jia
align:start position:0%parentheses here and we'll add Jia
align:start position:0%parentheses here and we'll add Jiapolygons where arguments here will be
align:start position:0%polygons where arguments here will be
align:start position:0%polygons where arguments here will befilled equals white will just fill all
align:start position:0%filled equals white will just fill all
align:start position:0%filled equals white will just fill allstates and white and color equals black
align:start position:0%states and white and color equals black
align:start position:0%states and white and color equals blackto outline the states in black now in
align:start position:0%to outline the states in black now in
align:start position:0%to outline the states in black now inyour our graphics window you should see
align:start position:0%your our graphics window you should see
align:start position:0%your our graphics window you should seea map of the United States before we can
align:start position:0%a map of the United States before we can
align:start position:0%a map of the United States before we canplot our data on this map we need to
align:start position:0%plot our data on this map we need to
align:start position:0%plot our data on this map we need tomake sure that the state names are the
align:start position:0%make sure that the state names are the
align:start position:0%make sure that the state names are thesame in the murders data frame and in
align:start position:0%same in the murders data frame and in
align:start position:0%same in the murders data frame and inthe States map data frame in the murders
align:start position:0%the States map data frame in the murders
align:start position:0%the States map data frame in the murdersdata frame our state names are in the
align:start position:0%data frame our state names are in the
align:start position:0%data frame our state names are in thestate variable and they start with a
align:start position:0%state variable and they start with a
align:start position:0%state variable and they start with acapital letter but in the States map
align:start position:0%capital letter but in the States map
align:start position:0%capital letter but in the States mapdata frame our state names are in the
align:start position:0%data frame our state names are in the
align:start position:0%data frame our state names are in theregion variable and they're all
align:start position:0%region variable and they're all
align:start position:0%region variable and they're alllowercase so let's create a new variable
align:start position:0%lowercase so let's create a new variable
align:start position:0%lowercase so let's create a new variablecalled region in our murders data frame
align:start position:0%called region in our murders data frame
align:start position:0%called region in our murders data frameto match the state name variable in the
align:start position:0%to match the state name variable in the
align:start position:0%to match the state name variable in thestate's map data frame so we'll add to
align:start position:0%state's map data frame so we'll add to
align:start position:0%state's map data frame so we'll add toour murders data frame the variable
align:start position:0%our murders data frame the variable
align:start position:0%our murders data frame the variableregion which will be equal to the
align:start position:0%region which will be equal to the
align:start position:0%region which will be equal to thelowercase version using the two lower
align:start position:0%lowercase version using the two lower
align:start position:0%lowercase version using the two lowerfunction that we used in the text
align:start position:0%function that we used in the text
align:start position:0%function that we used in the textanalytics lectures and the argument will
align:start position:0%analytics lectures and the argument will
align:start position:0%analytics lectures and the argument willbe murders state this will just convert
align:start position:0%be murders state this will just convert
align:start position:0%be murders state this will just convertthe state variable to all lowercase
align:start position:0%the state variable to all lowercase
align:start position:0%the state variable to all lowercaseletters and store it as a new variable
align:start position:0%letters and store it as a new variable
align:start position:0%letters and store it as a new variablecalled region now we can join the states
align:start position:0%called region now we can join the states
align:start position:0%called region now we can join the statesmap data frame with the murders data
align:start position:0%map data frame with the murders data
align:start position:0%map data frame with the murders dataframe by using the merge function which
align:start position:0%frame by using the merge function which
align:start position:0%frame by using the merge function whichmatches rows of the data frame based on
align:start position:0%matches rows of the data frame based on
align:start position:0%matches rows of the data frame based ona shared identifier we just defined the
align:start position:0%a shared identifier we just defined the
align:start position:0%a shared identifier we just defined thevariable region which exists in both
align:start position:0%variable region which exists in both
align:start position:0%variable region which exists in bothdata frames so we'll call our new data
align:start position:0%data frames so we'll call our new data
align:start position:0%data frames so we'll call our new dataframe murder map and we'll use the merge
align:start position:0%frame murder map and we'll use the merge
align:start position:0%frame murder map and we'll use the mergefunction where the first argument is our
align:start position:0%function where the first argument is our
align:start position:0%function where the first argument is ourfirst data frame States map the second
align:start position:0%first data frame States map the second
align:start position:0%first data frame States map the secondargument is our second data frame
align:start position:0%argument is our second data frame
align:start position:0%argument is our second data framemurders and the third argument is by
align:start position:0%murders and the third argument is by
align:start position:0%murders and the third argument is byequals region this is the identifier to
align:start position:0%equals region this is the identifier to
align:start position:0%equals region this is the identifier touse to merge the rows let's take a look
align:start position:0%use to merge the rows let's take a look
align:start position:0%use to merge the rows let's take a lookat the data frame we
align:start position:0%at the data frame we
align:start position:0%at the data frame weis created using the STR function we
align:start position:0%is created using the STR function we
align:start position:0%is created using the STR function wehave the same number of observations
align:start position:0%have the same number of observations
align:start position:0%have the same number of observationshere that we had in the States map data
align:start position:0%here that we had in the States map data
align:start position:0%here that we had in the States map dataframe but now we have both the variables
align:start position:0%frame but now we have both the variables
align:start position:0%frame but now we have both the variablesfrom the States map data frame and the
align:start position:0%from the States map data frame and the
align:start position:0%from the States map data frame and thevariables from the murders data frame
align:start position:0%variables from the murders data frame
align:start position:0%variables from the murders data framewhich were matched up based on the
align:start position:0%which were matched up based on the
align:start position:0%which were matched up based on theregion variable so now let's plot the
align:start position:0%region variable so now let's plot the
align:start position:0%region variable so now let's plot thenumber of murders on our map of the
align:start position:0%number of murders on our map of the
align:start position:0%number of murders on our map of theUnited States well again use the GG plot
align:start position:0%United States well again use the GG plot
align:start position:0%United States well again use the GG plotfunction but this time our data frame is
align:start position:0%function but this time our data frame is
align:start position:0%function but this time our data frame ismurder map in our aesthetic we want to
align:start position:0%murder map in our aesthetic we want to
align:start position:0%murder map in our aesthetic we want toagain say x equals long y equals lat and
align:start position:0%again say x equals long y equals lat and
align:start position:0%again say x equals long y equals lat andgroup equals group but we'll add one
align:start position:0%group equals group but we'll add one
align:start position:0%group equals group but we'll add onemore argument this time which is fill
align:start position:0%more argument this time which is fill
align:start position:0%more argument this time which is fillequals murders so that the states will
align:start position:0%equals murders so that the states will
align:start position:0%equals murders so that the states willbe colored according to the murders
align:start position:0%be colored according to the murders
align:start position:0%be colored according to the murdersvariable then we need to add the polygon
align:start position:0%variable then we need to add the polygon
align:start position:0%variable then we need to add the polygongeometry where the only argument here
align:start position:0%geometry where the only argument here
align:start position:0%geometry where the only argument herewill be color equals black to outline
align:start position:0%will be color equals black to outline
align:start position:0%will be color equals black to outlinethe states in black like before and
align:start position:0%the states in black like before and
align:start position:0%the states in black like before andlastly we'll add scale fill gradient
align:start position:0%lastly we'll add scale fill gradient
align:start position:0%lastly we'll add scale fill gradientwhere the arguments here will put lo
align:start position:0%where the arguments here will put lo
align:start position:0%where the arguments here will put loequals black and HI equals red to make
align:start position:0%equals black and HI equals red to make
align:start position:0%equals black and HI equals red to makeour color scheme range from black to red
align:start position:0%our color scheme range from black to red
align:start position:0%our color scheme range from black to redand then guide equals legend to make
align:start position:0%and then guide equals legend to make
align:start position:0%and then guide equals legend to makesure we get a legend on our plot if you
align:start position:0%sure we get a legend on our plot if you
align:start position:0%sure we get a legend on our plot if youhit enter and look at your graphics
align:start position:0%hit enter and look at your graphics
align:start position:0%hit enter and look at your graphicswindow now you should see that each of
align:start position:0%window now you should see that each of
align:start position:0%window now you should see that each ofthe states is colored by the number of
align:start position:0%the states is colored by the number of
align:start position:0%the states is colored by the number ofmurders in that state states with a
align:start position:0%murders in that state states with a
align:start position:0%murders in that state states with alarger number of murders are more red so
align:start position:0%larger number of murders are more red so
align:start position:0%larger number of murders are more red soit looks like California and Texas have
align:start position:0%it looks like California and Texas have
align:start position:0%it looks like California and Texas havethe largest number of murders but is
align:start position:0%the largest number of murders but is
align:start position:0%the largest number of murders but isthat just because they're the most
align:start position:0%that just because they're the most
align:start position:0%that just because they're the mostpopulous states let's create a map of
align:start position:0%populous states let's create a map of
align:start position:0%populous states let's create a map ofthe population of each state to check so
align:start position:0%the population of each state to check so
align:start position:0%the population of each state to check soback in the art console hit the up arrow
align:start position:0%back in the art console hit the up arrow
align:start position:0%back in the art console hit the up arrowand then instead of fill equals murders
align:start position:0%and then instead of fill equals murders
align:start position:0%and then instead of fill equals murderswe
align:start position:0%we
align:start position:0%weput fill equals population to color each
align:start position:0%put fill equals population to color each
align:start position:0%put fill equals population to color eachstate according to the population
align:start position:0%state according to the population
align:start position:0%state according to the populationvariable if you look at the graphics
align:start position:0%variable if you look at the graphics
align:start position:0%variable if you look at the graphicswindow we have a population map here
align:start position:0%window we have a population map here
align:start position:0%window we have a population map herewhich looks exactly the same as our
align:start position:0%which looks exactly the same as our
align:start position:0%which looks exactly the same as ourmurders map so we need to plot the
align:start position:0%murders map so we need to plot the
align:start position:0%murders map so we need to plot themurder rate instead of the number of
align:start position:0%murder rate instead of the number of
align:start position:0%murder rate instead of the number ofmurders to make sure we're not just
align:start position:0%murders to make sure we're not just
align:start position:0%murders to make sure we're not justplotting a population map so when our
align:start position:0%plotting a population map so when our
align:start position:0%plotting a population map so when ourour consul let's create a new variable
align:start position:0%our consul let's create a new variable
align:start position:0%our consul let's create a new variablefor the murder rate so in our murder map
align:start position:0%for the murder rate so in our murder map
align:start position:0%for the murder rate so in our murder mapdata frame will create the murder rate
align:start position:0%data frame will create the murder rate
align:start position:0%data frame will create the murder ratevariable which is equal to murder math
align:start position:0%variable which is equal to murder math
align:start position:0%variable which is equal to murder mathmurders the number of murders divided by
align:start position:0%murders the number of murders divided by
align:start position:0%murders the number of murders divided bymurder map population times 100,000 so
align:start position:0%murder map population times 100,000 so
align:start position:0%murder map population times 100,000 sowe've created a new variable that's the
align:start position:0%we've created a new variable that's the
align:start position:0%we've created a new variable that's thenumber of murders per 100,000 population
align:start position:0%number of murders per 100,000 population
align:start position:0%number of murders per 100,000 populationnow let's redo our plot with the fill
align:start position:0%now let's redo our plot with the fill
align:start position:0%now let's redo our plot with the fillequal to murder rate so hit the up arrow
align:start position:0%equal to murder rate so hit the up arrow
align:start position:0%equal to murder rate so hit the up arrowtwice to get back to the plotting
align:start position:0%twice to get back to the plotting
align:start position:0%twice to get back to the plottingcommand and instead of fill equals
align:start position:0%command and instead of fill equals
align:start position:0%command and instead of fill equalspopulation this time we'll put fill
align:start position:0%population this time we'll put fill
align:start position:0%population this time we'll put fillequals murder rate if you look at your
align:start position:0%equals murder rate if you look at your
align:start position:0%equals murder rate if you look at yourgraphics window now you should see that
align:start position:0%graphics window now you should see that
align:start position:0%graphics window now you should see thatthe plot is surprisingly maroon looking
align:start position:0%the plot is surprisingly maroon looking
align:start position:0%the plot is surprisingly maroon lookingthere aren't really any red states why
align:start position:0%there aren't really any red states why
align:start position:0%there aren't really any red states whyit turns out that Washington DC is an
align:start position:0%it turns out that Washington DC is an
align:start position:0%it turns out that Washington DC is anoutlier with a very high murder rate but
align:start position:0%outlier with a very high murder rate but
align:start position:0%outlier with a very high murder rate butit's such a small region on the map that
align:start position:0%it's such a small region on the map that
align:start position:0%it's such a small region on the map thatwe can't even see it
align:start position:0%we can't even see it
align:start position:0%we can't even see itso let's redo our plot are you moving
align:start position:0%so let's redo our plot are you moving
align:start position:0%so let's redo our plot are you movingany observations with murder rates above
align:start position:0%any observations with murder rates above
align:start position:0%any observations with murder rates above10 which we know will only exclude
align:start position:0%10 which we know will only exclude
align:start position:0%10 which we know will only excludeWashington DC keep in mind that when
align:start position:0%Washington DC keep in mind that when
align:start position:0%Washington DC keep in mind that wheninterpreting and explaining the
align:start position:0%interpreting and explaining the
align:start position:0%interpreting and explaining theresulting plot you should always know
align:start position:0%resulting plot you should always know
align:start position:0%resulting plot you should always knowwhat you did to create it remove to
align:start position:0%what you did to create it remove to
align:start position:0%what you did to create it remove toWashington DC from the data so in your
align:start position:0%Washington DC from the data so in your
align:start position:0%Washington DC from the data so in yourare console hit the up arrow again and
align:start position:0%are console hit the up arrow again and
align:start position:0%are console hit the up arrow again andthis time after guide equals legend will
align:start position:0%this time after guide equals legend will
align:start position:0%this time after guide equals legend willtype limits equals C and in parentheses
align:start position:0%type limits equals C and in parentheses
align:start position:0%type limits equals C and in parentheses0 comma 10 and hit enter now if you look
align:start position:0%0 comma 10 and hit enter now if you look
align:start position:0%0 comma 10 and hit enter now if you lookback at your graphics window you can see
align:start position:0%back at your graphics window you can see
align:start position:0%back at your graphics window you can seea range of colors on the map in this
align:start position:0%a range of colors on the map in this
align:start position:0%a range of colors on the map in thisvideo we saw how we can make a heat map
align:start position:0%video we saw how we can make a heat map
align:start position:0%video we saw how we can make a heat mapon a map of the United States which is
align:start position:0%on a map of the United States which is
align:start position:0%on a map of the United States which isvery useful for organizations like the
align:start position:0%very useful for organizations like the
align:start position:0%very useful for organizations like theWorld Health Organization or government
align:start position:0%World Health Organization or government
align:start position:0%World Health Organization or governmententities who want to show data to the
align:start position:0%entities who want to show data to the
align:start position:0%entities who want to show data to thepublic organized by state or country in
align:start position:0%public organized by state or country in
align:start position:0%public organized by state or country inthe next video we'll conclude by
align:start position:0%the next video we'll conclude by
align:start position:0%the next video we'll conclude bydiscussing the analytics edge of
align:start position:0%discussing the analytics edge of
align:start position:0%discussing the analytics edge ofpredictive policing123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963align:start position:0% the coefficients and choose K that we
align:start position:0%the coefficients and choose K that we
align:start position:0%the coefficients and choose K that wecalculated in the previous segment are
align:start position:0%calculated in the previous segment are
align:start position:0%calculated in the previous segment areknown as the binomial coefficients they
align:start position:0%known as the binomial coefficients they
align:start position:0%known as the binomial coefficients theyare intimately related to certain
align:start position:0%are intimately related to certain
align:start position:0%are intimately related to certainprobabilities associated with coin
align:start position:0%probabilities associated with coin
align:start position:0%probabilities associated with cointossing models the so called binomial
align:start position:0%tossing models the so called binomial
align:start position:0%tossing models the so called binomialprobabilities this is going to be our
align:start position:0%probabilities this is going to be our
align:start position:0%probabilities this is going to be oursubject we consider a coin which we toss
align:start position:0%subject we consider a coin which we toss
align:start position:0%subject we consider a coin which we tossand times in a row independently for
align:start position:0%and times in a row independently for
align:start position:0%and times in a row independently foreach one of the tosses of this coin we
align:start position:0%each one of the tosses of this coin we
align:start position:0%each one of the tosses of this coin weassume that there is a certain
align:start position:0%assume that there is a certain
align:start position:0%assume that there is a certainprobability P that the result is heads
align:start position:0%probability P that the result is heads
align:start position:0%probability P that the result is headswhich of course implies that the
align:start position:0%which of course implies that the
align:start position:0%which of course implies that theprobability of obtaining tails in any
align:start position:0%probability of obtaining tails in any
align:start position:0%probability of obtaining tails in anyparticular toss is going to be 1 minus P
align:start position:0%particular toss is going to be 1 minus P
align:start position:0%particular toss is going to be 1 minus Pthe question we want to address is the
align:start position:0%the question we want to address is the
align:start position:0%the question we want to address is thefollowing we want to calculate the
align:start position:0%following we want to calculate the
align:start position:0%following we want to calculate theprobability that in those n independent
align:start position:0%probability that in those n independent
align:start position:0%probability that in those n independentcoin tosses we're going to observe
align:start position:0%coin tosses we're going to observe
align:start position:0%coin tosses we're going to observeexactly K heads let us start working our
align:start position:0%exactly K heads let us start working our
align:start position:0%exactly K heads let us start working ourway towards the solution to this problem
align:start position:0%way towards the solution to this problem
align:start position:0%way towards the solution to this problemby looking first at a simple setting and
align:start position:0%by looking first at a simple setting and
align:start position:0%by looking first at a simple setting andthen move on so let us answer this
align:start position:0%then move on so let us answer this
align:start position:0%then move on so let us answer thissimple question what is the probability
align:start position:0%simple question what is the probability
align:start position:0%simple question what is the probabilitythat we observe this particular sequence
align:start position:0%that we observe this particular sequence
align:start position:0%that we observe this particular sequenceof course here we take an equal to 6 and
align:start position:0%of course here we take an equal to 6 and
align:start position:0%of course here we take an equal to 6 andwe wish to calculate this probability
align:start position:0%we wish to calculate this probability
align:start position:0%we wish to calculate this probabilitynow because we have assumed that the
align:start position:0%now because we have assumed that the
align:start position:0%now because we have assumed that thecoin tosses are independent we can
align:start position:0%coin tosses are independent we can
align:start position:0%coin tosses are independent we canmultiply probabilities so the
align:start position:0%multiply probabilities so the
align:start position:0%multiply probabilities so theprobability of this sequence is equal to
align:start position:0%probability of this sequence is equal to
align:start position:0%probability of this sequence is equal tothe probability that the first toss is
align:start position:0%the probability that the first toss is
align:start position:0%the probability that the first toss isheads times the probability that the
align:start position:0%heads times the probability that the
align:start position:0%heads times the probability that thesecond toss is tails which is 1 minus P
align:start position:0%second toss is tails which is 1 minus P
align:start position:0%second toss is tails which is 1 minus Ptimes the probability that the third
align:start position:0%times the probability that the third
align:start position:0%times the probability that the thirdtoss is tails which is 1 minus P times
align:start position:0%toss is tails which is 1 minus P times
align:start position:0%toss is tails which is 1 minus P timesthe probability of heads times the
align:start position:0%the probability of heads times the
align:start position:0%the probability of heads times theprobability of heads times the
align:start position:0%probability of heads times the
align:start position:0%probability of heads times theprobability of heads and by collecting
align:start position:0%probability of heads and by collecting
align:start position:0%probability of heads and by collectingterms this is P to the fourth times 1
align:start position:0%terms this is P to the fourth times 1
align:start position:0%terms this is P to the fourth times 1minus P to the second power more
align:start position:0%minus P to the second power more
align:start position:0%minus P to the second power moregenerally if I give you a particular
align:start position:0%generally if I give you a particular
align:start position:0%generally if I give you a particularsequence of heads and
align:start position:0%sequence of heads and
align:start position:0%sequence of heads andas in this example and I asked you what
align:start position:0%as in this example and I asked you what
align:start position:0%as in this example and I asked you whatis the probability that this particular
align:start position:0%is the probability that this particular
align:start position:0%is the probability that this particularsequence is observed then by
align:start position:0%sequence is observed then by
align:start position:0%sequence is observed then bygeneralizing from this answer or from
align:start position:0%generalizing from this answer or from
align:start position:0%generalizing from this answer or fromthe derivation of this answer you see
align:start position:0%the derivation of this answer you see
align:start position:0%the derivation of this answer you seethat you're going to get P to the power
align:start position:0%that you're going to get P to the power
align:start position:0%that you're going to get P to the powernumber of heads and the reason is that
align:start position:0%number of heads and the reason is that
align:start position:0%number of heads and the reason is thateach time that there is a head showing
align:start position:0%each time that there is a head showing
align:start position:0%each time that there is a head showingup in this sequence there is a
align:start position:0%up in this sequence there is a
align:start position:0%up in this sequence there is acorresponding factor of P in this
align:start position:0%corresponding factor of P in this
align:start position:0%corresponding factor of P in thisnumerical answer and then there are
align:start position:0%numerical answer and then there are
align:start position:0%numerical answer and then there arefactors associated with tails each tail
align:start position:0%factors associated with tails each tail
align:start position:0%factors associated with tails each tailcontributes a factor of 1 minus P and so
align:start position:0%contributes a factor of 1 minus P and so
align:start position:0%contributes a factor of 1 minus P and sowe are going to have here 1 minus P to a
align:start position:0%we are going to have here 1 minus P to a
align:start position:0%we are going to have here 1 minus P to apower equal to the number of tails now
align:start position:0%power equal to the number of tails now
align:start position:0%power equal to the number of tails nowif I ask you about the probability of a
align:start position:0%if I ask you about the probability of a
align:start position:0%if I ask you about the probability of aparticular sequence and that particular
align:start position:0%particular sequence and that particular
align:start position:0%particular sequence and that particularsequence has happens to have exactly K
align:start position:0%sequence has happens to have exactly K
align:start position:0%sequence has happens to have exactly Kheads what is the probability of that
align:start position:0%heads what is the probability of that
align:start position:0%heads what is the probability of thatsequence well we already calculated what
align:start position:0%sequence well we already calculated what
align:start position:0%sequence well we already calculated whatit is it's the previous answer except
align:start position:0%it is it's the previous answer except
align:start position:0%it is it's the previous answer exceptthat we use the symbol K instead of just
align:start position:0%that we use the symbol K instead of just
align:start position:0%that we use the symbol K instead of justwriting out explicitly number of heads
align:start position:0%writing out explicitly number of heads
align:start position:0%writing out explicitly number of headsand the number of tails is the number of
align:start position:0%and the number of tails is the number of
align:start position:0%and the number of tails is the number oftosses
align:start position:0%tosses
align:start position:0%tosses- how many tosses resulted in heads now
align:start position:0%- how many tosses resulted in heads now
align:start position:0%- how many tosses resulted in heads nowwe're ready to consider the actual
align:start position:0%we're ready to consider the actual
align:start position:0%we're ready to consider the actualproblem that we want to solve which is
align:start position:0%problem that we want to solve which is
align:start position:0%problem that we want to solve which isto calculate the probability of K heads
align:start position:0%to calculate the probability of K heads
align:start position:0%to calculate the probability of K headsthe event of obtaining K hands can
align:start position:0%the event of obtaining K hands can
align:start position:0%the event of obtaining K hands canhappen in many different ways
align:start position:0%happen in many different ways
align:start position:0%happen in many different waysany particular K hat sequence makes that
align:start position:0%any particular K hat sequence makes that
align:start position:0%any particular K hat sequence makes thatevent to occur any particular K hat
align:start position:0%event to occur any particular K hat
align:start position:0%event to occur any particular K hatsequence has a probability equal to this
align:start position:0%sequence has a probability equal to this
align:start position:0%sequence has a probability equal to thisexpression the overall probability of K
align:start position:0%expression the overall probability of K
align:start position:0%expression the overall probability of Kheads is going to be the probability of
align:start position:0%heads is going to be the probability of
align:start position:0%heads is going to be the probability ofany particular K hat sequence times the
align:start position:0%any particular K hat sequence times the
align:start position:0%any particular K hat sequence times thenumber of K had sequences that we have
align:start position:0%
align:start position:0% now the reason why we can carry out this
align:start position:0%now the reason why we can carry out this
align:start position:0%now the reason why we can carry out thisargument is the fact that any K had
align:start position:0%argument is the fact that any K had
align:start position:0%argument is the fact that any K hadsequence has the same probability
align:start position:0%sequence has the same probability
align:start position:0%sequence has the same probabilityotherwise we wouldn't be able to write
align:start position:0%otherwise we wouldn't be able to write
align:start position:0%otherwise we wouldn't be able to writedown an answer which is just the product
align:start position:0%down an answer which is just the product
align:start position:0%down an answer which is just the productof two terms but because every K had
align:start position:0%of two terms but because every K had
align:start position:0%of two terms but because every K hadsequence has the same probability to
align:start position:0%sequence has the same probability to
align:start position:0%sequence has the same probability tofind the overall probability we take the
align:start position:0%find the overall probability we take the
align:start position:0%find the overall probability we take theprobability of each one of them and
align:start position:0%probability of each one of them and
align:start position:0%probability of each one of them andmultiplied with the number of how many
align:start position:0%multiplied with the number of how many
align:start position:0%multiplied with the number of how manyof these we have so to make further
align:start position:0%of these we have so to make further
align:start position:0%of these we have so to make furtherprogress now we need to calculate the
align:start position:0%progress now we need to calculate the
align:start position:0%progress now we need to calculate thenumber of possible K had sequences how
align:start position:0%number of possible K had sequences how
align:start position:0%number of possible K had sequences howmany are there
align:start position:0%many are there
align:start position:0%many are therewell specifying a K had sequence is the
align:start position:0%well specifying a K had sequence is the
align:start position:0%well specifying a K had sequence is thesame as the following you think of
align:start position:0%same as the following you think of
align:start position:0%same as the following you think ofhaving n time slots these time slots
align:start position:0%having n time slots these time slots
align:start position:0%having n time slots these time slotscorresponds to the different doses of
align:start position:0%corresponds to the different doses of
align:start position:0%corresponds to the different doses ofyour coin and to specify a K head
align:start position:0%your coin and to specify a K head
align:start position:0%your coin and to specify a K headsequence you need to tell me which ones
align:start position:0%sequence you need to tell me which ones
align:start position:0%sequence you need to tell me which onesof these slots happen to contain a head
align:start position:0%of these slots happen to contain a head
align:start position:0%of these slots happen to contain a headyou need to tell me K of those slots so
align:start position:0%you need to tell me K of those slots so
align:start position:0%you need to tell me K of those slots soin other words what you're doing is
align:start position:0%in other words what you're doing is
align:start position:0%in other words what you're doing isyou're specifying a subset of the set of
align:start position:0%you're specifying a subset of the set of
align:start position:0%you're specifying a subset of the set ofthese and slots a subset that has K
align:start position:0%these and slots a subset that has K
align:start position:0%these and slots a subset that has Kelements you need to choose K of the
align:start position:0%elements you need to choose K of the
align:start position:0%elements you need to choose K of theslots out of the N and tell me that
align:start position:0%slots out of the N and tell me that
align:start position:0%slots out of the N and tell me thatthose case Lots have heads that's the
align:start position:0%those case Lots have heads that's the
align:start position:0%those case Lots have heads that's theway of specifying a particular K had
align:start position:0%way of specifying a particular K had
align:start position:0%way of specifying a particular K hadsequence so what's the number of K had
align:start position:0%sequence so what's the number of K had
align:start position:0%sequence so what's the number of K hadsequences well it's the same as the
align:start position:0%sequences well it's the same as the
align:start position:0%sequences well it's the same as thenumber of ways that you can choose K
align:start position:0%number of ways that you can choose K
align:start position:0%number of ways that you can choose Kslots out of the n slots which is our
align:start position:0%slots out of the n slots which is our
align:start position:0%slots out of the n slots which is ourbinomial coefficient and choose K
align:start position:0%binomial coefficient and choose K
align:start position:0%binomial coefficient and choose Ktherefore the answer to our problem is
align:start position:0%therefore the answer to our problem is
align:start position:0%therefore the answer to our problem isthis expression here times and choose K
align:start position:0%this expression here times and choose K
align:start position:0%this expression here times and choose Kwhich is shown up here at this point we
align:start position:0%which is shown up here at this point we
align:start position:0%which is shown up here at this point wecan pause and consider a simple question
align:start position:0%can pause and consider a simple question
align:start position:0%can pause and consider a simple questionto check your understanding of the
align:start position:0%to check your understanding of the
align:start position:0%to check your understanding of thebinomial probabilities123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675align:start position:0% in this video we will compare all the
align:start position:0%in this video we will compare all the
align:start position:0%in this video we will compare all thedifferent methods we have seen so far in
align:start position:0%different methods we have seen so far in
align:start position:0%different methods we have seen so far inthis course and review what they are
align:start position:0%this course and review what they are
align:start position:0%this course and review what they areused for their benefits and their
align:start position:0%used for their benefits and their
align:start position:0%used for their benefits and theirlimitations linear regression is used to
align:start position:0%limitations linear regression is used to
align:start position:0%limitations linear regression is used topredict a continuous outcome linear
align:start position:0%predict a continuous outcome linear
align:start position:0%predict a continuous outcome linearregression is simple and commonly used
align:start position:0%regression is simple and commonly used
align:start position:0%regression is simple and commonly usedand it works on small and large data
align:start position:0%and it works on small and large data
align:start position:0%and it works on small and large datasets the downside is that it assumes a
align:start position:0%sets the downside is that it assumes a
align:start position:0%sets the downside is that it assumes alinear relationship if we have a
align:start position:0%linear relationship if we have a
align:start position:0%linear relationship if we have anonlinear relationship we need to add
align:start position:0%nonlinear relationship we need to add
align:start position:0%nonlinear relationship we need to addvariables to our analysis for instance
align:start position:0%variables to our analysis for instance
align:start position:0%variables to our analysis for instancesuppose y equals a log X plus B where X
align:start position:0%suppose y equals a log X plus B where X
align:start position:0%suppose y equals a log X plus B where Xs theta and Y is what we need to predict
align:start position:0%s theta and Y is what we need to predict
align:start position:0%s theta and Y is what we need to predictto be able to find the coefficients a
align:start position:0%to be able to find the coefficients a
align:start position:0%to be able to find the coefficients aand B through linear regression we need
align:start position:0%and B through linear regression we need
align:start position:0%and B through linear regression we needto view log X as a new variable remember
align:start position:0%to view log X as a new variable remember
align:start position:0%to view log X as a new variable rememberthat we did this in the Google Flu
align:start position:0%that we did this in the Google Flu
align:start position:0%that we did this in the Google Fluhomework problem logistic regression is
align:start position:0%homework problem logistic regression is
align:start position:0%homework problem logistic regression isused to predict a categorical outcome we
align:start position:0%used to predict a categorical outcome we
align:start position:0%used to predict a categorical outcome wemainly focus on binary outcomes like yes
align:start position:0%mainly focus on binary outcomes like yes
align:start position:0%mainly focus on binary outcomes like yesor no spell or bi accept or reject and
align:start position:0%or no spell or bi accept or reject and
align:start position:0%or no spell or bi accept or reject andso on we have seen it applied to predict
align:start position:0%so on we have seen it applied to predict
align:start position:0%so on we have seen it applied to predictthe quality of care good or bad the
align:start position:0%the quality of care good or bad the
align:start position:0%the quality of care good or bad thewinner of the US presidential election
align:start position:0%winner of the US presidential election
align:start position:0%winner of the US presidential electionRepublican or Democrat parole violation
align:start position:0%Republican or Democrat parole violation
align:start position:0%Republican or Democrat parole violationand loan repayment yes or no in addition
align:start position:0%and loan repayment yes or no in addition
align:start position:0%and loan repayment yes or no in additionto its relative simplicity logistic
align:start position:0%to its relative simplicity logistic
align:start position:0%to its relative simplicity logisticregression computes probabilities that
align:start position:0%regression computes probabilities that
align:start position:0%regression computes probabilities thatcan be used to assess the confidence of
align:start position:0%can be used to assess the confidence of
align:start position:0%can be used to assess the confidence ofour prediction the downside is again
align:start position:0%our prediction the downside is again
align:start position:0%our prediction the downside is againsimilar to that of linear regression in
align:start position:0%similar to that of linear regression in
align:start position:0%similar to that of linear regression inthe trees week we learned car which is
align:start position:0%the trees week we learned car which is
align:start position:0%the trees week we learned car which isused to predict if it's a powerful
align:start position:0%used to predict if it's a powerful
align:start position:0%used to predict if it's a powerfuloutcome with possibly more than two
align:start position:0%outcome with possibly more than two
align:start position:0%outcome with possibly more than twocategories like quality rating from one
align:start position:0%categories like quality rating from one
align:start position:0%categories like quality rating from oneto five and three decisions say buy sell
align:start position:0%to five and three decisions say buy sell
align:start position:0%to five and three decisions say buy sellor home it can also predict a continuous
align:start position:0%or home it can also predict a continuous
align:start position:0%or home it can also predict a continuousoutcome such as salary or price we have
align:start position:0%outcome such as salary or price we have
align:start position:0%outcome such as salary or price we haveseen it apply to predict life expectancy
align:start position:0%seen it apply to predict life expectancy
align:start position:0%seen it apply to predict life expectancyearnings from census data and letter
align:start position:0%earnings from census data and letter
align:start position:0%earnings from census data and letterrecognition the power of card lies in
align:start position:0%recognition the power of card lies in
align:start position:0%recognition the power of card lies inthe fact that it can handle nonlinear
align:start position:0%the fact that it can handle nonlinear
align:start position:0%the fact that it can handle nonlinearrelationships between variables the tree
align:start position:0%relationships between variables the tree
align:start position:0%relationships between variables the treerepresentation makes it easy to
align:start position:0%representation makes it easy to
align:start position:0%representation makes it easy tovisualize and interpret the results the
align:start position:0%visualize and interpret the results the
align:start position:0%visualize and interpret the results thedownside is that card may not work very
align:start position:0%downside is that card may not work very
align:start position:0%downside is that card may not work verywell on small data sets random forests
align:start position:0%well on small data sets random forests
align:start position:0%well on small data sets random forestsis also used to predict categorical
align:start position:0%is also used to predict categorical
align:start position:0%is also used to predict categoricaloutcome
align:start position:0%outcome
align:start position:0%outcomeor continuous outcomes its benefit over
align:start position:0%or continuous outcomes its benefit over
align:start position:0%or continuous outcomes its benefit overcard is that it can improve the
align:start position:0%card is that it can improve the
align:start position:0%card is that it can improve theprediction accuracy however we need to
align:start position:0%prediction accuracy however we need to
align:start position:0%prediction accuracy however we need toadjust many parameters and it's not as
align:start position:0%adjust many parameters and it's not as
align:start position:0%adjust many parameters and it's not aseasy to explain as car this week we
align:start position:0%easy to explain as car this week we
align:start position:0%easy to explain as car this week welearned here at Google clustering which
align:start position:0%learned here at Google clustering which
align:start position:0%learned here at Google clustering whichis used to find similar groups an
align:start position:0%is used to find similar groups an
align:start position:0%is used to find similar groups animportant aspect of clustering data into
align:start position:0%important aspect of clustering data into
align:start position:0%important aspect of clustering data intosmaller groups is that we can improve
align:start position:0%smaller groups is that we can improve
align:start position:0%smaller groups is that we can improveour prediction accuracy by applying our
align:start position:0%our prediction accuracy by applying our
align:start position:0%our prediction accuracy by applying ourpredictive methods like logistic
align:start position:0%predictive methods like logistic
align:start position:0%predictive methods like logisticregression for instance on each cluster
align:start position:0%regression for instance on each cluster
align:start position:0%regression for instance on each clusterwe expand on this cluster then predict
align:start position:0%we expand on this cluster then predict
align:start position:0%we expand on this cluster then predictidea in one of our homework problems
align:start position:0%idea in one of our homework problems
align:start position:0%idea in one of our homework problemshierarchical clustering is an attractive
align:start position:0%hierarchical clustering is an attractive
align:start position:0%hierarchical clustering is an attractivetechnique because we do not need to
align:start position:0%technique because we do not need to
align:start position:0%technique because we do not need toselect the number of clusters before
align:start position:0%select the number of clusters before
align:start position:0%select the number of clusters beforerunning the algorithm also we can
align:start position:0%running the algorithm also we can
align:start position:0%running the algorithm also we canvisualize the clusters using a
align:start position:0%visualize the clusters using a
align:start position:0%visualize the clusters using adendrogram the drawback though is that
align:start position:0%dendrogram the drawback though is that
align:start position:0%dendrogram the drawback though is thathierarchical clustering is hard to use
align:start position:0%hierarchical clustering is hard to use
align:start position:0%hierarchical clustering is hard to useon large datasets because of the
align:start position:0%on large datasets because of the
align:start position:0%on large datasets because of thepairwise distance calculation as we saw
align:start position:0%pairwise distance calculation as we saw
align:start position:0%pairwise distance calculation as we sawin this recitation an alternative method
align:start position:0%in this recitation an alternative method
align:start position:0%in this recitation an alternative methodis k-means clustering which works well
align:start position:0%is k-means clustering which works well
align:start position:0%is k-means clustering which works wellon datasets of any size
align:start position:0%on datasets of any size
align:start position:0%on datasets of any sizehowever k-means requires selecting the
align:start position:0%however k-means requires selecting the
align:start position:0%however k-means requires selecting thenumber of clusters before running the
align:start position:0%number of clusters before running the
align:start position:0%number of clusters before running thealgorithm this may not be a limitation
align:start position:0%algorithm this may not be a limitation
align:start position:0%algorithm this may not be a limitationif we have an intuition of the number of
align:start position:0%if we have an intuition of the number of
align:start position:0%if we have an intuition of the number ofclusters we want to look at as in the
align:start position:0%clusters we want to look at as in the
align:start position:0%clusters we want to look at as in themedical image segmentation example I
align:start position:0%medical image segmentation example I
align:start position:0%medical image segmentation example Ihope that this quick review give you a
align:start position:0%hope that this quick review give you a
align:start position:0%hope that this quick review give you agood refresher before the competition
align:start position:0%good refresher before the competition
align:start position:0%good refresher before the competitionweek good luck12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250The 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.
ERIC LANDER: Let's talk aboutwhat Mendel really did in his
experiments.
So section one, Mendel'sexperiments.
Mendel did a lot of reallycool things.
The first thing he did was, inorder to study heredity, that
was his assignment as a monk--go study heredity--
he had to get some materialto work with.
He decided to use peas.
Why peas?
Well, there are a lot ofvarieties of peas in the
market, many differentkinds of peas.
And you could breedthem together.
There were tall peas, shortpeas, green peas, yellow peas,
round peas, wrinkled peas, allkinds of peas that you could
find in the market.
They grew very wellin the garden.
And when you're done with theexperiment, you could feed
them to the monks.
So the first thing he didwas he got his material.
And did he immediately startcrossing his peas together?
No.
What did he do?
AUDIENCE: [INAUDIBLE].
ERIC LANDER: Sorry?
AUDIENCE: He grewthem separately.
ERIC LANDER: He first grewthem separately.
Because he wanted to see if hewas going to study how traits
were inherited, he first had todo the control experiment.
He first had to show that if hetook each variety of peas,
they would breed true.
So the first thing is,Mendel did controls.
That's an important thingwe learned from Mendel.
He took round peas.
He took wrinkled peas.
And he bred them withthemselves.
And they always cameout round.
And he took wrinkled peas and hebred them with themselves.
And they came out wrinkled.
And if they hadn't always comeout round or hadn't always
come out wrinkled, it would'vebeen a much harder experiment
to interpret later.
So that was incredibly importantthing to do, was do
the controls, roundand wrinkled.
Then, when he was satisfied thathe had pure breeding or
true breeding plants, then andonly then did he do an
experiment.
What experiment did he do?
You all know Mendel.
The truth is, this is notlike a surprise here.
So what did he do?
He crossed the roundand the wrinkled.
I'm trying to draw out the newthings here, but some of the
old ones you know.
And when he crossed roundand wrinkled--
We'll call this theF 0 generation.
In the F 1 generation,what did he see?
Round.
You all know this.
He saw all round.
He didn't see puckered,slightly puckered or
anything like that.
He didn't see any wrinkles.
They were all every bit as roundas the rounds in the
parental generation.
That was an extremely importantpoint, because of
course, a competing theory ofinheritance was blending
inheritance, where theoffspring would be
intermediates.
And the truth is almost everyexperiment that you do when
you take plants and you crossthem, or animals and you cross
them, despite your biologytextbook, shows blending
inheritance.
A tall plant and a shortplant, you breed them.
Almost always isa middle plant.
But not for the peas.
The peas were a beautifulsystem.
And Mendel very lucky to havechosen it, because truth is,
there was only one genedifference that was
controlling these traits.
If there'd been 10 genescontrolling this, you'd get
some blending, blah,blah, blah.
But Mendel got a situationwith really clean
experimental data.
The round was everybit as round.
And so that said, no blending.
Now what did he do?
Next, what Mendel does is hecrosses these round peas to
themselves.
He selfs them.
So we're going toself the peas.
The peas can be selfed.
They have both male and femalereproductive parts.
And when he selfs them,they self pollinate.
And what do they produce?
Peas.
That's good.
They produce peas.
And what does he notice?
He notices that now they'renot all round.
Some of them are wrinkled.
And the wrinkleds are everybit as wrinkled as the
wrinkleds were in the parentalgeneration F 0.
And the round were everybit as round.
So suddenly wrinkledhad gone away.
And what had happened?
Sorry.
Wrinkled had gone awayin this generation.
And now it had reappeared.
The trait reappears.
It's quantal.
It's discrete.
It's not blendedout in any way.
It's not blended.
It's not imperfect.
It's the same wrinkled thatwas there before.
That's a big qualitativeobservation.
This whole blending notion can'tbe right, at least for
this experiment.
Discreteness rules.
So that was his experiment.
Mendel could've written it upand said, wow, the traits
don't blend.
They're discrete.
But Mendel, being an MIT kindof monk, went further.
What did he do?
Sorry?
AUDIENCE: He repeated it.
ERIC LANDER: He repeated it.
And it still showedsome rounds and
wrinkleds and all that.
But he was a very quantitativeMIT monk.
He counted them, which seemsobvious, but ain't so obvious.
He counted them.
And what did he find?
A fixed proportion?
What?
AUDIENCE: A ratio.
ERIC LANDER: A ratio.
AUDIENCE: Wasn't there 1:3?
ERIC LANDER: 1:3 or 3:1 orsomething like that?
No.
No.
Nope.
No, he counted.
He counted.
And what he found wasrounds: 5,474.
Wrinkleds: 1,850.
Ratio, not 3:1 at all.
2.96:1.
No, no, no.
But you see, you say becauseyour books all tell you 3:1,
that it's obvious if youdo that, you say,
that must be 3:1.
It not must be 3:1.
It's 2.96:1.
And if you do it again,you might get 2.87:1.
And it actually takes quite animagination to say, it's
trying to be 3.
Just think about it.
You come to this experimentand you say, it's
trying to be 3.
That's a separate leap andan important leap.
He counted.
And he got numbers, 2.96:1.
And he got other numbers.
He then, as you've done soquickly, made a hypothesis.
That hypothesis was that, infact, this was trying to be
3:1, that it quote "wanted tobe 3:1." It was near 3:1.
And that really the reasonit was trying
to be 3:1 was because--
Well, there was a prettynice explanation here.
His cool explanation was, theround plants and the wrinkled
plants, well he madeup a model.
These guys had two particles ofinheritance, big R big R,
little r little r.
When you cross them together,these guys were
big R, little r.
And when you self them, if yourandomly chose one particle
from the sperm and one particlefrom the egg, ovule,
you would have big R, big R, bigR, little r, little r, big
R, and little r, little r,all as possibilities.
And that these guys, big R, bigR, they would be round.
Why would they be round?
Well because that's what theparental generation here was.
The little r little r, theywould be wrinkled.
Because that's the parentalgeneration there.
And these guys that have one ofeach, what would they be?
Round, because we saw that inthe F1 generation, one of each
makes it round.
So we had a model, a hypothesis,a model.
Pretty cool.
You can come up with thismodel by saying, the
contribution from the male,the contribution from the
female, this is the malegametes, the female gametes.
You get this nice little thingsometimes referred to as a
Punnett square.
Although he didn't usePunnett squares.
And Punnett wasn't born yet.
Now what do you do?
Mendel went out and gotexperimental material.
He did controls.
He did an experiment.
He counted.
He then made this creative leapto say, I see something
cool going on.
Integers are what's going on.
And made up a model.
What does a scientistdo at that point?
Sorry?
Oh come on.
In this modern world, if you gota result this cool, what
would you be doing?
Sorry?
AUDIENCE: Publish it.
ERIC LANDER: Publish it right?
You're going to get out therequickly and publish it.
Mendel whips off an email toNature in London, saying--
Or whatever the 1865 emails.
Actually it wasn't Nature.
It gets published in theProceedings of the Royal
Society of Brun.
But forgive me.
I'll use Nature, OK.
So he whips off an email toNature, which is what we do
today, telling the editor, wehave this really cool result.
I think it'll be ofbroad interest to
the readers of Nature.
We're going to try to sendyou a paper next week,
et cetera, et cetera.
Are you interested?
They write back, oh yeah.
We'd love to see yourpaper Gregor.
And Mendel whips togethera paper.
What happens when Mendel whipstogether this paper and it
goes off to London, to Nature,the offices of Nature?
What does Nature do with it?
They just set it and typeand say, here it is?
What's the scientific process?
Peer review.
Before you go print this thing,you've got to send it
out to some other scientistsas anonymous reviewers and
say, we've received this paper,this correspondence
from Brother Mendelin Moravia.
Would you review it for thejournal Nature and tell us
your candid opinion?
And they write it up.
And they send itback to Nature.
And Nature makes a decisionwhether to publish the paper.
So you're the reviewers.
Should we publishMendel's paper?
Who says yes?
Who says no?
Why no?
AUDIENCE: He needsmore examples.
ERIC LANDER: Needsmore examples.
So you're right.
One lousy trait.
Mendel actually had seventraits in the paper.
It turns out I didn't tell youthem all, green and yellow,
and tall and short.
And they're all in the paper.
He actually has seven separateexamples that
show the same thing.
Should we publish it?
Why not?
It's just peas.
Oh boy, you're churlish there.
I mean, come on.
It's peas.
People eat a lot of peas.
It's a result.
It'll get others in thescientific community
interested.
AUDIENCE: Who are thepeer reviewers?
ERIC LANDER: You.
I've assigned you aspeer reviewers.
I'm asking you, should wepublish this thing?
We got seven traits we'regoing to publish.
And it's pretty cool.
Nobody's ever reported this3:1 ratio in this model.
AUDIENCE: That's true.
But I wasn't the peerreviewer back then.
ERIC LANDER: You are now.
AUDIENCE: Then yes, Iwould publish it.
ERIC LANDER: You'd publish it.
OK.
He'd publish it.
Because nobody'sreported this.
It's pretty cool.
The model perfectlyfits the data.
Yes.
AUDIENCE: It's got tomake predictions.
ERIC LANDER: It's goingto make predictions.
But the model fits the data.
AUDIENCE: The model needs tomake predictions [INAUDIBLE]
data.
ERIC LANDER: Are you sayingthat we made up the model
after we saw the data?
And that it's not a surprisethat the model fits the data?
Yeah, that's right, isn't it.
That's a real problem.
If you make up models after theyfit the data, they tend
to fit the data.
Well they do.
That's a real problem.
So the reviewers write back toMendel and say, Mendel-- this
isn't actually how it happened,you understand.
But anyway, they writeback to Mendel.
They write back to thejournal Nature.
And they anonymously say, wewould like to see some
predictions of this model tosee if this is really true.
And Nature writesback to Mendel.
And the email says, couldyou just show us some
predictions from this?
So to help Mendel out, whatpredictions can we make?
What surprising predictionscould you make for Mendel's
experiment?
Well, this experiment, roundby wrinkled, gives round,
gives some rounds and somewrinkles, which we think are
big R, big R, big R, littler little r, big R,
little r, little r.
And that this is big R, big R.How could we prove something's
going on in this generation?
AUDIENCE: Self them.
ERIC LANDER: Self them.
If we pick out a roundand self it,
what's going to happen?
Sorry?
AUDIENCE: It dependson which round.
ERIC LANDER: So how do I knowwhich round to pick.
They all look the same.
AUDIENCE: You justtry all of them.
ERIC LANDER: Try all of them.
If I try to all of them,what am I going to see?
AUDIENCE: You'll see some thatonly produce rounds.
ERIC LANDER: Produce rounds.
About what fraction of themwill only produce rounds?
1/3.
And what fraction will producerounds and wrinkleds?
AUDIENCE: 2/3.
ERIC LANDER: 2/3.
We have a prediction.
Thank you.
The prediction is,test the rounds.
And although we don't know whichare which, 1/3 of them
will give rise to only rounds,whereas 2/3 of them will give
rise to our 3:1 ratio.
That is a non-obviousprediction.
If this model weren't right,it's very surprising if you
would have nailedthat prediction.
Nice.
What other predictionscan you make?
What other crosses couldyou set up to test it?
AUDIENCE: Wrinkledsby wrinkleds.
ERIC LANDER: The wrinkledsby themselves
will only give wrinkles.
And that's true.
Bingo.
So we're doing well.
What else?
AUDIENCE: Wrinkledswith rounds.
ERIC LANDER: Wrinkledswith rounds.
So I could take these threerounds here and I can cross
them to wrinkleds.
What'll happen here?
If this was rounds, rounds overwrinkled, wrinkled, it's
going to give rise to what?
AUDIENCE: Rounds.
ERIC LANDER: All rounds.
But if this is round wrinkled,what would it give rise to?
AUDIENCE: Half and half.
ERIC LANDER: 50:50.
Half and half.
Now we're cooking.
There are all these predictionsthat start
dropping out, because your modeltells you things you
haven't yet seen.
Mendel writes back and says,I did all the experiments.
I did what the refereesrequested.
The referees getthe paper back.
They say, yes indeed, Mendel'sdone the experiments.
We recommend publication.
Nature publishes it.
They put out a press releaseand all that.
Mendel's on the evening news,that kind of thing.
It didn't really happenthat way exactly.
But anyway, you get the point.
That's the processof doing science.
It's a cool process.
And it's a back and forth.
And it's a process of convincingpeople, and you
convince them by predictions.
And you can think ofthe kinds of cool
predictions you could make.
And that's what's fun aboutworking in a lab, is making
those kind of predictions.
Now all right.
I need to give you afew definitions.
A gene.
When I refer to a gene for themoment, I mean a discrete
factor of inheritance, discreteparticle, factor of
inheritance, somethinglike that.
Because geneticists early on hadno idea what genes were.
You know perfectly well agene is a DNA sequence,
blah blah blah blah.
But it's useful to beable to think about
a gene in the abstract.
It's the thing that controls aparticular inheritance of a
particular trait.
Variant forms of a gene,alternative forms of a gene,
are called alleles.
When I write big R, little r,they are alleles of the gene
for roundness.
Allele, from the Greek meaningother or alternative.
When I write genotype, I meanthe combination of alleles
that an individual has.
Like when I write big R, bigR, that's a genotype.
Or big R, littler, or little r,
little r, that's a genotype.
When I say the word phenotype,what do I mean?
A trait, an appearance.
What are the traits underdiscussion here?
Round and wrinkled.
Geneticists are likemathematicians.
They're very preciseabout their words.
Now comes the ones that peoplealways have trouble with,
dominant and recessive.
Phenotype 1 is dominant tophenotype 2 if the--
Oops, sorry.
I meant to add two words here.
Heterozygote, homozygote,words you know as well.
Heterozygote, havingdifferent alleles.
Homozygote, havingthe same alleles.
Different, same alleles.
So a phenotype, phenotype 1 isdominant to phenotype 2 if the
F1 heterozygote, the crossbetween them, has phenotype 1.
Why did I write this in thiswacky mathematical way?
That says round is dominant towrinkled if when I cross round
to wrinkled, the offspringare round.
So which is dominant,round or wrinkled?
Which is dominant, bigR, or little r?
No.
Big R is an allele.
We said phenotypes are dominant,not alleles.
We don't say big R is dominantto little r.
We say round is dominantto wrinkled.
Now this will botheryou greatly.
And it will bother about 95%of my biology colleagues.
But geneticists who are carefuluse the word dominant
and recessive to refer tophenotypes, not alleles.
Why do I care?
I care because big R, as amolecular allele, as a variant
of a gene, might end upcontrolling three or five
different traits.
Some of the traits that big Rcontrols could be dominant.
Some of them couldbe recessive.
Sickle cell anemia, there'sa sickle cell mutation.
Is that recessive or dominant?
Sickle cell anemiais a recessive
trait, a recessive phenotype.
But sickle cell trait, thetendency for blood cells to
sickle at low oxygen tension,is a dominant phenotype.
The allele that causes sicklecell anemia causes a recessive
trait, anemia, and a dominanttrait that can be measured in
heterzygotes.
You'll forget this.
Everyone will forget this.
But I've at least told youonce that alleles could
control multiple phenotypesand do control multiple
phenotypes.
And that's why geneticistsobsess about using the words
recessive and dominant to referto the phenotype, not
the genotype.
I've made my plea.
Like all of my colleagues inthe biology department, you
will continue to misusethe word.
But there's a better chanceyou'll get it right because
I've made my littlestand here.
Recessive is the oppositeof this.
Good.
This is mostly to say,geneticists try to think
carefully about their words.
Those are the definitions.
You should be able to use thewords gene, allele, genotype,
heterzygote, homozygote,phenotype, dominant, recessive
in a good way.--Zi_cn4kPE.txtAdded+2243
-56G36H8BvY.txtAdded+931
-5XT0Mzl72E.txtAdded+3115
-SHXUwpVgXU.txtAdded
0BDi0d1j7u0.txtAdded+420
0IJFBMIU6x4.txtAdded+507
0aAEamhJHUI.txtAdded+292
0jWfHFBLnv0.txtAdded
0opU7I31YfM.txtAdded
1EMonM7qAU8.txtAdded+4372
1ona5jnRZgw.txtAdded+1587
1tBrJ7I-1Vc.txtAdded+787
2GeecRByQhc.txtAdded+6227
2SwT6JnfCq8.txtAdded+1894
3UTfFMTqH70.txtAdded
3V5ORt7shjI.txtAdded
3cMyj8EKFGo.txtAdded+1347
3fSY92mJwQY.txtAdded
3j3Odfpvhrs.txtAdded+3400
4Y9OO9AepgU.txtAdded+347
4afZKY-INNA.txtAdded+787
4ctngXQrmDc.txtAdded
4dg_TW4gQL8.txtAdded
4iXLnF3hExw.txtAdded+2866
4kPz8aqm5yE.txtAdded+811
4ndEWbwbIrA.txtAdded
4q0T9c7jotw.txtAdded
5u-9lFhCl5w.txtAdded+1131
60VGKnYBpbg.txtAdded
6JcMuFgnA6U.txtAdded
6ROBp57G2ZI.txtAdded+4502
6ROuKtm5zds.txtAdded
7S5c25yYjTM.txtAdded+219
7Z1CfKUOQVs.txtAdded
7b55QERrN1I.txtAdded
7fYgr1qUdnU.txtAdded
8KQ-yK2xm60.txtAdded+1411
8KQPpl77fuk.txtAdded+699
8NiJSP-iE74.txtAdded+3043
8QFpZ3FndBc.txtAdded+1651
8RI9OSOftUE.txtAdded+3816
8hBr-bpykso.txtAdded+1363
8llkkbCPHb4.txtAdded+963
8ryWylXv0WE.txtAdded+675
9YtmGy-wfE4.txtAdded
9dHBTckFvME.txtAdded+1250
9gy-CAwx0Ls.txtAdded
9yGxpWVWYDY.txtAdded
AW3a2ECNFlE.txtAdded
BZTWXl9QNK8.txtAdded