This document was successfully checked as XHTML 1.0 Transitional!

Result: Passed
:
Modified:(undefined)
Server:Apache/2.4.25 (Debian)
Size:3640
Content-Type:text/html
: utf-8
: XHTML 1.0 Transitional
Root Element: html
Root Namespace: http://www.w3.org/1999/xhtml
Options

Help on the options is available.

Congratulations

The document located at <http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sigmaFSdetail.php> was successfully checked as XHTML 1.0 Transitional. This means that the resource in question identified itself as "XHTML 1.0 Transitional" and that we successfully performed a formal validation of it. The parser implementations we used for this check are based on OpenSP (SGML/XML) and libxml2 (XML).

"valid" Icon(s) on your Web page

To show your readers that you have taken the care to create an interoperable Web page, you may display this icon on any page that validates. Here is the HTML you could use to add this icon to your Web page:

Valid XHTML 1.0 Transitional
  <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  </p>
  

A full list of icons, with links to alternate formats and colors, is available: If you like, you can download a copy of the icons to keep in your local web directory, and change the HTML fragment above to reference your local image rather than the one on this server.

Linking to this result

If you would like to create a link to this page (i.e., this validation result) to make it easier to revalidate this page in the future or to allow others to validate your page, the URI is <http://validator.w3.org/check?uri=http%3A%2F%2Fweb.tecnico.ulisboa.pt%2F~mcasquilho%2Fcompute%2Fqc%2FFx-sigmaFSdetail.php;ss=1;verbose=1> (or you can just add the current page to your bookmarks or hotlist).

Validating CSS Style Sheets

If you use CSS in your document, you can check it using the W3C CSS Validation Service.

↑ Top

Source Listing

Below is the source input I used for this validation:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="Author" lang="en" content="Miguel Casquilho" />
  6. <title>M&middot;C, IST: sigma from sums, detail</title>
  7. <link rel="stylesheet" type="text/css"
  8. href="http://web.tecnico.ulisboa.pt/~mcasquilho/depot/x_commonstyle.css" />
  9. <style type="text/css"> .h {background-color: #a0ffa0}
  10. .hl {background-color: #a0c0ff} .hil {background-color: #a0c0ff}</style>
  11. </head> <!-- 14Jan2018 -->
  12. <body class="sm">
  13. <form method="post" action=
  14. "http://web.tecnico.ulisboa.pt/~mcasquilho/cgi-bin/interface_png.php?weightedvariance">
  15. <input name="executable" type="hidden" value="weightedvariance.exe" />
  16. <table width="90%" bgcolor="#eeeeee" align="center" border="1" class="sm">
  17. <tr><td colspan="3">
  18. <table width="100%" class="sm">
  19. <tr><td width="50px"><a href='https://fenix.ist.utl.pt/departamentos/deq'><img alt='&copy;'
  20. src="http://web.tecnico.ulisboa.pt/~mcasquilho/depot/MC.gif" border='0'
  21. width='40' height='41' /></a>
  22. </td><!--title-->
  23. <td><div style="font-size: 13.5pt; text-align: center"><!-- title --><b
  24. onmouseout="this.style.color='blue', this.style.fontStyle='normal'"
  25. onmouseover="this.style.color='red',
  26. this.style.fontStyle='bold'">
  27. <i>&sigma;</i>
  28. from sums: detail</b></div><center>Finds <i>&sigma;</i>
  29. from sums of (un)equal samples (a conjecture).<!--b>UN DER
  30. CONSTRUCTION</b--></center></td>
  31. <td width="112px"><table width='100%'>
  32. <tr><td align='center' bgcolor='white'>
  33. <input type="submit"
  34. value="&nbsp; Execute &nbsp;" style="background-color: #00bfff"
  35. onmouseout="this.style.fontStyle='normal', this.style.fontWeight='normal'"
  36. onmouseover="this.style.fontStyle='normal', this.style.fontWeight='bold'" /></td>
  37. </tr><tr><td align='center'><span style='font-size:
  38. xx-small'>2019.Dec.20 18:46:49</span></td></tr>
  39. </table>
  40. </td></tr></table>
  41. </td></tr> <!-- ................................................... -->
  42. <tr><td width="15%" align="center"><b>x</b></td>
  43. <td width="45%"><textarea name="xvec" rows="1" cols="45"
  44. > 25,01 24,97 25,02 24,9867</textarea><input
  45. name="eodx" type="hidden" value="EOD" /></td>
  46. <td width="40%"><i>x<sub>i</sub></i>,
  47. <i>individual</i> or <i>average</i>,
  48. <i>i</i> = 1..<i>n</i>. &bull;</td></tr>
  49. <tr><td align="center"><b>w</b></td>
  50. <td><textarea name="lots" rows="1" cols="45"
  51. > 10 20 100 150</textarea><input
  52. name="eodn" type="hidden" value="EOD" /></td>
  53. <td><i>Weight</i> or <i>sample size</i>, <i>w<sub>i</sub></i>,
  54. <i>i</i> = 1..<i>n</i> (respectively; see above). &bull;</td></tr>
  55. <tr><td align="center">Show values</td>
  56. <td><select name="ishow"><option value="0" selected="selected">No</option>
  57. <option value="1">Yes</option></select></td>
  58. <td>Show the graph coordinates.</td></tr>
  59. <!-- plot 'gnudata.dat' \ (or anything: this line is a MANDATORY dummy) -->
  60. <tr><td colspan="3"><input name="gnuplot" type="hidden"
  61. value="wid = 600
  62. set terminal png enhanced font 'Times, 16' size wid, wid/1.618
  63. set timestamp offset 0, +0.75 font 'Helvetica-Bold, 9'
  64. set key top left font 'Times-Italic, 13'
  65. set title 'Weighted variance, detail' offset 0, -1.
  66. set xlabel '{/Times-Italic i}' offset 16, +0.85
  67. set ylabel '{/Times-Italic x}' rotate by 0 offset +3.25, +4.
  68. set xrange [0.9:*]; set xtics 1
  69. set ytics # nomirror
  70. # set y2label '{/Times-Italic F}' rotate by 0 offset -2.9, +4.25
  71. # set y2range [0:1]; set y2tics 0.2 nomirror
  72. set grid xtics # y2tics
  73. set tics font 'Times, 13'
  74. set style line 11 lc rgb 'red' lw 2 pt 7 ps 1.5
  75. set style line 12 lc rgb '#09ad00' lw 2 pt 2 ps 1 # green
  76. set style line 13 lc rgb '#0000ff' lw 1 # blue
  77. set style line 14 lt 0 lw 2 # dotted
  78. plot anyname.dat \
  79. usi 1:2 title '{/Times-Italic x}' with linespoints ls 11, \
  80. '' usi 1:3 title '{/Times average}' with linespoints ls 12, \
  81. '' usi 1:4 notitle ls 14, \
  82. '' usi 1:5 notitle ls 14" /><p class="ij">Computes the
  83. <i>weighted variance</i>,
  84. <i>&sigma;</i><sup>2&nbsp;</sup><sub>W</sub>(<b>x</b>),
  85. of a vector of values,
  86. <b>x</b> = (<i>x<sub>i</sub></i>, <i>i</i> = 1..<i>n</i>),
  87. and corresponding weights,
  88. <b>w</b> = (<i>w<sub>i</sub></i>, <i>i</i> = 1..<i>n</i>),
  89. assuming successively that
  90. <span class="nobreak">(<i>a</i>) <b>x</b> are <i>individual values</i
  91. ></span> with weights&nbsp;<b>w</b>, and
  92. <span class="nobreak">(<i>b</i>) <b>x</b> are <i>averages</i
  93. ></span> (below, <b>a</b>) from samples of sizes&nbsp;<b>w</b>,
  94. in order to estimate the underlying (individual)
  95. <i>&mu;</i> and <i>&sigma;</i>.</p>
  96. <p class="ij">Case '(<i>b</i>)' relates to estimating
  97. from <i>sums</i> of <i>unequal</i> (or <i>equal</i>) size samples,
  98. assuming that the individual values <i>are not known</i>.
  99. The estimation is done through a <i>linear</i> weighting criterion,
  100. a conjecture. Thus,
  101. <i>&sigma;</i><sup>2&nbsp;</sup>^ = <i>n</i><sub>W</sub>
  102. <i>s</i>&sup2;<sub>W</sub>(<b>a</b>). (Below.)&nbsp;
  103. (&rarr; Excel <a href=
  104. "./,bagsSigma/detailSigma.xlsx">file</a>.<i>xlsx</i>)</p>
  105. <p class="ij">Example with <i>T</i> = 4 trucks, and procedure
  106. (as mentioned, only <i>n<sub>t</sub></i> and <i>L<sub>t</sub></i>
  107. are assumed known):</p>
  108. <table align="center" border="1">
  109. <tr style="text-align: center">
  110. <td width="45px"><i>t</i></td>
  111. <td width="85px"><i>n<sub>t</sub></i></td>
  112. <td width="85px"><i>L<sub>t</sub></i></td>
  113. <td width="85px"><i>a<sub>t</sub></i></td>
  114. <td width="85px"><i>w<sub>t</sub></i></td>
  115. <td width="85px"><i>w<sub>t</sub></i>(<i>a<sub>t</sub></i> &minus;
  116. <i>x</i><sup>bar</sup><sub>W</sub>)&sup2;</td></tr>
  117. <tr style="text-align: center">
  118. <td>1</td><td>10</td><td>250.1</td><td>25.01</td><td>0.03571</td>
  119. <td>4.81E-6</td></tr>
  120. <tr style="text-align: center">
  121. <td>2</td><td>20</td><td>499.4</td><td>24.97</td>
  122. <td>0.07143</td><td>57.58E-6</td></tr>
  123. <tr style="text-align: center">
  124. <td>3</td><td>100</td><td>2502</td><td>25.02</td>
  125. <td>0.35714</td><td>166.74E-6</td></tr>
  126. <tr style="text-align: center">
  127. <td>4</td><td>150</td><td>3748</td><td>24.987</td>
  128. <td>0.53571</td><td>69.53E-6</td></tr>
  129. <tr style="text-align: center"><td colspan="4" align="right">Sum:</td>
  130. <td>1</td> <td><i>S</i> = 298.76E-6</td></tr>
  131. </table>
  132. <center><i>a<sub>t</sub></i> = <i>L<sub>t</sub></i> &frasl;
  133. <i>n<sub>t</sub></i>;&nbsp;
  134. <i>w<sub>t</sub></i> = <i>n<sub>t</sub></i> &frasl;
  135. &Sigma;<i>n<sub>t</sub></i>;&nbsp;
  136. <i>x</i><sup>bar</sup><sub>W</sub>,
  137. weighted average of <i>a<sub>t</sub></i> =
  138. &Sigma;<i>w<sub>t</sub></i> <i>a<sub>t</sub></i> = 24.998 kg;
  139. <br />weighted size, <i>n</i><sub>W</sub> =
  140. &Sigma;<i>w<sub>t</sub></i> <i>n<sub>t</sub></i> = 117.86;&nbsp;
  141. weighted variance of <b>a</b>, <i>s</i>&sup2;<sub>W</sub>(<b>a</b>) =
  142. [<i>T</i> &frasl; (<i>T</i> &minus; 1)] <i>S</i> = 398.0E-6 kg&sup2;
  143. <br /><i>&sigma;</i>&sup2;^ = <i>n</i><sub>W</sub> .
  144. <i>s</i>&sup2;<sub>W</sub>(<b>a</b>) = 117.86 &times; 398.0E-6 =
  145. 0.04693 kg&sup2; &rarr; <i>&sigma;</i>^ = 0.2166 kg.</center>
  146. <p class="ij">From the base data, simulated from a population
  147. with <i>&mu;</i> = 25 and <i>&sigma;</i> = 0.2, the method gives
  148. ('wIstdev' =) 0.2166 &cong; <i>&sigma;</i> .</p>
  149. <p class="ij">Draws a simple plot of <b>x</b> and
  150. the estimated average (lower and upper lines are
  151. this average &minus;/+ 'wIstdev', est. <i>&sigma;</i>.).</p></td></tr>
  152. <tr><td align="center"><input type="reset" style="font-size: smaller"
  153. value=" Reset " /></td><td><i>References:</i></td>
  154. <td align="center"><i>Plate:</i> SigmaFSdetail</td></tr>
  155. <tr><td colspan="3"><!--p class="ref">&bull;&nbsp;#Wikipedia: <a href=
  156. "https://en.wikipedia.org/wiki/Variance">variance</a></p-->
  157. <p class="ref">&bull;&nbsp;Google search '<a href=
  158. "https://www.google.com/search?q=%22different+sample+size%22+-unequal&amp;oq=
  159. %22different+sample+size%22+-unequal"
  160. >"different sample size" -unequal</a>', &nbsp; '<a href=
  161. "https://www.google.com/search?q=%22unequal+sample+size%22+-different&amp;oq=
  162. %22unequal+sample+size%22+-different"
  163. >"unequal sample size" -different</a>'</p>
  164. <p class="ref">&bull;&nbsp;NIST: <a href="http://www.itl.nist.gov/
  165. div898/software/dataplot/refman2/ch2/weighvar.pdf"
  166. >weighted variance</a>.<i>pdf</i>
  167. (&larr; <a href="http://www.itl.nist.gov/div898/software/dataplot/refman2/"
  168. >Dataplot, vol. 2</a> &larr;
  169. <a href="https://www.nist.gov/itl/sed/">Statistical Eng.ing Div.</a>
  170. &larr; <a href="https://www.nist.gov/itl/">IT Lab.</a>)</p>
  171. <p class="ref">&bull;&nbsp;Google search "<a href=
  172. "https://www.google.com/search?q=%22weighted+variance%22&amp;oq=
  173. %22weighted+variance%22"
  174. >weighted variance</a>"</p>
  175. <p class="ref">&bull;&nbsp;1864-01-13: <a href=
  176. "http://www-groups.dcs.st-and.ac.uk/~history/Biographies/Wien.html"
  177. ><span class="sc">Wien</span></a>, Wilhelm Carl Werner Otto Fritz Franz
  178. (&dagger; 1928-08-30).</p></td></tr>
  179. </table>
  180. </form>
  181. <div style="line-height: 12pt">&nbsp;</div>
  182. <div style="line-height: 1.5pt; color: black; background-color: red">&nbsp;</div>
  183. <table width="100%" class="sm"><tr>
  184. <td style="width: 58px"><a href="http://validator.w3.org/check?uri=
  185. http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sigmaFSdetail.php;verbose=1;ss=1"><img
  186. src="http://web.tecnico.ulisboa.pt/~mcasquilho/depot/valid-xhtml10s.png"
  187. alt="Valid HTML 4.01!" style="border: none" width="55px" height="19px" /></a></td>
  188. <td style="width: 15%" align="left"><a href="http://www.tecnico.ulisboa.pt"><img
  189. src="http://web.tecnico.ulisboa.pt/~mcasquilho/depot/wwwist.png" alt="IST"
  190. style="vertical-align: middle; border: none;
  191. width: 88px; height: 34px" /></a></td>
  192. <td style="width: 70%" align="right"><i>http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/Fx-sigmaFSdetail.php</i><br />
  193. <i>Created:</i> 2018-01-13 &mdash; <i>Last modified:</i>
  194. 2018-02-11</td></tr></table>
  195. </body></html>

↑ Top