Skip to content Skip to navigation

Connexions

You are here: Home » Content » Introduction to Splines

Navigation

Recently Viewed

This feature requires Javascript to be enabled.

Introduction to Splines

Module by: Alena Scott. E-mail the author

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: Basic introduction to splines. Link to other modules.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

Suppose that you are given a data set D= x 1 y 1 x m y m D x 1 y 1 x m y m in 2 2 and that you must find a smooth curve to these points. There are many solutions to such a problem. Most simply, you could "eyeball it" and draw in a curve that looks good; however, this solution is too subjective, not very precise. You could just connect the dots, but this will probably not give a smooth line. You could fit a polynomial, but this fitted polynomial may wiggle too much. Or you could use splines.

Splines are piecewise polynomials with pieces smoothly connected together. The joining points of the polynomial pieces are called knots. Knots do not have to be evenly spaced. When each segment of a spline is a polynomial of degree nn, we say that the spline is a spline of degree n.

We need to add some constraints to ensure smoothness. For a spline of degree nn, we require that the spline has continuous derivatives up to order n1 n 1 at each of the knots, i.e. a spline of degree nn is in Cn1 C n 1 .

Remember our problem of fitting a curve to the data? There are generally two ways of approaching this problem: interpolation and smoothing.

We can fit a spline to interpolate the data; i.e. i,i1m:f x i = y i i i 1 m f x i y i

We can fit a smoothing spline: i.e. find ff to minimize 1ni=1n y i f x i 2+λ x 1 x m fmxu2du 1 n i 1 n y i f x i 2 λ u x 1 x m f x m u 2 The first term measures the closeness of the fitted function to the data, while the second penalizes the curvature in the function. λλ established the trade off between the two. For 0<λ< 0 λ , this constraint is minimized by a natural spline of degree m+1 m 1 ( Schoenberg). If λ=0 λ 0 , then ff can be any function which interpolates the data. If λ= λ and m+2 m 2 , then this is the simple least squares line fit, since no second derivative can be tolerated.

Content actions

Give Feedback:

E-mail the module author | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks