<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Customizing and Extending Content MathML</title>
<meta name="Author" content="Kyle Siegrist"/>
<meta name="Keywords" content="probability, statistics, MathML, Content MathML, Presentation MathML"/>
<link rel="icon" href="../Icon.png" type="image/png"/>
<link rel="stylesheet" href="ScreenStyles.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="PrintStyles.css" type="text/css" media="print"/>
<link rel="contents" href="index.xml"/>
<script src="scripts.js" type="text/javascript"/>
</head>

<body>

<div class="header">
<p><a href="index.html">Home</a>    <a href="Introduction.xml">1</a>    <a href="MathML.xml" class="main">2</a>   <a href="Customizing.xml" class="main">3</a>    <em class="current">4</em>    <a href="Conclusions.xml">5</a></p>
</div>

<h2>4. A Customized Content MathML for Probability and Statistics</h2>

<ol>
	<li><a href="#Introduction" class="main">Introduction</a></li>
	<li><a href="#ProbExpect" class="main">Probability and Expected Value</a>
		<ul>
			<li><a href="#Probability" class="main">Probability</a></li>
			<li><a href="#Expect" class="main">Expected Value</a></li>
			<li><a href="#Condition" class="main">Conditioning</a></li>
		</ul>
	</li>
	<li><a href="#Functions" class="main">Functions</a>
		<ul>
			<li><a href="#Trig" class="main">Trigonometric and Related Functions</a></li>
			<li><a href="#Cardinality" class="main">Cardinality</a></li>
			<li><a href="#Determinant" class="main">Determinant</a></li>
			<li><a href="#NewFunctions" class="main">New Special Functions</a></li>
			<li><a href="#ChiSquare" class="main">Chi-Square Quantiles</a></li>
			<li><a href="#Indicate" class="main">Indicator Functions</a></li>
			<li><a href="#Parts" class="main">Positive and Negative Parts</a></li>
			<li><a href="#Norm" class="main">Norm and Innter Product</a></li>
			<li><a href="#Factorial" class="main">Factorial</a></li>
			<li><a href="#Binomial" class="main">Binomial and Multinomial Coefficients</a></li>
		</ul>
	</li>
	<li><a href="#Relations" class="main">Relations</a>
		<ul>
			<li><a href="#GeneralRelations" class="main">General Relations</a></li>
			<li><a href="#NewRelations" class="main">Special Relations</a></li>
			<li><a href="#Equivalence" class="main">Equivalence Class</a></li>
			<li><a href="#Mapping" class="main">Mapping</a></li>
		</ul>
	</li>
	<li><a href="#Operations" class="main">Operations</a>
		<ul>
			<li><a href="#Convolve" class="main">Convolution</a></li>
			<li><a href="#ConvolutionPower" class="main">Convolution Power</a></li>
			<li><a href="#ConvolutionPower" class="main">Composition Power</a></li>
			<li><a href="#PlusMinus" class="main">Plus-Minus</a></li>
			<li><a href="#PowerSet" class="main">Power Set</a></li>
			<li><a href="#Complement" class="main">Complement</a></li>
			<li><a href="#SymmDiff" class="main">Symmetric Difference</a></li>
			<li><a href="#Union" class="main">Union and Intersection</a></li>
		</ul>
	</li>
	<li><a href="#Infimum" class="main">Infimum and Related Constructions</a>
		<ul>
			<li><a href="#Inf" class="main">Infimum and Supremum</a></li>
			<li><a href="#LimitInf" class="main">Limit Inferior and Limit Superior</a></li>
		</ul>
	</li>
	<li><a href="#Numbers" class="main">Special Sets of Numbers</a></li>
	<li><a href="#Hypothesis" class="main">Hypothesis Testing</a></li>
	<li><a href="#Cards" class="main">Playing Cards</a>
		<ul>
			<li><a href="#Denominations" class="main">Special Denominations</a></li>
			<li><a href="#Suits" class="main">Suits</a></li>
		</ul>
	</li>
	<li><a href="#Misc" class="main">Miscellaneous Additions</a>
		<ul>
			<li><a href="#Etc" class="main">Et Cetera</a></li>
			<li><a href="#Odds" class="main">Odds</a></li>
			<li><a href="#Ordinals" class="main">Ordinals</a></li>
		</ul>
	</li>
</ol>


<h3 id="Introduction">4. 1. Introduction</h3>

<p>This section describes the customized and extended version of Content MathML developed for the project <a href="http://www.math.uah.edu/stat/" class="external" target="external">Virtual Laboratories in Probability and Statistics</a>. Thus, the information here should be considered a companion to the standard <a href="http://www.w3.org/TR/MathML2/" class="external" target="external">Content MathML documentation</a> at  <a href="http://www.w3c.org" class="external" target="external">W3C</a>. The customized Content MathML markup is translated into standard Presentation MathML via the XSL transformation file <a href="stat.xsl" class="download">stat.xsl</a> which in turn is based on the standard XSL transformation file <a href="ctop.xsl" class="download">ctop.xsl</a> written by David Carlisle.  Our stylesheet stat.xsl also corrects a number of bugs in the original ctop.xsl.  These corrections are due to Tom Leathrum. </p>

