(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 4.0, MathReader 4.0, or any compatible application. 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[ 18266, 539]*) (*NotebookOutlinePosition[ 19017, 565]*) (* CellTagsIndexPosition[ 18973, 561]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Means and Moments and Exploring New Plotting Techniques", "Title"], Cell[TextData[StyleBox["Chapter 12, Sections 2 & 5", FontFamily->"Arial", FontSize->16, FontWeight->"Bold"]], "Text"], Cell[CellGroupData[{ Cell["Introduction", "Section"], Cell[TextData[StyleBox[ "OBJECTIVE: Extend the concept of the moments of a density function of a \ solid to applications in probability and engineering."]], "Text"], Cell[TextData[StyleBox[ "What do means and multiple integrals have to do with probabilities? How can \ the method of moments be used to help determine whether or not an object will \ float in an upright position? These questions will be answered as you explore \ this module. You will also get to practice new and interesting ways to plot \ functions."]], "Text"], Cell[CellGroupData[{ Cell["Technology Guidelines", "Subsection", CellDingbat->"\[LightBulb]"], Cell[TextData[{ StyleBox["NOTE: If you have just finished a module, restart ", CellFrame->True, Background->None], StyleBox["Mathematica", CellFrame->True, FontSlant->"Italic", Background->None], StyleBox[ " before executing a new module.\nTO OPEN CELLS, put your cursor on the \ right cell bracket and double click.", CellFrame->True, Background->None], "\nTO STOP AN EXECUTION\n\tSelect the ", StyleBox["Kernel", FontSlant->"Italic"], " pull-down menu and click on ", StyleBox["Abort Evaluation.\n", FontSlant->"Italic"], "ORDER OF EXECUTION\n\tExecute cells in the order given. Do not skip any \ Input cells within a given notebook.\nSAVING NOTEBOOKS\n\tYou can save \ anytime to any directory you choose, and it is wise to save often.\n\t\ However, before you do your final save, delete all your output by selecting \ the \n\t ", StyleBox["Delete All Output", FontSlant->"Italic"], " selection under the ", StyleBox["Kernel", FontSlant->"Italic"], " pull-down menu.\nEXPERIENCING MAJOR PROBLEMS\n\tSave if appropriate, and \ then shut down ", StyleBox["Mathematica", FontSlant->"Italic"], " and start it up again." }], "Text"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Part I: Masses and Moments Applied to Probability Functions", "Section"], Cell[TextData[{ "In multivariable probability, probability density functions are defined \ over specified regions (domains) in the same way that density functions are \ defined over regions of a solid. These probability functions are designed so \ that the total \"mass\" is always 1. Probabilities are then defined to be the \ integrals of the density functions over a particular subregion of the domain. \ Consider the following example.\n\nSuppose that a national fast-food outlet \ is interested in the joint behavior of the random variables ", StyleBox["x", FontSlant->"Italic"], ", defined as the total time between a customer's arrival at the store and \ departing from the service window, and ", StyleBox["y", FontSlant->"Italic"], ", the time that a customer waits in line before reaching the service \ window. Since ", StyleBox["x", FontSlant->"Italic"], " contains the time a customer waits in line, ", StyleBox["x", FontSlant->"Italic"], " must be greater than ", StyleBox["y", FontSlant->"Italic"], ". The relative frequency distribution of observed values of ", StyleBox["x", FontSlant->"Italic"], " and ", StyleBox["y", FontSlant->"Italic"], " can be modeled by the probability density function: \n", Cell[BoxData[ FormBox[ RowBox[{\(f(x, y)\), " ", "=", " ", FormBox[\( .04 e\^\(\(- .1\) x - .3 y\ \)\), "TraditionalForm"]}], TraditionalForm]]], " for ", Cell[BoxData[ \(TraditionalForm \`0\ \[LessEqual] \ y\ \[LessEqual] \ x\ < \ \[Infinity]\)]], " and 0 elsewhere, where ", StyleBox["x", FontSlant->"Italic"], " and ", StyleBox["y", FontSlant->"Italic"], " are measured in minutes." }], "Text"], Cell[BoxData[ \(f[x_, y_] := .04 E\^\(\(- .1\) x - \(\(.3\) \(y\)\(\ \)\)\)\)], "Input"], Cell["\<\ We examine the domain of this function. First we must load a package to \ assist us in graphing.\ \>", "Text"], Cell[BoxData[ \(<< \ Graphics`FilledPlot`\)], "Input"], Cell[BoxData[ \(\(FilledPlot[x, {x, 0, 50}, AxesLabel -> {"\