Mathematics 216 Computer-oriented Approach to Statistics

Computer Lab Quick Review

Computer Lab 1A Quick Review

The Quick Review (QR) below summarize a few key steps (but not all steps) needed to complete each Activity in Computer Lab 1A. These QRs will be useful when you are preparing for the computer components of the assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Open the StatCrunch software through the Pearson MyLab website: www.pearsonmylab.comSign inMath216 7e V3StatCrunchOpen StatCrunch

Activity 2.Open the StatCrunch Software from within the StatCrunch website: www.statcrunch.comSign inOpen StatCrunch

Activity 3.Collect data with a survey; enter and save the data in StatCrunch; and sign out of StatCrunch: Open StatCrunchEnter variable names in data tableEnter data values in data tableData → SaveFile NameSaveStatCrunch → Sign Out

Activity 4.Open a data file that you have saved in your My Data folder on the StatCrunch website: www.statcrunch.comSign inMyData

Activity 5.Open a data file saved in a “Group Folder” on the StatCrunch website: www.statcrunch.comSign inGroups

Activity 6.Export data from a StatCrunch data table to a spreadsheet file: Open a StatCrunch data tableDataExportSelect all variablesFile NameDelimiter=Comma → Export

Activity 7.Copy and paste data from a spreadsheet file to a word processing file: Open a StatCrunch data tableSelect the table (Ctrl+A)Copy the selection (Ctrl+C)Open a word processing filePaste  into the word processing file (Ctrl+V)

Activity 8.Try some technology exercises for random numbers: Open StatCrunchApplets → Random numbers

Computer Lab 1B Quick Review

The Quick Review (QR) below summarize a few key steps (but not all steps) needed to complete each Activity in Computer Lab 1B. These QRs will be useful when you are preparing for the computer components of the assignments, midterm exam, and final exam.

The QR steps are separated by arrows →.

Activity 1.Construct a frequency distribution with classes:
Create a bins column:
DataBinSelect columnDefine bins: Use fixed width bins, Start at [insert value], Binwidth [insert value] → Bin edges: Include left endpoint.

Create a frequency table:
StatTablesFrequencySelect column: BinUse Ctrl key to select multiple statistics: Frequency, Relative frequency, Cumulative relative frequency, etc.Order by Value Ascending

Copy and paste the table into a word processing document:
With the frequency table window displayed in StatCrunch, click Options on the frequency table windowCopyClick on the frequency table windowCtrl+ACtrl+CClick in the word processing documentCtrl+V

Activity 2.Construct a frequency histogram.
GraphHistogramSelect columnType: FrequencyDefine bins

Copy and paste the graph into a word processing document:
With the frequency histogram window open in StatCrunch, Click Options in the graph windowCopyRight Click in the graph windowCopy ImageClick in the word processing documentPaste SpecialDevice Independent Bitmap

Activity 3.Construct a relative frequency histogram:
GraphHistogramSelect columnType: Relative FrequencyDefine bins

Activity 4.Construct a frequency polygon:
Create a bins column:
DataBinSelect columnDefine binsBin edges

Recode bins column as class midpoints:
DataRecodeBin columnType midpoints

StatTablesFrequencySelect column: Recode(Bin )FrequencySelect Store output in data table

Create a line scatter plot:
GraphScatter Plot → Select recode column as the x variableSelect frequency as the y variable

Activity 5.Construct a pie chart to analyze qualitative survey data:
Recode the variable:
DataRecodeGenderComputeFemale, Male

Create the pie chart:
GraphPie ChartWith DataRecode(Gender)Percent of Total

Activity 6.Construct a Pareto chart for qualitative data:
GraphBar PlotWith SummarySelect Category variableSelect Counts variableCount Descending orderDisplay value above bar

Activity 7.Construct a stem-and-leaf plot for quantitative data:
GraphStem-and-leafSelect columnSelect Leaf unitNo Outlier trimming

Activity 8.Work with measures of central tendency: mean, median, mode:
StatSummary StatsColumnsSelect columnSelect Statistics

Activity 9.Work with measures of variation: range, standard deviation, variance:
StatSummary StatsColumnsSelect columnSelect Statistics

