Stratified data sampling with XLSTAT

Dataset for Data Sampling XLS46.0 KB

Tutorial video
  • Pro Core statistical software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.

Benefits

  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Dataset for stratified sampling

The dataset used in this tutorial is the list of the employee of a company with some details about their gender (male/female) and their type of employment (full-time/part-time). The HR team wants to conduct a survey on the working condition that will be representative of the general opinion without interviewing every employee. They decide to conduct a stratified sampling.

There are 46% of female employee and 54% of male employee. 66% of the employee work full-time. The part-time employees are more often female than male; female part-time employees represent 25% of the employees against 9% for the male part-time employee.

data-sampling-descriptive-statistique.png

An Excel sheet with both the data and the results can be downloaded by clicking here.

Setting-up a stratified sampling of the data

Open the Data sampling dialog box by selecting the corresponding option in the menu Preparing data – Data sampling.

data-sampling-menu.png

Select the data including all the available columns (employee, gender, time, strata).

Choose the sampling option Random stratified (2). This option takes into account the proportions of each strata.

We want to generate a sample of 20 employees for the interviews. So enter “20” in the field Sample size.

Select the “strata” as the last column of the dataset.

The names of the variables are included in the selection so the option variable labels must be ticked.

We do not need to shuffle the individuals so we do not activate the option shuffle.

When everything is set, press OK.

data-sampling-dialog-box.png

Results of stratified data sampling

The results of the stratified data sampling appear in a new sheet. You find a table of 20 samples. As the sampling is random you may not have the exact same results. However you may have the same proportions for each category. This results in having the same amount of sample in each strata:

  • 4 full-time female employees,
  • 5 part-time female employees,
  • 9 full-time male employees,
  • 2 part-time male employees.

data-sampling-result.png

Below you have the descriptive statistics that are computed on the stratified sample. You can compare these statistics with the one obtained on the population:

  • 20% for the 22% of full-time female employees,
  • 25% for the 25% of part-time female employees,
  • 45% for the 44% of full-time male employees,
  • 10% for the 9% of part-time male employees.

data-sampling-result-2.png