This document helps you understand polyfitn

© All Rights Reserved

23 views

This document helps you understand polyfitn

© All Rights Reserved

- LDS Coursenotes
- UT Dallas Syllabus for eco4355.001.07s taught by Daniel Obrien (obri)
- Approach for Fatigue Load Monitoring Without Load Measurement Devices EWEC2009
- granger.1974
- 19-19-1-PB (1)
- Intro to ACM
- 44704606
- Corrosion&Materials
- Auditor Client Relationship
- Algorithm for Raman Backward Pumping
- Mejora en la calidad de las estrategias para niños con asma
- Review Statistical Software
- Basic Linear Regression
- Download Unit 4 GB513 Business Analytics
- joibritneypdf.pdf
- EIB 504 Course Outline
- STUDY PLAN SEM 2.pdf
- Personality, Social Background, And Occupational
- gov2000-14f-syllabus
- Chart i Er Bracket Ology

You are on page 1of 4

John R. D'Errico

woodchips@rochester.rr.com

8/8/06

Regression modeling

polynomial regression model using traditional linear least squares

techniques, with some care applied in the solution. The method chosen

for its solution is one that also yields standard errors for the

coefficients.

Draper, N.R., Smith, H.; "Applied Regression Analysis"; John Wiley &

Sons

Care has been taken in the numerical methods of polyfitn, first by use

of a QR factorization with pivoting to solve the system. This is more

stable than the simple, unpivoted QR. I've also used automatic variable

scaling to deal with a simple cause of ill-conditioning.

specified, the estimation procedure is itself rather simple. The problem

becomes that of estimation of the vector x, given the linear system of

equations

A*x = y

should be both nonsingular and have more rows than columns.

Problems with fewer rows than columns are called underdetermined.

I'd strongly recommend that you get more data if there are fewer data

points than parameters to estimate.

So, assuming that A is an nxp matrix, with n>p, we can solve this

system via many different approaches in Matlab. I'll outline the method

I chose, as well as what I've done to assure the the best parameter

estimates possible.

linear regression model are

- Backslash (\)

- PINV

- LSQR

- The normal equations, i.e., x = (A' * A)\(A' * y)

- QR decomposition

- Pivoted QR decomposition

directly yield estimated variances for the parameters. A pivoted QR is

also reasonably efficient, as well as numerically stable, so I chose this

method.

Given the design matrix A in the above expression, the first task is to

scale it so that all columns have unit mean. While I'd like to introduce

a shift also for the best possible estimates, this is not possible for a

general multinomial model, as it may introduce additional terms into

the model. For example, suppose the polynomial model we must

estimate is

y = a1*x + a2*x^2

then we have implicitly inserted a constant term into the model which

was not requested. So all that is done is a scaling of the matrix A.

Essentially, we solve the problem

A*D*inv(D)*x = y

D = diag(1./mean(A,1));

If we write

z = inv(D)*x

(A*D)*z = y

dependent columns in A. I'll use an extreme example to illustrate what

might happen otherwise. Consider an under-determined linear

regression problem:

n = 50;

X = randn(n,3);

X = X(:,[1 2 2 3]);

Note that the third column is actually just a copy of the second

column. Now, generate Y as the simple sum of columns [1 2 4] of X.

Y = X*[1;1;0;1] + randn(n,1)/100000;

Can we estimate

this array corresponds to an independent variable. If a vector,

- A vector of dependent variable values.

- A model specification

- LDS CoursenotesUploaded bymir emmett
- UT Dallas Syllabus for eco4355.001.07s taught by Daniel Obrien (obri)Uploaded byUT Dallas Provost's Technology Group
- Approach for Fatigue Load Monitoring Without Load Measurement Devices EWEC2009Uploaded bymartina
- granger.1974Uploaded byChristiaan267
- 19-19-1-PB (1)Uploaded byAnonymous koR9Vtf
- Intro to ACMUploaded byAaisha Nazreen
- 44704606Uploaded byekoapriliady
- Corrosion&MaterialsUploaded bysaeid59
- Auditor Client RelationshipUploaded byekka_molly
- Algorithm for Raman Backward PumpingUploaded byBharath Lagishetty
- Mejora en la calidad de las estrategias para niños con asmaUploaded byBarbara Carrasco Ortega
- Review Statistical SoftwareUploaded byputatma_win
- Basic Linear RegressionUploaded byOpus Yen
- Download Unit 4 GB513 Business AnalyticsUploaded bySolutionZIP
- joibritneypdf.pdfUploaded byBạch Hạc
- EIB 504 Course OutlineUploaded bySajib Jahan
- STUDY PLAN SEM 2.pdfUploaded byamirchill
- Personality, Social Background, And OccupationalUploaded byDan Spitaru
- gov2000-14f-syllabusUploaded byAdmir Meskovic
- Chart i Er Bracket OlogyUploaded byAnonymous901
- Predict the v and Depth of Lake 2011Uploaded byPrince Sultan
- UNDERSTANDING LEAST ABSOLUTE VALUE IN REGRESSION-BASED DATA MININGUploaded byLewis Torres
- 769_SarabonUploaded byDavid Berge
- Bragangca Et Al. (2015) Quality of GovernmentUploaded byLykah Honra
- GreyAtom FSDSE Brochure.pdfUploaded bymoronkreacionz
- Midterm 2010 SolutionsUploaded byErico Archeti
- Pertemuan 2 RegresiUploaded byHamdan Yuafi
- StandardizeUploaded bydiansyah dwi
- Intuitive Biostatistics & Normality test & sample.pdfUploaded bydewi
- LinRegFn.docUploaded byRyan Jake Orge

