Computer Project

Computer Project - Computer Project 1. The effect of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1. The effect of statistical variations on the quality of least squares fit. a. x = 0:.01:1 b. N5 = 5.*randn(1,101)…repeat for ER10, ER25, ER100 c. YN5 = Y + N5…repeat for ER10, ER25, ER100 d. ER5 = [5,5,5,…,5] (101 elements long)…repeat for ER10, ER25, ER100 e. -0.5 0 0.5 1 1.5 0 50 100 150 YN5 x Y + N 5 -0.5 0 0.5 1 1.5 -50 0 50 100 150 200 YN10 x Y + N 1 0 -0.5 0 0.5 1 1.5 -50 0 50 100 150 200 250 x Y + N 2 5 YN25 -0.5 0 0.5 1 1.5 -400 -200 0 200 400 600 x Y + N 1 0 0 YN100 line of best fit data line of best fit data data line of best fit data line of best fit y = 119x + 25.7 y = 125x + 21 y = 123x + 21 y = 130x + 20 f. YN5: m = 119 ± 1; b = 25.7 ± 0.9 YN10: m = 125 ± 3; b = 21 ± 2 YN25: m = 123 ± 8; b = 21 ± 5 YN100: m = 130 ± 30; b = 20 ± 20 Compared to the expected values of slope and intercept from the original definition of Y(x) = 120x + 25, all four cases are in good agreement since they are all within three standard deviations of the original equation. g.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/07/2008 for the course PHYS 122L taught by Professor Gougousi during the Spring '07 term at UMBC.

Page1 / 6

Computer Project - Computer Project 1. The effect of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online