4b: Making an auxiliary table for calculating the standard deviation

Similar documents
A. Incorrect! This would be the negative of the range. B. Correct! The range is the maximum data value minus the minimum data value.

Basics: How to Calculate Standard Deviation in Excel

Microsoft Excel Level 2

Tips for working efficiently with Excel's fill handle

Excel Skill Module. EPG Workshop. by T. A. Ebert M.E. Rogers

The Excel Project: Excel for Accountants, Business People... from the Beginning Duncan Williamson

Basic tasks in Excel 2013

LABORATORY 1 Data Analysis & Graphing in Excel

When you first start OneNote, it creates a sample notebook for you. You can use this notebook or quickly create your own.

Agenda. Spreadsheet Applications. Spreadsheet Terminology A workbook consists of multiple worksheets. By default, a workbook has 3 worksheets.

Excel. Spreadsheet functions

Using Microsoft Excel

Computer Worksheet 4

Introduction to Spreadsheets

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

The toolbars at the top are the standard toolbar and the formatting toolbar.

Using Excel to produce graphs - a quick introduction:

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions

Access - Introduction to Queries

Activity 1 Creating a simple gradebook

1. Make a bar graph in Excel. (1.5 points) Copy the following table into two columns under a blank worksheet in Excel.

Create formulas in Excel

Microsoft Excel. Part 2: Calculations & Functions. Department of Computer Science Faculty of Science Chiang Mai University

Spreadsheets. With Microsoft Excel as an example

Module Four: Formulas and Functions

Data Analysis Guidelines

Introduction to Excel Workshop

Excel tutorial Introduction

Moving and copying data

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS

2. Formulas and Series

Excel Tables and Pivot Tables

Excel 2010: Getting Started with Excel

San Francisco State University

EXCEL PRACTICE 5: SIMPLE FORMULAS

Introduction to the workbook and spreadsheet

Ms excel. The Microsoft Office Button. The Quick Access Toolbar

Software Reference Sheet: Inserting and Organizing Data in a Spreadsheet

A Tutorial for Excel 2002 for Windows

M i c r o s o f t E x c e l A d v a n c e d. Microsoft Excel 2010 Advanced

INSTRUCTIONS FOR USING MICROSOFT EXCEL PERFORMING DESCRIPTIVE AND INFERENTIAL STATISTICS AND GRAPHING

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Excel R Tips. is used for multiplication. + is used for addition. is used for subtraction. / is used for division

Lab 5 Excel Spreadsheet Introduction

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13)

Excel Spreadsheets and Graphs

HPOG RoundTable: How to Manipulate PAGES Data with Excel

Formulas Learn how to use Excel to do the math for you by typing formulas into cells.

Candy is Dandy Project (Project #12)

Excel Tips and FAQs - MS 2010

Introduction to Excel Workshop

Intermediate Excel 2003

Microsoft Excel 2010 Handout

2. create the workbook file

Technology Is For You!

Business Data Analysis MA0123. Dr Gavin Shaddick Department of Mathematical Sciences 4W 5.7

IDS 101 Introduction to Spreadsheets

Presenter: Susan Campbell Wild Rose School Division

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Navigating in SPSS. C h a p t e r 2 OBJECTIVES

Excel Level 1

Using Formulas and Functions

Creating an expenses record spreadsheet in Excel

Create your first workbook

A B C D E F. = 1/3 1 divided by 3, that is, The product of cells A2 and C12. Cell C6 divided by the difference of D4 and E4

How to use Excel Spreadsheets for Graphing

Microsoft Excel Microsoft Excel

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

Excel VLOOKUP. An EMIS Coordinator s Friend

(Refer Slide Time 04:53)

Using Microsoft Excel

Payment Function Exercise

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Math 227 EXCEL / MEGASTAT Guide

Programming, Data Structures and Algorithms Prof. Hema Murthy Department of Computer Science and Engineering Indian Institute of Technology, Madras

EXCEL BASICS: MICROSOFT OFFICE 2010

2013 INTERMEDIATE MANUAL

Excel Primer CH141 Fall, 2017

1. What specialist uses information obtained from bones to help police solve crimes?

Excel Basic: Create Formulas

Matrix Multiplication Studio April 20, 2007

1.a) Go to it should be accessible in all browsers

