Docsity

Excel Tutorial The Assignment, Summaries of Statistics

Toggle sidebar
bg1
Excel Tutorial
This is an assignment designed to introduce you to Microsoft Excel, an excellent way to easily answer simple scientific questions about things including statistics
and probability, and which also can be a full-fledged scientific modeling platform when needed.
The Assignment
Follow these instructions carefully. Full credit is not guaranteed, and will require strict adherence to the instructions. If you have questions, email me. There are
thinking/observation/description questions in this assignment. You can answer those by entering a comment (go to Insert>Comment, or [right click] > Insert
Comment) on the relevant cell.
Make a static list of numbers.
Click on cell A3 and type "Static (1)".1.
Click on cell A4 and type "0".2.
Select the range of cells from A4 to A50 by clicking on cell A4 and dragging downward (it should scroll when you are near the bottom of the window).3.
Select from the edit menu: Edit>Fill>Series... (or Ribbon>Home>Editing>Fill>Series).4.
Choose Columns, Linear, and a step value of 1.5.
You should now have a list of numbers from 0 to 46 in cells A2 to A50.6.
Try it again with other values in the Fill>Series window.7.
1.
Make a second static list (easier).
Click on cell B3 and type "Static (2)".1.
Click on cell B4 and type "0", and type "1" into cell B5.2.
Select the range of cells from B4 to B5 by clicking on cell B4 and dragging downward.3.
Move the cursor near the lower-right corner of cell B5. It should change from the hollow plus sign to a smaller, solid black plus sign.4.
While the cursor is the solid plus sign, click and drag downward in column B to B50.5.
You should get a list of numbers.6.
Try it again with a values of 0 and 10 in B4 and B5 instead of 0 and 1. It should extend the pattern.7.
2.
Make a calculated list. This is the first calculated formula you will create.
Click on cell C3 and type "Calculated".1.
Click on cell C4 and type "0".2.
Click on cell C5 and type "=C4+1". Hit return and it should say "2". This is the result of a formula, which uses the contents of another cell.3.
Try changing the value in cell C4 and the formula in cell C5. What happens if you remove the equals sign?4.
Put the regular formula back in cell C5 and the value of "0" back in cell C4.5.
Click on cell C6 and type "=" (but do not hit return). Hit the up-arrow on your keyboard. Note that you get a moving highlight, and the formula changes
as you move the highlight around. Move the highlight to cell C5, (don't hit return yet), type "+1" and hit return. The cell's caluclated value should be "2",
and its formula should be "=C5+1". You have the beginning of a calculated list of numbers.
6.
Try to make cell C7 have the formula "=C6+1" but instead of using the keyboard, this time type "=" and then click on cell C6 with the mouse, and then
type +1 and hit return.
7.
Select cell C7 and copy it downward by changing the cursor to a solid plus and dragging downward to cell C50. You should have a list from 0 to 46.8.
What happens when you change the value in cell C4?9.
3.
pf3
pf4
pf5

Partial preview of the text

Download Excel Tutorial The Assignment and more Summaries Statistics in PDF only on Docsity!

Excel Tutorial

This is an assignment designed to introduce you to Microsoft Excel, an excellent way to easily answer simple scientific questions about things including statistics and probability, and which also can be a full-fledged scientific modeling platform when needed.

The Assignment

Follow these instructions carefully. Full credit is not guaranteed, and will require strict adherence to the instructions. If you have questions, email me. There are thinking/observation/description questions in this assignment. You can answer those by entering a comment (go to Insert>Comment, or [right click] > Insert Comment) on the relevant cell. Make a static list of numbers.

  1. Click on cell A3 and type "Static (1)".
  2. Click on cell A4 and type " 0 ".
  3. Select the range of cells from A4 to A50 by clicking on cell A4 and dragging downward (it should scroll when you are near the bottom of the window).
  4. Select from the edit menu: Edit>Fill>Series... (or Ribbon>Home>Editing>Fill>Series).
  5. Choose Columns, Linear, and a step value of 1.
  6. You should now have a list of numbers from 0 to 46 in cells A2 to A50.
  7. Try it again with other values in the Fill>Series window.

Make a second static list (easier).

  1. Click on cell B3 and type "Static (2)".
  2. Click on cell B4 and type " 0 ", and type " 1 " into cell B5.
  3. Select the range of cells from B4 to B5 by clicking on cell B4 and dragging downward.
  4. Move the cursor near the lower-right corner of cell B5. It should change from the hollow plus sign to a smaller, solid black plus sign.
  5. While the cursor is the solid plus sign, click and drag downward in column B to B50.
  6. You should get a list of numbers.
  7. Try it again with a values of 0 and 10 in B4 and B5 instead of 0 and 1. It should extend the pattern.

Make a calculated list. This is the first calculated formula you will create.

  1. Click on cell C3 and type "Calculated".
  2. Click on cell C4 and type " 0 ".
  3. Click on cell C5 and type "=C4+1". Hit return and it should say "2". This is the result of a formula, which uses the contents of another cell.
  4. Try changing the value in cell C4 and the formula in cell C5. What happens if you remove the equals sign?
  5. Put the regular formula back in cell C5 and the value of " 0 " back in cell C4. Click on cell C6 and type "=" (but do not hit return). Hit the up-arrow on your keyboard. Note that you get a moving highlight, and the formula changes as you move the highlight around. Move the highlight to cell C5, (don't hit return yet), type "+1" and hit return. The cell's caluclated value should be "2", and its formula should be "=C5+1". You have the beginning of a calculated list of numbers.

Try to make cell C7 have the formula "=C6+1" but instead of using the keyboard, this time type "=" and then click on cell C6 with the mouse, and then type +1 and hit return.

  1. Select cell C7 and copy it downward by changing the cursor to a solid plus and dragging downward to cell C50. You should have a list from 0 to 46.

  2. What happens when you change the value in cell C4?

  3. What is the formula in cell C50?

    1. Describe what happens when you copy a formula that relies on another cell as you did here. Make a list that varies depending on a particular cell's value.
    2. Click on cell D1 and type " 1 ".
    3. Click on cell D3 and type "Dynamic".
    4. Click on cell D4 and type " 0 ". Click on cell D5 and enter the formula "=D4+D1". The idea is to make a column of increasing numbers but this time instead of increasing by 1, it will increase by the value in D1.

As above use the cursor to copy the formula down to cell D50. You should see that cells D7 and below give an error (signified by the error message "#VALUE!"). Examine the formula in D7; why is there an error? (Note that if you double-click on a formula cell, you get a nice visual display of the cells it uses for its calculation!)

To fix the error, we need to be able to selectively hold parts of formulas fixed during copying operations. To do this, we use the "$" character. If you put it before the letter of a cell reference, then the column will not change during copying; if you put it before the number, then the row will not change.

  1. Go back to cell D5, and change the formula to "=D4+D$1". Now copy the formula down to D50. You should have a list of numbers from 0 to 46.
  2. Change the value of D1 to 3. What is the value of D50? Use this column to determine the values of 17 x 28, 17 x 29, and 17 x 30. (Do not calculate these in some other way! If you are not sure how to do that, then note that you can easily see the values of 3 x 7, 3 x 8, 3 x 9, etc. in the list). Put the results of this observation (not formulas; just numbers) in cells D55-D57.

Make a calculated list that uses values in another list.

  1. Click on cell E3 and type "Double".
  2. Click on cell E4 and type "=D4*2". (The asterisk is the Excel symbol for multiplication).
  3. Using the techniques above, copy this formula down to cell E50.
  4. You should have a list of values that are double those in column D.

Make a list of random numbers.

  1. Click on cell F3 and type "Random".
  2. Click on cell F4 and type "=RAND()".
  3. Using the techniques above, copy this formula down to cell F50.
  4. Describe the set of values you observe in the list.
  5. Describe what happens when you make any changes to the document, such as typing a value in some other cell.

Make a list of random numbers with a different range.

  1. Click on cell G3 and type "Random 0-6".
  2. Click on cell G4 and type "=F4 * 6".
  3. Using the techniques above, copy this formula down to cell G50.
  4. Describe the set of values you observe in the list.

Let's translate this into list of random "die rolls".

  1. Type a heading ("Die Rolls") in H3, as we did above.
  2. We can use IF statements to choose values based on other values. As an example, type this into cell H4: "=IF(G4<3, "small", "big")". Copy it down to

"Factor".

  1. Let's alter the column's formulas to use this name.
  2. Go to cell E5 and change the formula from "=E4+E$1" to "=E4+Factor". Copy this down to E50. Note that all the values still work. Note also that named cells, by default, are fixed and don't change during a copy operation (so "Factor" corresponds to $E$1 now, not just E$1 as before).

Let's think about graphing data - this is science, after all. Imagine that we have data sets showing the Na, K, and Si content of various igneous rocks from different places on the globe. This work is different from the preceding stuff, so let's put it on a new sheet (or "Worksheet").

  1. Your Workbook window should have multiple sheet tabs at the bottom; click on Sheet 2.
  2. Let's name the sheets with better names. Right-click on the Sheet 1 tab, and choose Rename. Rename it to "Dice". Rename Sheet 2 to "Rocks". In the Rocks worksheet, let's enter some real data. (Note that these data sets are real, but contrived in the sense that I chose data that would make the assignment work, out of a very large set of possible data, so these are not representative of the typical rock values at these locations!). Make some headers across the first three columns of row 1: SiO2, Na2O, K2O.

Here are data for some Mt. St. Helens rocks. Enter them into A2-C6: SiO 2 Na 2 O K 2 O 69.87 4.49 6. 73.05 4.21 5. 38.4 4.03 1. 62.22 7.38 0. 60.45 7.04 0.

Here are data for some Mt. Baker rocks. Enter them into A7-C11: SiO 2 Na 2 O K 2 O 64.46 4.68 2. 68.1 4.89 2. 69.2 4.3 2. 71.9 4.65 3. 73.1 4.18 3.

Here are data for some Columbia River Basalts. Enter them into A12-C16: SiO 2 Na 2 O K 2 O

Now, we would like to plot these on a diagram that has Na 2 O + K 2 O (the sum) on the vertical axis, and SiO 2 on the horizontal axis. We therefore need to calculate the sum. Do this in column D, and call it "Total Alkali".

Let's make a chart of the data set. The main thing to remember is that in science, you almost always want a scatter plot (sometimes called an "XY plot"). In business, you use all those other types, but science, not so much.

  1. Click on cell A2.
  2. Go to Insert > Chart (or Ribbon > Charts > Insert) and then you'll get a selection of chart types. Go all the way to Scatter. You do not want "line". You might think that line is what you want, but it's not (not for this, and hardly ever in science). You can still connect your points in a scatter plot should you need to.
  1. You will notice that you didn't get what you wanted; it plotted all your columns of data against SiO 2 , giving each a different symbol. Select the chart so it has a blue border and nothing inside the chart is highlighted (if you haven't clicked on anything since the chart appeared, it's already like this), and hit delete.

To get only the Total Alkali vs. SiO 2 , we have a few options, but the easiest is to put the two columns we wish to plot next to each other, with the horizontal-axis data (abscissa) on the left, and the vertical-axis data (ordinate) on the right. Select the whole SiO 2 column by clicking and dragging from the "SiO 2 " heading down to include the bottom data point (57.37). This makes a highlighted box.

  1. Move the cursor over the right edge of the highlighted box until it changes into a hand. Click and drag. Notice that the outline shows you where the drag will do if you drop it. Try to drop it onto the K 2 O column. It asks you if you want to replace the selected cells. Say "No", or "Cancel".

Drag the SiO 2 data again, but now hold down [Shift]. Now, instead of a box showing what cell you will be overwriting when you drop the data, it shows you with an "I" shape where it will shift the data to, scooting the other cells away to make room. Drag it so the "I" falls between columns C & D, and is in line vertically with the other data (so rows 1-16). Release the mouse, and there it is, right where we want it.

  1. Note that the calculated cells in the total alkalis column still work - their formulas have been altered to refer to the now-moved data.

Now that we have our data in place, let's try our chart again.

  1. Select both the SiO 2 and the Total Alkali columns, including the headings.
  2. Now insert a scatter chart as before.
  3. Because you had more than one cell selected, it doesn't select everything for you!
  4. You should now have 15 points all in the same style, with a legend that says "Total Alkali", and a chart title that also says "Total Alkali".
  1. We would like to be able to put the points for each of the three regions in a different style, and have a more meaningful legend.