<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Multivariate_adaptive_regression_spline</id>
	<title>Multivariate adaptive regression spline - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Multivariate_adaptive_regression_spline"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Multivariate_adaptive_regression_spline&amp;action=history"/>
	<updated>2026-05-14T09:07:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Multivariate_adaptive_regression_spline&amp;diff=7049018&amp;oldid=prev</id>
		<title>imported&gt;Otr500: Move unsourced material and 2016 career maintenance tags, as well as the entire &quot;External links&quot; section for any possible discussion per WP:ELBURDEN.</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Multivariate_adaptive_regression_spline&amp;diff=7049018&amp;oldid=prev"/>
		<updated>2025-07-01T08:55:31Z</updated>

		<summary type="html">&lt;p&gt;Move unsourced material and 2016 career maintenance tags, as well as the entire &amp;quot;External links&amp;quot; section for any possible discussion per &lt;a href=&quot;/wiki143/index.php?title=WP:ELBURDEN&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:ELBURDEN (page does not exist)&quot;&gt;WP:ELBURDEN&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Non-parametric regression technique}}&lt;br /&gt;
In [[statistics]], &amp;#039;&amp;#039;&amp;#039;multivariate adaptive regression splines&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;&amp;#039;MARS&amp;#039;&amp;#039;&amp;#039;) is a form of [[regression analysis]] introduced by [[Jerome H. Friedman]] in 1991.&amp;lt;ref&amp;gt;{{Cite journal | last1 = Friedman | first1 = J. H. | doi = 10.1214/aos/1176347963 | title = Multivariate Adaptive Regression Splines | journal = The Annals of Statistics | volume = 19 | issue = 1 | pages = 1–67 | year = 1991 |mr=1091842 | zbl = 0765.62064 | jstor = 2241837| citeseerx = 10.1.1.382.970 }}&amp;lt;/ref&amp;gt; It is a [[non-parametric regression]] technique and can be seen as an extension of [[linear model]]s that automatically models nonlinearities and interactions between variables.&lt;br /&gt;
&lt;br /&gt;
The term &amp;quot;MARS&amp;quot; is trademarked and licensed to Salford Systems. In order to avoid trademark infringements, many open-source implementations of MARS are called &amp;quot;Earth&amp;quot;.&amp;lt;ref&amp;gt;[https://cran.r-project.org/web/packages/earth/index.html CRAN Package earth]&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://orange.biolab.si/blog/2011/12/20/earth-multivariate-adaptive-regression-splines/ Earth – Multivariate adaptive regression splines in Orange (Python machine learning library)]&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The basics ==&lt;br /&gt;
&lt;br /&gt;
This section introduces MARS using a few examples.  We start with a set of data: a matrix of input variables &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, and a vector of the observed responses &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, with a response for each row in &amp;#039;&amp;#039;x&amp;#039;&amp;#039;. For example, the data could be:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! &amp;#039;&amp;#039;x&amp;#039;&amp;#039;    !!  &amp;#039;&amp;#039;y&amp;#039;&amp;#039;    &lt;br /&gt;
|-&lt;br /&gt;
| 10.5 ||  16.4 &lt;br /&gt;
|-&lt;br /&gt;
| 10.7 ||  18.8 &lt;br /&gt;
|-&lt;br /&gt;
| 10.8 ||  19.7 &lt;br /&gt;
|-&lt;br /&gt;
| ...  ||  ...  &lt;br /&gt;
|-&lt;br /&gt;
| 20.6 ||  77.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here there is only one [[Dependent and independent variables|independent variable]], so the &amp;#039;&amp;#039;x&amp;#039;&amp;#039; matrix is just a single column. Given these measurements, we would like to build a model which predicts the expected &amp;#039;&amp;#039;y&amp;#039;&amp;#039; for a given &amp;#039;&amp;#039;x&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Friedmans mars linear model.png|frame|right|A linear model]]&lt;br /&gt;
A [[linear model]] for the above data is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
\widehat{y} = -37 + 5.1 x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The hat on the &amp;lt;math&amp;gt;\widehat{y}&amp;lt;/math&amp;gt; indicates that &amp;lt;math&amp;gt;\widehat{y}&amp;lt;/math&amp;gt; is estimated from the data.  The figure on the right shows a plot of this function: &lt;br /&gt;
a line giving the predicted &amp;lt;math&amp;gt;\widehat{y}&amp;lt;/math&amp;gt; versus &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, with the original values of &amp;#039;&amp;#039;y&amp;#039;&amp;#039; shown as red dots.&lt;br /&gt;
&lt;br /&gt;
The data at the extremes of &amp;#039;&amp;#039;x&amp;#039;&amp;#039; indicates that  the relationship between &amp;#039;&amp;#039;y&amp;#039;&amp;#039; and &amp;#039;&amp;#039;x&amp;#039;&amp;#039; may be non-linear (look at the red dots relative to the regression line at low and high values of &amp;#039;&amp;#039;x&amp;#039;&amp;#039;).  We thus turn to MARS to automatically build a model taking into account non-linearities.  MARS software constructs a model from the given &amp;#039;&amp;#039;x&amp;#039;&amp;#039; and &amp;#039;&amp;#039;y&amp;#039;&amp;#039; as follows&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
\widehat{y} = &amp;amp;\ 25 \\&lt;br /&gt;
&amp;amp; {} + 6.1 \max(0, x  - 13) \\&lt;br /&gt;
&amp;amp; {} - 3.1 \max(0, 13 - x)&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Friedmans mars simple model.png|frame|right|A simple MARS model of the same data]]&lt;br /&gt;
&lt;br /&gt;
The figure on the right shows a plot of this function: the predicted &amp;lt;math&amp;gt;\widehat{y}&amp;lt;/math&amp;gt; versus &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, with the original values of &amp;#039;&amp;#039;y&amp;#039;&amp;#039; once again shown as red dots.  The predicted response is now a better fit to the original &amp;#039;&amp;#039;y&amp;#039;&amp;#039; values.&lt;br /&gt;
&lt;br /&gt;
MARS has automatically produced a kink in the predicted &amp;#039;&amp;#039;y&amp;#039;&amp;#039; to take into account non-linearity. The kink is produced by &amp;#039;&amp;#039;hinge functions&amp;#039;&amp;#039;. The hinge functions are the expressions starting with &amp;lt;math&amp;gt;\max&amp;lt;/math&amp;gt; (where &amp;lt;math&amp;gt;\max(a,b)&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; if &amp;lt;math&amp;gt;a &amp;gt; b&amp;lt;/math&amp;gt;, else &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;). Hinge functions are described in more detail below.&lt;br /&gt;
&lt;br /&gt;
In this simple example, we can easily see from the plot that &amp;#039;&amp;#039;y&amp;#039;&amp;#039; has a non-linear relationship with &amp;#039;&amp;#039;x&amp;#039;&amp;#039; (and might perhaps guess that y varies with the square of &amp;#039;&amp;#039;x&amp;#039;&amp;#039;). However, in general there will be multiple [[Dependent and independent variables|independent variables]], and the relationship between &amp;#039;&amp;#039;y&amp;#039;&amp;#039; and these variables will be unclear and not easily visible by plotting. We can use MARS to discover that non-linear relationship.&lt;br /&gt;
&lt;br /&gt;
An example MARS expression with multiple variables is&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align}&lt;br /&gt;
  \mathrm{ozone} = &amp;amp;\ 5.2 \\&lt;br /&gt;
