(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 30110, 756]*) (*NotebookOutlinePosition[ 31023, 787]*) (* CellTagsIndexPosition[ 30979, 783]*) (*WindowFrame->Normal*) Notebook[{ Cell[BoxData[{ \(ai =. \), "\n", \(apop =. \), "\n", \(R =. \), "\n", \(Wi =. \), "\[IndentingNewLine]", \(Cd =. \)}], "Input", ImageRegion->{{-0, 1}, {0, 1}}], Cell[TextData[StyleBox["This is Fisher's sex ratio problem. We what to show \ that the solution apop=1/2 is a CSS.", FontSize->18]], "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Wi = \(R\ \((1 - ai)\)\)\/Cd + \(\((R\ ai)\)\ \((R\ \((1 - apop)\))\)\)\ \/\(\(Cs\ Cd\ \((R\ apop)\)\)\/Cs\)\)], "Input", ImageRegion->{{-0, 1}, {0, 1}}], Cell[BoxData[ \(\(\((1 - ai)\)\ R\)\/Cd + \(ai\ \((1 - apop)\)\ R\)\/\(apop\ Cd\)\)], \ "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(Firstder = \[PartialD]\_ai Wi\)], "Input", ImageRegion->{{-0, 1}, {0, 1}}], Cell[BoxData[ \(\(-\(R\/Cd\)\) + \(\((1 - apop)\)\ R\)\/\(apop\ Cd\)\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(FullSimplify[Wi]\), "\[IndentingNewLine]", \(FullSimplify[Firstder]\), "\[IndentingNewLine]", \(\)}], "Input"], Cell[BoxData[ \(\(\((ai + apop - 2\ ai\ apop)\)\ R\)\/\(apop\ Cd\)\)], "Output"], Cell[BoxData[ \(\(R - 2\ apop\ R\)\/\(apop\ Cd\)\)], "Output"] }, Open ]], Cell[TextData[StyleBox["Note that, in the graph below, the first derivative \ is equal to zero and apop = 1/2, and that the slope is negative at that \ point. Hence, the solution apop=1/2 is convergence stable. That means that \ if the population is away from apop=1/2, mutants that are closer to 1/2 will \ be favored by selection, and the population will converge on the equilibrium \ of one half. ", FontSize->18]], "Text"], Cell[CellGroupData[{ Cell[BoxData[{ \(\(R = 1;\)\), "\[IndentingNewLine]", \(\(\(Cd = 0.1;\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(Plot[Firstder, \ {apop, \ 0.2, .8}]\)}], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations -0.293651 1.5873 0.132436 0.0156961 [ [.18254 .11994 -9 -9 ] [.18254 .11994 9 0 ] [.34127 .11994 -9 -9 ] [.34127 .11994 9 0 ] [.5 .11994 -9 -9 ] [.5 .11994 9 0 ] [.65873 .11994 -9 -9 ] [.65873 .11994 9 0 ] [.81746 .11994 -9 -9 ] [.81746 .11994 9 0 ] [.97619 .11994 -9 -9 ] [.97619 .11994 9 0 ] [.01131 .05396 -12 -4.5 ] [.01131 .05396 0 4.5 ] [.01131 .21092 -6 -4.5 ] [.01131 .21092 0 4.5 ] [.01131 .2894 -12 -4.5 ] [.01131 .2894 0 4.5 ] [.01131 .36788 -12 -4.5 ] [.01131 .36788 0 4.5 ] [.01131 .44636 -12 -4.5 ] [.01131 .44636 0 4.5 ] [.01131 .52484 -12 -4.5 ] [.01131 .52484 0 4.5 ] [.01131 .60332 -12 -4.5 ] [.01131 .60332 0 4.5 ] [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash .18254 .13244 m .18254 .13869 L s [(0.3)] .18254 .11994 0 1 Mshowa .34127 .13244 m .34127 .13869 L s [(0.4)] .34127 .11994 0 1 Mshowa .5 .13244 m .5 .13869 L s [(0.5)] .5 .11994 0 1 Mshowa .65873 .13244 m .65873 .13869 L s [(0.6)] .65873 .11994 0 1 Mshowa .81746 .13244 m .81746 .13869 L s [(0.7)] .81746 .11994 0 1 Mshowa .97619 .13244 m .97619 .13869 L s [(0.8)] .97619 .11994 0 1 Mshowa .125 Mabswid .05556 .13244 m .05556 .13619 L s .0873 .13244 m .0873 .13619 L s .11905 .13244 m .11905 .13619 L s .15079 .13244 m .15079 .13619 L s .21429 .13244 m .21429 .13619 L s .24603 .13244 m .24603 .13619 L s .27778 .13244 m .27778 .13619 L s .30952 .13244 m .30952 .13619 L s .37302 .13244 m .37302 .13619 L s .40476 .13244 m .40476 .13619 L s .43651 .13244 m .43651 .13619 L s .46825 .13244 m .46825 .13619 L s .53175 .13244 m .53175 .13619 L s .56349 .13244 m .56349 .13619 L s .59524 .13244 m .59524 .13619 L s .62698 .13244 m .62698 .13619 L s .69048 .13244 m .69048 .13619 L s .72222 .13244 m .72222 .13619 L s .75397 .13244 m .75397 .13619 L s .78571 .13244 m .78571 .13619 L s .84921 .13244 m .84921 .13619 L s .88095 .13244 m .88095 .13619 L s .9127 .13244 m .9127 .13619 L s .94444 .13244 m .94444 .13619 L s .25 Mabswid 0 .13244 m 1 .13244 L s .02381 .05396 m .03006 .05396 L s [(-5)] .01131 .05396 1 0 Mshowa .02381 .21092 m .03006 .21092 L s [(5)] .01131 .21092 1 0 Mshowa .02381 .2894 m .03006 .2894 L s [(10)] .01131 .2894 1 0 Mshowa .02381 .36788 m .03006 .36788 L s [(15)] .01131 .36788 1 0 Mshowa .02381 .44636 m .03006 .44636 L s [(20)] .01131 .44636 1 0 Mshowa .02381 .52484 m .03006 .52484 L s [(25)] .01131 .52484 1 0 Mshowa .02381 .60332 m .03006 .60332 L s [(30)] .01131 .60332 1 0 Mshowa .125 Mabswid .02381 .06965 m .02756 .06965 L s .02381 .08535 m .02756 .08535 L s .02381 .10104 m .02756 .10104 L s .02381 .11674 m .02756 .11674 L s .02381 .14813 m .02756 .14813 L s .02381 .16383 m .02756 .16383 L s .02381 .17952 m .02756 .17952 L s .02381 .19522 m .02756 .19522 L s .02381 .22661 m .02756 .22661 L s .02381 .24231 m .02756 .24231 L s .02381 .258 m .02756 .258 L s .02381 .2737 m .02756 .2737 L s .02381 .30509 m .02756 .30509 L s .02381 .32079 m .02756 .32079 L s .02381 .33649 m .02756 .33649 L s .02381 .35218 m .02756 .35218 L s .02381 .38357 m .02756 .38357 L s .02381 .39927 m .02756 .39927 L s .02381 .41497 m .02756 .41497 L s .02381 .43066 m .02756 .43066 L s .02381 .46205 m .02756 .46205 L s .02381 .47775 m .02756 .47775 L s .02381 .49345 m .02756 .49345 L s .02381 .50914 m .02756 .50914 L s .02381 .54053 m .02756 .54053 L s .02381 .55623 m .02756 .55623 L s .02381 .57193 m .02756 .57193 L s .02381 .58762 m .02756 .58762 L s .02381 .03826 m .02756 .03826 L s .02381 .02256 m .02756 .02256 L s .02381 .00687 m .02756 .00687 L s .25 Mabswid .02381 0 m .02381 .61803 L s 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath .5 Mabswid .02381 .60332 m .06244 .51817 L .10458 .44414 L .14415 .38759 L .18221 .34208 L .22272 .30101 L .26171 .26713 L .30316 .23598 L .34309 .2098 L .3815 .18753 L .42237 .16647 L .46172 .14835 L .49955 .13261 L .53984 .11743 L .57861 .10414 L .61984 .09125 L .65954 .07989 L .69774 .06982 L .73838 .05993 L .77751 .05111 L .81909 .04241 L .85916 .03463 L .89771 .02764 L .93871 .02068 L .97619 .01472 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{35, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgooO[`PCo0000@Oogjl8000Womn_200Go@Chco`000?l0003oOomn_21Ol0001VooO[`P004oogjl82o`000>Comn_21?l0001[ooO[`P004oogjl800ol0003o mn_2ooO[`P3PooO[`P?o0000Koogjl8001?omn_200?o0000ooO[`_ogjl80gOogjl83o`0007;omn_2 000CooO[`P03o`000?ogjl;omn_20=[omn_20ol0001eooO[`P004oogjl800ol0003omn_2ooO[`P3F ooO[`PCo0000N?ogjl8001?omn_20_l0003BooO[`PGo0000O?ogjl8001?omn_200?o0000ooO[`_og jl80c?ogjl85o`00087omn_2000CooO[`P03o`000?ogjl;omn_20ooO[`_mcKE[o 027omn_200Go0000ooO[`_ogjl;omn_2o`00000;ooO[`P04omK;Z?mBCT3omn_2o`0002?omn_200Go 0000ooO[`_ogjl;omn_2o`00000oa0?3003ooO[`P004oogjl800ol0003omn_2ooO[`P0YooO[`P05og=]F_nDS7Comn_2oiB< M?mcKEX02oogjl801Ol@3`coU8adooO[`_ne[8ko0000027omn_200GoLfeJoiB;omn_2000Comn_2000=ooO[`P03o`000?ogjl;omn_200?omn_200?o0000ooO[`_og jl80J_ogjl82o`000>Komn_2000Komn_20009ooO[`P05o`000?lP7aWo0000oc4^9_o5_9/01Oogjl800ol0003omn_2 ooO[`P1WooO[`P;o0000jOogjl8000Womn_200?o0000ooO[`_ogjl801oogjl800ol0003omn_2ooO[ `P1VooO[`P03o`000?ogjl;omn_20>Womn_20009ooO[`P03o`000?ogjl;omn_200Oomn_200?o0000 ooO[`_ogjl80I?ogjl82o`000>comn_20009ooO[`PCo00001_ogjl800ol0003omn_2ooO[`P1RooO[ `P;o0000k_ogjl8001?omn_20_l0001RooO[`P03o`000?ogjl;omn_20>komn_2000CooO[`P03o`00 0?ogjl;omn_205oomn_20_l0003aooO[`P004oogjl800ol0003omn_2ooO[`P1NooO[`P03o`000?og jl;omn_20?7omn_2000CooO[`P03o`000?ogjl;omn_205comn_20_l0003dooO[`P004oogjl800ol0 003omn_2ooO[`P1KooO[`P03o`000?ogjl;omn_20?Comn_2000CooO[`P03o`000?ogjl;omn_205[o mn_200?o0000ooO[`_ogjl80mOogjl8001?omn_20_l0001JooO[`P03o`000?ogjl;omn_20?Komn_2 000CooO[`P03o`000?ogjl;omn_205Oomn_20_l0003iooO[`P004oogjl800ol0003omn_2ooO[`P1F ooO[`P03o`000?ogjl;omn_20?Womn_2000CooO[`P03o`000?ogjl;omn_205Gomn_200?o0000ooO[ `_ogjl80n_ogjl8001?omn_200?o0000ooO[`_ogjl80Doogjl82o`000?gomn_2000CooO[`P;o0000 Doogjl800ol0003omn_2ooO[`P3mooO[`P004oogjl800ol0003omn_2ooO[`P1AooO[`P03o`000?og jl;omn_20?komn_2000CooO[`P03o`000?ogjl;omn_2053omn_200?o0000ooO[`_ogjl80ooogjl80 01?omn_200?o0000ooO[`_ogjl80C_ogjl82o`000?oomn_20oogjl8001?omn_200?o0000ooO[`_og jl80COogjl800ol0003omn_2ooO[`P3oooO[`P?omn_2000CooO[`P;o0000COogjl800ol0003omn_2 ooO[`P3oooO[`PComn_2000CooO[`P03o`000?ogjl;omn_204_omn_200?o0000ooO[`_ogjl80ooog jl85ooO[`P004oogjl800ol0003omn_2ooO[`P1:ooO[`P03o`000?ogjl;omn_20?oomn_21_ogjl80 0003ooO[`_l0003o000000;o000000So40looO[`P0000Comn_2oe9>@?mRGTgo00001?ogjl801OoVfkGoOogjl800ol0003omn_2ooO[`P3oooO[`QOomn_2000CooO[`P03o`000?ogjl;omn_2 03Somn_200?o0000ooO[`_ogjl80ooogjl8HooO[`P004oogjl800ol0003omn_2ooO[`P0gooO[`P03 o`000?ogjl;omn_20?oomn_26Oogjl8001?omn_200?o0000ooO[`_ogjl80=_ogjl800ol0003omn_2 ooO[`P3oooO[`Q[omn_2000CooO[`P;o0000=_ogjl800ol0003omn_2ooO[`P3oooO[`Q_omn_2000C ooO[`P03o`000?ogjl;omn_203Comn_200?o0000ooO[`_ogjl80ooogjl8LooO[`P004oogjl800ol0 003omn_2ooO[`P0cooO[`P03o`000?ogjl;omn_20?oomn_27Oogjl8001?omn_200?o0000ooO[`_og jl80Oogjl800005oiBoogjl8001?omn_200?o0000ooO[`_ogjl805?ogjl80 0ol0003omn_2ooO[`P3oooO[`Scomn_2000CooO[`P03o`000?ogjl;omn_201Comn_200?o0000ooO[ `_ogjl80ooogjl8looO[`P004oogjl800ol0003omn_2ooO[`P0CooO[`P03o`000?ogjl;omn_20?oo mn_2?Oogjl8001?omn_20_l0000CooO[`P03o`000?ogjl;omn_20?oomn_2?_ogjl8001?omn_200?o 0000ooO[`_ogjl804_ogjl800ol0003omn_2ooO[`P3oooO[`Skomn_2000CooO[`P03o`000?ogjl;o mn_2017omn_200?o0000ooO[`_ogjl80ooogjl8oooO[`P004oogjl800ol0003omn_2ooO[`P0AooO[ `P03o`000?ogjl;omn_20?oomn_2?oogjl8001?omn_200?o0000ooO[`_ogjl804?ogjl800ol0003o mn_2ooO[`P3oooO[`T3omn_2000CooO[`P;o00004?ogjl800ol0003omn_2ooO[`P3oooO[`T7omn_2 000CooO[`P03o`000?ogjl;omn_200oomn_200?o0000ooO[`_ogjl80ooogjl91ooO[`P004oogjl80 0ol0003omn_2ooO[`P0>ooO[`P03o`000?ogjl;omn_20?oomn_2@_ogjl8001?omn_200?o0000ooO[ `_ogjl803_ogjl800ol0003omn_2ooO[`P3oooO[`T;omn_2000CooO[`P03o`000?ogjl;omn_200go mn_200?o0000ooO[`_ogjl80ooogjl93ooO[`P004oogjl800ol0003omn_2ooO[`P0=ooO[`P03o`00 0?ogjl;omn_20?oomn_2@oogjl8001?omn_20_l0000=ooO[`P03o`000?ogjl;omn_20?oomn_2A?og jl8001?omn_200?o0000ooO[`_ogjl802oogjl800ol0003omn_2ooO[`P3oooO[`TGomn_20005o`00 00Comn_200Go@Chco`000?l0003oooO[`P004oogjl80 0ol0003omn_2ooO[`P02ooO[`P03o`000?ogjl;omn_20?oomn_2C_ogjl8001?omn_200Go0000ooO[ `_ogjl;omn_2o`00003oooO[`U7omn_2000CooO[`P05o`000?ogjl;omn_2ooO[`_l00000ooogjl9A ooO[`P004oogjl801?l0003omn_2ooO[`_l0003oooO[`U;omn_2000CooO[`P04o`000?ogjl;omn_2 o`000?oomn_2D_ogjl8001?omn_20ol0003oooO[`U?omn_2000CooO[`P03o`000?ogjl;o00000?oo mn_2Doogjl8001?omn_200?o0000ooO[`_l00000ooogjl9CooO[`P0000GoU8adoa0?3?l0003o00?o mn_200Go0000ooO[`_ogjl;omn_2o`000006ooO[`P03o`000?ogjl;omn_20?oomn_2Doogjl8000?o mn_200?o]Jb>ob0O6Oogjl800_ogjl801Ol@3`comn_2ooO[`_ogjl;o40l<00Komn_200?o0000ooO[ `_ogjl80ooogjl9CooO[`P0000Go40lo`000003ooO[`P05og=]F_nDS7Comn_2 oiB"], ImageRangeCache->{{{0, 359}, {221.375, 0}} -> {0.16472, -9.14787, \ 0.00228355, 0.230929}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(R =. \), "\[IndentingNewLine]", \(Cd =. \), "\[IndentingNewLine]", \(CSS\ = \ D[Firstder, \ apop]\), "\[IndentingNewLine]", \(\)}], "Input"], Cell[BoxData[ \(\(-\(\(\((1 - apop)\)\ R\)\/\(apop\^2\ Cd\)\)\) - R\/\(apop\ Cd\)\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(FullSimplify[CSS]\), "\[IndentingNewLine]", \(Reduce[CSS < 0]\)}], "Input", ImageRegion->{{-0, 1}, {0, 1}}], Cell[BoxData[ \(\(-\(R\/\(apop\^2\ Cd\)\)\)\)], "Output"], Cell[BoxData[ \(\((R < 0 && Cd < 0 && \((apop < 0 || apop > 0)\))\) || \((R > 0 && Cd > 0 && \((apop < 0 || apop > 0)\))\)\)], "Output"] }, Open ]], Cell[TextData[StyleBox["Below we prove that the equilibrium is at apop=1/2. \ ", FontSize->18]], "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Reduce[Firstder \[Equal] 0, apop]\)], "Input"], Cell[BoxData[ \(\((apop \[Equal] 1\/2 && Cd \[NotEqual] 0)\) || \((R \[Equal] 0 && apop\ Cd \[NotEqual] 0)\)\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(\(\(\[IndentingNewLine]\)\(\(Secondder = \ D[Firstder, \ ai]\)\(\[IndentingNewLine]\) \)\)\)], "Input"], Cell[BoxData[ \(0\)], "Output"] }, Open ]], Cell[TextData[StyleBox["Note that the second derivative (above) is zero. So \ the equilibrium is convergent stable, but not evolutionarily stable. Thus \ there will be drift at the equilibrium of 1/2, but if the population mean \ drifts away from 1/2, selection will tend to move the population back to one \ half (since the solution is convergence stable).", FontSize->18]], "Text"] }, FrontEndVersion->"5.2 for Macintosh", ScreenRectangle->{{45, 1680}, {0, 1028}}, WindowToolbars->{}, CellGrouping->Manual, WindowSize->{1293, 992}, WindowMargins->{{112, Automatic}, {Automatic, 4}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, Magnification->1.25, StyleDefinitions -> "NaturalColor.nb" ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[1754, 51, 185, 6, 149, "Input"], Cell[1942, 59, 143, 2, 41, "Text"], Cell[CellGroupData[{ Cell[2110, 65, 175, 3, 91, "Input"], Cell[2288, 70, 101, 2, 65, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[2426, 77, 96, 2, 49, "Input"], Cell[2525, 81, 86, 1, 64, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[2648, 87, 141, 3, 99, "Input"], Cell[2792, 92, 84, 1, 65, "Output"], Cell[2879, 95, 66, 1, 64, "Output"] }, Open ]], Cell[2960, 99, 431, 6, 103, "Text"], Cell[CellGroupData[{ Cell[3416, 109, 194, 4, 124, "Input"], Cell[3613, 115, 24683, 573, 243, 4444, 319, "GraphicsData", "PostScript", \ "Graphics"], Cell[28299, 690, 130, 3, 44, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[28466, 698, 177, 4, 124, "Input"], Cell[28646, 704, 106, 2, 64, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[28789, 711, 135, 3, 74, "Input"], Cell[28927, 716, 61, 1, 64, "Output"], Cell[28991, 719, 151, 2, 44, "Output"] }, Open ]], Cell[29157, 724, 107, 2, 41, "Text"], Cell[CellGroupData[{ Cell[29289, 730, 66, 1, 49, "Input"], Cell[29358, 733, 137, 2, 61, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[29532, 740, 134, 3, 99, "Input"], Cell[29669, 745, 35, 1, 44, "Output"] }, Open ]], Cell[29719, 749, 387, 5, 103, "Text"] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)