Chapter 1 Introduction to Statistics. Section 1.1 Fundamental Statistical Concepts.

download Chapter 1 Introduction to Statistics. Section 1.1 Fundamental Statistical Concepts.

If you can't read please download the document

description

Objectives Explain the purpose of statistics. Decide what tasks to complete before you analyze your data. Distinguish between populations and samples.

Transcript of Chapter 1 Introduction to Statistics. Section 1.1 Fundamental Statistical Concepts.

Chapter 1 Introduction to Statistics Section 1.1 Fundamental Statistical Concepts Objectives Explain the purpose of statistics. Decide what tasks to complete before you analyze your data. Distinguish between populations and samples. What Is Statistics? Descriptive Statistics 5' 7.3'' Inferential Statistics 5' 7.3'' Defining the Problem Before you begin any analysis, you should complete certain tasks. 1. Outline the purpose of the study. 2. Document the study questions. 3. Define the population of interest. 4. Determine the need for sampling. 5. Define the data collection protocol. Cereal Example Defining the Problem The purpose of the study is to determine whether Rise n Shine cereal boxes contain 15 ounces of cereal. The study question is whether the average amount of cereal in Rise n Shine boxes is equal to 15 ounces. Population Sample Simple Random Sampling Convenience Sampling Parameters and Statistics Statistics are used to approximate population parameters. Levels of Measurement The two levels of measurement of data used in this course are continuous discrete. Describing Your Data The goals when you are describing data are to screen for unusual data values inspect the spread and shape of continuous variables characterize the central tendency draw preliminary conclusions about your data. Process of Data Analysis Section 1.2 Examining Distributions Objectives Examine distributions of data. Explain and interpret measures of location, dispersion, and shape. Use the MEANS and UNIVARIATE procedures to produce summary statistics. Use the UNIVARIATE procedure to generate stem-and-leaf, box-and-whisker, normal probability plots and histograms. Cereal Data Set Rise n Shine WEIGHTID NUMBER Distributions When you examine the distribution of values for the variable WEIGHT, you can find out the range of possible data values the frequency of data values whether the data values accumulate in the middle of the distribution or at one end. Symmetric Distributions Skewed Distributions Normal Distribution Examples of Normal Distributions std 1.5 std 1.0 std 0.5 Measures of Central Tendency The mean is the balancing point of your data. Percentiles Measures of Dispersion Measures of Shape The MEANS Procedure PROC MEANS DATA=SAS-data-set ; VAR variables; RUN; The UNIVARIATE Procedure PROC UNIVARIATE DATA=SAS-data-set ; VAR variables; ID variable; HISTOGRAM variables / ; PROBPLOT variables / ; RUN; Descriptive Statistics This demonstration illustrates using the MEANS and UNIVARIATE procedures to calculate descriptive statistics for continuous variables. Graphical Displays of Distributions PROC UNIVARIATE produces three kinds of plots for examining the distribution of your data values: stem-and-leaf plots box-and-whisker plots normal probability plots. PROC UNIVARIATE can also generate histograms and graphically enhanced normal probability plots. Stem-and-Leaf Plots Multiply Stem.Leaf by 10**1 Box-and-Whisker Plots The mean is denoted by +. Normal Probability Plots Examining Distributions This demonstration illustrates using PROC UNIVARIATE to generate stem-and-leaf, box-and-whisker, normal probability plots and histograms. Section 1.3 Confidence Intervals for the Mean Objectives Explain and interpret the confidence intervals for the mean. Explain the central limit theorem. Calculate confidence intervals using the MEANS procedure. Point Estimates Variability among Samples Standard Error of the Mean A statistic that measures the variability of your estimate is the standard error of the mean. It differs from the sample standard deviation because the sample standard deviation deals with the variability of your data the standard error of the mean deals with the variability of your sample mean. Confidence Intervals Assumptions about Confidence Intervals The types of confidence intervals in this course make the assumption that the sample means are normally distributed. Distribution of Sample Means Normal Distribution Confidence Intervals Central Limit Theorem To satisfy the assumption of normality, you can either verify that the population distribution is approximately normal, or apply the central limit theorem. The central limit theorem states that the distribution of sample means is approximately normal provided that the sample size is large enough. Central Limit Theorem Confidence Intervals This demonstration illustrates calculating confidence intervals using PROC MEANS. Section 1.4 Hypothesis Testing Objectives Define some common terminology related to hypothesis testing. Perform hypothesis testing using the UNIVARIATE procedure. Compare the means of paired groups using the TTEST procedure. Judicial Analogy Coin Example Coin Analogy Types of Errors You used a decision rule to make a decision, but was the decision correct? Modified Coin Experiment Which coins are fair? Statistical Hypothesis Test Comparing and the p-Value In general, you reject the null hypothesis if p < fail to reject the null hypothesis if p . Performing a Test of Hypothesis To test the null hypothesis H 0 : = 0, SAS software calculates the t statistic Two-Sided Test of Hypothesis The test of hypothesis is two-sided if the null is rejected when the actual value of interest is either less than or greater than the hypothesized value. H 0 : H 1 : 15.00 Two-Sided Test of Hypothesis One-Sided Test of Hypothesis In many situations, you are only interested in one direction. Perhaps you only want evidence that the mean is significantly lower than fifteen. For example, instead of testing H 0 : = 15 versus H 1 : 15 you test H 0 : 15 versus H 1 : < 15 One-Sided Test of Hypothesis Hypothesis Testing This demonstration illustrates using PROC UNIVARIATE to perform hypothesis testing. Paired Samples The TTEST Procedure PROC TTEST DATA=SAS-data-set; CLASS variable; VAR variables; PAIRED variable*variable; RUN; Paired t-Test This demonstration illustrates using PROC TTEST to conduct a paired sample t-test. Section 1.5 Two-Sample t-Tests Objectives Recognize and validate the assumptions of a two-sample t-test. Analyze two populations with the TTEST procedure. Cereal Example Assumptions independent observations normally distributed data for each group equal variances for each group. F Test for Equality of Variances Test Statistics and p-Values F Test for equal variances:H 0 : 1 2 = 2 2 Variance Test: F = 1.51DF = (3,3)Prob > F = t-Tests for equal means:H 0 : 1 = 2 Unequal Variance t-test: T = DF = 5.8Prob > |T| = Equal Variance t-test: T = DF = 6.0Prob > |T| = Test Statistics and p-Values F Test for equal variances:H 0 : 1 2 = 2 2 Variance Test: F = 15.28DF = (9,4)Prob > F = t-Tests for equal means:H 0 : 1 = 2 Unequal Variance t-test: T = DF = 11.1Prob > |T| = Equal Variance t-test: T = DF = 13.0Prob > |T| = Testing for Equality of Means This demonstration illustrates using PROC TTEST to test for the equality of means for two groups. Section 1.6 Output Delivery System Objectives Introduce the Output Delivery System (ODS). Examine some simple statements in ODS. Use ODS to capture some specific UNIVARIATE procedure output. Use ODS to generate a report in the HTML format. Use ODS to generate data sets with specific PROC UNIVARIATE output. Output Delivery System SAS procedure computes results Output object created in ODS ODS converts data component into SAS data set ODS Statements TRACE provides information about the output object such as the name and path. LISTING opens, manages, or closes the Listing destination. OUTPUT creates SAS data set from an output object. Output Delivery System This demonstration illustrates the Output Delivery System by introducing some simple concepts and building on that knowledge. Section 1.7 Exercises Section 1.8 Chapter Summary Section 1.9 Solutions to Exercises