1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<meta>
<topic id="datasampligtopic" indexer="include" status="PUBLISH">
<title id="tit">Data Sampling in Calc</title>
<filename>/text/scalc/01/statistics_sampling.xhp</filename>
</topic>
</meta>
<body>
<bookmark branch="index" id="bm_id2764278">
<bookmark_value>Analysis toolpack;sampling</bookmark_value>
<bookmark_value>sampling;Analysis toolpack</bookmark_value>
<bookmark_value>Data statistics;sampling</bookmark_value>
</bookmark>
<bookmark branch="hid/.uno:SamplingDialog" id="bm_id261704457846799" localize="false"/>
<bookmark branch="hid/modules/scalc/ui/notebookbar/MenuStatistic-SamplingDialog" id="bm_id951704460051485" localize="false"/>
<bookmark branch="hid/modules/scalc/ui/samplingdialog/SamplingDialog" id="bm_id2745673" localize="false"/>
<bookmark branch="hid/modules/scalc/ui/samplingdialog/@@nowidget@@" id="bm_id2745673" localize="false"/>
<section id="datasampling">
<h1 id="hd_id1000020"><variable id="datasamplingh1"><link href="text/scalc/01/statistics_sampling.xhp">Sampling</link></variable></h1>
<paragraph id="par_id1000030" role="paragraph"><ahelp hid="modules/scalc/ui/samplingdialog/SamplingDialog">Create a table with data sampled from another table.</ahelp></paragraph>
</section>
<section id="howtoget">
<embed href="text/scalc/00/00000412.xhp#stat_sampling"/>
</section>
<paragraph id="par_id1000050" role="paragraph">Sampling allows you to pick data from a <emph>source</emph> table (population) to fill a <emph>target</emph> table. The sampling can be random or in a periodic basis, as well as with or without sample replacement in the source table.</paragraph>
<note id="par_id1000060">Sampling is done row-wise. That means, the sampled data will pick the whole line of the source table and copy into a line of the target table.</note><embed href="text/scalc/01/stat_data.xhp#data"/>
<h2 id="hd_id1000030">Sampling Method</h2>
<h3 id="hd_id611623249550632">Random</h3>
<paragraph role="paragraph" id="par_id711623249563655">Picks exactly <emph>Sample Size</emph> lines of the source table in a random way.</paragraph>
<h3 id="hd_id431623249579089">Sample size</h3>
<paragraph role="paragraph" id="par_id461623249594879">Number of lines sampled from the source table. The Sample size is limited to the population size for all sampling methods without replacement.</paragraph>
<h3 id="hd_id931623249610097">With replacement</h3>
<paragraph role="paragraph" id="par_id191623249619384">When checked, put back samples in population (source table) after draw. A sample can be drawn more than once and therefore a larger sample size than population is possible. This option is mutually exclusive with <emph>Keep order</emph>. When unchecked, a sample drawn is not put back to the population and sample size is limited to population size.</paragraph>
<h3 id="hd_id791623249632175">Keep order</h3>
<paragraph role="paragraph" id="par_id741623249641180">When checked, samples are drawn in order of population data. Samples are not put back to the population (exclusive with <emph>With replacement</emph>). This option is automatically checked for <emph>Periodic</emph> sampling. When unchecked, samples are drawn in random order.</paragraph>
<h3 id="hd_id461623249656476">Periodic</h3>
<paragraph role="paragraph" id="par_id481623249667345">Picks lines in a pace defined by <emph>Period</emph>.</paragraph>
<h3 id="hd_id101623249682605">Period</h3>
<paragraph role="paragraph" id="par_id621623249692296">The number of lines to skip periodically when sampling. The <emph>Period</emph> is limited to the population size.</paragraph>
<embed href="text/scalc/06/calcsamplefiles.xhp#samplestatfile"/>
<embed href="text/scalc/01/common_func.xhp#sectionexample"/>
<paragraph id="par_id1000110" role="paragraph">The following data will be used as example of source data table for sampling:</paragraph>
<table id="Tabela1">
<tablerow>
<tablecell>
</tablecell>
<tablecell>
<paragraph id="par_id1000120" role="tablehead" localize="false">A</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000130" role="tablehead" localize="false">B</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000140" role="tablehead" localize="false">C</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000150" role="tablehead" localize="false">1</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000160" role="tablecontent" localize="false">11</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000170" role="tablecontent" localize="false">21</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000180" role="tablecontent" localize="false">31</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000190" role="tablehead" localize="false">2</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000200" role="tablecontent" localize="false">12</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000210" role="tablecontent" localize="false">22</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000220" role="tablecontent" localize="false">32</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000230" role="tablehead" localize="false">3</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000240" role="tablecontent" localize="false">13</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000250" role="tablecontent" localize="false">23</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000260" role="tablecontent" localize="false">33</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000270" role="tablehead" localize="false">4</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000280" role="tablecontent" localize="false">14</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000290" role="tablecontent" localize="false">24</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000300" role="tablecontent" localize="false">34</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000310" role="tablehead" localize="false">5</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000320" role="tablecontent" localize="false">15</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000330" role="tablecontent" localize="false">25</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000340" role="tablecontent" localize="false">35</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000350" role="tablehead" localize="false">6</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000360" role="tablecontent" localize="false">16</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000370" role="tablecontent" localize="false">26</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000380" role="tablecontent" localize="false">36</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000390" role="tablehead" localize="false">7</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000400" role="tablecontent" localize="false">17</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000410" role="tablecontent" localize="false">27</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000420" role="tablecontent" localize="false">37</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000430" role="tablehead" localize="false">8</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000440" role="tablecontent" localize="false">18</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000450" role="tablecontent" localize="false">28</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000460" role="tablecontent" localize="false">38</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000470" role="tablehead" localize="false">9</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000480" role="tablecontent" localize="false">19</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000490" role="tablecontent" localize="false">29</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000500" role="tablecontent" localize="false">39</paragraph>
</tablecell>
</tablerow>
</table>
<paragraph id="par_id1000510" role="paragraph">Sampling with a period of 2 will result in the following table:</paragraph>
<table id="Tabela2">
<tablerow>
<tablecell>
<paragraph id="par_id1000520" role="tablecontent" localize="false">12</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000530" role="tablecontent" localize="false">22</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000540" role="tablecontent" localize="false">32</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000550" role="tablecontent" localize="false">14</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000560" role="tablecontent" localize="false">24</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000570" role="tablecontent" localize="false">34</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000580" role="tablecontent" localize="false">16</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000590" role="tablecontent" localize="false">26</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000600" role="tablecontent" localize="false">36</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph id="par_id1000610" role="tablecontent" localize="false">18</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000620" role="tablecontent" localize="false">28</paragraph>
</tablecell>
<tablecell>
<paragraph id="par_id1000630" role="tablecontent" localize="false">38</paragraph>
</tablecell>
</tablerow>
</table>
<section id="relatedtopics">
<embed href="text/scalc/01/stat_data.xhp#otherstat"/>
</section>
</body>
</helpdocument>
|