39
Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Embed Size (px)

Citation preview

Page 1: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Lecture 2Math 15 – Introduction to Scientific Data Analysis

Introduction to spreadsheet

February 4, 2008

Page 2: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

TA for this Course

Ms. Debye ConteE-mail: [email protected]

Office Hours: TBA

Page 3: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 3

Grading for Math 15• Distribution of letter grades will depend on the

overall performance of the students in the course

Grade Total points achieved

A Over 425

B Over 375

C Over 325

D Over 275

Minimum grades guaranteed to students achieving the indicated percentage of the total possible points

Activity Points % Final Grade

Assignments 100 20%

In-Class Quizzes 100 20%

Computer Labs 60 12%

Project #1 70 14%

Project #2 70 14%

Final Exam 100 20%

Total 500 100%

Page 4: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 4

Computer Labs

Attending computer labs is not mandatory. However, finishing each week’s lab works is mandatory.

Even though you miss computer labs, you can still receive lab points by submitting your weekly lab no later than the beginning of the week lecture.

Lab will start this week!

Page 5: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 5

In-Class Quizzes

There will be in-class quizzes every other week. Quizzes will be given in the first 15-miniutes of

lectures. Each quiz will be worth 20 points. First quiz will be given on February 4th, 2008. Open book and Open notebook Quizzes.

Page 6: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 6

Projects

Two Projects: #1 Statistical analysis with Excel (70 pts.) #2 Programming Project (70 pts.)

Projects can be performed individually or in groups of three, with following rules: No late project will be accepted! Teams turn in one project report and get the same grade. A team consists of at most 3 people—no copying between

teams! Team project report must include a title page, where a team

describe each team member’s contribution. 10% bonus for projects done individually Individual projects must not be copied from anyone else

Page 7: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 7

Final Exam

It will be given in the final exam week! Open Books (?) and Open Notes

including old quizzes! We will give you more details later, but …

If you study and review all Quizzes, you should be fine!

Page 8: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 8

Any Questions?

Page 9: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Qualitative Data Analysis: Cat

UC Merced - Math 15 9

Page 10: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Observation Apparent from the

picture or image Interpretation

Your thought or conclusion from the observation

UC Merced - Math 15 10

Page 11: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

Again! Look Carefully!

We found Nemo!

Page 12: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 12

Teaching Philosophy

“I hear and I forget.I see and I remember.I do and I understand.”

Confucius 500 B.C.

No Pain! No Gain!

Page 13: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 13

Goal for 1st Half (2nd -7th weeks) To develop skills using Excel (Spreadsheet)

to collate, organize, analyze (including Statistical analysis), and present numerical information!

Page 14: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 14

Other Spreadsheets. You don’t need to use Microsoft Excel or

Office. However, Microsoft Work is not a good one.

Free non-Microsoft “Office” suite software OpenOffice

http://www.openoffice.org

NeoOffice – For Mac User http://www.neooffice.org

Page 15: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 15

No big difference

Microsoft Excel 2003 OpenOffice – CalcNeoOffice - Calc

Page 16: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 16

More differences here

Microsoft Excel 2003 Microsoft Excel 2007

Page 17: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 17

Any Questions?

Page 18: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 18

Spreadsheet Fundamentals

This Week: Learning some simple operations of

Microsoft Excel (or OpenOffice Calc).

Page 19: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 19

Identify major components of the Excel window Excel is a computerized spreadsheet, which is an

important tool that helps you analyze information.

Excel stores spreadsheets in documents called workbooks.

Each workbook is made up of individual worksheets, or sheets. When you open Excel, by default it will open a blank workbook

with three blank worksheets.

Page 20: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 20

Excel components

•Each column is assigned Letter.•Each row is assigned Numerical Number.

D11 (Cell)

Page 21: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 21

Resize worksheet rows and columns There are a number of methods for altering row

height and column width using the mouse or menus: Here is the easiest one: Click the dividing line on the

column or row, and drag the dividing line to change the width of the column or height of the row

Page 22: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 22

Any Questions?

Page 23: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 23

Entering Formulas

A formula is a mathematical expression that calculates a value.