<h3 id="ProbExpect">4.2. Probability and Expected Value</h3>

<h4 id="Probability">Probability</h4>

<p>The markup <code>&lt;prob /&gt;</code> has been added to denote probability measure, and is rendered by the stylesheet with the special symbol
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>ℙ</mi>
</math>. This markup is ordinarily used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one or more arguments. For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;prob /&gt;
    &lt;apply&gt;&lt;intersect /&gt;
        &lt;ci&gt;A&lt;/ci&gt;
        &lt;ci&gt;B&lt;/ci&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>ℙ</mi><mo>(</mo><mrow><mrow><mi>A</mi></mrow><mo>∩</mo><mrow><mi>B</mi></mrow></mrow><mo>)</mo></mrow>
</math>.</p>

<h4 id="Expect">Expected Value</h4>

<p>Similarly, the markup <code>&lt;expect /&gt;</code> has been added to denote the expected value operator, and is rendered by the stylesheet with the special symbol
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mo>𝔼</mo>
</math>. This markup is ordinarily used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one or more arguments. For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;expect /&gt;
    &lt;ci&gt;X&lt;/ci&gt;
    &lt;apply&gt;&lt;geq /&gt;
        &lt;ci&gt;Y&lt;/ci&gt;
        &lt;cn&gt;0&lt;/cn&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>𝔼</mo><mo>(</mo><mrow><mi>X</mi></mrow><mo>,</mo><mrow><mrow><mi>Y</mi></mrow><mo>≥</mo><mn>0</mn></mrow><mo>)</mo></mrow>
</math>
</p>

<h4 id="Condition">Conditioning</h4>

<p>The notion of conditioning is of central importance in modern probability, so the markup <code>&lt;given&gt;&lt;/given&gt;</code> has been added for conditional probability and conditional expected value.  This markup is used inside the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, and can have any number of arguments. For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;prob /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
    &lt;given&gt;
        &lt;ci&gt;B&lt;/ci&gt;
        &lt;ci&gt;C&lt;/ci&gt;
    &lt;/given&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>ℙ</mi><mo>(</mo><mrow><mi>A</mi></mrow><mo>|</mo><mrow><mi>B</mi></mrow><mo>,</mo><mrow><mi>C</mi></mrow><mo>)</mo></mrow>
</math>. Similarly, the markup</p>

<pre class="code">&lt;apply&gt;&lt;expect /&gt;
    &lt;ci&gt;X&lt;/ci&gt;
    &lt;given&gt;
       &lt;apply&gt;&lt;geq /&gt;
            &lt;ci&gt;Y&lt;/ci&gt;
            &lt;cn&gt;0&lt;/cn&gt;
       &lt;/apply&gt;
    &lt;/given&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>𝔼</mo><mo>(</mo><mrow><mi>X</mi></mrow><mo>|</mo><mrow><mrow><mi>Y</mi></mrow><mo>≥</mo><mn>0</mn></mrow><mo>)</mo></mrow>
</math>
</p>

<h3 id="Functions">4.3. Functions</h3>

<h4 id="Trig">Trignometric and Related Functions</h4>

<p>Our stylesheet uses the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction with all of the trigonometric, logarithmic, hyperbolic functions and the inverses of these functions, that are in standard Content MathML.  Thus, the stylesheet renders these functions in consistent notation, with arguments enclosed in parentheses after the function name.  For example,</p>

<pre class="code">&lt;apply&gt;&lt;sin /&gt;
    &lt;ci&gt;&amp;theta;&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>sin</mi><mo>(</mo><mrow><mi>θ</mi></mrow><mo>)</mo></mrow>
</math>
rather than
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>sin</mi><mi>θ</mi></mrow>
</math>.
</p>

<h4 id="Cardinality">Cardinality</h4>

<p>We use function notation for cardinality.  The markup <code>&lt;card /&gt;</code> in standard Content MathML is rendered with our stylesheet by
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>#</mi>
</math>.
This markup works in the usual way with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction. For example,</p>

<pre class="code">&lt;apply&gt;&lt;card /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>#</mi><mo>(</mo><mrow><mi>A</mi></mrow><mo>)</mo></mrow>
</math>
rather than
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>|</mo><mi>A</mi><mo>|</mo></mrow>
</math>.</p>

<h4 id="Determinant">Determinant</h4>

<p>Similarly, we use function notation for determinants.  The markup <code>&lt;determinant /&gt;</code> in standard Content MathML is rendered by our stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>det</mi>
</math>. This markup works in the usual way with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction. For example</p>

<pre class="code">&lt;apply&gt;&lt;determinant /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>det</mi><mo>(</mo><mrow><mi>A</mi></mrow><mo>)</mo></mrow>
</math>
rather than
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>|</mo><mi>A</mi><mo>|</mo></mrow>
</math>.</p>

<h4 id="NewFunctions">New Special Functions</h4>

<p>Markup has been added for a number of special functions, particularly those related to probability and statistics.</p>

<dl>
	<dt>Variance</dt>
	<dd>The markup <code>&lt;variance /&gt;</code> denotes variance and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>var</mi>
	</math>.
	</dd>
	<dt>Covariance</dt>
	<dd>The markup <code>&lt;covariance /&gt;</code> denotes covariance and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>cov</mi>
	</math>.
	</dd>
	<dt>Correlation</dt>
	<dd>The markup <code>&lt;correlation /&gt;</code> denotes correlation and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>cor</mi>
	</math>.
	</dd>
	<dt>Skewness</dt>
	<dd>The markup <code>&lt;skew /&gt;</code> denotes skewness and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>skew</mi>
	</math>.
	</dd>
	<dt>Kurtosis</dt>
	<dd>The markup <code>&lt;kurt /&gt;</code> denotes correlation and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>kurt</mi>
	</math>.
	</dd>
	<dt>Beta</dt>
	<dd>The markup <code>&lt;Beta /&gt;</code> denotes the beta function and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>Β</mi>
	</math>.
	</dd>
	<dt>Gamma</dt>
	<dd>The markup <code>&lt;Gamma /&gt;</code> denotes the gamma function and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>Γ</mi>
	</math>.
	</dd>
	<dt>Zeta</dt>
	<dd>The markup <code>&lt;zeta /&gt;</code> denotes the zeta function and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>ζ</mi>
	</math>.
	</dd>
	<dt>Lebesgue measure</dt>
	<dd>The markup <code>&lt;lebesgue /&gt;</code> denotes Lebesgue measure and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>λ</mi>
	</math>.
	</dd>
	<dt>Closure</dt>
	<dd>The markup <code>&lt;closure /&gt;</code> denotes closure and is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>cl</mi>
	</math>.
	</dd>
</dl>

<p>Each of these works in the usual with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction.  With this construction, <code>&lt;covariance /&gt;</code> and <code>&lt;correlation /&gt;</code> ordinarily have two arguments; the other functions in the list ordinarily have one argument. For example,</p>

<pre class="code">&lt;apply&gt;&lt;covariance /&gt;
    &lt;ci&gt;X&lt;/ci&gt;
    &lt;ci&gt;Y&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>cov</mi><mo>(</mo><mrow><mi>X</mi></mrow><mo>,</mo><mrow><mi>Y</mi></mrow><mo>)</mo></mrow>
</math> while</p>

<pre class="code">&lt;apply&gt;&lt;skew /&gt;
    &lt;ci&gt;X&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>skew</mi><mo>(</mo><mrow><mi>X</mi></mrow><mo>)</mo></mrow>
</math>.</p>

<h4 id="ChiSquare">Chi-Square Quantiles</h4>

<p>Chi-square procedures are common in statistics, and involve some complicated notation.  The markup <code>&lt;chisquare /&gt;</code> has been added for the chi-square quantile function with a specified degrees of freedom.  This markup shoud be used in the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments. For example, the markup</p>

<pre>&lt;apply&gt;&lt;chisquare /&gt;
    &lt;ci&gt;k&lt;/ci&gt;
    &lt;ci&gt;p&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as

<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msubsup><mi>χ</mi><mrow><mrow><mi>k</mi></mrow></mrow><mn>2</mn></msubsup><mrow><mo>(</mo><mrow><mi>p</mi></mrow><mo>)</mo></mrow></mrow>
</math>.
</p>

<h4 id="Indicate">Indicator Functions</h4>

<p>The markup <code>&lt;indicate /&gt;</code> has been added for an indicator function, and is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn mathvariant="bold">1</mn>
</math>. This markup is used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction. For example, the markup</p>

<pre class="code">&lt;apply&gt;
    &lt;apply&gt;&lt;indicate /&gt;
        &lt;ci&gt;A&lt;/ci&gt;
    &lt;/apply&gt;
    &lt;ci&gt;x&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mn mathvariant="bold">1</mn><mo>(</mo><mrow><mi>A</mi></mrow><mo>)</mo></mrow><mo>(</mo><mrow><mi>x</mi></mrow><mo>)</mo></mrow>
</math>.</p>

<h4 id="Parts">Positive and Negative Parts</h4>

<p>The markup <code>&lt;positivepart /&gt;</code> and <code>&lt;negativepart /&gt;</code> have been added for the positive and negative parts of a real number, respectivley.  These should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argument. For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;positivepart /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>x</mi></mrow><mrow><mo>+</mo></mrow></msup>
</math>, while the markup</p>

<pre class="code">&lt;apply&gt;&lt;negativepart /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>x</mi></mrow><mrow><mo>−</mo></mrow></msup>
</math>.</p>

<h4 id="Norm">Norm and Inner Product</h4>

<p>The markup <code>&lt;norm /&gt;</code> has been added for the norm of a vector.  The markup should be used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argument.  For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;norm /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>‖</mo><mrow><mi>x</mi></mrow><mo>‖</mo></mrow>
</math>.</p>

<p>The markup <code>&lt;innerproduct /&gt;</code> has been added for the inner product of two vectors. The markup should be used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments.  For example, the markup</p>

<pre class="code">&lt;apply&gt;&lt;innerproduct /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
    &lt;ci&gt;y&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>〈</mo><mrow><mi>x</mi></mrow><mo>,</mo><mrow><mi>y</mi></mrow><mo>〉</mo></mrow>