EXCEL BASICS: MICROSOFT OFFICE 2007

PHLI Instruction (734) Introduction. Lists.

Using Excel 2001 to Create a Data Table 11 of 29

EXCEL 98 TUTORIAL Chemistry C2407 fall 1998 Andy Eng, Columbia University 1998

= 3 + (5*4) + (1/2)*(4/2)^2.

WELCOME TO BEGINNER EXCEL. Where we hope to EXCEL lerate Your Life

Activity: page 1/10 Introduction to Excel. Getting Started

Budget Exercise for Intermediate Excel

Excel Tables & PivotTables

In this chapter, I introduce you to Excel s statistical functions and data. Understanding Excel s Statistical Capabilities. Chapter 2.

INTRODUCTION TO MICROSOFT EXCEL: DATA ENTRY AND FORMULAS

Microsoft Excel Basics Ben Johnson

Make a Mad-Libs activity using an Excel Workbook

Intro To Excel Spreadsheet for use in Introductory Sciences

FACULTY AND STAFF COMPUTER FOOTHILL-DE ANZA

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

DOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES

Transcription:

In the book we discussed the use of an auxiliary table to calculate variance and standard deviation (Table 4.3). Such a table gives much more insight in the underlying calculations than the simple number coming out of SPSS or Excel (see HERE [hyperlink to 4a]). You may have guessed that it is easy to make such a table in Excel. This allows you to rapidly check that the calculations you have done are correct. Below we describe how to make an Excel sheet for samples up to 20 observations (or whatever larger number you want). We start by defining the columns: Next, we enter the data (taken from p.83 of Basic Statistics for Psychologists): Now we need the sample mean: M. The calculation of this variable is described HERE [hyperlink to 3] Palgrave, 2011 1

First write M = in cell E2. Then goto cell F2 and click on fx. Select Statistical and Average. Define the cells upon which you will calculate M. We take A2:A21. This allows us to enter up to 20 values. Of course, you can always take a larger value. Just make sure that there are no values in cells that are supposed to be empty (e.g., the cells A11:A21 if you only have 9 observations like in the present example). Excel automatically excludes empty cells from its calculations but, of course, includes all cells with values in them. Palgrave, 2011 2

Click on OK to get the value of M. Now we are going to define the cells in column B as the value in column A minus M. One thing must be kept in mind, however. It is that we do not want the value to be calculated for empty cells in column A. Therefore we must start with an IF statement: IF the Cell in A is not empty then. Go in cell B2 and click on fx. Select Logical and IF. Palgrave, 2011 3

This gives you the following screen: First we have to enter the condition. Recall: this requires the cell in A not to be empty. The code for this is A2<> (cell A2 is not empty). Enter this: After the input box you see the word TRUE lighting up. This is because cell A2 is not empty. Now we enter the operation to be done when cell A2 is not empty. This operation is the value of A2 minus the mean value M. The code for this is A2 $F$2. The only surprising part here are the $ signs in $F$2. The reason why we have to include these signs is that the value of M stays in the same cell no matter in which cell of B we are. For cell B2 we want to calculate the value A2 minus M. So, the row of A changes with each row of B. This is done automatically, unless you use the $ signs. If we did not use $F$2, Excel would subtract the value of cell F3 from cell A3 to calculate the value of B3, which would be wrong. Palgrave, 2011 4

Next, we enter the value to be given when cell A2 is empty. This value should be empty as well. So, we enter. Palgrave, 2011 5

