<?xml version="1.0" encoding="UTF-8"?>
<Worksheet>
<Version major="2024" minor="1"/>
<Label-Scheme value="2" prefix=""/>
<View-Properties presentation="false" autoexpanding_sections="true" UserProfileName="Maple Default Profile" NumericFormat-ApplyInteger="true" NumericFormat-ApplyRational="true" NumericFormat-ApplyExponent="false" editable="true">
</View-Properties>
<MapleNet-Properties prettyprint="3" warnlevel="3" compactdisplay="false" preplot="" helpbrowser="standard" displayprecision="-1" echo="1" scientificx="true" unitattributes="&quot;fontweight&quot; = &quot;bold&quot;" imaginaryunit="I" longdelim="true" elisiontermsthreshold="10000" elisiondigitsafter="100" elisiondigitsbefore="100" plotdevice="inline" errorbreak="1" plotoptions="" plotdriver="opengl" quiet="false" elisiontermsbefore="100" elisiontermsafter="100" historytimestamp="false" screenwidth="79" indentamount="4" plotoutput="terminal" screenpixelheight="1080" rtablesize="[10, 10]" useclientjvm="true" format="worksheet" labelwidth="20" postplot="" typesetting="extended" ansi="false" ansicolor="[]" elisiondigitsthreshold="10000" showassumed="1" ansilprint="false" trailingsemicolon="true" errorcursor="false" labelling="true" screenheight="25" prompt="&gt; " verboseproc="1" latexwidth="8.0" ShowLabels="true"/>
<Styles>
<Font name="Heading 1" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Variable" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Left Justified Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Heading 4" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Heading 2" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Heading 3" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Ordered List 1" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Text Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Ordered List 2" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Ordered List 3" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Ordered List 4" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Underlined Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Ordered List 5" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Copyright" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Maple Comment" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Popup" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Atomic Variable" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[175,0,175]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="HyperlinkWarning" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Dictionary Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[147,0,15]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Plot Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="List Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Dash Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Input" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Code" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Author" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math Bold Small" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Menus" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Heading" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="14" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Warning" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Fixed Width" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="9" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,255]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Line Printed Output" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Maple Output" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Inert Output" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[144,144,144]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Diagnostic" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[64,128,64]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Maple Input" background="[255,255,255]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Page Number" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Annotation Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Header and Footer" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Fixed" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Output Labels" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="8" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="HyperlinkError" background="[255,255,255]" bold="false" executable="false" family="Courier New" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Help Notes" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Underlined" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="2D Math Italic Small" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="1" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math Symbol 2" background="[255,255,255]" bold="false" executable="false" family="SymbolPi" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math" background="[255,255,255]" bold="false" executable="true" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Nonterminal" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Bullet Item" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Maple Plot" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Annotation Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Maple Name" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[104,64,92]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Error" background="[255,255,255]" bold="false" executable="false" family="Monospaced" foreground="[255,0,255]" italic="false" opaque="false" readonly="true" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="18" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Text" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Plot Title" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="10" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Underlined Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Normal" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Caption Reference" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Italic Bold" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Default" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Maple Input Placeholder" background="[255,255,255]" bold="true" executable="true" family="Courier New" foreground="[200,0,200]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="true"/>
<Font name="LaTeX" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Emphasized" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Equation Label" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Help Italic" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="true" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Comment" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Prompt" background="[255,255,255]" bold="true" executable="false" family="Monospaced" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="2D Math Bold" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Font name="Hyperlink" background="[255,255,255]" bold="false" executable="false" family="Times New Roman" foreground="[0,128,128]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="true" strikethrough="false" placeholder="false"/>
<Font name="Caption Text" background="[255,255,255]" bold="true" executable="false" family="Times New Roman" foreground="[0,0,0]" italic="false" opaque="false" readonly="false" size="12" subscript="false" superscript="false" underline="false" strikethrough="false" placeholder="false"/>
<Layout name="Heading 1" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="4" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Warning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Fixed Width" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Left Justified Maple Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.5" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Help" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 4" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Line Printed Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 2" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="2" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Maple Output" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.5" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Heading 3" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Diagnostic" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 1" alignment="left" bullet="numeric" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Text Output" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Ordered List 2" alignment="left" bullet="alphabetic" firstindent="0" leftmargin="36" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 3" alignment="left" bullet="roman" firstindent="0" leftmargin="72" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 4" alignment="left" bullet="ALPHABETIC" firstindent="0" leftmargin="108" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Ordered List 5" alignment="left" bullet="ROMAN" firstindent="0" leftmargin="144" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="-1" bulletsuffix=""/>
<Layout name="Annotation Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="HyperlinkError" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="HyperlinkWarning" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Bullet Item" alignment="left" bullet="dot" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Maple Plot" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="List Item" alignment="left" bullet="indent" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Dash Item" alignment="left" bullet="dash" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="3" spacebelow="3" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Error" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Title" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="12" spacebelow="12" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Normal" alignment="left" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="0" spacebelow="0" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Layout name="Author" alignment="centred" bullet="none" firstindent="0" leftmargin="0" rightmargin="0" linespacing="0.0" spaceabove="8" spacebelow="8" linebreak="space" pagebreak-before="false" initial="0" bulletsuffix=""/>
<Pencil-style name="Pencil 1" pen-color="[0,0,0]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 2" pen-color="[0,0,255]" pen-height="1.0" pen-width="1.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 3" pen-color="[0,0,0]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 4" pen-color="[0,0,255]" pen-height="3.0" pen-width="3.0" pen-opacity="1.0"/>
<Pencil-style name="Pencil 5" pen-color="[255,0,0]" pen-height="5.0" pen-width="5.0" pen-opacity="1.0"/>
<Highlighter-style name="Highlighter 5" pen-color="[255,255,0]" pen-height="48.0" pen-width="48.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 3" pen-color="[51,255,0]" pen-height="24.0" pen-width="24.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 4" pen-color="[0,255,255]" pen-height="32.0" pen-width="32.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 1" pen-color="[255,153,255]" pen-height="12.0" pen-width="8.0" pen-opacity="0.8"/>
<Highlighter-style name="Highlighter 2" pen-color="[255,204,0]" pen-height="14.0" pen-width="14.0" pen-opacity="0.8"/>
</Styles>
<Startup-Code startupcode=""/>
<Task-table>
	<Task-category name="&lt;default&gt;"/>