</math>. Standard Content MathML has the markup <code>&lt;scalarproduct /&gt;</code> for scalar product (or dot product).  Our stylesheet leaves the rendering of this element unchanged.</p>

<h4 id="Factorial">Factorial</h4>

<p>The markup <code>&lt;factorial /&gt;</code> for factorials has been extended to denote the <q>falling power</q> formula used for counting permutations and an even more general permutation formula.  (For the definitions of these, see <a href="http://www.math.uah.edu/stat/foundations/Structures.xhtml" class="external" target="external">Combinatorial Structures</a> in <a href="http://www.math.uah.edu/stat" class="external" target="external">Virtual Laboratories in Probability and Statistics</a>) This markup should be used in the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one, two, or three arguments. With one argument, the markup denotes the standard factorial, so that</p>

<pre class="code">&lt;apply&gt;&lt;factorial /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>n</mi></mrow><mo>!</mo></mrow>
</math>. With two arguments, the markup denotes the falling power factorial formula, so that </p>

<pre class="code">&lt;apply&gt;&lt;factorial /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
    &lt;ci&gt;k&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>n</mi></mrow><mrow><mo>(</mo><mrow><mi>k</mi></mrow><mo>)</mo></mrow></msup>
</math>. With three arguments, the markup denotes the general factorial formula, so that </p>

<pre class="code">&lt;apply&gt;&lt;factorial /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
    &lt;ci&gt;k&lt;/ci&gt;
    &lt;ci&gt;c&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>n</mi></mrow><mrow><mo>(</mo><mrow><mi>k</mi></mrow><mo>,</mo><mrow><mi>c</mi></mrow><mo>)</mo></mrow></msup>
</math></p>

<h4 id="Binomial">Binomial and Multinomial Coefficients</h4>

<p>The markup <code>&lt;binomial /&gt;</code> has been added for binomial and multinomial coefficients.  This markup should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction; with two arguments it represents a binomial coefficient, and with more than  two arguments it represents a multinomial coefficient. For example, </p>

<pre class="code">&lt;apply&gt;&lt;binomial /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
    &lt;ci&gt;k&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>(</mo><mfrac linethickness="0"><mrow><mrow><mi>n</mi></mrow></mrow><mrow><mrow><mi>k</mi></mrow></mrow></mfrac><mo>)</mo></mrow>
</math>, and </p>

<pre class="code">&lt;apply&gt;&lt;binomial /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
     &lt;ci&gt;i&lt;/ci&gt;
    &lt;ci&gt;j&lt;/ci&gt;
    &lt;ci&gt;k&lt;/ci&gt;
&lt;/apply&gt;
</pre>

<p>is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>(</mo><mfrac linethickness="0"><mrow><mrow><mi>n</mi></mrow></mrow><mrow><mrow><mi>i</mi></mrow><mo>,</mo><mrow><mi>j</mi></mrow><mo>,</mo><mrow><mi>k</mi></mrow></mrow></mfrac><mo>)</mo></mrow>
</math>.</p>

<h3 id="Relations">4.4. Relations</h3>

<h4 id="GeneralRelations">General Relations</h4>

<p>The standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction has been extended with the addition of a <code>type</code> attribute. The <code>type="relation"</code> setting uses standard notation associated with a relation.  For example,

<pre class="code">&lt;apply type="relation"&gt;
    &lt;ci&gt;R&lt;/ci&gt;
    &lt;ci&gt;x&lt;/ci&gt;
    &lt;ci&gt;y&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>x</mi></mrow><mrow><mi>R</mi></mrow><mrow><mi>y</mi></mrow></mrow>
</math>, as opposed to

<pre class="code">&lt;apply&gt;
    &lt;ci&gt;R&lt;/ci&gt;
    &lt;ci&gt;x&lt;/ci&gt;
    &lt;ci&gt;y&lt;/ci&gt;
&lt;/apply&gt;
</pre>

which is rendered by the stylesheet in the usual functional way as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>R</mi></mrow><mo>(</mo><mrow><mi>x</mi></mrow><mo>,</mo><mrow><mi>y</mi></mrow><mo>)</mo></mrow>
</math>.</p>

<h4 id="NewRelations">Special Relations</h4>

<p>Markup has been added for a number of special relation symbols, beyond the ones in standard Content MathML.  For the most part, these relations are associated with partial orders, equivalence relations, and other transitive relations.

