Running a t-test or a z-test to compare the mean of a sample to a value in XLSTAT

Conjunto de datos para Pruebas t et z para una muestra XLS62.5 KB

Vídeo de tutorial
Pruebas t et z para una muestra es parte de : Descargar evaluación Más detalles Ver los comentarios del usuario

Ventajas

  • Sencillo y dirigido a los usuarios
    Sencillo y dirigido a los usuarios XLSTAT es un software que se integra de forma transparente con Microsoft Excel, que es la hoja de cálculo más difundida del mundo. Esta integración hace que sea una de las herramientas más sencillas para trabajar ya que utiliza la misma filosofía que Microsoft Excel. El programa está disponible en una ficha de XLSTAT. Los análisis se agrupan en menús funcionales. Los cuadros de diálogo están dirigidos a los usuarios, por lo que la preparación de los análisis es tarea sencilla.
  • Resultados y datos compartidos sin dificultad
    Resultados y datos compartidos sin dificultad Una de las mayores ventajas de XLSTAT es la forma transparente con la que se pueden compartir los datos y los resultados. Los resultados se almacenan en Microsoft Excel de modo que cualquier usuario puede acceder a ellos. No es necesario que el destinatario tenga una licencia de XLSTAT o cualquier visor adicional, lo que facilita y rentabiliza el trabajo en equipo. Del mismo modo, es fácil integrar los resultados en otras aplicaciones de Microsoft Office, como PowerPoint, por lo que se pueden crear estupendas presentaciones en cuestión de minutos.
  • Modular
    Modular XLSTAT es un producto modular. XLSTAT-Pro es un módulo principal de estadística de XLSTAT, que incluye todas las funcionalidades dominantes en el análisis estadístico y multivariado. Es posible añadir funciones más avanzadas por medio de módulos complementarios para aplicaciones específicas. De este modo es posible adaptar el software a sus necesidades, aumentando la rentabilidad.
  • Didáctico
    Didáctico Los resultados de XLSTAT están organizados por análisis y es fácil desplazarse por ellos. La información útil se proporciona junto con los resultados para ayudarle en su interpretación.
  • Asequible
    Asequible XLSTAT es una solución completa y modular que se puede ajustar a cualquier necesidad de análisis comercial. Tiene un precio muy razonable, por lo que el retorno de su inversión es casi inmediato. Todas las licencias de XLSTAT incluyen también un servicio de asistencia de la mayor calidad.
  • Accesible: disponible en muchos idiomas
    Accesible: disponible en muchos idiomas Nos hemos asegurado de que XLSTAT sea accesible para todos traduciendo el programa a muchos idiomas, incluyendo chino, inglés, alemán, italiano, japonés, polaco, portugués y español.
  • Automatizable y personalizable
    Automatizable y personalizable La mayoría de las funciones estadísticas disponibles en XLSTAT pueden llamarse directamente desde la ventana Visual Basic de Microsoft Excel. Pueden modificarse e integrarse en código fuente adicional para ajustarse a sus necesidades. Añadir tablas y trazados, así como modificar los resultados existentes se convierte en tarea sencilla. Además, XLSTAT incluye algunas herramientas especiales en los cuadros de diálogo para generar automáticamente el código fuente VBA para reproducir su análisis empleando el editor de VBA o simplemente cargar ajustes predeterminados. Esta automatización de análisis rutinarios sin esfuerzo le ahorrará gran cantidad de tiempo.

Dataset to perform a mean comparison test - either a Student's t-test or a z-test

An Excel sheet containing both the data and the results for use in this tutorial can be downloaded by clicking here. The data correspond to the mathematic grade average for the first semester of a class of 33 students.

Goal 1 of this tutorial

We want to compare the results of those students with the county average which is 11.5. We don’t have the information about the variance of this statistic so we cannot run a z-test. We will then run a t-test.

Some descriptive statistics on the class performance have been computed and can be found on the sheet Desc.

As you can see the average is 11.121.

We can use a t-test to determine if the difference between the average of the class and the average of all students in the county are similar or different with a risk of 5%.

Setting up a Student's t-test for comparing the mean of a sample to a value

Go over to the menu Parametric tests and select the option One-sample t-test and z-test.

data analysis software

In the dialog box, select the data. Press the Range selector and select the column B that contains the “Math average”. The data format is One sample per column. Here we have only one column corresponding to one sample to test. If the data were spanned on several columns for the same sample we could use the other option.

The results will be displayed in a new sheet as we keep the default option Sheet.

The name of the column was included in our data selection so we tick the option Column labels.

Finally you have to decide if you want to run a t-test or a z-test. As explained above we don’t have the information about the standard deviation of the population so we have to run a Student’s t test.

stats software

We can move on to the tab Options to specify our analysis. The first thing to select is the alternative hypothesis. We know that the average of the class is inferior to the general average so we can select the option Mean 1 < Theoretical mean to run a one-sided test which is more accurate than a two-sided test.

Then we enter 11.5 in the Theoretical mean field. The default significance level is 5%. We will use this value.

t-test software

In the Missing data tab we can choose any option as we do not have missing data in this dataset. For the last section Outputs we select the only available option Descriptive statistics.

statistical software

When everything is set, press OK.

Results of the Student's t-test to compare the mean of a sample to a value

The results of the t-test appear in a new sheet. The following table shows that the class of student is performing significantly less good than the average of the county.

statistical software

Goal 2 of this tutorial

To go further we can now use the standard deviation for the math grades for the county. Let’s use 0.55. So the variance is 0.3025.

Setting up a z-test for the comparison of the mean of a sample to a value

In the first tab General, this time instead of the Student’s t-test option choose the option z-test.

statistical software

In the Options tab, you need to set the variance for the z-test. Opt for the option User defined and set the value to 0.3025.

statistical software

Click OK.

Results and interpretation of a z-test for the comparison of the mean of a sample to a value

In the results page you now have that the hypothesis H0 should be rejected and that the students performed significantly worse than the students of the county.

statistical software

The following video shows how to run a Student's t-test and a z-test in XLSTAT.