Docsity

ASEN 2001 Lab 1: Statistics and Computing - Fall 2006, Lab Reports of Dynamics

Toggle sidebar
bg1
ASEN 2001 Exper imental Lab 1 Description, updated 8/29/06
1
ASEN 2001 Lab 1: Statistics and Computing – Fall 2006
1. Summary
The first experimental lab will refresh your MATLAB programming sk ills and introduce some basic
experimental methods including statistical analysis. In any measurement or experiment, it is important to be
aware of the uncert ainty involved. One way to quantify uncertainty is to r epeat a given me asurement
process a number of times and measure how much variation there is in the results.
On the first day of the lab, you will work with your group to develop some basic MATLAB statistical
analysis functions and try them out on some fabricated data. On the second day of the lab, you will measure
the tensile strength of a number of m aterial specimens and examine the statistics of your data. Group lab
reports are due before lecture on Sep tember 12.
Note: If this happens to be your first exposure to MATLAB, we recomm end reading through the ā€œGetting
Startedā€ portion of MATLAB’s help system outside of class. The follow ing sections will be particularly
useful early on: Introduction, Matrices and Arrays, Gr aphics, and Programming.
2. Logistics
Group assignments will be provided by your lab section’s TA at the b eginning of your sections. These
groups will be rotated over the course of the semester. If you are unable to complete the computational
portion of the lab on the first day, you will need to fini sh it prior to the se cond.
Monday
Tuesday
Wednesday
Thursday
Friday
Aug 28
Lab safety lectures
at 10:00 or 1:00
Aug 29
Aug 30
Lab 1, Part 1
Aug 31
Sept 1
Sept 4
Labor Day – no
labs
Sept 5
Sept 6
Lab 2, Part 2
Sept 7
Sept 8
Sept 11
Begin Lab 2:
Design of a Space
Tether
Sept 12
Lab 1 report due
before class
Sept 13
Begin Lab 3:
Equilibrium of a
Space Truss
Sept 14
Sept 15
3. Part 1: Statistical Analysis in MATLAB
Step 1: Download the Errors.mat data file from the WebCT site and lo ad it into MATLA B’s workspace.
The variables are: t, y1, y2, y3, and y4. t is time in seconds for all 4 series and y1-y4 are the measurements
in cm for 4 differen t experiments. The measurements have had a model r emoved, so that wh at is left is the
"residual" or "error." We generally as sume that errors are normally distributed. This means the errors
should be distribut ed about their expected value (zero in this case) such that their histogram has a nominal
ā€œbell curveā€ shape as shown below.
pf3
pf4
pf5

Partial preview of the text

Download ASEN 2001 Lab 1: Statistics and Computing - Fall 2006 and more Lab Reports Dynamics in PDF only on Docsity!

ASEN 2001 Lab 1: Statistics and Computing – Fall 2006

1. Summary

The first experimental lab will refresh your MATLAB programming skills and introduce some basic experimental methods including statistical analysis. In any measurement or experiment, it is important to be aware of the uncertainty involved. One way to quantify uncertainty is to repeat a given measurement process a number of times and measure how much variation there is in the results. On the first day of the lab, you will work with your group to develop some basic MATLAB statistical analysis functions and try them out on some fabricated data. On the second day of the lab, you will measure the tensile strength of a number of material specimens and examine the statistics of your data. Group lab reports are due before lecture on September 12. Note: If this happens to be your first exposure to MATLAB, we recommend reading through the ā€œGetting Startedā€ portion of MATLAB’s help system outside of class. The following sections will be particularly useful early on: Introduction, Matrices and Arrays, Graphics, and Programming.

2. Logistics

Group assignments will be provided by your lab section’s TA at the beginning of your sections. These groups will be rotated over the course of the semester. If you are unable to complete the computational portion of the lab on the first day, you will need to finish it prior to the second. Monday Tuesday Wednesday Thursday Friday Aug 28 Lab safety lectures at 10:00 or 1: Aug 29 Aug 30 Lab 1, Part 1 Aug 31 Sept 1 Sept 4 Labor Day – no labs Sept 5 Sept 6 Lab 2, Part 2 Sept 7 Sept 8 Sept 11 Begin Lab 2: Design of a Space Tether Sept 12 Lab 1 report due before class Sept 13 Begin Lab 3: Equilibrium of a Space Truss Sept 14 Sept 15

3. Part 1: Statistical Analysis in MATLAB

Step 1: Download the Errors.mat data file from the WebCT site and load it into MATLAB’s workspace. The variables are: t, y1, y2, y3, and y4. t is time in seconds for all 4 series and y1-y4 are the measurements in cm for 4 different experiments. The measurements have had a model removed, so that what is left is the "residual" or "error." We generally assume that errors are normally distributed. This means the errors should be distributed about their expected value (zero in this case) such that their histogram has a nominal ā€œbell curveā€ shape as shown below.