<dl>
	<dt>Weak precedes</dt>
	<dd><code>&lt;preceq /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≼</mo>
	</math>.
	</dd>
	<dt>Weak succeeds</dt>
	<dd><code>&lt;succeq /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≽</mo>
	</math>.
	</dd>
	<dt>Strong precedes</dt>
	<dd><code>&lt;prec /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≺</mo>
	</math>.
	</dd>
	<dt>Strong succeeds</dt>
	<dd><code>&lt;succ /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≻</mo>
	</math>.
	</dd>
	<dt>Parallel</dt>
	<dd><code>&lt;parallel /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>∥</mo>
	</math>.
	</dd>
	<dt>Perpendicular</dt>
	<dd><code>&lt;perp /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>⊥</mo>
	</math>.
	</dd>
	<dt>Weak approximation</dt>
	<dd><code>&lt;approxeq /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≅</mo>
	</math>.
	</dd>
	<dt>Congruent</dt>
	<dd><code>&lt;congruent /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>≡</mo>
	</math>.
	</dd>
	<dt>Left arrow</dt>
	<dd><code>&lt;left /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>←</mo>
	</math>.
	</dd>
	<dt>Right arrow</dt>
	<dd><code>&lt;right /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>→</mo>
	</math>.
	</dd>
	<dt>Left-right arrow</dt>
	<dd><code>&lt;leftright /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>↔</mo>
	</math>.
	</dd>
	<dt>Up arrow</dt>
	<dd><code>&lt;up /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>↑</mo>
	</math>.
	</dd>
	<dt>Down arrow</dt>
	<dd><code>&lt;down /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>↓</mo>
	</math>.
	</dd>
	<dt>Up-down arrow</dt>
	<dd><code>&lt;updown /&gt;</code> which is rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mo>↕</mo>
	</math>.
	</dd>
</dl>

Of course, each of these should be used with the <code>&lt;apply type="relation"&gt;&lt;/apply&gt;</code> construction, with two arguments.  For example,

<pre class="code">&lt;apply type="relation"&gt;&lt;preeq /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
    &lt;ci&gt;y&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>x</mi></mrow><mo>≼</mo><mrow><mi>y</mi></mrow></mrow>
</math>.</p>

<h4 id="Equivalence">Equivalence Class</h4>

<p>The markup <code>&lt;equivalenceclass /&gt;</code> has been added to denote an equivalence class.  This markup should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argument. For example, the markup

<pre>&lt;apply&gt;&lt;equivalenceclass /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>[</mo><mrow><mi>x</mi></mrow><mo>]</mo></mrow>
</math>.
</p>

<h4 id="Mapping">Mapping</h4>

<p>The <code>&lt;mapsto /&gt;</code> markup has been added for the description of functions. This markup should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with either two are three arguments. For example, the markup

<pre class="code">&lt;apply&gt;&lt;mapsto /&gt;
    &lt;ci&gt;x&lt;/ci&gt;
    &lt;apply&gt;&lt;power /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;cn&gt;2&lt;/cn&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>x</mi></mrow><mo>↦</mo><msup><mrow><mi>x</mi></mrow><mn>2</mn></msup></mrow>
</math>, while the markup

<pre class="code">&lt;apply&gt;&lt;mapsto /&gt;
    &lt;ci&gt;f&lt;/ci&gt;
    &lt;ci&gt;A&lt;/ci&gt;
    &lt;ci&gt;B&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>f</mi></mrow><mo>:</mo><mrow><mi>A</mi></mrow><mo>→</mo><mrow><mi>B</mi></mrow></mrow>
</math>,</p>

<h3 id="Operations">4.5. Operations</h3>

<p>We have added several new operations, beyond the ones in standard Content MathML.</p>

<h4 id="Convolve">Convolution</h4>

<p>The markup <code>&lt;convolve /&gt;</code> denotes convolution, and is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mo>*</mo>
</math>. This markup is ordinarily used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two or more arguments.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;convolve /&gt;
    &lt;ci&gt;f&lt;/ci&gt;
    &lt;ci&gt;g&lt;/ci&gt;
    &lt;ci&gt;g&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>f</mi></mrow><mo>*</mo><mrow><mi>g</mi></mrow><mo>*</mo><mrow><mi>h</mi></mrow></mrow>
</math>.</p>

<h4 id="ConvolutionPower">Convolution Power</h4>

<p>The markup <code>&lt;convolutionpower /&gt;</code> denotes convolution power (repeated covolution of a function with itself). It should be used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;convolutionpower /&gt;
    &lt;ci&gt;f&lt;/ci&gt;
    &lt;ci&gt;n&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>f</mi></mrow><mrow><mo>*</mo><mrow><mi>n</mi></mrow></mrow></msup>
</math>.
</p>

<h4 id="CompositionPower">Composition Power</h4>

<p>The composition operation <code>&lt;compose /&gt;</code> is present in standard Content MathML.  We have added <code>&lt;compositionpower /&gt;</code> to denote repeated composition of a function with itself.  This markup should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments. For example, the markup

<pre class="code">&lt;apply&gt;&lt;compositionpower /&gt;
    &lt;ci&gt;f&lt;/ci&gt;
    &lt;ci&gt;n&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>f</mi></mrow><mrow><mo>∘</mo><mrow><mi>n</mi></mrow></mrow></msup>
</math>.
</p>

<h4 id="PlusMinus">Plus-Minus</h4>

<p>The markup <code>&lt;plusminus /&gt;</code> has been added for the plus-minus operator, which is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mo>±</mo>
</math>. The plus-minus operator is both unary and binary, so the markup should used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with either one or two arguments.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;plusminus /&gt;
    &lt;ci&gt;a&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>±</mo><mrow><mi>a</mi></mrow></mrow>
</math>, while the markup

