# SOCR EduMaterials AnalysisActivities OneZ

(Difference between revisions)
Jump to: navigation, search
 Revision as of 20:29, 23 October 2012 (view source)IvoDinov (Talk | contribs)← Older edit Revision as of 16:40, 24 October 2012 (view source)IvoDinov (Talk | contribs) Newer edit → Line 7: Line 7: ==One Sample Z-Test Example== ==One Sample Z-Test Example== - Go to the [http://www.socr.ucla.edu/htmls/ana/OneSampleZTest_Analysis.html SOCR One-Sample Z-Test Applet]. We will demonstrate One Sample T-Test with some SOCR built-in examples.  This example is based on the data taken from the statistical program "R." For more information of the R program, please see [http://cran.r-project.org/ CRAN Home Page]. The dataset used here is "shoes" under R's "MASS" library. In the dataset, ten boys are given to the wear of shoes of materials A and B for one foot. The worn level is recorded and difference is obtained. We'd like to find if one material is better than the other. The difference is calculated by B - A. (Note: this example is also used in another three SOCR demonstration: [http://wiki.stat.ucla.edu/socr/index.php/SOCR_EduMaterials_AnalysisActivities_TwoPairedT Two Paired Sample T-Test], [http://wiki.stat.ucla.edu/socr/index.php/SOCR_EduMaterials_AnalysisActivities_TwoPairedSign Two Paired Sample Sign Test], and [http://wiki.stat.ucla.edu/socr/index.php/SOCR_EduMaterials_AnalysisActivities_TwoPairedRank Two Paired Sample Signed Rank Test]. If you'd like to see the data of each material, go to the page of these activities or directly look for them in the SOCR Applet. + Go to the [http://www.socr.ucla.edu/htmls/ana/OneSampleZTest_Analysis.html SOCR One-Sample Z-Test Applet]. We will demonstrate One Sample Z-Test with some SOCR built-in examples, however, you can copy-paste in, or load your onw data int eh applet. - Here's the steps of the activity: + This example is based on the data taken from the statistical program "R." For more information of the R program, please see [http://cran.r-project.org/ CRAN Home Page]. The dataset used here is "shoes" under R's "MASS" library. In the dataset, ten boys are given to the wear of shoes of materials A and B for one foot. The worn level is recorded and difference is obtained. We'd like to find if one material is better than the other. The difference is calculated by B - A. (Note: this example is also used in another three SOCR demonstration: [[SOCR_EduMaterials_AnalysisActivities_TwoPairedT|Two Paired Sample T-Test]], [[SOCR_EduMaterials_AnalysisActivities_TwoPairedSign|Two Paired Sample Sign Test]], and [[SOCR_EduMaterials_AnalysisActivities_TwoPairedRank|Two Paired Sample Signed Rank Test]]. If you'd like to see the data of each material, go to the page of these activities or directly look for them in the SOCR Applet. - '''1.''' Click on '''One Sample Z-Test''' at the left panel's combo box. + Follow the step-by-step activity below. -
[[Image:SOCR_AnalysisActivities_OneT_Chu_051707_Fig1.gif|700px]]
+ -
[[Image:SOCR_AnalysisActivities_OneT_Chu_051707_Fig1A.gif|450px]]
+ ===Select the One Sample Z-test=== + Click on One Sample Z-Test at the left panel's combo box. +
[[Image:SOCR_AnalysisActivities_OneZ_Fig1.png|700px]]
- On the right panel, first click on '''EXAMPLE 3''' and next click on "Data" to retreive the demonstrated example. This is the example we'll be looking at.Note that the data are difference of B - A. +
[[Image:SOCR_AnalysisActivities_OneZ_Fig2.png|450px]]
-
[[Image:SOCR_AnalysisActivities_OneT_Chu_051707_Fig2.gif|700px]]
+ On the right panel, first click on EXAMPLE 1 and next click on "Data" to retrieve the demonstrated example. This is the example we'll be looking at. Note that the data are difference of B - A. - '''2.''' Click on the "'''Mapping'''" button to get to the "'''Mapping'''" panel. Click on '''"ADD"''' under '''VARIABLE''' to add the variable for One Sample T-Test. Here, the Column X = B - A. Don't worry about C2 to C16 etc. +
[[Image:SOCR_AnalysisActivities_OneZ_Fig3.png|700px]]
-
[[Image:SOCR_AnalysisActivities_OneT_Chu_051707_Fig3.gif|700px]]
+ ===Mapping=== + Click on the "Mapping" button to get to the "Mapping" panel. Click on "ADD" under VARIABLE to add the variable for One Sample Z-Test. Here, the Column X = B - A. Don't worry about C2 to C3. - '''3.''' Click on "'''Calculate'''" then "'''Result'''" to see the results. +
[[Image:SOCR_AnalysisActivities_OneZ_Fig4.png|700px]]
-
[[Image:SOCR_AnalysisActivities_OneT_Chu_051707_Fig4.gif|700px]]
+ ===Calculate=== + Click on "Calculate" – a dialogue box will pop up and ask for the test (population) mean. Here we use a test mean of 12; if no input is entered, the default would be zero. After inputting the test mean, another box will pop up and ask for test variance. Here we use a test variance of 50; if no input is entered, the default would be one. The user will then be able to see the result under “Result” tab. +
[[Image:SOCR_AnalysisActivities_OneZ_Fig5.png|700px]]
+
[[Image:SOCR_AnalysisActivities_OneZ_Fig6.png|700px]]
+
[[Image:SOCR_AnalysisActivities_OneZ_Fig7.png|700px]]
- '''Questions for students:'''By looking at the test results, what do you think about the data? What can you say about the two different shoe materials? + ===Questions=== + * By looking at the test results, what do you think about the data? + * What can you say about the two different shoe materials? ==See also== ==See also==

## SOCR Analysis - SOCR Analyses Example on One Sample Z-Test

This SOCR Activity demonstrates the utilization of the SOCR Analyses package for statistical Computing. In particular, it shows how to use SOCR One Sample Z-Test.

## One Sample Z-Test Example

Go to the SOCR One-Sample Z-Test Applet. We will demonstrate One Sample Z-Test with some SOCR built-in examples, however, you can copy-paste in, or load your onw data int eh applet.

This example is based on the data taken from the statistical program "R." For more information of the R program, please see CRAN Home Page. The dataset used here is "shoes" under R's "MASS" library. In the dataset, ten boys are given to the wear of shoes of materials A and B for one foot. The worn level is recorded and difference is obtained. We'd like to find if one material is better than the other. The difference is calculated by B - A. (Note: this example is also used in another three SOCR demonstration: Two Paired Sample T-Test, Two Paired Sample Sign Test, and Two Paired Sample Signed Rank Test. If you'd like to see the data of each material, go to the page of these activities or directly look for them in the SOCR Applet.

Follow the step-by-step activity below.

### Select the One Sample Z-test

Click on One Sample Z-Test at the left panel's combo box.  On the right panel, first click on EXAMPLE 1 and next click on "Data" to retrieve the demonstrated example. This is the example we'll be looking at. Note that the data are difference of B - A. ### Mapping

Click on the "Mapping" button to get to the "Mapping" panel. Click on "ADD" under VARIABLE to add the variable for One Sample Z-Test. Here, the Column X = B - A. Don't worry about C2 to C3. ### Calculate

Click on "Calculate" – a dialogue box will pop up and ask for the test (population) mean. Here we use a test mean of 12; if no input is entered, the default would be zero. After inputting the test mean, another box will pop up and ask for test variance. Here we use a test variance of 50; if no input is entered, the default would be one. The user will then be able to see the result under “Result” tab.   ### Questions

• By looking at the test results, what do you think about the data?
• What can you say about the two different shoe materials?

## See also

Translate this page: