SlideShare a Scribd company logo
2. If you have a nonlinear relationship between an independent variable x and a dependent
variable y, how can you apply the least -squares fit method? Does this work for all nonlinear
relationships? if not please give an example of a nonlinear equation where the fit method cannot
be used.(No need to use Matlab on this question).
Solution
A)The assumptions of linearity and additivity are both implicit in this specification. • Additivity
= assumption that for each IV X, the amount of change in E(Y) associated with a unit increase in
X (holding all other variables constant) is the same regardless of the values of the other IVs in
the model. That is, the effect of X1 does not depend on X2; increasing X1 from 10 to 11 will
have the same effect regardless of whether X2 = 0 or X2 = 1. • With non-additivity, the effect of
X on Y depends on the value of a third variable, e.g. gender. As we’ve just discussed, we use
models with multiplicative interaction effects when relationships are non-additive.
Linearity = assumption that for each IV, the amount of change in the mean value of Y associated
with a unit increase in the IV, holding all other variables constant, is the same regardless of the
level of X, e.g. increasing X from 10 to 11 will produce the same amount of increase in E(Y) as
increasing X from 20 to 21. Put another way, the effect of a 1 unit increase in X does not depend
on the value of X. • With nonlinearity, the effect of X on Y depends on the value of X; in effect,
X somehow interacts with itself. This is sometimes refered to as a self interaction. The
interaction may be multiplicative but it can take on other forms as well, e.g. you may need to
take logs of variables.
Dealing with Nonlinearity in variables. We will see that many nonlinear specifications can be
converted to linear form by performing transformations on the variables in the model. For
example, if Y is related to X by the equation E Yi Xi ( ) = + 2 and the relationship between the
variables is therefore nonlinear, we can define a new variable Z = X2 . The new variable Z is
then linearly related to Y, and OLS regression can be used to estimate the coefficients of the
model. There are numerous other cases where, given appropriate transformations of the
variables, nonlinear relationships can be converted into models for which coefficients can be
estimated using OLS. We’ll cover a few of the most important and common ones here, but there
are many others. Detecting nonlinearity and nonadditivity. The key question is whether the slope
of the relationship between an IV and a DV can be expected to vary depending on the context. •
The first step in detecting nonlinearity or nonadditivity is theoretical rather than technical. Once
the nature of the expected relationship is understood well enough to make a rough graph of it, the
technical work should begin. Hence, ask such questions as, can the slope of the relationship
between Xi and E(Y) be expected to have the same sign for all values of Xi? Should we expect
the magnitude of the slope to increase as Xi increases, or should we expect the magnitude of the
slope to decrease as Xi increases? • Can do scatterplots of the IV against the DV. Sometimes,
nonlinearity will be obvious. • Can often do incremental F tests or Wald tests like we have used
in other situations. Stata’s estat ovtest command can also be used in some cases; see below.
Types of nonlinearity 1. Polynomial models. Some variables have a curvilinear relationship with
each other. Increases in X initially produce increases in Y, but after a while subsequent increases
in X .
Polynomial models can estimate such relationships. A polynomial model can be appropriate if it
is thought that the slope of the effect of Xi on E(Y) changes sign as Xi increases. For many such
models, the relationship between Xi and E(Y) can be accurately reflected with a specification in
which Y is viewed as a function of Xi and one or more powers of Xi, as in Y X X X M X M = +
+ + + + + 1 1 2 1 2 3 1 3 1 ... The graph of the relationship between X1 and E(Y) consists of a
curve with one or more “bends”, points at which the slope of the curve changes signs. The
numbers of bends nearly always equals M - 1. For M = 2, the curve bends (changes sign) when
X1 = -b1/2b2. If this value appears within the meaningful range of X, the relationship is
nonmonotonic. If this value falls outside the meaningful range of X, the relationship appears
monotonic (i.e. Y always decreases or increases as X increases.) This model is easily estimated
— simply compute X2 = X12 , X3 = X13 , etc., and regress Y on these terms. (In practice, we
usually stop at M =2 or M = 3). Or, in Stata 11 or higher, use factor variables, e.g. c.x1#c.x1
(equivalent to X12 ), c.x1#c.x1#c.x1 (equivalent to X13 ). Example: In psychology, the Yerkes-
Dodson law predicts that the relationship between physiological arousal and performance will
follow an inverted U-shaped function, i.e. higher levels of arousal initially increase performance,
but after a certain level of arousal is achieved additional arousal decreases performance.
INTERPRETATION. When M = 2, the b1 coefficient indicates the overall linear trend (positive
or negative) in the relationship between X and Y across the observed data. The b2 coefficient
indicates the direction of curvature. If the relationship is concave upward, b2 is positive, if
concave downward b2 is negative. For example, a positive coefficient for X and a negative
coefficient for X2 cause the curve to rise initially and then fall. More generally, a polynomial of
order k will have a maximum of k-1 bends (k-1 points at which the slope of the curve changes
direction); for example, a cubic equation (which includes X, X2 , and X3 ) can have 2 bends.
Note that the bends do not necessarily have to occur within the observed values of the Xs.

