SlideShare a Scribd company logo
1 of 2
Download to read offline
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 regressionKeyur Tejani
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxDevendraRavindraPati
 
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.pptxManjulasingh17
 
Correlation and regression impt
Correlation and regression imptCorrelation and regression impt
Correlation and regression imptfreelancer
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and RegressionShubham Mehta
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxPatilDevendra5
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionpankaj8108
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionAntony Raj
 
Machine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionMachine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionKush Kulshrestha
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionAntony 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.docxbudbarber38650
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionSakthivel R
 
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 .docxheunice
 
Statistical Relationships
Statistical RelationshipsStatistical Relationships
Statistical Relationshipsmandrewmartin
 
Statisticalrelationships
StatisticalrelationshipsStatisticalrelationships
Statisticalrelationshipsmandrewmartin
 
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 herekeerthanakshatriya20
 

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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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 .pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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.pdfsuresh640714
 
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 .pdfsuresh640714
 
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 .pdfsuresh640714
 
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.pdfsuresh640714
 
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 .pdfsuresh640714
 

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

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

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.