</Task-table>
<Task/>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">a Mean and variance</Text-field></Title>
<Group hide-output="false" labelreference="L1044" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">For the exponential distribution it holds: <Font italic="true">p</Font>(<Font italic="true">t</Font>) = <Font italic="true">k </Font><Font encoding="UTF-8">exp(\342\210\222</Font><Font italic="true">kt</Font>). Calculate the expectation value and the variance.</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group labelreference="L1676" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">assume(k&gt;0):</Text-field>
</Input>
</Group>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Directly</Text-field></Title>
<Group hide-input="false" labelreference="L1684" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=t-&gt;k*exp(-k*t);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1682" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Normalization</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(p(t),t=0..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1683" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Mean lifetime</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">tau:=int(t*p(t),t=0..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1681" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Var:=int((t-tau)^2*p(t),t=0..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1680" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Var:=int(t^2*p(t),t=0..infinity)-tau^2;</Text-field>
</Input>
</Group>
<Group labelreference="L1679" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Using random variable from module Statistics</Text-field></Title>
<Group labelreference="L1686" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1685" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X := RandomVariable(Exponential(1/k));</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1687" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(X); Variance(X); StandardDeviation(X);</Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">b Function of random variable</Text-field></Title>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Example 1</Text-field></Title>
<Group hide-output="false" labelreference="L1879" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Let <Font italic="true">X</Font> be uniform in [0, 1). Calculate the distribution function of  <Font italic="true">Y</Font><Font encoding="UTF-8"> = \342\210\222 ln </Font><Font italic="true">X</Font>.</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart: with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1881" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">rectf:=t-&gt;piecewise(t&lt;0,0, t&lt;1,1, 0);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1882" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Note: this is equivalent: <Font family="DejaVu Sans Mono">rectf:=unapply(piecewise(t&lt;0,0, t&lt;1,1, 0),t);</Font></Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2018" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">PDF is normalized</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(rectf(x),x=-infinity..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1875" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">PDF = Probability Distribution Function</Text-field><Text-field style="Text" layout="Normal">Also prepared as UniformDistribution(0,1).</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Rect:=Distribution(PDF=(rectf));</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1877" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Symbolic random variable</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X := RandomVariable(Rect);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1878" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">\342\237\250</Font><Font italic="true">X</Font><Font encoding="UTF-8">\342\237\251, Var </Font><Font italic="true">X<Font bold="true">, </Font></Font><Font encoding="UTF-8">and \317\203(</Font><Font italic="true">X)</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(X); Variance(X); StandardDeviation(X);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1873" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Y:=-log(X):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1874" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">probability distribution function of <Font italic="true">Y</Font> = - ln <Font italic="true">X</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PDF(Y,x);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1883" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(Y); Variance(Y); StandardDeviation(Y);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2004" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">PDF is normalized</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(PDF(X,x),x=-infinity..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1885" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1880" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PX:=plot(PDF(X,x),x=0..3,color=blue):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1876" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PY:=plot(PDF(Y,x),x=0..3,color=red):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1884" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(PX,PY);</Text-field>
</Input>
</Group>
<Group labelreference="L1866" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Example 2</Text-field></Title>
<Group hide-output="false" labelreference="L1899" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Let <Font italic="true">X</Font><Font encoding="UTF-8"> be uniform in [\342\210\2221, 1). Calculate the distribution function of  </Font><Font italic="true">Y</Font><Font encoding="UTF-8"> = \342\210\222 arcsin </Font><Font italic="true">X</Font>.</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart: with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1895" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">rectf:=t-&gt;piecewise(t&lt;-1,0, t&lt;1,1/2, 0);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2017" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">PDF is normalized</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(rectf(x),x=-infinity..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1906" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Rect:=Distribution(PDF=(rectf));</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1902" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X := RandomVariable(Rect);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1898" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">\342\237\250</Font><Font italic="true">X</Font><Font encoding="UTF-8">\342\237\251, Var </Font><Font italic="true">X<Font bold="true">, </Font></Font><Font encoding="UTF-8">and \317\203(</Font><Font italic="true">X)</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(X); Variance(X); StandardDeviation(X);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1893" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Y:=-arcsin(X):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1904" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">probability distribution function of <Font italic="true">Y</Font> = - arcsin <Font italic="true">X</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PDF(Y,x);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1892" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(Y); Variance(Y); StandardDeviation(Y);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2003" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">PDF is normalized</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(PDF(X,x),x=-infinity..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1905" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1897" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PX:=plot(PDF(X,x),x=-2..2,color=blue):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1900" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PY:=plot(PDF(Y,x),x=-2..2,color=red):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1894" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(PX,PY);</Text-field>
</Input>
</Group>
<Group labelreference="L1903" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">c Gini coefficient</Text-field></Title>
<Group hide-output="false" labelreference="L1046" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Calculate the Gini coefficient for:
<Font bold="true">(a)</Font> all have the same income, 
<Font bold="true">(b)</Font> exponential distribution of incomes,
<Font bold="true">(c) </Font>1000 persons earn $1, 1 person earns $1000000.</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart:</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1539" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">local Norm:=int(p(x),x=0..infinity)</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1048" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gini:=p-&gt;int(p(x)*int(p(y)*abs(x-y),y=0..infinity),x=0..infinity)/2/int(p(x)*x,x=0..infinity)</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1051" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">assume(a&gt;0,k&gt;0);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1049" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=x-&gt;Dirac(x-a);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1052" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Norm(p);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1053" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gini(p);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1047" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=x-&gt;k*exp(-x*k);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1054" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Norm(p);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1050" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gini(p);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1055" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=x-&gt;(Dirac(x-1)*1000+Dirac(x-1000000))/1001;</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1540" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Norm(p)</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1541" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Gini(p);</Text-field>
</Input>
</Group>
<Group labelreference="L2019" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
<Group labelreference="L2023" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">d Correlation coefficient</Text-field></Title><Text-field style="Text" layout="Normal">Let <Font bold="true" italic="true">u</Font><Font subscript="true">1</Font> and <Font bold="true" italic="true">u</Font><Font subscript="true">2</Font><Font bold="true"> </Font>be two independent random variables with uniform distribution in [0,1). Calculate the correlation coefficient <Font italic="true">r</Font>(<Font bold="true" italic="true">u</Font><Font subscript="true">1</Font>, <Font bold="true" italic="true">u</Font><Font subscript="true">2</Font> + <Font bold="true" italic="true">u</Font><Font subscript="true">1</Font>) </Text-field>
<Group labelreference="L2032" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart; with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2024" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(UniformDistribution(0,1))</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2025" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Y:=RandomVariable(UniformDistribution(0,1))</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2026" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(X);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2027" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Variance(X);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1535" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Covariance(X,Y)</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1531" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Covariance(X,X+Y)</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2030" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Covariance(X,X+Y)/sqrt(Variance(X)*Variance(X+Y))</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L2031" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Correlation(X,X+Y)</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1536" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">simplify(Correlation(X,X+Y))</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">e Convolution of distributions and the Central Limit Theorem</Text-field></Title>
<Group hide-output="false" labelreference="L1144" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Calculate convolution <Font bold="true" italic="true">u</Font>^<Font italic="true">n</Font>, where <Font bold="true" italic="true">u</Font><Font italic="true"> </Font>is a unit rectangular centered impuls</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart: with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1148" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font bold="true">Number of convoluted rectangular impulses (max 5 to be fast enough):</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=5:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1142" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">NB: X[2]:=X[1] would produce identical (dependent) random variables</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 1 to n do X[i]:=RandomVariable(UniformDistribution(-1/2,1/2)): end do:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1139" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">sig:=StandardDeviation(X[1]);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1149" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">i:='i':</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1136" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">pdf:=PDF(sum(X[i],i=1..n),x);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1143" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1147" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PsumX:=plot(pdf,x=-n/2-1..n/2+1,color=blue):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1140" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Sig:=sig*sqrt(n);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1145" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PGauss:=plot(exp(-(x/Sig)^2/2)/sqrt(2*Pi)/Sig,x=-n/2-1..n/2+1,color=red):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1141" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(PsumX,PGauss);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1146" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">f Gauss' (normal) and Student's t-distribution</Text-field></Title>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Normal Gauss distribution
<Font bold="false" encoding="UTF-8">Plot the normal distribution and calculate the probability that a quantity is in \302\261 3\317\203.</Font></Text-field></Title>
<Group hide-output="false" labelreference="L1104" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1108" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">from scratch</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">g:=xx-&gt;exp(-xx^2/2)/sqrt(2*Pi);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1106" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(g(x),x=-4..4);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1081" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">evalf(int(g(xx),xx=-3 .. 3));</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1079" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">using Statistics package</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1087" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(Normal(0,1)):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1082" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PDF(X,t);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1083" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">CDF(X,3,numeric)-CDF(X,-3,numeric);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1070" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group labelreference="L1723" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p1:=plot(PDF(X,t),t=-4..4):</Text-field>
</Input>
</Group>
<Group labelreference="L1725" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p2:=plot(CDF(X,t),t=-4..4):</Text-field>
</Input>
</Group>
<Group labelreference="L1724" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(p1,p2);</Text-field>
</Input>
</Group>
<Group labelreference="L1726" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Student's <Font italic="true">t</Font>-distribution
<Font bold="false">The same as above for Student's <Font italic="true">t</Font><Font encoding="UTF-8">-distribution with \316\275=9</Font></Font></Text-field></Title>
<Group hide-output="false" labelreference="L1123" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=10: nu:=n-1:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1127" drawlabel="true">
<Input><Text-field style="Text" layout="Normal">from scratch</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">st:=xx-&gt;GAMMA(nu/2+.5)/sqrt(nu*Pi)/GAMMA(nu/2)*(1+xx^2/nu)^(-nu/2-.5);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1124" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(st(xx),xx=-4..4);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1090" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">int(st(xx),xx=-3 .. 3);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1096" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">using Statistics package</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1088" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(StudentT(nu)):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1131" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">PDF(X,t);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1122" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">CDF(X,3,numeric)-CDF(X,-3,numeric);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1737" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(plots):</Text-field>
</Input>
</Group>
<Group labelreference="L1740" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p1:=plot(PDF(X,t),t=-4..4):</Text-field>
</Input>
</Group>
<Group labelreference="L1739" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p2:=plot(CDF(X,t),t=-4..4):</Text-field>
</Input>
</Group>
<Group labelreference="L1738" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">display(p1,p2);</Text-field>
</Input>
</Group>
<Group labelreference="L1073" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">g Normal distribution example</Text-field></Title>
<Group hide-output="false" labelreference="L1222" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart; with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1217" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">expected:=72:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1214" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">number of data items</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=100:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1221" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">arithemetic average</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">av:=73.6:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1218" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">standard error</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">stderr:=0.9:</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1215" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font italic="true">t</Font>-value</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">t:=(av-expected)/stderr;</Text-field>
</Input>
</Group>
<Group labelreference="L1698" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(Normal(0,1)):</Text-field>
</Input>
</Group>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">a) Null hypothesis: &quot;average = expectation&quot; (two-tails),
        alternative: <Font encoding="UTF-8">&quot;average \342\211\240 expectation&quot;</Font></Text-field></Title><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">100 students got measured their heart rates, the result was 73.6(9) BPM (i.e., \317\203=0.9 BPM). Is this normal (72 BPM)?</Font></Text-field>
<Group hide-input="false" hide-output="false" labelreference="L1210" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=2*CDF(X,-t,numeric);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1225" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=2*int(exp(-x^2/2)/sqrt(2*Pi),x=t..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1219" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font bold="true" encoding="UTF-8">Not enough evidence to reject the null hypothesis (\316\261=5%)</Font>
<Font encoding="UTF-8">Find tmax so that t &gt; tmax \342\207\222 </Font>hypothesis  is rejected</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">tmax:=fsolve(2*CDF(X,-tt,numeric)=0.05,tt=2);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2"><Font encoding="UTF-8">b) Null hypothesis: &quot;average \342\211\244 expectation&quot; (one tail),
</Font>        alternative: &quot;average &gt; expectation&quot;</Text-field></Title><Text-field style="Text" layout="Normal">100 students before an exam got measured their heart rates, the result was 73.6(9) BPM. Are they nervous?</Text-field>
<Group hide-input="false" hide-output="false" labelreference="L1557" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=CDF(X,-t,numeric);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1555" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=int(exp(-x^2/2)/sqrt(2*Pi),x=t..infinity);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1554" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font bold="true">Null hypothesis is rejected (at 5% significance level), there is enough evidence for &quot;average &gt; expectation&quot;</Font></Text-field><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Find tmax so that t &gt; tmax \342\207\222 </Font>hypothesis  is rejected</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">tmax:=fsolve(CDF(X,-tt,numeric)=0.05,tt=2);</Text-field>
</Input>
</Group>
</Section>
<Group labelreference="L1209" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">h Student's <Font italic="true">t</Font>-test<Font encoding="UTF-8"> example \342\200\223 one data set</Font></Text-field></Title><Text-field style="Text" layout="Normal">Normal heart rate is 75 BPM for seniors. Heart rates of eight senoirs before taking samples from their nasopharyngeal mucosa are given below. Are the seniors nervous?</Text-field>
<Group hide-output="false" labelreference="L1119" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart; with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1128" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">data:=[91,83,67,79,86,87,72,75];</Text-field>
</Input>
</Group>
<Group labelreference="L2059" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">expected:=75:</Text-field>
</Input>
</Group>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Using lower-level functions</Text-field></Title>
<Group hide-input="false" hide-output="false" labelreference="L1821" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Number of data items</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=numelems(data);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1824" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Arithemetic average</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">av:=Mean(data);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1823" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Sample standard deviation (Bessel-corrected/unbiased) </Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">sigma:=StandardDeviation(data);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1819" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">stderr:=evalf(sigma/sqrt(n));</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1820" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(StudentT(n-1)):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1822" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font italic="true">t</Font>-value</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">t:=(av-expected)/stderr;</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1829" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=CDF(X,-t,numeric);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1832" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">The same</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=1-CDF(X,t,numeric);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1831" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font bold="true" encoding="UTF-8">Null hypothesis &quot;average=80 \342\211\244 expectation=75&quot; (one tail), alternative: &quot;average &gt; expectation&quot;.
Result: Not enough evidence to reject the null hypothesis (\316\261=5%) because </Font><Font bold="true" italic="true">p</Font><Font bold="true" encoding="UTF-8">&gt;\316\261.</Font></Text-field><Text-field style="Text" layout="Normal"></Text-field><Text-field style="Text" layout="Normal">Let's find the limiting <Font italic="true">t</Font>-value; for t &gt; tmax the hypothesis should be rejected</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">tmax:=fsolve(CDF(X,tt,numeric)=0.95,tt=2);</Text-field>
</Input>
</Group>
<Group labelreference="L1818" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">The same using function OneSampleTTest</Text-field></Title>
<Group hide-input="false" labelreference="L1699" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">OneSampleTTest(data,expected,alternative='uppertail',summarize=embed);</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1179" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">As above, using (incorrectly) the normal distribution</Text-field></Title>
<Group labelreference="L1558" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(Normal(0,1)):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1174" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=CDF(X,-t,numeric);</Text-field>
</Input>
</Group>
<Group labelreference="L1609" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" bold="true" layout="Normal"><Font bold="true">Incorrectly suggests to reject <Font encoding="UTF-8">the null hypothesis (\316\261=5%).</Font></Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">i <Font encoding="UTF-8">Supports for dachshunds \342\200\223 t</Font>wo sets of data </Text-field></Title><Text-field style="Text" layout="Normal">See mmfch5.pdf or mmpc5.pdf</Text-field>
<Group hide-output="false" labelreference="L1120" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1110" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics): with(plots):</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1092" drawlabel="true">
<Input><Text-field style="Text" layout="Normal"><Font bold="true">data:</Font></Text-field><Text-field style="Text" layout="Normal"><Font style="Maple Input">x:=[12.1, 20, 15.1, 20.8, 19.7]:
# x[1]:=13; in this case, equal-variances and unequal-variances give different outcomes
y:=[18.9, 10.1, 12.1, 9.2, 12.4, 16.7, 12.7]:</Font></Text-field>
</Input>
</Group>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Calculation using low-level functions</Text-field></Title><Text-field style="Text" layout="Normal">The same variances assumed (both companies drew the dogs from the same pool)</Text-field>
<Group hide-input="false" hide-output="false" labelreference="L1226" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">n:=numelems(x); m:=numelems(y);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1227" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">avx:=Mean(x); avy:=Mean(y);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1231" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">sx:=StandardDeviation(x); sy:=StandardDeviation(y);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1230" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">s:=sqrt(((n-1)*sx^2+(m-1)*sy^2)/(n+m-2));</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1228" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">t:=abs(avx-avy)/(s*sqrt(1./n+1./m));</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1235" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">nu:=n+m-2:</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1236" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">X:=RandomVariable(StudentT(nu)):</Text-field>
</Input>
</Group>
<Group hide-output="false" labelreference="L1237" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">plot(PDF(X,xx),xx=-4..4);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1238" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">CDF(X,t)-CDF(X,-t);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1229" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">2*CDF(X,-t);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Calculation using function TwoSampleTTest</Text-field></Title>
<Group hide-input="false" hide-output="false" labelreference="L1232" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">The same variances assumed (both companies drew the dogs from the same pool)</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">TwoSampleTTest(x,y,0,equalvariances=true,alternative='twotailed',confidence=0.95,summarize=embed);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1256" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Let's try also the Welch's <Font italic="true">t</Font>-test (unequal variances)</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">TwoSampleTTest(x,y,0,equalvariances=false,alternative='twotailed',confidence=0.95,summarize=embed);</Text-field>
</Input>
</Group>
<Group labelreference="L1529" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 2" layout="Heading 2">Merged data</Text-field></Title>
<Group hide-input="false" hide-output="false" labelreference="L1506" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">op() = extract operands from an expression (* in python)</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">xy:=[op(x),op(y)];</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1507" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">Mean(xy);</Text-field>
</Input>
</Group>
<Group hide-input="false" hide-output="false" labelreference="L1508" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">evalf(StandardDeviation(xy)/sqrt(numelems(xy)));</Text-field>
</Input>
</Group>
<Group labelreference="L1509" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">j Molnupiravir</Text-field></Title>
<Group labelreference="L1622" drawlabel="true">
<Input><Text-field style="Text" layout="Normal"><Hyperlink linktarget="https://www.osel.cz/11993-pilulka-covid-19-mutuje-virus-k-smrti.html" hyperlink="true"><Font style="Hyperlink">https://www.osel.cz/11993-pilulka-covid-19-mutuje-virus-k-smrti.html</Font></Hyperlink> (J. Pazdera, OSEL):
In a double-blind study, 385 covid-19 patients were treated by molnupiravir, 28 of them were hospitalized or died within 29 days after randomization, to be compared with 53 patients out of 377 receiving placebo. What is the probability that molnupiravir is not effective? </Text-field><Text-field style="Text" layout="Normal"><Equation executable="false" style="2D Math" input-equation="" display="LUkjbW5HNiMvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0dJKF9zeXNsaWJHRic2JVErMC4wMDExNzIyN0YnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn">LUkjbW5HNiMvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0dJKF9zeXNsaWJHRic2JVErMC4wMDExNzIyN0YnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn</Equation> Student for [0,0,1,0,1,0,0...], equal variances</Text-field><Text-field style="Text" layout="Normal"><Equation executable="false" style="2D Math" input-equation="" display="LUkjbW5HNiMvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0dJKF9zeXNsaWJHRic2JVErMC4wMDEyMTE1OEYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn">LUkjbW5HNiMvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0dJKF9zeXNsaWJHRic2JVErMC4wMDEyMTE1OEYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYn</Equation> Student for [0,0,1,0,1,0,0...], unequal variances</Text-field><Text-field style="Text" layout="Normal"><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzY2LUkjbW5HRiQ2JVErMC4wMDExNTIwN0YnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLUkjbW9HRiQ2L1EifkYnRi9GMi8lJmZlbmNlR0YxLyUqc2VwYXJhdG9yR0YxLyUpc3RyZXRjaHlHRjEvJSpzeW1tZXRyaWNHRjEvJShsYXJnZW9wR0YxLyUubW92YWJsZWxpbWl0c0dGMS8lJ2FjY2VudEdGMS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRkkvJSllcXVhbGl0eUdGMS1JI21pR0YkNiZRJUJvdGhGJy8lJ2l0YWxpY0dGMUYvRjJGNS1GTzYmUScmIzk2MztGJ0ZSRi9GMi1GNjYvUSInRidGL0YyRjlGO0Y9Rj9GQUZDRkUvRkhRLDAuMTExMTExMWVtRidGSkZMLUZPNiZRInNGJ0ZSRi9GMkY1LUY2NjBRJWZyb21GJy8lJWJvbGRHRjFGL0YyRjlGO0Y9Rj9GQUZDRkVGR0ZKRkxGNS1GTzYmUSliaW5vbWlhbEYnRlJGL0YyRjUtRk82JlEtZGlzdHJpYnV0aW9uRidGUkYvRjItRjY2L1EiLEYnRi9GMkY5L0Y8USV0cnVlRidGPUY/RkFGQ0ZFRkcvRktRLDAuMzMzMzMzM2VtRidGTEY1LUY2NjBRJXRoZW5GJ0Zcb0YvRjJGOUY7Rj1GP0ZBRkNGRUZHRkpGTEY1LUZPNiZGNEZSRi9GMkYvRjI=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzY2LUkjbW5HRiQ2JVErMC4wMDExNTIwN0YnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLUkjbW9HRiQ2L1EifkYnRi9GMi8lJmZlbmNlR0YxLyUqc2VwYXJhdG9yR0YxLyUpc3RyZXRjaHlHRjEvJSpzeW1tZXRyaWNHRjEvJShsYXJnZW9wR0YxLyUubW92YWJsZWxpbWl0c0dGMS8lJ2FjY2VudEdGMS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRkkvJSllcXVhbGl0eUdGMS1JI21pR0YkNiZRJUJvdGhGJy8lJ2l0YWxpY0dGMUYvRjJGNS1GTzYmUScmIzk2MztGJ0ZSRi9GMi1GNjYvUSInRidGL0YyRjlGO0Y9Rj9GQUZDRkUvRkhRLDAuMTExMTExMWVtRidGSkZMLUZPNiZRInNGJ0ZSRi9GMkY1LUY2NjBRJWZyb21GJy8lJWJvbGRHRjFGL0YyRjlGO0Y9Rj9GQUZDRkVGR0ZKRkxGNS1GTzYmUSliaW5vbWlhbEYnRlJGL0YyRjUtRk82JlEtZGlzdHJpYnV0aW9uRidGUkYvRjItRjY2L1EiLEYnRi9GMkY5L0Y8USV0cnVlRidGPUY/RkFGQ0ZFRkcvRktRLDAuMzMzMzMzM2VtRidGTEY1LUY2NjBRJXRoZW5GJ0Zcb0YvRjJGOUY7Rj1GP0ZBRkNGRUZHRkpGTEY1LUZPNiZGNEZSRi9GMkYvRjI=</Equation></Text-field><Text-field style="Text" layout="Normal"><Equation executable="false" style="2D Math" input-equation="" display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzY4LUkjbW5HRiQ2JVErMC4wMDExOTIwMEYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLUkjbW9HRiQ2L1EifkYnRi9GMi8lJmZlbmNlR0YxLyUqc2VwYXJhdG9yR0YxLyUpc3RyZXRjaHlHRjEvJSpzeW1tZXRyaWNHRjEvJShsYXJnZW9wR0YxLyUubW92YWJsZWxpbWl0c0dGMS8lJ2FjY2VudEdGMS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRkkvJSllcXVhbGl0eUdGMS1JI21pR0YkNiZRJUJvdGhGJy8lJ2l0YWxpY0dGMUYvRjJGNS1GTzYmUScmIzk2MztGJ0ZSRi9GMi1GNjYvUSInRidGL0YyRjlGO0Y9Rj9GQUZDRkUvRkhRLDAuMTExMTExMWVtRidGSkZMLUZPNiZRInNGJ0ZSRi9GMkY1LUY2NjBRJWZyb21GJy8lJWJvbGRHRjFGL0YyRjlGO0Y9Rj9GQUZDRkVGR0ZKRkxGNS1GTzYmUSliaW5vbWlhbEYnRlJGL0YyRjUtRk82JlEtZGlzdHJpYnV0aW9uRidGUkYvRjItRjY2L1EiLEYnRi9GMkY5L0Y8USV0cnVlRidGPUY/RkFGQ0ZFRkcvRktRLDAuMzMzMzMzM2VtRidGTEY1LUY2NjBRJXRoZW5GJ0Zcb0YvRjJGOUY7Rj1GP0ZBRkNGRUZHRkpGTEY1LUZPNiZRKFN0dWRlbnRGJ0ZSRi9GMkY1LUkobWZlbmNlZEdGJDYlLUYjNictRk82JlElYmVzdEYnRlJGL0YyRjUtRk82JlEnc2ltcGxlRidGUkYvRjJGL0YyRi9GMkYvRjI=">LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzY4LUkjbW5HRiQ2JVErMC4wMDExOTIwMEYnLyUrZXhlY3V0YWJsZUdRJmZhbHNlRicvJSxtYXRodmFyaWFudEdRJ25vcm1hbEYnLUkjbW9HRiQ2L1EifkYnRi9GMi8lJmZlbmNlR0YxLyUqc2VwYXJhdG9yR0YxLyUpc3RyZXRjaHlHRjEvJSpzeW1tZXRyaWNHRjEvJShsYXJnZW9wR0YxLyUubW92YWJsZWxpbWl0c0dGMS8lJ2FjY2VudEdGMS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRkkvJSllcXVhbGl0eUdGMS1JI21pR0YkNiZRJUJvdGhGJy8lJ2l0YWxpY0dGMUYvRjJGNS1GTzYmUScmIzk2MztGJ0ZSRi9GMi1GNjYvUSInRidGL0YyRjlGO0Y9Rj9GQUZDRkUvRkhRLDAuMTExMTExMWVtRidGSkZMLUZPNiZRInNGJ0ZSRi9GMkY1LUY2NjBRJWZyb21GJy8lJWJvbGRHRjFGL0YyRjlGO0Y9Rj9GQUZDRkVGR0ZKRkxGNS1GTzYmUSliaW5vbWlhbEYnRlJGL0YyRjUtRk82JlEtZGlzdHJpYnV0aW9uRidGUkYvRjItRjY2L1EiLEYnRi9GMkY5L0Y8USV0cnVlRidGPUY/RkFGQ0ZFRkcvRktRLDAuMzMzMzMzM2VtRidGTEY1LUY2NjBRJXRoZW5GJ0Zcb0YvRjJGOUY7Rj1GP0ZBRkNGRUZHRkpGTEY1LUZPNiZRKFN0dWRlbnRGJ0ZSRi9GMkY1LUkobWZlbmNlZEdGJDYlLUYjNictRk82JlElYmVzdEYnRlJGL0YyRjUtRk82JlEnc2ltcGxlRidGUkYvRjJGL0YyRi9GMkYvRjI=</Equation></Text-field><Text-field style="Text" layout="Normal">0.0011878(8) &quot;Exact&quot; (MC simulation, see binbin.c)</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">restart;</Text-field>
</Input>
</Group>
<Group labelreference="L1623" drawlabel="true">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">nx:=385: kx:=28:</Text-field>
</Input>
</Group>
<Group labelreference="L1621" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">ny:=377: ky:=53:</Text-field>
</Input>
</Group>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">Student t-test</Text-field></Title>
<Group hide-input="false" labelreference="L1624" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1626" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Fake data</Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">x:=Vector(nx,fill=0): y:=Vector(ny,fill=0):</Text-field>
</Input>
</Group>
<Group labelreference="L1627" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 1 to kx do x[i]:=1 end do:</Text-field>
</Input>
</Group>
<Group labelreference="L1625" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">for i from 1 to ky do y[i]:=1 end do:</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1629" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Approximations: Formulas in R used for discrete data \342\210\210 {0,1}, variances are the same (actually they are not, but we know their ratio).</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">TwoSampleTTest(x,y,0,equalvariances=true,alternative=lowertail,summarize=embed);</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1628" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal"><Font encoding="UTF-8">Approximations: Formulas in R used for discrete data \342\210\210 {0,1}, variances are not the same (indeed they are not, but we know their ratio \342\207\222 we get higher p here).</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">TwoSampleTTest(x,y,0,equalvariances=false,alternative=lowertail,summarize=embed);</Text-field>
</Input>
</Group>
</Section>
<Section collapsed="true" isCollapsible="true" drawButton="true" MultipleChoiceAnswerIndex="-1" MultipleChoiceRandomizeChoices="false" TrueFalseAnswerIndex="-1" EssayAnswerRows="5" EssayAnswerColumns="60"><Title><Text-field style="Heading 1" layout="Heading 1">Binomial distribution approximated by normal or <Font italic="true">t</Font>-distribution</Text-field></Title>
<Group hide-input="false" labelreference="L1632" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">px:=kx/nx:</Text-field>
</Input>
</Group>
<Group labelreference="L1637" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">py:=ky/ny:</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1635" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">sigma:=sqrt( (1.-px)*px/nx + (1.-py)*py/ny );</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1640" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">t:=(py-px)/sigma;</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1639" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">Approximation: Finite sum of discrete distributions approximated by Gaussian; <Font encoding="UTF-8">\317\203's are correct.</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">p:=erfc(t/sqrt(2.))/2;</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1638" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal">with(Statistics):</Text-field>
</Input>
</Group>
<Group hide-input="false" labelreference="L1636" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field style="Text" layout="Normal">As above, except that the final distribution is <Font italic="true">t</Font><Font encoding="UTF-8"> with \316\275=nx+ny\342\210\2222. This would be exact if the original data were Gaussian-distributed, but they are discrete {0,1}. This is the best option because the discretization is the only approximation.</Font></Text-field><Text-field prompt="&gt; " style="Maple Input" layout="Normal">1-CDF(StudentT(nx+ny-2),t);</Text-field>
</Input>
</Group>
<Group labelreference="L1643" drawlabel="true" applyint="true" applyrational="true" applyexponent="false">
<Input><Text-field prompt="&gt; " style="Maple Input" layout="Normal"></Text-field>
</Input>
</Group>
</Section>
</Section>
</Worksheet>