- Nafion PropertiesUploaded byTerry Ligard
- (1996) Influence of Hydrogen Addition to Fuel on Temperature Field and Soot Formation in Diffusion FlamesUploaded byTerry Ligard
- (2008) Improving Accuracy in Calculating NOx Emissions From Gas FlaringUploaded byTerry Ligard
- Apostila Smath StudioUploaded byRicardo Rabelo
- Graphs Basics 10152010Uploaded byDomenico Verbicaro
- Technical Mathematica Seminar NotesUploaded byCody Orazymbet
- Intro MathematicaUploaded byaromero888
- Descr Flaming ProjectilesUploaded byTerry Ligard
- Readme_Kingdoms.txtUploaded byFedericoHC
- Chapter 26 Review QuestionsUploaded byTerry Ligard
- (1913) Burner for Combustible GasesUploaded byTerry Ligard
- THE REDUCTION OF UPSTREAM GREENHOUSE GAS EMISSIONS FROM FLARING AND VENTINGUploaded byTerry Ligard
- Chapter 10 questionsUploaded byTerry Ligard
- Chapter 9 QuestionsUploaded byTerry Ligard
- Chapter 8Uploaded byTerry Ligard
- Business Law ReviewUploaded byTerry Ligard
- Business Law Chapter ReviewUploaded byTerry Ligard
- Chapter 1 questions for businessUploaded byTerry Ligard
- Chapter 17 Questions for ReviewUploaded byTerry Ligard
- Business Law Chapter End ReviewUploaded byTerry Ligard
- Chapter 11Uploaded byTerry Ligard
- Chapter 15 Review QuestionsUploaded byTerry Ligard
- FE Review Manual TOCUploaded byTerry Ligard

- average apsUploaded byHarish Aravind
- Rev 6Uploaded byBen Ten
- HCOL meeting CMS 1106.0647: by Grisha KirilinUploaded byGrisha
- A Framework to Prethink in Quantitative Predictive Argument1Uploaded byBhagath Gottipati
- Nastran Advanced DynamicsUploaded byanon_173559594
- 2006 Mathematics HSC ExamUploaded bylimit2010m
- Does Weather Actually Affect Tipping? an Empirical Analysis of Time-Series DataUploaded byCarlos Rivera
- Holland 1992Uploaded byPobesnelimrmot
- Class NotesUploaded byHabib Mrad
- Polytechinic Paper - 2015 (English)Uploaded byMadhu Mahesh Raj
- 20030013626 - CópiaUploaded byAlexandra Monteiro
- 72498_05Uploaded byHai Hai
- Project Management ExamUploaded byIrfan Muhammad
- Electromagnetic FieldUploaded byThomas Scott
- Mac ExercisesUploaded bying_ing84
- AppliedRegression_StataUploaded bySikhulile Moyo
- SpaceClaim2012Plus_SP1_UsersGuideUploaded byYury
- Ferguson T.S. Game sUploaded bymindflores
- (Mg,Al) CA Zn Systems Rahman 2008Uploaded by김강형
- 2015JEEMAINSTEST-2Uploaded bySwapan Kumar Majumdar
- Shooting ProofUploaded bypathanshamsheerkhan
- Unit 6 AnswersUploaded byalicenuoli
- Boiler Study Guide Class5Uploaded bycarlos
- GFK K.pusczak-sample Size in Customer Surveys_paperUploaded byVAlentino AUrish
- Herbert Simon Model of Decision MakingUploaded bySachin Raikar
- 67180098 Derivative Markets SolutionsUploaded bynk7350
- FuelFlowSID97 3E Turbo NotesUploaded byCTN2010
- C Language MCQ Bank.pdfUploaded bybheemsinghsaini
- Adams - Hash Joins OracleUploaded byrockerabc123
- Markov ProcessUploaded byDestiny Rules