More Related Content

Similar to 2. If you have a nonlinear relationship between an independent varia.pdf

correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Keyur Tejani
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
DevendraRavindraPati
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
Manjulasingh17
 
Co vand corr
Co vand corrCo vand corr
Co vand corr
Shehzad Rizwan
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression impt
freelancer
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Shubham Mehta
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
PatilDevendra5
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
pankaj8108
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
Antony Raj
 
Machine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionMachine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear Regression
Kush Kulshrestha
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
Antony Raj
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
budbarber38650
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
Sakthivel R
 
Correlation
CorrelationCorrelation
Correlation
Anjali Awasthi
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Ram Kumar Shah "Struggler"
 
Requirements.docxRequirementsFont Times New RomanI NEED .docx
Requirements.docxRequirementsFont Times New RomanI NEED .docxRequirements.docxRequirementsFont Times New RomanI NEED .docx
Requirements.docxRequirementsFont Times New RomanI NEED .docx
heunice
 
Statistical Relationships
Statistical RelationshipsStatistical Relationships
Statistical Relationships
mandrewmartin
 
Statisticalrelationships
StatisticalrelationshipsStatisticalrelationships
Statisticalrelationships
mandrewmartin
 
Assignment 01 riaz
Assignment 01 riazAssignment 01 riaz
ML-UNIT-IV complete notes download here
ML-UNIT-IV  complete notes download hereML-UNIT-IV  complete notes download here
ML-UNIT-IV complete notes download here
keerthanakshatriya20
 

Similar to 2. If you have a nonlinear relationship between an independent varia.pdf (20)

correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
 
Co vand corr
Co vand corrCo vand corr
Co vand corr
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression impt
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Machine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionMachine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear Regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Correlation
CorrelationCorrelation
Correlation
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Requirements.docxRequirementsFont Times New RomanI NEED .docx
Requirements.docxRequirementsFont Times New RomanI NEED .docxRequirements.docxRequirementsFont Times New RomanI NEED .docx
Requirements.docxRequirementsFont Times New RomanI NEED .docx
 
Statistical Relationships
Statistical RelationshipsStatistical Relationships
Statistical Relationships
 
Statisticalrelationships
StatisticalrelationshipsStatisticalrelationships
Statisticalrelationships
 
Assignment 01 riaz
Assignment 01 riazAssignment 01 riaz
Assignment 01 riaz
 
ML-UNIT-IV complete notes download here
ML-UNIT-IV  complete notes download hereML-UNIT-IV  complete notes download here
ML-UNIT-IV complete notes download here
 

More from suresh640714

JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdfJAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
suresh640714
 
In JavaWrite a program that reads a file and counts how many line.pdf
In JavaWrite a program that reads a file and counts how many line.pdfIn JavaWrite a program that reads a file and counts how many line.pdf
In JavaWrite a program that reads a file and counts how many line.pdf
suresh640714
 
Find the slope of the line passing through each pair of points or st.pdf
Find the slope of the line passing through each pair of points or st.pdfFind the slope of the line passing through each pair of points or st.pdf
Find the slope of the line passing through each pair of points or st.pdf
suresh640714
 
How does packet switching combine signals from different sourcesa.pdf
How does packet switching combine signals from different sourcesa.pdfHow does packet switching combine signals from different sourcesa.pdf
How does packet switching combine signals from different sourcesa.pdf
suresh640714
 
For the circuit and current waveform given in example 2 of lecture vi.pdf
For the circuit and current waveform given in example 2 of lecture vi.pdfFor the circuit and current waveform given in example 2 of lecture vi.pdf
For the circuit and current waveform given in example 2 of lecture vi.pdf
suresh640714
 
Epidemiology Scavenger HuntFind an example infectious disease for .pdf
Epidemiology Scavenger HuntFind an example infectious disease for .pdfEpidemiology Scavenger HuntFind an example infectious disease for .pdf
Epidemiology Scavenger HuntFind an example infectious disease for .pdf
suresh640714
 
Discuss the concept of breeder reactors. How do they breed fuel What.pdf
Discuss the concept of breeder reactors. How do they breed fuel What.pdfDiscuss the concept of breeder reactors. How do they breed fuel What.pdf
Discuss the concept of breeder reactors. How do they breed fuel What.pdf
suresh640714
 