<pre class="code">&lt;apply&gt;&lt;plusminus /&gt;
    &lt;ci&gt;a&lt;/ci&gt;
    &lt;ci&gt;b&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>a</mi></mrow><mo>±</mo><mrow><mi>b</mi></mrow></mrow>
</math>.</p>

<h4 id="PowerSet">Power Set</h4>

<p>The markup <code>&lt;powerset /&gt;</code> has been added for the power set operator, which is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi class="collection">P</mi>
</math>. This markup is ordinarily used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argeument.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;powerset /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi class="collection">P</mi><mo>(</mo><mrow><mi>A</mi></mrow><mo>)</mo></mrow>
</math>.</p>

<h4 id="Complement">Complement</h4>

<p>The markup <code>&lt;complement /&gt;</code> has been added for the complement of a set. This markup is ordinarily used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argeument.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;complement /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>A</mi></mrow><mi>c</mi></msup>
</math>.</p>

<h4 id="SymmDiff">Symmetric Difference</h4>

<p>The markup <code>&lt;symmdiff /&gt;</code> has been added for the symmetric difference operator, rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mo>Δ</mo>
</math>. This markup is ordinarily used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;symmdiff /&gt;
    &lt;ci&gt;A&lt;/ci&gt;
    &lt;ci&gt;B&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>A</mi></mrow><mo>Δ</mo><mrow><mi>B</mi></mrow></mrow>
</math>.</p>

<h4 id="Union">Union and Intersection</h4>

<p>New markup expressions <code>&lt;Union /&gt;</code> and <code>&lt;Intersect /&gt;</code> have been added for unions and intersections, respectively, over collections.  The distinction between the standard markup  <code>&lt;union /&gt;</code> and the new markup <code>&lt;Union /&gt;</code> is analogous to the distinction between <code>&lt;plus /&gt;</code> and <code>&lt;sum /&gt;</code> in standard markup.  For example, the markup

<pre>&lt;apply&gt;&lt;Union /&gt;
    &lt;condition&gt;
        &lt;apply&gt;&lt;in /&gt;
            &lt;ci&gt;i&lt;/ci&gt;
            &lt;ci&gt;I&lt;/ci&gt;
        &lt;/apply&gt;
    &lt;/condition&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;A&lt;/ci&gt;
        &lt;ci&gt;i&lt;/ci&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msubsup><mo>⋃</mo><mrow><mrow>
			<mrow><mrow><mi>i</mi></mrow><mo>∈</mo><mrow><mi>I</mi></mrow></mrow>
		</mrow></mrow><mrow/></msubsup><msub><mrow><mi>A</mi></mrow><mrow><mrow><mi>i</mi></mrow></mrow></msub></mrow>
</math>, while the markup

<pre>&lt;apply&gt;&lt;Union /&gt;
    &lt;bvar&gt;&lt;ci&gt;i&lt;/ci&gt;&lt;/bvar&gt;
    &lt;lowlimit&gt;&lt;cn&gt;1&lt;/cn&gt;&lt;/lowlimit&gt;
    &lt;uplimit&gt;&lt;ci&gt;n&lt;/ci&gt;&lt;/uplimit&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;A&lt;/ci&gt;
        &lt;ci&gt;i&lt;/ci&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msubsup><mo>⋃</mo><mrow><mi><mrow><mi>i</mi></mrow></mi><mo>=</mo><mn>1</mn></mrow><mrow><mrow><mi>n</mi></mrow></mrow></msubsup><msub><mrow><mi>A</mi></mrow><mrow><mrow><mi>i</mi></mrow></mrow></msub></mrow>
</math>.  The markup for intersection works in exactly the same way, with <code>&lt;Intersect /&gt;</code> replacing <code>&lt;Union /&gt;</code>. Unions and intersections over collections will be a part of the new Content MathML 3.0 specification.</p>

<h3 id="Infimum">4.6. Infimum and Related Markup</h3>

<h4 id="Inf">Infimum and Supremum</h4>

<p>Standard Content MathML has markup for minimums and maximums. We have added analogous markup for infima and suprema.  The markup <code>&lt;inf /&gt;</code> and <code>&lt;sup /&gt;</code> are used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction.  Thus for example, the markup

<pre>&lt;apply&gt;&lt;inf /&gt;
    &lt;ci&gt;a&lt;/ci&gt;
    &lt;ci&gt;b&lt;/ci&gt;
    &lt;ci&gt;c&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>inf</mi><mrow><mo>{</mo><mrow><mi>a</mi></mrow><mo>,</mo><mrow><mi>b</mi></mrow><mo>,</mo><mrow><mi>c</mi></mrow><mo>}</mo></mrow></mrow>
</math>, and the markup