In Excel, formulas always begin with an equal sign (=).

A formula can consist of one or more arithmetic operators.

Page 24: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 24

Arithmetic Operators

= (B1 - D15*B15)/(A1+B2^3)

Page 25: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 25

Use Excel’s Predefined functions Excel supplies more than 350 functions

predefined formulae for a commonly used calculation.

Page 26: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 26

Define functions, and functions within functions A basic formula example to add up a small number

of cells is =A1+A2+A3+A4, but that method would be cumbersome if there were 100 cells to add up.

Use Excel's SUM function to total the values in a range of cells like this: SUM(A1:A100)

You can also use functions within functions. Consider the expression:

=ROUND(AVERAGE(A1:A100),1) This expression would first compute the average of all the values from cell A1

through A100 and then round that result to 1 digit to the right of the decimal point

Page 27: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 27

Open the Insert Function dialog box To get help from Excel for inserting a

function, first click the cell in which you wish to insert the function. Then, open the Insert Function Dialog box:

Page 28: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 28

Open the Insert Function dialog box Microsoft Excel 2007

Page 29: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 29

Insert Function dialog box

Page 30: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 30

Identify cell ranges A group of worksheet cells is known as a cell range,

or range. Working with ranges in a worksheet makes working with the data easier.

Ranges can be adjacent or nonadjacent. Select an adjacent range by L-clicking (Left-mouse button

clicking) on a cell and dragging to an opposite corner of a rectangle of cells

A nonadjacent range is comprised of two or more adjacent ranges that are not contiguous to each other To select a nonadjacent range, begin by selecting an

adjacent range, then press and hold down the Ctrl key as you select other adjacent ranges

Page 31: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 31

Copy and paste formulas and functions Copying and pasting a cell or range of cells is a

simple, but highly effective means for quickly filling out a large worksheet.

To copy and paste a cell or range: Select the cell or range to be copied and then click the

Copy button on the standard toolbar or Ctl+c. Select the cell or range into which you want to copy the

selection and then click the Paste button on the standard toolbar or Ctl-v.

Once you are finished pasting, press the Esc key to deselect the selection

Page 32: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 32

Copy and paste effects on cell references Copied formulas or functions that have cell

references are adjusted for the target cell or range of cells.

For example, if cell G5 contains the formula =F5*B5/B7, and you copy

and paste this formula to cell G6, the formula in cell G6 will be =F6*B6/B8.

This may or may not be correct for your worksheet, depending upon what you are trying to do.

Page 33: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 33

Use relative references A relative reference is a cell reference that

shifts when you copy it to a new location on a worksheet.

A relative reference changes in relation to the change of location.

If you copy a formula to a cell three rows down and five columns to the right, a relative reference to cell B5 in the source cell would become G8 in the destination cell.

Page 34: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 34

Use absolute references An absolute reference is a cell reference that

does not change when you copy the formula to a new location.

To create an absolute reference, you preface the column and row designations with a dollar sign ($).

For example, the absolute reference for B5 would be $B$5. This cell reference would stay the same no matter

where you copied the formula.

Page 35: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 35

Use Excel's Auto Fill features When you need to copy and paste a large number

of rows or columns, you can use a technique called Auto Fill.

The fill handle is a small black square located in the lower-right corner of a selected cell or range.

When you drag the fill handle with a L-Click (Left-Click), Excel automatically fills in the

formulas and formats used in the selected cells. With a R-Click (Right-Click), Excel offers the menu for

several options for Auto Fill.

Page 36: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 36

An example of Auto FillL-Click and drag

R-Click and drag

Page 37: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 37

Any Questions?

Page 38: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 38

Useful Tricks #1

Ctr+Shift+ Ctrl key plus the shift key and down-arrow key Select all cells up to next empty cell.

Ctr+~ Ctrl key plus the ~ (Tilda) key Toggle option that allows you to switch back and

forth between the value view and the formula view

Page 39: Lecture 2 Math 15 – Introduction to Scientific Data Analysis Introduction to spreadsheet February 4, 2008

UC Merced - Math 15 39

Any Questions?