Data: (1,3), (2,1), (4,-2) - PowerPoint PPT Presentation

About This Presentation
Title:

Data: (1,3), (2,1), (4,-2)

Description:

Lecture 22: Least Squares %Example of Least Squares with polyfit and polyval. x0=[-1 0 1 3 4] ... Find least square fit of data. x0=[-1 0 1 3 5]; y0=[2 0 -1 -2 -4] ... – PowerPoint PPT presentation

Number of Views:11
Avg rating:3.0/5.0
Slides: 4
Provided by: p94
Learn more at: https://math.unm.edu
Category:
Tags: data

less

Transcript and Presenter's Notes

Title: Data: (1,3), (2,1), (4,-2)


1
Lecture 22 Least Squares
Data (1,3), (2,1), (4,-2) Model yab t a9/2
b-23/14 r2 14(-1/2)
2
Download leastsquareexamp.m
Example of Least Squares with polyfit and
polyval x0-1 0 1 3 4 y02 0 0 -2
-2 cpolyfit(x0,y0,2) x-10.014 ypolyval(c,
x) plot(x0,y0,'o',x,y)
3
Inclass
Find least square fit of data x0-1 0 1 3
5 y02 0 -1 -2 -4 To cubic polynomial
f(t)abtct2dt3
Write a Comment
User Comments (0)
About PowerShow.com