(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 3.0, MathReader 3.0, or any compatible application. The data for the notebook starts with the line of 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[ 5913, 196]*) (*NotebookOutlinePosition[ 6988, 233]*) (* CellTagsIndexPosition[ 6944, 229]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{Cell[TextData["Consumers' Surplus"], "Title", Evaluatable->False, AspectRatioFixed->True], Cell[TextData["Hal Varian\nJanuary 1992"], "Subsubtitle", Evaluatable->False, AspectRatioFixed->True], Cell[CellGroupData[{Cell[TextData["Compensating and Equivalent Variation"], "Section", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[{ StyleBox["A consumer has a demand function of the form ", Evaluatable->False, AspectRatioFixed->True], StyleBox["x=0.1 m - p", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[", where ", Evaluatable->False, AspectRatioFixed->True], StyleBox["m", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[" is income and ", Evaluatable->False, AspectRatioFixed->True], StyleBox["p ", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[ "is price. The consumer has income of 100 and faces a price of 2. If the \ price increases to 4, what is the compensating and equivalent variation?\n\n\ The first thing we have to do is to compute the expenditure function \ associated with this demand function. We know from Chapter 8 that there is \ an analytic expression for ", Evaluatable->False, AspectRatioFixed->True], StyleBox["e[p,u]", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[", but we'll use ", Evaluatable->False, AspectRatioFixed->True], StyleBox["Mathematica", Evaluatable->False, AspectRatioFixed->True, FontSlant->"Italic"], StyleBox[ "'s numerical differential equation solver here just to be different:", Evaluatable->False, AspectRatioFixed->True] }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[ "solution1=NDSolve[{e'[p]==.10*e[p] - p, e[2]==100},e,{p,1,5}]\n\ Plot[Evaluate[e[p]/.solution1],{p,1,5}]"], "Input", AspectRatioFixed->True], Cell[TextData[ "The compensating variation will be the amount of money the consumer needs at \ the new price, p=4, to restore the original utility level, minus the original \ income. This will be"], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[TextData["CV= (e[4]/.solution1) - 100"], "Input", AspectRatioFixed->True], Cell[TextData[ "The equivalent variation will be the amount of money that the consumer needs \ at the old price to make him as well off as he would be at the new price. We \ have to solve the integrability equation again with a new boundary \ condition."], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[ "solution2=NDSolve[{e'[p]==.10*e[p] - p, e[4]==100},e,{p,1,5}]\nEV= \ 100-(e[2]/.solution2)"], "Input", AspectRatioFixed->True], Cell[TextData[{ StyleBox[ "Finally, we'll calculate the consumer's surplus for the move from ", Evaluatable->False, AspectRatioFixed->True], StyleBox["p=4", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[" to ", Evaluatable->False, AspectRatioFixed->True], StyleBox["p=2", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[":", Evaluatable->False, AspectRatioFixed->True] }], "Text", Evaluatable->False, AspectRatioFixed->True], Cell[TextData[ "CS=Integrate[10-p,p]\nChange = (CS/.{p->4})-(CS/.{p->2})"], "Input", AspectRatioFixed->True], Cell[TextData[{ StyleBox["What relationship has to hold between ", Evaluatable->False, AspectRatioFixed->True], StyleBox["CV, EV", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox[", and ", Evaluatable->False, AspectRatioFixed->True], StyleBox["CS", Evaluatable->False, AspectRatioFixed->True, FontFamily->"Courier", FontWeight->"Bold"], StyleBox["?", Evaluatable->False, AspectRatioFixed->True] }], "Text", Evaluatable->False, AspectRatioFixed->True]}, Open]]}, Open]] }, FrontEndVersion->"Macintosh 3.0", ScreenRectangle->{{0, 640}, {0, 460}}, WindowToolbars->{}, CellGrouping->Manual, WindowSize->{520, 365}, WindowMargins->{{44, Automatic}, {Automatic, 31}}, PrivateNotebookOptions->{"ColorPalette"->{RGBColor, -1}}, ShowCellLabel->True, ShowCellTags->False, RenderingOptions->{"ObjectDithering"->True, "RasterDithering"->False}, Magnification->1.5, MacintoshSystemPageSetup->"\<\ AVU/IFiQKFD000000V8nh09RAj0000000OXQ<097PXP0AP1Y06`0I@1^0642HSkP 0V97`0000001nR4@0TN2R000000000000000009R?^0000000000000000000000 00000000000000000000000000000000\>" ] (*********************************************************************** 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[CellGroupData[{ Cell[1731, 51, 93, 2, 70, "Title", Evaluatable->False], Cell[1827, 55, 105, 2, 70, "Subsubtitle", Evaluatable->False], Cell[CellGroupData[{ Cell[1955, 59, 114, 2, 70, "Section", Evaluatable->False], Cell[2072, 63, 1570, 51, 70, "Text", Evaluatable->False], Cell[3645, 116, 158, 3, 70, "Input"], Cell[3806, 121, 255, 5, 70, "Text", Evaluatable->False], Cell[4064, 128, 80, 1, 70, "Input"], Cell[4147, 131, 313, 6, 70, "Text", Evaluatable->False], Cell[4463, 139, 144, 3, 70, "Input"], Cell[4610, 144, 596, 23, 70, "Text", Evaluatable->False], Cell[5209, 169, 111, 2, 70, "Input"], Cell[5323, 173, 569, 22, 70, "Text", Evaluatable->False] }, Closed]] }, Open ]] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)