CurveFitting
Lowess
produces lowess smoothed functions
Calling Sequence
Parameters
Description
Examples
Compatibility
Lowess(xydata, opts)
Lowess(xdata, ydata, opts)
xydata
-
list, listlist, Array, DataFrame, or Matrix of the form x0,1,x0,2,…,x0,M−1,y0,x1,1,x1,2,…,x1,M−1,y1,…,xN,1,xN,2,…,xN,M−1,yN; data points of M dimensions
xdata
list, listlist, Array, DataSeries, or Matrix of the form x0,1,x0,2,…,x0,M−1,x1,1,x1,2,…,x1,M−1,…,xN,1,xN,2,…,xN,M−1; independent values of data points of M dimensions
ydata
list, Array, DataSeries, or Vector of the form y1,y2,…,yN; dependent values of data points
opts
(optional) one or more equations of the form fitorder=n, bandwidth=r, or iters=nonnegint
The Lowess command creates a function whose values represent the result of the lowess data smoothing algorithm applied to the input data.
This command calls Statistics[Lowess]. See its help page for more examples and a detailed description.
with⁡Statistics:
Create a data sample and apply to it some error.
X≔Sample⁡Uniform⁡0,π,200
Yerror≔Sample⁡Normal⁡0,0.1,200
Y≔map⁡sin,X+Yerror
Create the function whose graph is the smoothed curve.
L≔CurveFitting:-Lowess⁡X,Y,fitorder=1,bandwidth=0.3:
Plot the data sample, smoothed curve, and the region between the x-axis and the curve for π8≤x≤3⁢π8.
P≔ScatterPlot⁡X,Y
Q≔plot⁡L⁡x,x=0..π
R≔plots:-shadebetween⁡L⁡x,0,x=π8..3⁢π8,showboundary=false,positiveonly
plots:-display⁡P,Q,R
Find the area of the shaded region.
int⁡L,π8..3⁢π8,numeric,ε=0.01
0.538403465288975
And find the maximum.
Optimization:-Maximize⁡L,map⁡unapply,−x,x−π,x,optimalitytolerance=0.001
1.00180213049401101,
The CurveFitting[Lowess] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Statistics[Lowess]
Download Help Document