The x-axis errors shown above are given in standard deviations. The y-axis label is the number of occurrences (or values) in each bin of the histogram. In a normalized (Gaussian) distribution:

  • 68% of the observation errors should fall within 1 standard deviation of the mean
  • 95% of the observation errors should fall within 2 standard deviations of the mean
  • 99.7% of the observation errors should fall within 3 standard deviations of the mean. Thus, for a normal distribution, almost all values lie within 3 standard deviations of the mean. If you have values that deviate from this distribution, these may be considered outliers and are generally removed before you report your mean and standard deviation. If you find yourself removing a large number of outliers, that usually means your model is not very good. Step 2: Write a function that takes as input the errors (observations y ) and provides four outputs:
  • The number of observations
  • The mean (mean)
  • The standard deviation (std)
  • The normalized errors , i.e. (y-mean(y))/standard_deviation(y) Step 3: For y1, y2 , and y3 : Write a script that calls your statistics function and prints the number of observations, mean, and standard deviation in a table using disp and sprintf. Mean and standard deviation should have precision to at least 3 decimal points. The table should be formatted something like: Col1 Col2 Col3 Col Row 1 X X X Row 2 X X X Row 3 X X X Also have the script plot your data vs. t using subplot, i.e. subplot(3,1,1) for y1 , subplot(3,1,2) for y2 , subplot(3,1,3) for y3. Use a symbol for your data - not a line. Make sure that your plots have the same x and y limits (use axis ). Also be sure to include axis labels and a title as shown above. Next, have the script plot a histogram (using hist, i.e. if you want a histogram of data x , type hist(x) ) for each data set using the normalized values, making sure the axes are the same. Use subplot again so that you will be able to fit all three histograms onto one page. Step 4: For y4, add the following tasks to your script: Call your statistics function and add the results to your table. Create a new plot with three subplots: subplot(3,1,1) – y4 vs. t

4.2. Experimental Procedure You will be measuring the tensile strength of two different metal wire specimens with the apparatus illustrated in Figure 4.1. A digital scale will be used to measure the force on at least 15 specimens of each type of wire, yielding a minimum of 30 data points. Figure 4.1: Tensile test apparatus The basic test procedure is as follows:

  1. Make sure all group members are wearing protective eyewear. Complement each other on your keen fashion sense.
  2. Attach the fixed end of the scale to the mounting bracket on top of the 80/20 extrusion using the small quick links provided in the manner shown by Figure 4.1.
  3. Cut an 18 inch length (approximate) of the first wire specimen you intend to use.
  4. Insert the specimen through the small hole in the notch of the U-Bolt Wire Interface, so that approximately one-half inch comes through to the other side.
  5. Bend this extra one-half inch so that it runs parallel with the length of the tube and then wrap the specimen twice around the tube, keeping all the wrappings in the notch. This can be seen in Figure 4.2 below.

Scale

U-Bolt Wire

Interface

Wire Specimen

Lever

Figure 4.2: Proper Wire Specimen Attachment

  1. With the lever approximately in the position shown above, insert the opposite end of the specimen through the small hole at the base of the lever so that one-half inch comes through the other side. Again, bend the extra wire up the length of the lever and wrap it around the lever twice.
  2. Interlock the J-hook on the end of the scale with the U-Bolt clamp (with wire specimen still attached). You may adjust the specimen length as necessary, but it should be approximately 4- 6 inches long from the U-bolt interface to the lever.
  3. With slack in the specimen(no tension applied), power on the scale and ā€˜tare’ it to zero.
  4. Use the lever in a manner to tension and eventually break the wire specimen, paying close attention to the highest recorded force. Record this force in your lab notebook. Also make quantitative observations of the test (Was the specimen brittle? Ductile? Did you move the lever fast or slow?, etc…)
  5. Repeat steps 3 through 9 as necessary. Record the data initially in one or more group member’s lab notebooks. Another group member may want to continually add this data to your MATLAB workspace as you go. If you complete the initial 15 measurements and have more than 20 minutes remaining in the lab period, make as many as 5 additional measurements for each material. With 20 minutes left in the lab period, move on to data analysis. 4.3. Data Analysis Create MATLAB variables with each of your four data sets (preferably as you acquire data) and write a new data analysis script which does the following:
  6. Use your Part 1 statistics function to analyze each data set.
  7. Create a table similar to that from Part 1 with # of samples, mean load, and standard deviation for each data set.
  8. Use subplot to create a 2x2 layout of histograms of your original data.
  9. Use subplot to create a 2x2 layout of histograms of your normalized data. Finally, get the TA’s or instructor’s help in calibrating each scale you used. Consider and discuss with your group:
  • What do these results imply about the precision and/or accuracy of your measurements?

Addendum I - Report Grading

The score assigned to the lab report includes technical content (65%) and presentation (35%). This is a more detailed breakdown of the weights: Category Weight Score Contribution Abstract 0. Introduction 0. Experimental Apparatus/Procedure

Results 0. Discussion 0. Conclusions 0. Organization 0. Flow 0. Style 0. Grammar 0. Spelling and typos 0. Referencing 0. Total 1. ā€œFlowā€ measures smoothness of reading from start to finish and correlation of material from section to section, as well as adherence to guidelines of technical writing. The score within each category ranges from 0 to 100%. For example if the score for ā€œtheoretical analysisā€ is 80%, it contributes 0_._ 15 x 80% = 12% to the overall score.