1
0
Fork 0
libreoffice/helpcontent2/source/text/scalc/01/statistics_sampling.xhp
Daniel Baumann 8e63e14cf6
Adding upstream version 4:25.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 16:20:04 +02:00

245 lines
10 KiB
XML

<?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>