Activity 10.Work with measures of position: Q1, Q2, Q3, Interquartile Range:
StatSummary StatsColumnsSelect columnSelect Statistics

Activity 11.Construct a box-and-whisker plot for quantitative data:
GraphBoxplotSelect columnDraw boxes horizontally

Activity 12.Apply tools of descriptive statistics to subsets of data:
StatSummary StatsColumnsSelect column (variable you want to analyzeSelect variable to Group by

Activity 13.Conduct contingency table analysis: Relationship between two survey variables:
StatTablesContingencyWith dataSelect Row variable, Column variableSelect Row percent

Computer Lab 2 Quick Review

The Computer Lab Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in the Computer Labs. These QRs will be useful when you are preparing for the computer components of the assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Empirical Probability: Compute probabilities involving one variable.
Create the appropriate relative frequency table:
StatTablesFrequencySelect column variableStatistics: Relative frequencyCompute

Activity 2.Empirical Probability: Compute probabilities involving multiple variables.
Create the appropriate contingency table:
StatTablesContingencyWith DataSelect row variableSelect column variableDisplay Row percentCompute

Activity 3.Compute empirical probabilities in games of chance:
Simulate the outcomes of the game of chance using random numbers:
AppletRandom numbersMinimum valueMaximum valueSample sizeAllow repeatsCompute

Copy and paste random numbers to column in data table:
Select all random numbers generated in options windowCtrl CClick in first row of data table columnsCtrl V

Recode the random numbers pasted to the data table:
DataRecodeSelect column variableComputeRecode each numerical value to text-based description

Create a relative frequency table:
StatTablesFrequencySelect Recode variableSelect Relative frequencyCompute

Computer Lab 3A Quick Review

The Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 3A. These QRs will be useful when you are preparing for the computer components of the assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Find the mean and standard deviation of a discrete random variable.
With the X and P(X) column variables displayed in the data file:
StatCalculatorsCustomSelect column variable XSelect the column variable P(X)Click Compute

Copy and paste the probability distribution graph to a word processing document:
Click OptionsClick CopyClick right mouse buttonCopy imagePaste SpecialDevice Independent Bitmap

Activity 2.Find binomial probabilities.
StatCalculatorsBinomialClick Standard or Between buttonType N in the N boxType P in the P boxType X values in the P(X) boxClick Compute

Copy and paste the binomial probability distribution graph to a word processing document:
Click OptionsClick CopyClick right mouse buttonCopy imagePaste SpecialDevice Independent Bitmap

Activity 3.Use StatCrunch to simulate the playing of a roulette game.
Daily sample size of 200 plays for 365 days.
With the Slot numbers and Net Payoffs displayed as two column variables in the data file: Compute daily average net payoff:
DataSampleSelect Columns: Slot and NetPayoffType sample sizeType number of samplesClick Sample with replacementClick Sample all columns at one timeCompute statistic for each samplemean(“Sample(NetPayoff)”)

With the Daily Average NetPayoff column displayed: Compute average netpayoff for entire year:
StatSummary StatsColumnsSelect Column variable: mean(“Sample(NetPayoff)”)Select Mean as the statisticClick Compute.

Computer Lab 3B Quick Review

The Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 3B. These QRs will be useful when you are preparing for the computer components of the assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Find Normal Probabilities: StatCalculatorsNormalClick Standard or BetweenType the MeanType The Standard DeviationType The appropriate X values in the P(X) BoxCompute

Copy and paste the graph into the Word file.
Click OptionsClick CopyClick right mouse buttonCopy ImagePaste SpecialDevice Independent Bitmap

Activity 2.Normal Distributions: Find X Values:
StatCalculatorsNormalClick Standard or BetweenType the MeanType The Standard DeviationType the given probability in the box following the P(X) BoxCompute

Computer Lab 4A Quick Review

Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 4A. These QRs will be useful when you are preparing for computer components of assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Find graph, mean and standard deviation of a population distribution.
With X and P(X) column variables displayed in data file:
StatCalculatorsCustomValues box: Select Column Variable XIn Weights box: Select Column Variable P(X)Compute.

To copy and paste probability distribution graph to Word file:
OptionsCopyClick right mouse-buttonCopy ImagePaste SpecialDevice Independent Bitmap

Activity 2.Find graph, mean and standard deviation of a sampling distribution:
With X and P(X) column variables displayed in data file:
StatCalculatorsCustomIn Values box: Select Column Variable XbarIn Weights box: Select Column Variable P(Xbar)Compute.

Copy and paste sampling distribution graph to Word file:
OptionsCopyClick right mouse-buttonCopy ImagePaste SpecialDevice Independent Bitmap

Activity 3.Approximate graph, mean, and standard deviation of a sampling distribution of sample means through simulation:
With population distribution variables X and P(X) displayed in data file:
DataSampleSelect X Column VariableType sample sizeType number of samplesSample with ReplacementSample all columns at one timeCompute statistic for each sampleMean(“Sample (X)”)

With Mean(Sample(X)) column displayed: Compute overall mean and standard deviation of Mean(Sample(X)) Column:
StatSummary StatsColumnsSelect Column Variable: Mean(Sample(X))Select mean and standard deviation as statisticsCompute.

With Mean(Sample(X)) column displayed: Create a relative frequency histogram of sampling distribution of means:
GraphHistogramSelect column variable: Mean(Sample(X))In Type box: Relative FrequencyCompute.

Activity 4.Compute confidence intervals for population mean: population standard deviation known (given original sample data).
With appropriate column variable (sample data) displayed in data file:
StatZ StatsOne SampleWith DataSelect column variableType standard deviationSelect Confidence Interval OptionType Confidence LevelCompute.

Copy and paste confidence interval table to Word file:
With Confidence interval table displayed:
OptionsCopyCtrl ACtrl CCtrl V.

Activity 5.Compute confidence intervals for population mean: population standard deviation unknown (given summarized data):
StatT StatsOne SampleWith SummaryType meanType standard deviationType sample sizeSelect Confidence IntervalType confidence levelCompute.

Activity 6.Find minimum sample size to estimate a population mean:
With a new StatCrunch data file open:
StatZ StatsOne SamplePowerSample SizeConfidence Interval Width TabType confidence levelType standard deviationType width (2×error) → Compute.

Activity 7.Compute a confidence interval for population proportion:
With a new StatCrunch data file open:
StatProportion StatsOne SampleWith SummaryType number of successesType number of observationsPerform: Confidence Intervals For PType confidence levelCompute.

Copy and paste confidence interval table to Word file.
With Confidence Interval Table displayed:
OptionsCopyCtrl ACtrl CCtrl V.

Activity 8.Find minimum sample size to estimate a population proportion:
With a new StatCrunch data file open:
StatProportion StatsOne SamplePowerSample SizeConfidence Interval Width TabType confidence levelType target proportionType width (2xerror)Compute.

Computer Lab 4B Quick Review

Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 4B. These QRs will be useful when you are preparing for computer components of assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Use a four-step P‑value approach for hypothesis tests in computer component.
In testing hypothesis in computer component of math 216 you will use following four-step P‑value approach:

Step 1.

Specify HO and HA.

Step 2.

Use StatCrunch to compute appropriate Test Statistic and related P‑value.

Step 3.

Make a decision based on comparing P‑value with level of significance, alpha:
If P‑value less than or equal to alpha, reject HO.
if P‑value greater than alpha, fail to reject HO.

Step 4.

State your conclusion in the practical context of the hypothesis test.

Activity 2.Test assumption that population is normally distributed. Shapiro-Wilk test for normality:

Step 1.

Specify the hypotheses:
HO: The population is normally distributed.
HA: The population is not normally distributed.

Step 2.

Use StatCrunch to compute Shapiro-Wilk Test Statistic and related P‑value. With column variable (One Sample) displayed in a StatCrunch data file:
StatGoodness-of-fitNormality TestWith DataSelect Column Variable Select Shapiro-Wilk.

Step 3.

Make a decision based on comparing P‑value with level of significance, alpha.
If P‑value less than or equal to alpha, reject HO.
If P‑value greater than alpha, fail to reject HO.

Step 4.

State your conclusion.

Activity 3.Test hypothesis for population mean with population standard deviation unknown: One sample case: four-step P‑value approach.

For Step 2 in Test: Use StatCrunch to compute appropriate test statistic and related P‑value: given one sample data.

With a column variable (One Sample) displayed in a StatCrunch data file:
StatT-StatsOne SampleWith DataSelect column variableSelect: Hypothesis Test For MeanIn HO box: Specify Null HypothesisIn HA box: Specify Alternate HypothesisCompute.

Activity 4.Hypothesis tests involving a single population proportion. One Sample Case: Four-step P-value approach.

For Step 2 in test: Use StatCrunch to compute appropriate Test Statistic and related P‑value: Given One Sample Data.

With column variable (One Sample) displayed in a StatCrunch data file:
StatProportion StatsOne SampleWith DataSelect ColumnVariableType “Success” ValueOption: Hypothesis Test For PSpecify Null HypothesisSpecify Alternate HypothesisCompute.

Computer Lab 5 Quick Review

Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 5. These QRs will be useful when you are preparing for computer components of assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Equal Variances Test.
Testing hypothesis that two samples come from populations that have equal variances:

Step 1.

Specify hypotheses:
HO: Variance of Population 1 Equals Variance of Population 2
HA: Variance of Population 1 Not Equal to Variance of Population 2

Step 2.

Use StatCrunch to compute F statistic and related P‑value.
StatVariance StatsTwo SampleWith DataSelect Sample 1Select Sample 2Select Hypothesis Test optionSelect Two Tailed Variance TestCompute.

Step 3.

Make a decision based on comparing the P‑value with the level of significance, alpha.
If P‑value less than or equal to alpha, reject HO.
If P‑value greater than alpha, fail to reject HO.

Step 4.

State your conclusion.

Activity 2.Test hypotheses involving two population means—two independent samples—population standard deviations unknown.
StatT-StatsTwo SampleWith DataComputeSelect Sample 1Select Sample 2If variances equal: In Pooled Variance boxSelect Hypothesis TestSpecify Hypothesis.

Activity 3.Test hypotheses involving two population means—two dependent samples—population standard deviation unknown.
StatT-StatsPairedSelect Sample 1Save differencesSelect Sample 2Select Hypothesis Test optionSpecify HypothesisCompute.

Activity 4.Test hypotheses involving two population proportions.
With appropriate column variable: Summary Data:
StatProportion StatsTwo SampleWith SummaryIn Sample 1 section: Type number of successes and  number of observationsIn Sample 2 section: Type number of successes and number of observationsSelect Hypothesis Test optionSpecify HypothesisCompute.

Computer Lab 6A Quick Review

Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 6A. These QRs will be useful when you are preparing for computer components of assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Conduct correlation analysis.
Create a scatter plot based on two variables:
GraphScatter plotSelect X column variableSelect Y column variableCompute.

Compute correlation coefficient between two variables:
StatSummary StatsCorrelationSelect two column variablesCompute

Compute P‑value for two tailed hypothesis test regarding correlation:
StatSummary StatsCorrelationSelect two column variablesSelect  Two Sided P-valueCompute.

Activity 2.Conduct linear regression analysis.
Regression Equation, Fitted Plot, Coefficient of Determination, Significance Test, Prediction Intervals:
StatRegressionSimple LinearSelect X column variableSelect Y column variablePerform hypothesis testSpecify HAType X and level for prediction of YSelect Fitted line plot option for graphsCompute.

Computer Lab 6B Quick Review

Quick Review (QR) summarizes a few key steps (but not all steps) needed to complete each Activity in Computer Lab 6B. These QRs will be useful when you are preparing for computer components of assignments, midterm exam, and final exam.

Each QR is in italics below. The steps are separated by arrows →.

Activity 1.Conducting Chi-Square independence test:
StatTablesContingencyWith DataSelect row variableSelect column variableDisplay Row PercentChi-Square Test of IndependenceCompute.

Activity 2.One Way Analysis of Variance (ANOVA):
StatANOVAOne WaySelect all variablesSelect: Homogeneity of VarianceLevene’s TestCompute.

Test normality assumption for each population:
StatGoodness-of-fitNormalitySelect all variablesSelect Shapiro‑WilkCompute.