Section 6.3 Suppose that X 1, X 2, …, X n are a random sample from a N(  X,  X 2 ) distribution, that Y 1, Y 2, …, Y m are a random sample from a N(

Slides:



Advertisements
Similar presentations
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Excel Project 4 Financial Functions, Data Tables, Amortization Schedules, and Hyperlinks.
Advertisements

© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 1Advanced Formatting Techniques.
1. Do Text Exercise The 95% confidence interval for  is given by <  < X – z  /  nX + z  /  n We want Section 6.6 z  / 
Section Find the outcome space for each of the following experiments: (a) (b) (c) (d) (e) A teenager is selected at random from a street corner.
1 1 Slide © 2003 South-Western /Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules
CTS130 Spreadsheet Lesson 20 Data Consolidation. Consolidation is a process in which data from multiple worksheets or workbooks is combined and summarized.
Excel Lesson 1 Excel Basics. Task 1  Goals  Learn about Excel  Start Excel  Explore the Excel screen  Explore the Excel workbook  Explore the worksheet.
Formatting cell contents. Select the cells you want to format Click home tab Click font down arrow Click font you want Click font size down arrow Click.
1 Using Excel for Statistics Office 2010 and 2013.
1 After completing this lesson, you will be able to: Add a header and footer to a worksheet. Change margins and center a worksheet. Change the orientation.
1 Excel and Regression. 2 3 On the next screen you can see I typed in the data for the schooling / income study. I even put in labels in the first row.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 10 Comparisons Involving Means Part A Estimation of the Difference between the Means of Two Populations: Independent Samples Hypothesis Tests about.
5/15/2015Slide 1 SOLVING THE PROBLEM The one sample t-test compares two values for the population mean of a single variable. The two-sample test of a population.
Excel Lesson 4 Entering Worksheet Formulas
Chapter 5 Creating, Sorting, and Querying a Table
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Frequency Distributions Athletic Shoe Survey Issue: Analyze the data from a survey of 100 college students regarding the number of Nike shoes they own.
Section 6.2 Suppose X 1, X 2, …, X n are observations in a random sample from a N( ,  2 ) distribution. Then,
Section 6.4 Suppose X 1, X 2, …, X n are observations in a random sample from a N( ,  2 ) distribution. Then, (n – 1)S 2 ———— has a distribution.  2.
Chapter 10b Hypothesis Tests About the Difference Between the Means of Two Populations: Independent Samples, Small-Sample CaseHypothesis Tests About the.
Section 2.3 Suppose X is a discrete-type random variable with outcome space S and p.m.f f(x). The mean of X is The variance of X is The standard deviation.
Section 5.7 Suppose X 1, X 2, …, X n is a random sample from a Bernoulli distribution with success probability p. Then Y = X 1 + X 2 + … + X n has a distribution.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 6 BACKNEXTEND 6-1 LINKS TO OBJECTIVES Create and Rename a Folder Create and Rename a Folder Delete Workbooks.
What is an “Excel spreadsheet document”? Terminology Excel spreadsheet document: it is the whole thing.
Chapter 12b Testing for significance—the t-test Developing confidence intervals for estimates of β 1. Testing for significance—the f-test Using Excel’s.
Section 7.2 Tables and summarize hypothesis tests about one mean. (These tests assume that the sample is taken from a normal distribution,
Chapter 12a Simple Linear Regression
Additional HW Exercise 9.1 (a) A state government official is interested in the prevalence of color blindness among drivers in the state. In a random sample.
Additional HW Exercise (a) The breaking strength in pounds of force is being studied for two metal alloys, labeled S and T, and for different temperatures.
Sampling and Sampling Distributions Simple Random Sampling Point Estimation Sampling Distribution.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Section 6.7 Suppose Y is the number of successes in n independent Bernoulli trials where the success probability on each trial is p. With a sufficiently.
E XCEL P ROJECT T UTORIAL. G ETTING YOUR UNIQUE DATA SET … Go to the stat 216 homepage: and.
DATA Exploration: Statistics (One Variable) 1.Basic EXCELL/MATLAB functions for data exploration 2.Measures of central tendency, Distributions 1.Mean 2.Median.
XP 1 Microsoft Office Excel Developing a Professional-Looking Worksheet.
CTS130 Spreadsheet Lesson 5 Working with Simple Formulas.
Confidence Intervals and Two Proportions Presentation 9.4.
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Excel Terms Worksheet: a grid of rows and columns Columns – labeled A, B, C, then AA, BB, etc. – 256 columns Rows – numbered 1, 2, 3 through 65,536 Cell.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
June 21, Objectives  Grouping and ungrouping worksheets  Applying formulas and formatting to multiple worksheets  Referencing cells and ranges.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Excel Integration Feature Object Linking and Embedding (OLE) and Web Discussions.
This is the first sheet of a spreadsheet workbook. The workbook begins initially with 3 work sheets. A spreadsheet is made of columns and rows. The intersection.
1 1 Slide © 2007 Thomson South-Western. All Rights Reserved OPIM 303-Lecture #5 Jose M. Cruz Assistant Professor.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 8 Formula Auditing, Data Validation, and Complex Problem Solving.
CTS130 Spreadsheet Lesson 19 Using What-If Analysis.
Chapter 8 Minitab Recipe Cards. Confidence intervals for the population mean Choose Basic Statistics from the Stat menu and 1- Sample t from the sub-menu.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
8.2 Testing the Difference Between Means (Independent Samples,  1 and  2 Unknown) Key Concepts: –Sampling Distribution of the Difference of the Sample.
Statistical Fundamentals: Using Microsoft Excel for Univariate and Bivariate Analysis Alfred P. Rovai Independent t-Test PowerPoint Prepared by Alfred.
Microsoft Excel 2000 Analyzing Data Using Excel. ©2001 Paradigm Publishing Inc.Excel Section Title Bar Menu Bar Formatting Toolbar Standard Toolbar.
© 2010 Pearson Education, Inc. | Publishing as Prentice Hall.1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Chapter 8: Giving Meaning.
Use SPSS for solving the problems Lecture#21. Opening SPSS The default window will have the data editor There are two sheets in the window: 1. Data view2.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
Statistical Fundamentals: Using Microsoft Excel for Univariate and Bivariate Analysis Alfred P. Rovai Histograms PowerPoint Prepared by Alfred P. Rovai.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Chapter 4 Financial Functions, Data Tables, and Amortization Schedules Microsoft Excel 2013.
Microsoft Excel Consolidation. Contents Introduction to Multiple Workbook Applications Working with Multiple Workbook Applications using normal keyboard.
Solving Linear Optimization Problems Using the Solver Add-in.
Independent Samples: Comparing Means Lecture 39 Section 11.4 Fri, Apr 1, 2005.
Setting up Solver Add-in for Excel
COMPARISON OF MEANS QUESTION #10c
Independent t-Test PowerPoint Prepared by Alfred P. Rovai
Created by Stacey Wilson
Chapter 4: Sampling and Statistical Inference
A few tricks to take you beyond the basics of Microsoft Office
Microsoft Excel 2007 – Level 2
Fundamental Sampling Distributions and Data Descriptions
Presentation transcript:

Section 6.3 Suppose that X 1, X 2, …, X n are a random sample from a N(  X,  X 2 ) distribution, that Y 1, Y 2, …, Y m are a random sample from a N(  Y,  Y 2 ) distribution, and that the two random samples are observed independently of one another. Then, X – Y has a distribution. N(  X –  Y,  X 2 / n +  Y 2 / m) (X – Y) – (  X –  Y ) ———————– has adistribution.  X 2  Y 2 —— + —— n m N(0, 1) (n – 1)S X 2 (m – 1)S Y 2 ———— + ———— has a distribution.  X 2  Y 2  2 (n + m –2) The previous two random variables are independent, because If  X 2 and  Y 2 are known, then a 100(1 –  )% confidence interval for  X –  Y can be derived as follows: of Theorem and because the samples are independent.

(X – Y) – (  X –  Y ) – z  /2  ———————–  z  /2 = 1 –   2 X  2 Y —— + —— n m P – (X – Y) – z  /2  2 X / n +  2 Y / m P  – (  X –  Y )  = 1 –  – (X – Y) + z  /2  2 X / n +  2 Y / m (X – Y) – z  /2  2 X / n +  2 Y / m P   X –  Y  = 1 –  (X – Y) + z  /2  2 X / n +  2 Y / m Note: If  X 2 and  Y 2 are not known, then for a sufficiently large sample size, we can still use this confidence interval by respectively substituting s X 2 and s Y 2 in place of  X 2 and  Y 2.

If  X 2 =  Y 2 =  2, but  2 is not known, then (X – Y) – (  X –  Y ) ———————–  X 2  Y 2 — + — n m (n – 1)S X 2 + (m – 1)S Y 2 ————  X 2  Y 2 n + m –2 (X – Y) – (  X –  Y ) ———————– 1 1  — + — n m (n – 1)S X 2 + (m – 1)S Y 2 n + m –2 = = 1 — 

(X – Y) – (  X –  Y ) —————————————— (n – 1)S X 2 + (m – 1)S Y ————————— — + — n + m – 2 n m has a distribution.t(n + m –2) If  X 2 =  Y 2 =  2, but  2 is not known, then a 100(1 –  )% confidence interval for  X –  Y can be derived as follows: – t  /2 (n + m –2)   t  /2 (n + m –2) P = 1 –  (X – Y) – (  X –  Y ) —————————————— (n – 1)S X 2 + (m – 1)S Y ————————— — + — n + m –2 n m

where S p 2 = is called the pooled sample variance. P (X – Y) – t  /2 (n + m –2) S p  1/n + 1/m   X –  Y  (X – Y) + t  /2 (n + m –2) S p  1/n + 1/m = 1 –  (n – 1)S X 2 + (m – 1)S Y 2 ————————– n + m –2 – t  /2 (n + m –2)   t  /2 (n + m –2) P = 1 –  (X – Y) – (  X –  Y ) —————————————— (n – 1)S X 2 + (m – 1)S Y ————————— — + — n + m –2 n m

If  X 2 and  Y 2 are not known, and it cannot be assumed they are equal, then an approximate 100(1 –  )% confidence interval for  X –  Y can be obtained from Welch’s derivation outlined at the end of Section 6.3 in the text. Note: If the random sample does not come from a normal distribution, then for sufficiently large sample sizes we can still use these confidence intervals, which are listed in the summary displayed on the back page of the text.

1. Do Text Exercise The 90% confidence interval for  X –  Y is <  X –  Y < (937.4 – 988.9)   784 / / 57 – – We are 90% confident that mean length of life of brand X bulbs is between and hours smaller than the mean length of life of brand Y bulbs.

Add a worksheet to the Excel file Confidence_Intervals (created in Class Exercise #4 in Section 6.2) which displays the limits of a confidence interval for the difference between two means, assuming equal variance and based on the Student’s t distribution. 2. (a) (1) (2) (3) (4) Create a worksheet named Two Sample in the Excel file named Confidence_Intervals as follows: In Sheet2, select cells A1:B500, and color these cells with a light color such as yellow. Change the name of Sheet2 to Two Sample. Color the cell F9 with a light color such as yellow. Enter the labels displayed in columns C through H, and right justify the labels in columns E and H.

(5) (6) Select cells A1:A500. From the main menu, select the Formulas tab, select the option Name Manager, and click the New button in the dialog box which appears. (7) Type the new range name Data1, and click the OK button to return to the Name Manager dialog box. With the Name Manager dialog box still open, click the New button, type the new range name Data2, and click inside the Refers to slot. Select cells E1:F4, and in the Formulas tab select the option Create from Selection; then, with Left column checked in the dialog box that appears, click OK. (10) Select cells H1:I4, and in the Formulas tab select the option Create from Selection; then, with Left column checked in the dialog box that appears, click OK. (11) Select cells F6:G6, and in the Formulas tab select the option Create from Selection; then, with Left column checked in the dialog box that appears, click OK. (12) (8) Enter the following formulas respectively in cells F1:F4: =COUNT(Data1) =IF(COUNT(Data1)>0,AVERAGE(Data1),"-") =IF(COUNT(Data1)>1,VAR(Data1),"-") =IF(COUNT(Data1)>1,STDEV(Data1),"-") (13) With the Refers to slot selected, select cells B1:B500, click the OK button to return to the Name Manager dialog box, and click the Close button to close the dialog box. (9)

Enter the following formulas respectively in cells I1:I4: =COUNT(Data2) =IF(COUNT(Data2)>0,AVERAGE(Data2),"-") =IF(COUNT(Data2)>1,VAR(Data2),"-") =IF(COUNT(Data2)>1,STDEV(Data2),"-") 2.-continued (14) Enter the following formula in cell G6: =IF(AND(n_1>0,n_2>0),((n_1-1)*Variance_1+(n_2-1)*Variance_2)/(n_1+n_2-2),"-") (15) Enter the following formulas respectively in cells F10:F12: =IF(AND(n_1>0,n_2>0,$F$9>0,$F$9<1),TINV(1-$F$9,n_1+n_2-2),"-") =IF(AND(n_1>0,n_2>0,$F$9>0,$F$9<1), Mean_1-Mean_2-$F$10*SQRT(Pooled_Sample_Variance*(1/n_1+1/n_2)),"-") =IF(AND(n_1>0,n_2>0,$F$9>0,$F$9<1), Mean_1-Mean_2+$F$10*SQRT(Pooled_Sample_Variance*(1/n_1+1/n_2)),"-") (16) (17) Save the file as Confidence_Intervals (in your personal folder on the college network).

Use the Excel file Confidence_Intervals to obtain the confidence interval in Text Example (Open Excel file Data_for_Students in order to copy the data of Example ) 3. (b)Use the Excel file Confidence_Intervals to obtain a two-sided confidence interval in Text Exercise (Open Excel file Data_for_Students in order to copy the data of Exercise ) Suppose we assume the variances are equal. We are 95% confident that mean length of a male green lynx spider is between and millimeters smaller than the mean length of a female green lynx spider. Since this is paired data (i.e. not independent samples!), we need a one sample confidence interval for the mean difference (instead of a two sample confidence interval for the difference between means). The 95% confidence interval for the mean difference contains zero (0), which implies that there is no statistically significant difference in mean reaction time to red lights and green lights.