using excel 2010: descriptive statistics

49
1 Using EXCEL 2010: Descriptive Statistics Department of Operations Weatherhead School of Management

Upload: theta

Post on 25-Feb-2016

63 views

Category:

Documents


4 download

DESCRIPTION

Using EXCEL 2010: Descriptive Statistics. Department of Operations Weatherhead School of Management. Installing Data Analysis. To do statistics in Excel, first install the Data Analysis Toolpak add-in as follows: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Using EXCEL 2010:  Descriptive Statistics

1

Using EXCEL 2010: Descriptive Statistics

Department of OperationsWeatherhead School of Management

Page 2: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis To do statistics in Excel, first install the Data Analysis Toolpak

add-in as follows: For a Mac, go to the following web site to download and install

StatPlus LE: www.analystsoft.com/en/products/statplusmacle/ For a PC, use the following instructions:

2

Click the File button on the left corner.

Page 3: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis (Cont.) Then you will see the following menu. Click on Options.

3

Click

Page 4: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis (Cont.) In the Excel Options dialog, click on Add-Ins.

4

Click

Page 5: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis Cont.) Then you will see the following window. There is a Manage section at the bottom. Click on Go.

5Click

Page 6: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis (Cont.) In the Add-Ins menu, select Analysis ToolPak. Then click on OK.

6

Click

Page 7: Using EXCEL 2010:  Descriptive Statistics

Installing Data Analysis (Cont.) It will take some time to load the package. When finished, click on the Data tab in the main menu. You should see the Data Analysis module on right.

7

Page 8: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table Open the file SoftDrink.xls to create the frequency table.

8

Page 9: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) Note: In this example, the data is given in TEXT form. The frequency table needs to be created manually. Type the titles “Item” and “Frequency” in the columns you want

for the frequency table.

9

Page 10: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) Manually type all values in the “Item” column. Be sure not to

miss.

10

Coke ClassicDiet CokePepsi-ColaDr. PepperSprite

Page 11: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) The function COUNTIF is used here to calculate the

frequencies. This function needs two values: the range and the criteria. Range is the range of cells with the values you want to count. Criteria describes which values in that range are to be counted.

11

Page 12: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) In cell D2 type “=COUNTIF(” Then select the data range. (A2:A51, in this example.)

12

Page 13: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) Type a “,” For the criteria, simply select the cell in the “Item” column whose

whose values you want to count. (C2, for example) Press Enter to perform the function in this cell

13

Page 14: Using EXCEL 2010:  Descriptive Statistics

The Frequency Table (Cont.) Type (or copy) the same function for the rest of the items. You will get the following frequency table.

14

=COUNTIF(A$2:A$51,C2)=COUNTIF(A$2:A$51,C3)

=COUNTIF(A$2:A$51,C4)

=COUNTIF(A$2:A$51,C6)

=COUNTIF(A$2:A$51,C5)

Page 15: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph for SoftDrink.xls Based on the frequency table you just created, you can get the

bar graph. Note: You CANNOT create the bar graph using the sample data

directly.

15

Item FrequencyCoke Classic 19Diet Coke 8Pepsi-Cola 13Dr. Pepper 5Sprite 5

How to create the bar graph for the following data is shown on the next slide.

Page 16: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph (Cont.) First select the data in the frequency table. (C2:D6, in this

example.)

16

Page 17: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph (Cont.)

17

Click “Insert” tab in Menu.

Then click “Bar”.

Then click “Clustered Bar”.

Page 18: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph (Cont.) Then you will see the following bar graph.

18

Page 19: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph (Cont.)

19

Click “Insert” tab in Menu.

Then click “Bar”.

Then click “Clustered Bar”.

The column option in Excel creates a vertical bar graph.

Page 20: Using EXCEL 2010:  Descriptive Statistics

The Bar Graph (Cont.) Then you will see the following bar graph.

20

Page 21: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart for SoftDrink.xls Creating a pie chart is similar to the bar graph. Note: You CANNOT create the bar graph using the sample data

directly.

21

Item FrequencyCoke Classic 19Diet Coke 8Pepsi-Cola 13Dr. Pepper 5Sprite 5

How to create the pie chart for the following data is shown on the next slide.

Page 22: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart (Cont.) First select the data in the frequency table. (C2:D6, in this

example.)

22

Page 23: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart (Cont.)

23

Click the “Insert” tab in Menu.

Then click “Pie”.

Then click “Pie”.

Page 24: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart (Cont.) Then you will see the following pie chart.

24

Page 25: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart (Cont.)

25

Click “Chart Tools” tab in Menu.

Then click “Quick Layout”.

Then click “Layout 1”.

To show the percentages, change the layout, as follows.

Click the pie chart to active Chart Tools.

Click

Page 26: Using EXCEL 2010:  Descriptive Statistics

The Pie Chart (Cont.) Then you will see the following pie chart.

26

Page 27: Using EXCEL 2010:  Descriptive Statistics

The Histogram Open the file Audit.xls.

27

Click “Data” tab in Menu.

Then click “Data Analysis”.