Discuss botulism and the different types of toxins produced by the d.pdf
Discuss botulism and the different types of toxins produced by the d.pdfDiscuss botulism and the different types of toxins produced by the d.pdf
Discuss botulism and the different types of toxins produced by the d.pdf
suresh640714
 
Could please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdfCould please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdf
suresh640714
 
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdfConsider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
suresh640714
 
CommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdfCommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdf
suresh640714
 
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdfchoose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
suresh640714
 
Based on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdfBased on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdf
suresh640714
 
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdfB Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
suresh640714
 
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdfarMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
suresh640714
 
Answer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdfAnswer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdf
suresh640714
 
Andy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdfAndy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdf
suresh640714
 
A die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdfA die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdf
suresh640714
 
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdfA 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
suresh640714
 
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
suresh640714
 

More from suresh640714 (20)

JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdfJAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
JAVA helpNeed bolded lines fixed for it to compile. Thank you!pu.pdf
 
In JavaWrite a program that reads a file and counts how many line.pdf
In JavaWrite a program that reads a file and counts how many line.pdfIn JavaWrite a program that reads a file and counts how many line.pdf
In JavaWrite a program that reads a file and counts how many line.pdf
 
Find the slope of the line passing through each pair of points or st.pdf
Find the slope of the line passing through each pair of points or st.pdfFind the slope of the line passing through each pair of points or st.pdf
Find the slope of the line passing through each pair of points or st.pdf
 
How does packet switching combine signals from different sourcesa.pdf
How does packet switching combine signals from different sourcesa.pdfHow does packet switching combine signals from different sourcesa.pdf
How does packet switching combine signals from different sourcesa.pdf
 
For the circuit and current waveform given in example 2 of lecture vi.pdf
For the circuit and current waveform given in example 2 of lecture vi.pdfFor the circuit and current waveform given in example 2 of lecture vi.pdf
For the circuit and current waveform given in example 2 of lecture vi.pdf
 
Epidemiology Scavenger HuntFind an example infectious disease for .pdf
Epidemiology Scavenger HuntFind an example infectious disease for .pdfEpidemiology Scavenger HuntFind an example infectious disease for .pdf
Epidemiology Scavenger HuntFind an example infectious disease for .pdf
 
Discuss the concept of breeder reactors. How do they breed fuel What.pdf
Discuss the concept of breeder reactors. How do they breed fuel What.pdfDiscuss the concept of breeder reactors. How do they breed fuel What.pdf
Discuss the concept of breeder reactors. How do they breed fuel What.pdf
 
Discuss botulism and the different types of toxins produced by the d.pdf
Discuss botulism and the different types of toxins produced by the d.pdfDiscuss botulism and the different types of toxins produced by the d.pdf
Discuss botulism and the different types of toxins produced by the d.pdf
 
Could please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdfCould please answer those questions about North country movieHere.pdf
Could please answer those questions about North country movieHere.pdf
 
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdfConsider the equation 1 - 2x = sin x.  Use the Intermediate Value The.pdf
Consider the equation 1 - 2x = sin x. Use the Intermediate Value The.pdf
 
CommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdfCommunicationsEvery organization has its own unique “organization.pdf
CommunicationsEvery organization has its own unique “organization.pdf
 
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdfchoose the word that BEST fits each statement.A. stomachB. Esoph.pdf
choose the word that BEST fits each statement.A. stomachB. Esoph.pdf
 
Based on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdfBased on your new understanding of Master Data Management and how or.pdf
Based on your new understanding of Master Data Management and how or.pdf
 
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdfB Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
B Ann baked more pans of lasagna. Each pan was shared with a differen.pdf
 
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdfarMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
arMathAp11 6.3.021.Ask Your TeacherMy NotesHow much must be de.pdf
 
Answer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdfAnswer using basic programming beginner knowledge pls...........Othe.pdf
Answer using basic programming beginner knowledge pls...........Othe.pdf
 
Andy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdfAndy and Ben are going to play a final round of game 5 to determine .pdf
Andy and Ben are going to play a final round of game 5 to determine .pdf
 
A die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdfA die is rolled repeatedly until two consecutive rolls have the same .pdf
A die is rolled repeatedly until two consecutive rolls have the same .pdf
 
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdfA 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
A 70-kg individual drinks 2 Lday from a pond outside his house. Wha.pdf
 
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
4.2.4. Suppose we assume that X1, X2, . . . , Xn is a random sample .pdf
 

Recently uploaded

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 

Recently uploaded (20)

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 