<pre>&lt;apply&gt;&lt;inf /&gt;
    &lt;bvar&gt;
        &lt;apply&gt;&lt;selector /&gt;
            &lt;ci&gt;a&lt;/ci&gt;
            &lt;ci&gt;n&lt;/ci&gt;
        &lt;/apply&gt;
    &lt;/bvar&gt;
    &lt;condition&gt;
        &lt;apply&gt;&lt;in /&gt;
            &lt;ci&gt;n&lt;/ci&gt;
            &lt;naturalnumbers /&gt;
        &lt;/apply&gt;
    &lt;/condition&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mi>inf</mi><mrow><mo>{</mo><mrow><msub><mrow><mi>a</mi></mrow><mrow><mrow><mi>n</mi></mrow></mrow></msub></mrow><mo>:</mo><mrow>
			<mrow><mrow><mi>n</mi></mrow><mo>∈</mo><mi>ℕ</mi></mrow>
		</mrow><mo>}</mo></mrow></mrow>
</math>.  Of course, the markup for suprema is entirely analogous, with <code>&lt;sup /&gt;</code> replacing <code>&lt;inf /&gt;</code>.</p>

<h4 id="LimitInf">Limit Inferior and Limit Superior</h4>

<p>Standard Content MathML has markup for limits.  We have added analogous markup for limit inferior and limit superior.  The markup <code>&lt;limitinf /&gt;</code> and <code>&lt;limitsup /&gt;</code> are used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction. Thus, for example, the markup

<pre>&lt;apply&gt;&lt;limitsup /&gt;
        &lt;condition&gt;
            &lt;apply&gt;&lt;tendsto /&gt;
                &lt;ci&gt;t&lt;/ci&gt;
                &lt;ci&gt;x&lt;/ci&gt;
            &lt;/apply&gt;
        &lt;/condition&gt;
        &lt;apply&gt;
            &lt;ci&gt;F&lt;/ci&gt;
            &lt;ci&gt;t&lt;/ci&gt;
        &lt;/apply&gt;
    &lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><munder><mi>lim sup </mi><mrow><mrow><mrow><mi>t</mi></mrow><mo>→</mo><mrow><mi>x</mi></mrow></mrow></mrow></munder><mrow><mrow><mi>F</mi></mrow><mo>(</mo><mrow><mi>t</mi></mrow><mo>)</mo></mrow></mrow>
</math>. Of course, the markup for limit inferior is entirely analogous, with <code>&lt;limitinf /&gt;</code> replacing <code>&lt;limitsup /&gt;</code>.</p>

<h3 id="Numbers">4.7. Special Sets of Numbers</h3>

<p>Standard Content MathML has markup for several special sets of numbers.  We extend this to include</p>

<dl>
	<dt>Positive integers</dt>
	<dd>The markup <code>&lt;positiveintegers /&gt;</code> denotes the set of positive integers, rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mrow><msub><mi>ℕ</mi><mn>+</mn></msub></mrow>
	</math>. In our project, the natural numbers (which has markup in standard Content MathML) refers to the nonnegative integers.
	</dd>
	<dt>Positive rationals</dt>
	<dd>The markup <code>&lt;positiverationals /&gt;</code> denotes the set of positive rational numbers, rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mrow><msub><mi>ℚ</mi><mn>+</mn></msub></mrow>
	</math>.
	</dd>
	<dt>Algebraic numbers</dt>
	<dd>The markup <code>&lt;algebraicnumbers /&gt;</code> denotes the set of algebraic numbers, rendered by the stylesheet as
	<math xmlns="http://www.w3.org/1998/Math/MathML">
		<mi>𝔸</mi>
	</math>.
	</dd>
</dl>

<h3 id="Hypothesis">4.8. Hypothesis Testing</h3>

<p>Hypothesis testing is a core procedure in inferential statistics.  Thus, we have added special markup for hypothesis testing, with a type attribute to distinguish between the null and alternative hypotheses.  Thus, <code>&lt;hypothesis type="null" /&gt;</code> is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msub><mi>H</mi><mn>0</mn></msub></mrow>
</math>, while <code>&lt;hypothesis type="alt" /&gt;</code> is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msub><mi>H</mi><mn>1</mn></msub></mrow>
</math>. This markup is ordinarily used with the <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argument (representing the hypothesis).  For example, the markup

<pre class="code">&lt;apply&gt;&lt;hypothesis type="null" /&gt;
    &lt;apply&gt;&lt;eq /&gt;
        &lt;ci&gt;&amp;mu;&lt;/ci&gt;
        &lt;cn&gt;0&lt;/cn&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msub><mi>H</mi><mn>0</mn></msub><mo xmlns="">:  </mo><mrow><mrow><mi>μ</mi></mrow><mo>=</mo><mn>0</mn></mrow></mrow>
</math>.</p>


<h3 id="Cards">4.9. Playing Cards</h3>

<p>Concepts and techniques in probability are often illustrated with examples involving playing cards. Such examples are useful because of their conceptual clarity and because of the rich varitey of problems that can be posed. </p>

<h4 id="Denominations">Special Denominations</h4>

<p>The markup <code>&lt;ace /&gt;</code>, <code>&lt;jack /&gt;</code>, <code>&lt;queen /&gt;</code>, and <code>&lt;king /&gt;</code> have been added to denote the denominations of ace, jack, queen, and king, respectively.  The stylesheet renders these as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn>1</mn>
</math>,
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn>j</mn>
</math>,
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn>q</mn>
</math>, and
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn>k</mn>
</math>, respectively.  These should be considered as special constants. Indeed, the other denominations are ordinarily denoted by the standard numbers 2, 3, 4, 5, 6, 7, 8, 9, and 10.</p>