Click on OK to get the first value of column B. This will equal 1 (5 4). Also notice that the function panel (the box after f x ) contains the code of the full function calculate in cell B2: =IF(A2<>"",A2 $F$2,""). It is not difficult to decipher this on the basis of what we have covered. You can use it if you want later no longer to have to use the IF function interface. Now, let s copy the calculations done in cell B2 to cell B3. To do this, activate cell B2 (go on it with your cursor and click on the left button). Then either press Ctrl C (i.e., hold the key Ctrl down and press on the key C) or use the copy icon in the top bar: Palgrave, 2011 6

Now activate cell B3 (go with your cursor to it and click on the left button). Then either press Ctrl V or use the Paste the icon in the top panel. If everything went all right, this what you should have: Again, the function panel after fx tells you what operations have been done: This reads =IF(A3<>"",A3 $F$2,""). It means that if cell A3 was not empty, the value A3 F2 was calculated for cell B3. If cell A3 was empty, cell B3 would be left empty as well. Palgrave, 2011 7

Now we can copy the instructions to all cells B2:B21. This is done as follows. First, goto cell B2 with your cursor and activate it by clicking on the left button. Then activate cells B3:B21. This is done by going with your mouse over these cells while keeping the left button pressed. Palgrave, 2011 8

Then press Ctrl V or use the paste icon. If everything went well, this what you should have: For each row with a value in column A we get a value in column B. Otherwise column B remains empty. Palgrave, 2011 9

As a calculation check we can verify that the sum of the values in column B is 0. Write Σ(X M) = in cell E3. Then go to cell F3, click on fx, select All and Sum and define the values B2:B21. (You can also do the latter by simply going over the cells B2 to B21 with your cursor while keeping the left button pressed.) Click on OK to get the outcome. Can you see how your file is starting to look like Table 4.3 in the book (p.83)? Palgrave, 2011 10

Next, we need to define the values in column C. This is rather easy because they are simply the squares of the values in column B. The only complicating factor for us is that we only want those values for which the value in B is nonempty. So, we again will have to work with the IF function. Goto cell C2, click on fx, Logical, IF, and enter the following: This panel simply says that the value of cell C2 equals B2^2 (B2 squared) if B2 is not empty. Otherwise cell C2 remains empty. You can also see this code in the function panel after fx. There it says that cell C2 =IF(B2<>"",B2^2,""). Click on OK to calculate the value. Then copy cell C2 (use Ctrl C or the Copy icon), activate cells C3 to C21 (go over them with the cursor while keeping the left button pressed), and use Ctrl V (or the Paste icon). This is what you should have: Palgrave, 2011 11

We now use calculate the sum of the values in column C. Write Σ(X M)² = in cell E4 and define cell F4 as the sum of the values in column C. You can use the steps described above or simply type =SUM(C2:C21) in the function panel. Cell F4 now tells you that the sum of the squared values is 12 (compare to Table 4.3). Palgrave, 2011 12

We need one more thing to calculate the standard deviation. It is N, the number of observations. To calculate this, we use the Count function in Excel. Either you can use the fx button to search for it yourself or you simply write =COUNT(C2:C21) in cell F5 (also write N = in cell E5). For the sake of completeness, we may also define the degrees of freedom, which equals N 1. So, write df = in cell E6 and =F5 1 in cell F6. Palgrave, 2011 13

Now, we define the sample variance as: ( X M )² SD ² =. N 1 In Excel this translates to cell F4 divided by cell F6 (=F4/F6), as follows: Palgrave, 2011 14

To define SD we simply take the square root of cell F7 [=SQRT(F7)], as shown below. The nice thing is that we now have an Excel file (please save it!) that calculates everything we need for the standard deviation for all possible samples up to 20 observations (or more if you adjust the upper limits of the cells beyond row 21). This means that now you can check each and every exercise or example you are given!! Try it out. For instance with the example given on p. 86 of the book: Palgrave, 2011 15

Or with the example given on p. 89: Or whatever other your example you (or your lecturer) could think of! Enjoy! Palgrave, 2011 16