Docsity

Exploratory Data Analysis using Excel: A Laboratory Guide for ECON 140A/240A Students, Lab Reports of Spanish Language

Toggle sidebar
bg1
Oct. 3, 2007 LAB #1 ECON 140A/240A-1L. Phillips
Orientation to Excel; Exploratory Data Analysis
I. Orientation to Excel
Help Menu: “About Microsoft Excel”
“System Info”
Help Menu: “Contents and Index”
“Key Information”: “If you are new to spreadsheets”
“How to get started with MS Excel”
“Information about what you can do with MS Excel”
Help menu: “Index”
Count function: type in “count” in Index window and read display
Sum function: type in “sum” and then select “sum worksheet function”
Mean function: type in “mean”, display goes to “average”
Histogram analysis tool: type in “histogram”, click the arrow
to continue with the dialog box
II. Descriptive Statistics Functions
Open XM02-04 in Excel from the Econ240A folder in classes, Ch. 2
The data should be in column 1, starting in row 2
Descriptive statistics
Select cell e2, and type in “count”
Select cell e3, go to the formula bar and type an “=”, go to insert
menu and insert “function”, select “count”
Select rows 2-201 of column1, hit enter key
Select cell f2 and type in “sum”
Select cell f3, go to the formula bar and type an “=”, go to insert
menu and insert “function”, select “sum”
Select rows 2-201 of column1, hit “enter” key
Select cell g2, and type in “mean”
Select cell g3, go to the formula bar and type an “=”, select cell f3,
type a division “/”, select cell e3, hit “enter” key
pf3
pf4
pf5

Partial preview of the text

Download Exploratory Data Analysis using Excel: A Laboratory Guide for ECON 140A/240A Students and more Lab Reports Spanish Language in PDF only on Docsity!

Orientation to Excel; Exploratory Data Analysis

I. Orientation to Excel Help Menu: “About Microsoft Excel” “System Info” Help Menu: “Contents and Index” “Key Information”: “If you are new to spreadsheets” “How to get started with MS Excel” “Information about what you can do with MS Excel” Help menu: “Index” Count function: type in “count” in Index window and read display Sum function: type in “sum” and then select “sum worksheet function” Mean function: type in “mean”, display goes to “average” Histogram analysis tool: type in “histogram”, click the arrow to continue with the dialog box II. Descriptive Statistics Functions Open XM02-04 in Excel from the Econ240A folder in classes, Ch. 2 The data should be in column 1, starting in row 2 Descriptive statistics Select cell e2, and type in “count” Select cell e3, go to the formula bar and type an “=”, go to insert menu and insert “function”, select “count” Select rows 2-201 of column1, hit enter key Select cell f2 and type in “sum” Select cell f3, go to the formula bar and type an “=”, go to insert menu and insert “function”, select “sum” Select rows 2-201 of column1, hit “enter” key Select cell g2, and type in “mean” Select cell g3, go to the formula bar and type an “=”, select cell f3, type a division “/”, select cell e3, hit “enter” key

Orientation to Excel; Exploratory Data Analysis

Select cell h2, and type in “average” Select cell h3, go to the formula bar and type an “=”, go to insert menu and insert “function”, select “average” Select rows 2-201 of column1, hit enter key III. Histogram of the monthly telephone bills of new subscribers Go to the “Tools” Menu and select “data analysis”: “histogram”, click OK (if data analysis is not in the tools menu, choose “add-ins” in the tools menu and check the box for “Analysis ToolPak”. If “Analysis ToolPak” is not on this list it needs to be installed. A. Letting Excel make the choices The histogram window (dialog box) should be open. If you need help, click on “help” and info about this dialog box comes up Select rows a2-a201 for data input For the output options Click “New Worksheet Ply” and give it a name like “Bills Histogram” Click “chart output” box and hit OK You should get a sheet with 15 bins beginning at zero and the frequency, i.e. number of observations in each bin, adding to 200, and the histogram chart. This may be satisfactory for a quick and dirty examination. If you want to add a little value you can tidy up the bins. As Keller explain in Ch. 2, you can choose an approximate bin width by taking the difference between the largest bill and the smallest bill and dividing by the number of classes. Keller also discusses this choice, using Table 2.6. For a number of observations of 50- 200, they recommend 7-9 classes and use 8. So, Approx. class width = (maximum bill – minimum bill)/ # classes = ($119.63 – 0)/8 = $14. so choose 15 for the class width You can find the minimum and maximum by eyeball, or use the min and max functions, for example: Select cell i2, and type in “minimum”

Orientation to Excel; Exploratory Data Analysis

In the discussion above, to illustrate the use of “insert function”, we produced count, sum, average, minimum, maximum, etc. step by step. There is a quicker way, which provides some additional info we will discuss in the future, and the standard deviation, discussed in Lecture One as a measure of dispersion. Go to the “Tools” Menu and select “data analysis”: “Descriptive Statistics”, OK In the dialog box, provide the input range a2-a201, and under output options, select “new worksheet ply” with a name like “Bills Descriptive”, and select descriptive statistics, and hit OK. A time saver. IV. Box and Whisker Plot This requires a Macro, Data Analysis Plus, from Keller Go to Econ 240A folder in classes and open Excel file “Stats” Open XM02-04 in Excel from the Econ240A folder in classes, Ch. 2 This is the telephone bill data file, used above. Go to the “Tools” Menu and select “data analysis plus”: “Box Plot”, OK This output corresponds to the box plot in K&W and The Excel Output on p. 113. V. Stem and Leaf Diagram Open XM02-04 in Excel from the Econ240A folder in classes, Ch. 2 Go to the “Tools” Menu and select: “stem and leaf display”: OK VI. Exercise: Due in one week Develop the box plots for the seconds to wait for drive-through window service in five competing fast-food restaurants. The file is Xm04-15. You can compare your results to Keller on p. 113. a. Setting your tastes for food aside, which restaurant has the fastest service? b. Which restaurant has the slowest service? c. Which of these five seems to have the most advertising on TV?

Orientation to Excel; Exploratory Data Analysis