2. If you have a nonlinear relationship between an independent varia.pdf

  • 1. 2. If you have a nonlinear relationship between an independent variable x and a dependent variable y, how can you apply the least -squares fit method? Does this work for all nonlinear relationships? if not please give an example of a nonlinear equation where the fit method cannot be used.(No need to use Matlab on this question). Solution A)The assumptions of linearity and additivity are both implicit in this specification. • Additivity = assumption that for each IV X, the amount of change in E(Y) associated with a unit increase in X (holding all other variables constant) is the same regardless of the values of the other IVs in the model. That is, the effect of X1 does not depend on X2; increasing X1 from 10 to 11 will have the same effect regardless of whether X2 = 0 or X2 = 1. • With non-additivity, the effect of X on Y depends on the value of a third variable, e.g. gender. As we’ve just discussed, we use models with multiplicative interaction effects when relationships are non-additive. Linearity = assumption that for each IV, the amount of change in the mean value of Y associated with a unit increase in the IV, holding all other variables constant, is the same regardless of the level of X, e.g. increasing X from 10 to 11 will produce the same amount of increase in E(Y) as increasing X from 20 to 21. Put another way, the effect of a 1 unit increase in X does not depend on the value of X. • With nonlinearity, the effect of X on Y depends on the value of X; in effect, X somehow interacts with itself. This is sometimes refered to as a self interaction. The interaction may be multiplicative but it can take on other forms as well, e.g. you may need to take logs of variables. Dealing with Nonlinearity in variables. We will see that many nonlinear specifications can be converted to linear form by performing transformations on the variables in the model. For example, if Y is related to X by the equation E Yi Xi ( ) = + 2 and the relationship between the variables is therefore nonlinear, we can define a new variable Z = X2 . The new variable Z is then linearly related to Y, and OLS regression can be used to estimate the coefficients of the model. There are numerous other cases where, given appropriate transformations of the variables, nonlinear relationships can be converted into models for which coefficients can be estimated using OLS. We’ll cover a few of the most important and common ones here, but there are many others. Detecting nonlinearity and nonadditivity. The key question is whether the slope of the relationship between an IV and a DV can be expected to vary depending on the context. • The first step in detecting nonlinearity or nonadditivity is theoretical rather than technical. Once the nature of the expected relationship is understood well enough to make a rough graph of it, the technical work should begin. Hence, ask such questions as, can the slope of the relationship
  • 2. between Xi and E(Y) be expected to have the same sign for all values of Xi? Should we expect the magnitude of the slope to increase as Xi increases, or should we expect the magnitude of the slope to decrease as Xi increases? • Can do scatterplots of the IV against the DV. Sometimes, nonlinearity will be obvious. • Can often do incremental F tests or Wald tests like we have used in other situations. Stata’s estat ovtest command can also be used in some cases; see below. Types of nonlinearity 1. Polynomial models. Some variables have a curvilinear relationship with each other. Increases in X initially produce increases in Y, but after a while subsequent increases in X . Polynomial models can estimate such relationships. A polynomial model can be appropriate if it is thought that the slope of the effect of Xi on E(Y) changes sign as Xi increases. For many such models, the relationship between Xi and E(Y) can be accurately reflected with a specification in which Y is viewed as a function of Xi and one or more powers of Xi, as in Y X X X M X M = + + + + + + 1 1 2 1 2 3 1 3 1 ... The graph of the relationship between X1 and E(Y) consists of a curve with one or more “bends”, points at which the slope of the curve changes signs. The numbers of bends nearly always equals M - 1. For M = 2, the curve bends (changes sign) when X1 = -b1/2b2. If this value appears within the meaningful range of X, the relationship is nonmonotonic. If this value falls outside the meaningful range of X, the relationship appears monotonic (i.e. Y always decreases or increases as X increases.) This model is easily estimated — simply compute X2 = X12 , X3 = X13 , etc., and regress Y on these terms. (In practice, we usually stop at M =2 or M = 3). Or, in Stata 11 or higher, use factor variables, e.g. c.x1#c.x1 (equivalent to X12 ), c.x1#c.x1#c.x1 (equivalent to X13 ). Example: In psychology, the Yerkes- Dodson law predicts that the relationship between physiological arousal and performance will follow an inverted U-shaped function, i.e. higher levels of arousal initially increase performance, but after a certain level of arousal is achieved additional arousal decreases performance. INTERPRETATION. When M = 2, the b1 coefficient indicates the overall linear trend (positive or negative) in the relationship between X and Y across the observed data. The b2 coefficient indicates the direction of curvature. If the relationship is concave upward, b2 is positive, if concave downward b2 is negative. For example, a positive coefficient for X and a negative coefficient for X2 cause the curve to rise initially and then fall. More generally, a polynomial of order k will have a maximum of k-1 bends (k-1 points at which the slope of the curve changes direction); for example, a cubic equation (which includes X, X2 , and X3 ) can have 2 bends. Note that the bends do not necessarily have to occur within the observed values of the Xs.