<h4 id="Suits">Suits</h4>

<p>The markup  <code>&lt;spades /&gt;</code>, <code>&lt;hearts /&gt;</code>, <code>&lt;diamonds /&gt;</code>, and  <code>&lt;clubs /&gt;</code> have been added to denote the suits. These are rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>♠</mi>
</math>,
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi mathcolor="red">♥</mi>
</math>,
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi mathcolor="red">♦</mi>
</math>, and
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>♣</mi>
</math>, respectively. The markup for a suit can also be used with the <code> &lt;apply&gt;&lt;/apply&gt;</code> construction, with one arguments, to represent a card in that suit.  For example, the markup</p>

<pre class="code">&lt;apply&gt; &lt;hearts /&gt;
    &lt;queen /&gt;
&lt;/apply&gt;
</pre>

<p>would be rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mn>q</mn><mi mathcolor="red">♥</mi>
</math>
</p>

<h3 id="Misc">4.10. Miscellaneous Additions</h3>

<h4 id="Etc">Et Cetera</h4>

<p>The markup <code>&lt;etc /&gt;</code> has been added to denote the ubiquitous concept of <q>and so forth</q>.  The stylesheet renders this with three dots (an ellipsis), in either a lower position or a middle position, depending on a type attribute.  For example, the markup

<pre>&lt;vector&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;cn&gt;1&lt;/cn&gt;
    &lt;/apply&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;cn&gt;2&lt;/cn&gt;
    &lt;/apply&gt;
    &lt;etc /&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;ci&gt;n&lt;/ci&gt;
    &lt;/apply&gt;
&lt;/vector&gt;
</pre>

is rendered by the stylesheet as

<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mo>(</mo><msub><mrow><mi>x</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>,</mo><msub><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>,</mo><mi>...</mi><mo>,</mo><msub><mrow><mi>x</mi></mrow><mrow><mrow><mi>n</mi></mrow></mrow></msub><mo>)</mo></mrow>
</math>, while the markup

<pre>&lt;apply&gt;&lt;plus /&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;cn&gt;1&lt;/cn&gt;
    &lt;/apply&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;cn&gt;2&lt;/cn&gt;
    &lt;/apply&gt;
    &lt;etc type="middle" /&gt;
    &lt;apply&gt;&lt;selector /&gt;
        &lt;ci&gt;x&lt;/ci&gt;
        &lt;ci&gt;n&lt;/ci&gt;
    &lt;/apply&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as

<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><msub><mrow><mi>x</mi></mrow><mrow><mn>1</mn></mrow></msub><mo>+</mo><msub><mrow><mi>x</mi></mrow><mrow><mn>2</mn></mrow></msub><mo>+</mo><mi> ··· </mi><mo>+</mo><msub><mrow><mi>x</mi></mrow><mrow><mrow><mi>n</mi></mrow></mrow></msub></mrow>
</math>.
</p>

<h4 id="Odds">Odds</h4>

<p>The markup <code>&lt;odds /&gt;</code> has been added to denote odds in gambling and probability. This markup  should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with two arguments.  For example, the markup

<pre class="code">&lt;apply&gt;&lt;odds /&gt;
    &lt;ci&gt;a&lt;/ci&gt;
    &lt;ci&gt;b&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mrow><mrow><mi>a</mi></mrow><mo>:</mo><mrow><mi>b</mi></mrow></mrow>
</math>.</p>

<h4 id="Ordinals">Ordinals</h4>

<p>The markup <code>&lt;ordinal /&gt;</code> has been added for ordinal numbers.  Thie markup should be used with the standard <code>&lt;apply&gt;&lt;/apply&gt;</code> construction, with one argument. The type of suffix is controlled by a type attribute, with <em>th</em> as the default.  For example

<pre class="code">&lt;apply&gt;&lt;ordinal /&gt;
    &lt;ci&gt;n&lt;/ci&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mrow><mi>n</mi></mrow><mi>th</mi></msup>
</math>;

<pre class="code">&lt;apply&gt;&lt;ordinal type="st"/&gt;
    &lt;cn&gt;1&lt;/cn&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mn>1</mn><mi>st</mi></msup>
</math>;

<pre class="code">&lt;apply&gt;&lt;ordinal type="nd"/&gt;
    &lt;cn&gt;2&lt;/cn&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mn>2</mn><mi>nd</mi></msup>
</math>; and

<pre class="code">&lt;apply&gt;&lt;ordinal type="rd"/&gt;
    &lt;cn&gt;3&lt;/cn&gt;
&lt;/apply&gt;
</pre>

is rendered by the stylesheet as
<math xmlns="http://www.w3.org/1998/Math/MathML">
	<msup><mn>3</mn><mi>rd</mi></msup>
</math>.</p>

<div class="footer">
<p><a href="index.html">Home</a>    <a href="Introduction.xml">1</a>    <a href="MathML.xml" class="main">2</a>   <a href="Customizing.xml" class="main">3</a>    <em class="current">4</em>    <a href="Conclusions.xml">5</a></p>
</div>

</body>

</html>