&amp;amp; {} + 0.93 \max(0, \mathrm{temp} - 58)  \\&lt;br /&gt;
&amp;amp; {} - 0.64 \max(0, \mathrm{temp} - 68)  \\&lt;br /&gt;
&amp;amp; {} - 0.046 \max(0,  234 - \mathrm{ibt})  \\&lt;br /&gt;
&amp;amp; {} - 0.016 \max(0, \mathrm{wind} - 7) \max(0, 200 - \mathrm{vis})&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
[[File:Friedmans mars ozone model.png|frame|right|Variable interaction in a MARS model]]&lt;br /&gt;
&lt;br /&gt;
This expression models air pollution (the ozone level) as a function of the temperature and a few other variables. Note that the last term in the formula (on the last line) incorporates an interaction between &amp;lt;math&amp;gt;\mathrm{wind} &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathrm{vis}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The figure on the right plots the predicted &amp;lt;math&amp;gt;\mathrm{ozone}&amp;lt;/math&amp;gt; as &amp;lt;math&amp;gt;\mathrm{wind}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathrm{vis}&amp;lt;/math&amp;gt; vary, with the other variables fixed at their median values. The figure shows that wind does not affect the ozone level unless visibility is low. We see that MARS can build quite flexible regression surfaces by combining hinge functions.&lt;br /&gt;
&lt;br /&gt;
To obtain the above expression, the MARS model building procedure automatically selects which variables to use (some variables are important, others not), the positions of the kinks in the hinge functions, and how the hinge functions are combined.&lt;br /&gt;
&lt;br /&gt;
== The MARS model ==&lt;br /&gt;
&lt;br /&gt;
MARS builds models of the form&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;\widehat{f}(x) = \sum_{i=1}^k c_i B_i(x). &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The model is a weighted sum of basis functions&lt;br /&gt;
&amp;lt;math&amp;gt;B_i(x)&amp;lt;/math&amp;gt;.&lt;br /&gt;
Each &amp;lt;math&amp;gt;c_i&amp;lt;/math&amp;gt; is a constant coefficient.&lt;br /&gt;
For example, each line in the formula for ozone above is one basis function&lt;br /&gt;
multiplied by its coefficient.&lt;br /&gt;
&lt;br /&gt;
Each [[basis function]] &amp;lt;math&amp;gt;B_i(x)&amp;lt;/math&amp;gt; takes one of the following three forms:&lt;br /&gt;
&lt;br /&gt;
1) a constant 1. There is just one such term, the intercept.&lt;br /&gt;
In the ozone formula above, the intercept term is 5.2.&lt;br /&gt;
&lt;br /&gt;
2) a &amp;#039;&amp;#039;hinge&amp;#039;&amp;#039; function. A hinge function has the form  &amp;lt;math&amp;gt; \max(0, x - \text{constant}) &amp;lt;/math&amp;gt; or  &amp;lt;math&amp;gt; \max(0, \text{constant} - x) &amp;lt;/math&amp;gt;. MARS automatically selects variables and values of those variables for knots of the hinge functions. Examples of such basis functions can be seen in the middle three lines of the ozone formula.&lt;br /&gt;
&lt;br /&gt;
3) a product of two or more hinge functions.&lt;br /&gt;
These basis functions can model interaction between two or more variables.&lt;br /&gt;
An example is the last line of the ozone formula.&lt;br /&gt;
&lt;br /&gt;
== Hinge functions ==&lt;br /&gt;
[[File:Friedmans mars hinge functions.png|frame|right|A mirrored pair of hinge functions with a knot at x=3.1]]&lt;br /&gt;
{{further|Hinge function}}&lt;br /&gt;
&lt;br /&gt;
A key part of MARS models are &amp;#039;&amp;#039;hinge functions&amp;#039;&amp;#039; taking the form&lt;br /&gt;
: &amp;lt;math&amp;gt;\max(0,x-c)&amp;lt;/math&amp;gt;&lt;br /&gt;
or &lt;br /&gt;
: &amp;lt;math&amp;gt;\max(0,c-x)&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; is a constant, called the &amp;#039;&amp;#039;knot&amp;#039;&amp;#039;.&lt;br /&gt;
The figure on the right shows a mirrored pair of hinge functions with a knot at 3.1.&lt;br /&gt;
&lt;br /&gt;
A hinge function is zero for part of its range, so  can be used to partition the data into disjoint regions, each of which can be treated independently. Thus for example a mirrored pair of hinge functions in the expression&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
6.1 \max(0, x  - 13)&lt;br /&gt;
- 3.1 \max(0, 13 - x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
creates the [[piecewise]] linear graph shown for the simple MARS model in the previous section.&lt;br /&gt;
&lt;br /&gt;
One might assume that only piecewise linear functions can be formed from hinge functions, but hinge functions can be multiplied together to form non-linear functions.&lt;br /&gt;
&lt;br /&gt;
Hinge functions are also called [[ramp function|ramp]], [[Ice hockey stick|hockey stick]], or [[Rectifier (neural networks)|rectifier]] functions. Instead of the &amp;lt;math&amp;gt;\max&amp;lt;/math&amp;gt; notation used in this article, hinge functions are often represented by &amp;lt;math&amp;gt;[\pm(x_i - c)]_+&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[\cdot]_+&amp;lt;/math&amp;gt; means take the positive part.&lt;br /&gt;
&lt;br /&gt;
== The model building process ==&lt;br /&gt;
{{see also|Stepwise regression}}&lt;br /&gt;
&lt;br /&gt;
MARS builds a model in two phases:&lt;br /&gt;
the forward and the backward pass.&lt;br /&gt;
This two-stage approach is the same as that used by &lt;br /&gt;
[[recursive partitioning]] trees.&lt;br /&gt;
&lt;br /&gt;
=== The forward pass ===&lt;br /&gt;
&lt;br /&gt;
MARS starts with a model which consists of just the intercept term&lt;br /&gt;
(which is the mean of the response values).&lt;br /&gt;
&lt;br /&gt;
MARS then repeatedly adds basis function in pairs to the model. At each step it finds the pair of basis functions that gives the maximum reduction in sum-of-squares [[Errors and residuals in statistics|residual]] error (it is a [[greedy algorithm]]). The two basis functions in the pair are identical except that a different side of a mirrored hinge function is used for each function. Each new basis function consists of a term already in the model (which could perhaps be the intercept term) multiplied by a new hinge function. A hinge function is defined by a variable and a knot, so to add a new basis function, MARS must search over all combinations of the following:&lt;br /&gt;
&lt;br /&gt;
1) existing terms (called &amp;#039;&amp;#039;parent terms&amp;#039;&amp;#039; in this context)&lt;br /&gt;
&lt;br /&gt;
2) all variables (to select one for the new basis function)&lt;br /&gt;
&lt;br /&gt;
3) all values of each variable (for the knot of the new hinge function).&lt;br /&gt;
&lt;br /&gt;
To calculate the coefficient of each term, MARS applies a linear regression over the terms.&lt;br /&gt;
&lt;br /&gt;
This process of adding terms continues until the change in residual error is too small to continue or until the maximum number of terms is reached. The maximum number of terms is specified by the user before model building starts.&lt;br /&gt;
&lt;br /&gt;
The search at each step is usually done in a [[Brute-force search|brute-force]] fashion, but a key aspect of MARS is that because of the nature of hinge functions, the search can be done quickly using a fast least-squares update technique. Brute-force search can be sped up by using a [[Heuristics|heuristic]] that reduces the number of parent terms considered at each step (&amp;quot;Fast MARS&amp;quot;&amp;lt;ref&amp;gt;[[Friedman, J. H.]] (1993) &amp;#039;&amp;#039;Fast MARS&amp;#039;&amp;#039;, Stanford University Department of Statistics, Technical Report 110&amp;lt;/ref&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
=== The backward pass ===&lt;br /&gt;
&lt;br /&gt;
The forward pass usually [[overfit|overfits]] the model. To build a model with better generalization ability, the backward pass prunes the model, deleting the least effective term at each step until it finds the best submodel. Model subsets are compared using the Generalized cross validation (GCV) criterion described below.&lt;br /&gt;
&lt;br /&gt;
The backward pass has an advantage over the forward pass: at any step it can choose any term to delete, whereas the forward pass at each step can only see the next pair of terms.&lt;br /&gt;
&lt;br /&gt;
The forward pass adds terms in pairs, but the backward pass typically discards one side of the pair and so terms are often not seen in pairs in the final model. A paired hinge can be seen in the equation for &amp;lt;math&amp;gt;\widehat{y}&amp;lt;/math&amp;gt; in the first MARS example above; there are no complete pairs retained in the ozone example.&lt;br /&gt;
&lt;br /&gt;
==== Generalized cross validation ====&lt;br /&gt;
{{further|Cross-validation (statistics)|Model selection|Akaike information criterion}}&lt;br /&gt;
&lt;br /&gt;
The backward pass compares the performance of different models using Generalized Cross-Validation (GCV), a minor variant on the [[Akaike information criterion]] that approximates the [[leave-one-out cross-validation]] score in the special case where errors are Gaussian, or where the squared error loss function is used. GCV was introduced by Craven and [[Grace Wahba|Wahba]] and extended by Friedman for MARS; lower values of GCV indicate better models. The formula for the GCV is&lt;br /&gt;
&lt;br /&gt;
: GCV = RSS / (&amp;#039;&amp;#039;N&amp;#039;&amp;#039; · (1 − (effective number of parameters) / &amp;#039;&amp;#039;N&amp;#039;&amp;#039;)&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
where RSS is the residual sum-of-squares measured on the training data and &amp;#039;&amp;#039;N&amp;#039;&amp;#039; is the number of observations (the number of rows in the &amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039; matrix).&lt;br /&gt;
&lt;br /&gt;
The effective number of parameters is defined as&lt;br /&gt;
&lt;br /&gt;
: (effective number of parameters) = (number of mars terms) + (penalty) · ((number of Mars terms) − 1 ) / 2&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;&amp;#039;penalty&amp;#039;&amp;#039;&amp;#039; is typically 2 (giving results equivalent to the [[Akaike information criterion]]) but can be increased by the user if they so desire.&lt;br /&gt;
&lt;br /&gt;
Note that &lt;br /&gt;
&lt;br /&gt;
: (number of Mars terms − 1 ) / 2&lt;br /&gt;
&lt;br /&gt;
is the number of hinge-function knots, so the formula penalizes the addition of knots. Thus the GCV formula adjusts (i.e. increases) the training RSS to penalize more complex models. We penalize flexibility because models that are too flexible will model the specific realization of noise in the data instead of just the systematic structure of the data.&lt;br /&gt;
&lt;br /&gt;
=== Constraints ===&lt;br /&gt;
&lt;br /&gt;
One constraint has already been mentioned: the user&lt;br /&gt;
can specify the maximum number of terms in the forward pass.&lt;br /&gt;
&lt;br /&gt;
A further constraint can be placed on the forward pass&lt;br /&gt;
by specifying a maximum allowable degree of interaction.&lt;br /&gt;
Typically only one or two degrees of interaction are allowed,&lt;br /&gt;
but higher degrees can be used when the data warrants it.&lt;br /&gt;
The maximum degree of interaction in the first MARS example&lt;br /&gt;
above is one (i.e. no interactions or an &amp;#039;&amp;#039;additive model&amp;#039;&amp;#039;); &lt;br /&gt;
in the ozone example it is two.&lt;br /&gt;
&lt;br /&gt;
Other constraints on the forward pass are possible.&lt;br /&gt;
For example, the user can specify that interactions are allowed &lt;br /&gt;
only for certain input variables.&lt;br /&gt;
Such constraints could make sense because of knowledge&lt;br /&gt;
of the process that generated the data.&lt;br /&gt;
&lt;br /&gt;
== Pros and cons ==&lt;br /&gt;
*MARS models are simple to understand and interpret.&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Cite book|title=Applied Predictive Modeling|last1=Kuhn|first1=Max|last2=Johnson|first2=Kjell|date=2013|publisher=Springer New York|isbn=9781461468486|location=New York, NY|language=en|doi=10.1007/978-1-4614-6849-3}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
*MARS can handle both continuous and [[categorical data]].&amp;lt;ref&amp;gt;{{cite book | last=Friedman | first=Jerome H. | chapter=Estimating Functions of Mixed Ordinal and Categorical Variables Using Adaptive Splines | author-link=Friedman, J. H.|year=1993|title=New Directions in Statistical Data Analysis and Robustness |editor=Stephan Morgenthaler |editor2=Elvezio Ronchetti |editor3=Werner Stahel|publisher=Birkhauser}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;Friedman 1991&amp;quot;&amp;gt;{{cite journal | last=Friedman | first=Jerome H. | title=Estimating Functions of Mixed Ordinal and Categorical Variables Using Adaptive Splines | website=DTIC | date=1991-06-01 | url=https://apps.dtic.mil/sti/citations/ADA590939 | archive-url=https://web.archive.org/web/20220411085148/https://apps.dtic.mil/sti/citations/ADA590939 | url-status=live | archive-date=April 11, 2022 | access-date=2022-04-11}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
*MARS (like recursive partitioning) does automatic [[Feature selection|variable selection]] (meaning it includes important variables in the model and excludes unimportant ones). However, there can be some arbitrariness in the selection, especially when there are correlated predictors, and this can affect interpretability.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
*Building MARS models often requires little or no data preparation.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
* [https://web.stat.tamu.edu/~bmallick/wileybook/book_code.html Code] from the book &amp;#039;&amp;#039;Bayesian Methods for Nonlinear Classification and Regression&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;{{cite book |last1=Denison |first1=D. G. T. |last2=Holmes |first2=C. C. |last3=Mallick |first3=B. K. |last4=Smith |first4=A. F. M. |title=Bayesian methods for nonlinear classification and regression |date=2002 |publisher=Wiley |location=Chichester, England |isbn=978-0-471-49036-4}}&amp;lt;/ref&amp;gt; for Bayesian MARS.&lt;br /&gt;
&lt;br /&gt;
== Extensions and related concepts ==&lt;br /&gt;
* [[Generalized linear model]]s (GLMs) can be incorporated into MARS models by applying a link function after the MARS model is built. Thus, for example, MARS models can incorporate [[logistic regression]] to predict probabilities.&lt;br /&gt;
* [[Nonlinear regression|Non-linear regression]] is used when the underlying form of the function is known and regression is used only to estimate the parameters of that function. MARS, on the other hand, estimates the functions themselves, albeit with severe constraints on the nature of the functions. (These constraints are necessary because discovering a model from the data is an [[inverse problem]] that is not [[Well-posed problem|well-posed]] without constraints on the model.)&lt;br /&gt;
* [[Recursive partitioning]] (commonly called CART). MARS can be seen as a generalization of recursive partitioning that allows for continuous models, which can provide a better fit for numerical data.&lt;br /&gt;
* [[Generalized additive model]]s. Unlike MARS, GAMs fit smooth [[Local regression|loess]] or polynomial [[Spline (mathematics)|splines]] rather than hinge functions, and they do not automatically model variable interactions. The smoother fit and lack of regression terms reduces variance when compared to MARS, but ignoring variable interactions can worsen the bias.&lt;br /&gt;
* [[TSMARS]]. Time Series Mars is the term used when MARS models are applied in a time series context. Typically in this set up the predictors are the lagged time series values resulting in autoregressive spline models. These models and extensions to include moving average spline models are described in &amp;quot;Univariate Time Series Modelling and Forecasting using TSMARS: A study of threshold time series autoregressive, seasonal and moving average models using TSMARS&amp;quot;.&lt;br /&gt;
* [[Bayesian MARS]] (BMARS) uses the same model form, but builds the model using a Bayesian approach. It may arrive at different optimal MARS models because the model building approach is different. The result of BMARS is typically an ensemble of posterior samples of MARS models, which allows for probabilistic prediction.&amp;lt;ref&amp;gt;{{cite journal |last1=Denison |first1=D. G. T. |last2=Mallick |first2=B. K. |last3=Smith |first3=A. F. M. |title=Bayesian MARS |journal=Statistics and Computing |date=1 December 1998 |volume=8 |issue=4 |pages=337–346 |doi=10.1023/A:1008824606259 |s2cid=12570055 |url=https://link.springer.com/content/pdf/10.1023/A:1008824606259.pdf |language=en |issn=1573-1375}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Linear regression]]&lt;br /&gt;
* [[Local regression]]&lt;br /&gt;
* [[Rational function modeling]]&lt;br /&gt;
* [[Segmented regression]]&lt;br /&gt;
* [[Spline interpolation]]&lt;br /&gt;
* [[Spline regression]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
* Hastie T., Tibshirani R., and Friedman J.H. (2009) [http://www-stat.stanford.edu/~tibs/ElemStatLearn &amp;#039;&amp;#039;The Elements of Statistical Learning&amp;#039;&amp;#039;], 2nd edition. Springer, {{ISBN|978-0-387-84857-0}} (has a section on MARS)&lt;br /&gt;
* Faraway J. (2005) [http://www.maths.bath.ac.uk/~jjf23 &amp;#039;&amp;#039;Extending the Linear Model with R&amp;#039;&amp;#039;], CRC, {{ISBN|978-1-58488-424-8}} (has an example using MARS with R)&lt;br /&gt;
* Heping Zhang and Burton H. Singer (2010) [https://www.amazon.com/Recursive-Partitioning-Applications-Springer-Statistics/dp/1441968237 &amp;#039;&amp;#039;Recursive Partitioning and Applications&amp;#039;&amp;#039;], 2nd edition. Springer, {{ISBN|978-1-4419-6823-4}} (has a chapter on MARS and discusses some tweaks to the algorithm)&lt;br /&gt;
* Denison D.G.T., Holmes C.C., Mallick B.K., and Smith A.F.M. (2004) [http://www.stat.tamu.edu/~bmallick/wileybook/book_code.html &amp;#039;&amp;#039;Bayesian Methods for Nonlinear Classification and Regression&amp;#039;&amp;#039;], Wiley, {{ISBN|978-0-471-49036-4}}&lt;br /&gt;
* Berk R.A. (2008) &amp;#039;&amp;#039;Statistical learning from a regression perspective&amp;#039;&amp;#039;, Springer, {{ISBN|978-0-387-77500-5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Nonparametric regression]]&lt;br /&gt;
[[Category:Machine learning]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Otr500</name></author>
	</entry>
</feed>