Page 28: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) In the Data Analysis menu, select Histogram. Then click on OK

28

Page 29: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) You will see the Histogram menu. In the input section, select the range with your data in the Input

Range. (A2:A21, in this example.) Then in the output section, select the cell where you want to

save the result. [Here, the result is put in the same worksheet.] Select Chart Output. Then click on OK

29

Page 30: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) You will see the following histogram.

30

Page 31: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) In the histogram menu, the bin range was left blank. However, you can create your own bin ranges, as follows. Type in the bin range first. In this example, the bin ranges are

set to the following (< 10, 10 – 15, 15 – 20, and so on).

31

Page 32: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) In the input section of the histogram menu, enter the bin range

you just created. (B2:B7, in this example.) All other settings are the same as before.

32

Page 33: Using EXCEL 2010:  Descriptive Statistics

The Histogram (Cont.) You will see the following histogram.

33

Page 34: Using EXCEL 2010:  Descriptive Statistics

Arithmetic Mean for Salary.xls AVERAGE(number1, [number2], ...) computes the average

(arithmetic mean) of the numbers. Number1 is the first number, cell reference, or range for which

you want the average.

34

=AVERAGE(B2:B13)

Page 35: Using EXCEL 2010:  Descriptive Statistics

Median for Salary.xls MEDIAN(number1, [number2], ...) computes the median of the

numbers. Number1 is the first number, cell reference, or range for which

you want the average.

35

=MEDIAN(B2:B13)

Page 36: Using EXCEL 2010:  Descriptive Statistics

Percentiles for Salary.xls PERCENTILE.INC(array,k) computes the k-th percentile of

values in a range. Array is the array or range of data. K is the percentile value.

36

=PERCENTILE.INC(B2:B13,0.25)

=PERCENTILE.INC(B2:B13,0.5)

=PERCENTILE.INC(B2:B13,0.75)

Page 37: Using EXCEL 2010:  Descriptive Statistics

Mode for Salary.xls MODE(number1,[number2],...]) computes the mode of the

numbers. Number1 is the first number, cell reference, or range for which

you want the average.

37

=MODE(B2:B13)

Page 38: Using EXCEL 2010:  Descriptive Statistics

Variance for Salary.xls VAR.P(number1,[number2],...]) calculates the population

variance. VAR.S(number1,[number2],...]) calculates the sample

variance.

38

=VAR.P(B2:B13)

=VAR.S(B2:B13)

Page 39: Using EXCEL 2010:  Descriptive Statistics

Standard Deviation for Salary.xls STDEV.P(number1,[number2],...]) calculates the population

standard deviation. STDEV.S(number1,[number2],...]) calculates the sample

standard deviation.

39

=STDEV.P(B2:B13)

=STDEV.S(B2:B13)

Page 40: Using EXCEL 2010:  Descriptive Statistics

Descriptive Statistics Open the file Salary.xls.

40

Click “Data” tab in Menu.

Then click “Data Analysis”.

Page 41: Using EXCEL 2010:  Descriptive Statistics

Descriptive Statistics (Cont.) In the Data Analysis menu, select Descriptive Statistics. Then click on OK

41

Page 42: Using EXCEL 2010:  Descriptive Statistics

Descriptive Statistics (Cont.) You will see the Descriptive

Statistics menu. In the input section, enter

the data range in Input Range. (B2:B13 here.)

In the output section, enter the cells where you want to save the result. [Here the results are put in the same worksheet.]

Select Summary Statistics. Then click on OK

42

Page 43: Using EXCEL 2010:  Descriptive Statistics

Descriptive Statistics (Cont.) You will see the following results.

43

Page 44: Using EXCEL 2010:  Descriptive Statistics

Scatter Diagrams Open file Stereo.xls.

44

Page 45: Using EXCEL 2010:  Descriptive Statistics

Scatter Diagrams (Cont.) First select the data

range consisting of two columns. (B3:C12, here.)

One column contains values for X and the other column for Y.

You can also include the row with the column labels.

45

Page 46: Using EXCEL 2010:  Descriptive Statistics

Scatter Diagrams (Cont.)

46

Click the “Insert” tab in the Menu.

Then click “Scatter”.

Then click “Scatter with Only Markers”.

Page 47: Using EXCEL 2010:  Descriptive Statistics

Scatter Diagrams (Cont.) Then you will see the following scatter diagram.

47

Page 48: Using EXCEL 2010:  Descriptive Statistics

Correlation and Covariance COVARIANCE.P(array1,array2) computes the population

covariance XY.

Array1 is the cell range of values for the X variable. Array2 is the cell range of values for the Y variable. COVARIANCE.S(array1,array2) computes the simple

covariance SXY.

CORREL(array1,array2) computes the sample correlation = population correlation.

Open file Stereo.xls as an example (see the next slide).

48

Page 49: Using EXCEL 2010:  Descriptive Statistics

Correlation and Covariance (Cont.)

49

=COVARIANCE.P(B3:B12,C3:C12)

=COVARIANCE.S(B3:B12,C3:C12)

=CORREL(B3:B12,C3:C12)