





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






There are some very basic statistical concepts that every college educated person should understand. These are useful for understanding your grade distributions in classes here at UCSD, current events, and all manner of information in your lives. Because this isn't a math class, we are going to focus on the intuition and use of a very few of the most common statistical metrics.
Mean In most cases, when people say "Average", they are referring to the arithmetic mean. For a set of data points, the arithmetic mean or "Average" is the sum of those points divided by the number of points. For example, if we have points 4, 5, and 6, the mean is calculated as. This fits with most people's intuition of the word "Average". In this lab, we will use the words "mean" and "average" interchangeably, though Excel has only one function to calculate it: =average() Min/Max The min/max of a set of data points is fairly intuitive and needs no explanation. Excel has two functions: =min() and =max() Standard Deviation The standard deviation is one of the most commonly used statistics, and the least commonly understood by non-statisticians. While the mathematical definition is somewhat complicated, the basic intuition is that the standard deviation describes how wide-spread the data is - the bigger the spread, the higher the standard deviation. The size of the dataset also affects the standard deviation. If we only have a few numbers ranging between 1 and 10 for example, the standard deviation will likely be higher than if we have thousands of numbers ranging between 1 and 10. Example: A B 4, 5, 6, 5, 5 4, 1, 7, 11, 2
Both these sets A and B have an average of 5. But set A has a standard deviation of 0. while B has a standard deviation of 4.1.
Excel has a simple function to calculate the standard deviation of a set of points: =stdev()
CSE 3, Fall 2009
B. Download and Import the Data into Excel
We're going to be working with and analyzing a large dataset describing ocean temperatures in La Jolla collected automatically from a buoy over the last 8 years. Every hour, the buoy takes two temperature readings. Over the last 8 years, that adds up to a LOT of data!
Step 0: Create a Lab5 folder in your CSE folder.
Step 1: Go to http://cdip.ucsd.edu/?nav=historic&sub=data&stn=073&stream=p1&xyrmo=200907&xmap_id= to see a map of the San Diego area data buoys. Most of the buoys have been decommissioned and are no longer gathering data.
Step 2: Click on buoy number 100 in the upper left hand corner of your map. Select "pm download table" underneath "Monthly products" on the left-hand side of the next screen. You should now see a chart of all the information available from that buoy over the last 8 years by month. Click on the "All Data" link in the upper left-hand corner of the chart. This may take several minutes due to the enormous quantity of data.
Step 3: Once the data has finished downloading (you will be able to tell because you should see today's date as the very last entry) we need to save it.
Step 4: Now that we have the data saved in text format, we need to import it into Microsoft Excel. If you had tried to save directly into Excel, it would not have worked - it would have tried to save everything into a single column rather into many columns as we want it.
Step 3: We want this formula to be dragged down so it converts every temperature to Fahrenheit, but for hundreds of thousand of rows, you'd be at it all day. There is an easier way:
Step 4: The date information is broken up into three columns. It would be nice if we could get it to look like a "normal" date, i.e. 1/30/01 for the first entry.
Step 5: We now again have a bunch of extra data in our spreadsheet that we don't need. The problem is that if we simply delete columns that we don't want anymore, none of our formulas will work. We want to get rid of the formulas and just have values in all the columns so that we can delete those that we no longer need.
Step 6: Lets calculate some basic statistics about the data we have massaged so far.
D. Analyzing the Data
Now that we've got our data cleaned up a bit, let's start playing with it.
We'd like to create a graph of the Temperature over time, but right now we have more data points than Excel can chart. Besides, we don't need to have almost 50 datapoints per day! Let's take the average temperature for each day in our dataset instead.
Step 1:
Step 2: Now that we've got our daily averages, let's graph it!
Step 5: Now that you have a nice graph displaying average daily temperatures over a period of eight and a half years, let's look at some trendlines and see if we can see any effects of Global Warming in our Ocean Temperature data.
Excel has a number of different built-in methods to analyze data. We're going to use Linear Regression to create a trendline for our data. Trendlines can be used to understand existing data and to predict future data.
Can you see what is?
Step 6: Think about the day of the year that the data begins, and the day of the year that the data ends. Could that affect the trendline?