<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5822805028291837738.post8528437781096915594..comments</id><updated>2012-02-27T19:11:27.956-05:00</updated><category term='space'/><category term='magnetron'/><category term='UAV news'/><category term='risk management'/><category term='latex'/><category term='finite difference'/><category term='intel atom'/><category term='blender'/><category term='complex step'/><category term='numerical methods'/><category term='open source'/><category term='experimental design'/><category term='validation'/><category term='computer algebra'/><category term='six sigma'/><category term='aeroponics'/><category term='python'/><category term='maxima'/><category term='test driven development'/><category term='scientific computing'/><category term='number crunching'/><category term='scons'/><category term='resampling'/><category term='timing'/><category term='Poisson'/><category term='f90'/><category term='sweet science'/><category term='verification'/><category term='Lorenz63'/><category term='octave'/><category term='sparse matrix'/><category term='fortran'/><category term='Bayes theorem'/><category term='nalpal'/><category term='open cards'/><category term='climate change'/><category term='product development'/><category term='computational fluid dynamics'/><category term='fog and friction'/><category term='heald and marion'/><category term='draught keg case'/><category term='open office'/><category term='uncertainty quantification'/><category term='Jaynes'/><category term='F136'/><category term='FalknerSkan'/><category term='military academy grads'/><category term='Burgers'/><category term='chaos'/><category term='analog to digital conversion'/><category term='Latin'/><category term='defense acquisition'/><category term='statistics'/><category term='image processing'/><category term='google calculator'/><category term='local flavour'/><category term='for-loops'/><category term='Laplace'/><category term='f2py'/><category term='electrodynamics'/><title type='text'>Comments on Various Consequences: Fun with Filip</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.variousconsequences.com/feeds/8528437781096915594/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html'/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-4202612174977257976</id><published>2012-02-27T19:11:27.956-05:00</published><updated>2012-02-27T19:11:27.956-05:00</updated><title type='text'>The &lt;a href="http://books.google.com/books?id=-i3b...</title><content type='html'>The &lt;a href="http://books.google.com/books?id=-i3bCxwg7kUC&amp;amp;lpg=PA589&amp;amp;ots=3NaE-zLQub&amp;amp;dq=Kennedy%20Gentle%20Statistical%20Computing%20pp%20342%20347&amp;amp;pg=PA342#v=onepage&amp;amp;q&amp;amp;f=false" rel="nofollow"&gt;google book preview&lt;/a&gt; of the reference (Kennedy and Gentle, 1980) mentioned in R help(poly) is missing a page smack in the middle, so &lt;a href="https://docs.google.com/open?id=0ByhIBbQ1Pm4rOFhLSDJacWNSREdGcTNfTEhRY1NXQQ" rel="nofollow"&gt;here&amp;#39;s a copy of those few pages&lt;/a&gt; for your fair use in research, teaching, scholarship, commentary, and, of course, Statistical Computing.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4202612174977257976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4202612174977257976'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1330387887956#c4202612174977257976' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-2266678036083607282</id><published>2012-01-01T10:39:39.609-05:00</published><updated>2012-01-01T10:39:39.609-05:00</updated><title type='text'>Found these interesting sounding papers while doin...</title><content type='html'>Found these interesting sounding papers while doing some unrelated back-ground reading.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ams.org/mcom/1991-57-196/S0025-5718-1991-1094957-9/S0025-5718-1991-1094957-9.pdf" rel="nofollow"&gt;Chebyshev-Vandermonde Systems&lt;/a&gt;&lt;br /&gt;&lt;b&gt;Abstract.&lt;/b&gt; &lt;i&gt;A Chebyshev-Vandermonde matrix&lt;/i&gt;&lt;br /&gt;\( V = \left[ p_j \left( z_k \right) \right]^n_{j,k=0} \in C^{(n+1) \times (n+1)} \)&lt;br /&gt;&lt;i&gt;is obtained by replacing the monomial entries of a Vandermonde matrix by Chebyshev polynomials&lt;/i&gt; \( p_j \) &lt;i&gt;for an ellipse.  The ellipse is also allowed to be a disk or an interval.  We present a progressive scheme for allocating distinct nodes&lt;/i&gt; \( z_k \) &lt;i&gt;on the boundary of the ellipse such that the Chebyshev-Vandermonde matrices obtained are reasonably well-conditioned.  Fast progressive algorithms for the solution of the Chebyshev-Vandermonde systems are described.  These algorithms are closely related to methods recently presented by Higham.  We show that the node allocation is such that the solution computed by the progressive algorithms is fairly insensitive to perturbations in the right-hand side vector.  Computed examples illustrate the numerical behavior of the schemes.  Our analysis can also be used to bound the condition number of the polynomial interpolation operator defined by Newton&amp;#39;s interpolation formula.  This extends earlier results of Fischer and the first author. &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;And a couple others I haven&amp;#39;t had a chance to grab the full-text on yet: &lt;br /&gt;[1] Converting Interpolation Series into Chebyshev Series by Recurrence Formulas, Herbert E. Salzer, Mathematics of Computation, Vol. 30, No. 134 (Apr., 1976), pp. 295-302, (article consists of 8 pages), Published by: American Mathematical Society, Stable URL: http://www.jstor.org/stable/2005971&lt;br /&gt;&lt;br /&gt;[2] D. Calvetti, L. Reichel, A Chebychev-Vandermonde solver, Linear Algebra and its Applications, Volume 172, 15 July 1992, Pages 219-229, ISSN 0024-3795, 10.1016/0024-3795(92)90027-8.&lt;br /&gt;(http://www.sciencedirect.com/science/article/pii/0024379592900278)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2266678036083607282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2266678036083607282'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1325432379609#c2266678036083607282' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-1075208691553385450</id><published>2011-10-24T20:16:22.773-04:00</published><updated>2011-10-24T20:16:22.773-04:00</updated><title type='text'>I said, &lt;i&gt;choice of basis should inform the exper...</title><content type='html'>I said, &lt;i&gt;choice of basis should inform the experimental design&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;Well, there&amp;#39;s nothing new under the sun: &lt;a href="http://projecteuclid.org/DPubS?service=UI&amp;amp;version=1.0&amp;amp;verb=Display&amp;amp;handle=euclid.aos/1176343646" rel="nofollow"&gt;Optimal Designs for Large Degree Polynomial Regression&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For optimal sequential design they recommend just picking a design that is optimal for &amp;quot;high enough&amp;quot; order, and accepting the less than optimal performance for the initial (low-order) screening.  This is actually one of the big pragmatic problems I struggled with in trying to use Chebyshev roots points in a real design.  Almost all real designs are sequential (test a bit, learn a bit, and then test some more), and equally spaced points lend themselves to this approach very easily.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/1075208691553385450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/1075208691553385450'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1319501782773#c1075208691553385450' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-2544164562895311356</id><published>2011-09-13T02:38:55.227-04:00</published><updated>2011-09-13T02:38:55.227-04:00</updated><title type='text'>Thanks for the hints on using the Latex markup.

I...</title><content type='html'>Thanks for the hints on using the Latex markup.&lt;br /&gt;&lt;br /&gt;I started using it on some CO2 models. Take a look at the top 2 posts here:&lt;br /&gt;http://theoilconundrum.blogspot.com/&lt;br /&gt;&lt;br /&gt;No Legendre or Chebyshev in any of this, just some simple first-order PD models. &lt;br /&gt;&lt;br /&gt;The second one is a Fokker-Planck model. The Latex works out pretty neatly!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2544164562895311356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2544164562895311356'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1315895935227#c2544164562895311356' title=''/><author><name>WHT</name><uri>http://www.blogger.com/profile/18297101284358849575</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='20' src='http://img100.exs.cx/img100/4128/acetylene8zm.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-963491350'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-6555514637718099889</id><published>2011-09-02T21:39:05.829-04:00</published><updated>2011-09-02T21:39:05.829-04:00</updated><title type='text'>Hi Ray, the data for this post is in &lt;a href="http...</title><content type='html'>Hi Ray, the data for this post is in &lt;a href="http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Filip.dat" rel="nofollow"&gt;a text file&lt;/a&gt; on the &lt;a href="http://www.itl.nist.gov/div898/strd/" rel="nofollow"&gt;NIST site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Welcome to my link collection!  Please feel free to add more ; - )</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/6555514637718099889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/6555514637718099889'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1315013945829#c6555514637718099889' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-4940325348146175702</id><published>2011-09-02T19:38:44.414-04:00</published><updated>2011-09-02T19:38:44.414-04:00</updated><title type='text'>Since you seem to be interested in representing da...</title><content type='html'>Since you seem to be interested in representing data in a minimal set of basis functions; have you considered using Muntz exponential polynomial series?  They have two sets of variables: time (well decay) constants and coefficients.  First the time constants would be calculated to minimize the least squares and then coefficients would be computed (actually at the same time the first time).  Despite appearances there are orthogonal exponential functions available.&lt;br /&gt;An advantage is that if we believe we have found system functions then different system stimulus should correspond to changing coefficients.&lt;br /&gt;I have been thinking about coding it up for a couple of years; but no motivation.&lt;br /&gt;If your interested I have several papers/links.  Or send me data and I can try to get around to some coding.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4940325348146175702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4940325348146175702'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1315006724414#c4940325348146175702' title=''/><author><name>Ray</name><uri>http://www.blogger.com/profile/08740233521348558495</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_W7hEUY9eAXo/SkY09ll04SI/AAAAAAAAAAM/RcF6j0GtGYo/s1600-R/5.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-977487573'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-8502616938634275741</id><published>2011-09-02T07:47:52.785-04:00</published><updated>2011-09-02T07:47:52.785-04:00</updated><title type='text'>Thanks Nick, I&amp;#39;ll add that one to my little sc...</title><content type='html'>Thanks Nick, I&amp;#39;ll add that one to my little script.  Scipy has lots of options for basis in scipy.special.  &lt;br /&gt;&lt;br /&gt;Carrick, I was thinking about point spacing some more, and it probably matters less for the overdetermined case than if you&amp;#39;re doing interpolation (that is what I&amp;#39;ve been doing a lot recently so it was stuck in my head).  I have enough trouble getting folks to try plain-vanilla experimental designs, I don&amp;#39;t know how I&amp;#39;d pitch one based on Chebyshev roots spacing ; - )&lt;br /&gt;&lt;br /&gt;Thanks for the links; I&amp;#39;ll add them to my reading list; sounds interesting.  &lt;br /&gt;&lt;br /&gt;For Latex in comments, see &lt;a href="http://www.variousconsequences.com/2011/07/latex-for-blogger.html" rel="nofollow"&gt;this post on MathJax&lt;/a&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/8502616938634275741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/8502616938634275741'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314964072785#c8502616938634275741' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-2820599543824851409</id><published>2011-09-02T06:05:40.185-04:00</published><updated>2011-09-02T06:05:40.185-04:00</updated><title type='text'>JS,
It is an interesting problem. I tried using R ...</title><content type='html'>JS,&lt;br /&gt;It is an interesting problem. I tried using R with Chebychev polynomials, which worked well. I found the original condition number was 7.66e+21. After centering and normalising to a unit interval, that came down to 8.72e+6. Then after the Chebychev transformation, the condition number was 2743.&lt;br /&gt;&lt;br /&gt;I used the stable recurrence relation to calculate the Chebychev polynomials. The coefficients came out as:&lt;br /&gt;      Coeficients B0:B10  &lt;br /&gt; [1,] -1.4674896142294e+03&lt;br /&gt; [2,] -2.7721795919327e+03&lt;br /&gt; [3,] -2.3163710816083e+03&lt;br /&gt; [4,] -1.1279739409834e+03&lt;br /&gt; [5,] -3.5447823370325e+02&lt;br /&gt; [6,] -7.5124201739355e+01&lt;br /&gt; [7,] -1.0875318035531e+01&lt;br /&gt; [8,] -1.0622149858892e+00&lt;br /&gt; [9,] -6.7019115459320e-02&lt;br /&gt;[10,] -2.4678107827540e-03&lt;br /&gt;[11,] -4.0296252508027e-05&lt;br /&gt;which seems to be pretty much full double precision (default in R).&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the code:&lt;br /&gt;#  see http://noconsensus.wordpress.com/2011/08/19/slow-feedback/#comment-54341&lt;br /&gt;# Nick Stokes - solving using Chebychev&lt;br /&gt;condno = function(k){&lt;br /&gt;   w=eigen(t(k) %*%k)$val;&lt;br /&gt;   print(noquote(paste(&amp;quot;Condition number =&amp;quot;,round(max(w)/min(w),2))));&lt;br /&gt;}&lt;br /&gt;#download.file(&amp;quot;http://www.itl.nist.gov/div898/strd/lls/data/LINKS/DATA/Filip.dat&amp;quot;,&amp;quot;filip.txt&amp;quot;);&lt;br /&gt;v=matrix(scan(&amp;quot;filip.txt&amp;quot;,skip=60,nlines=82),nrow=2);  # Read NIST data set&lt;br /&gt;y=v[1,];  x=v[2,];   N=10;  i0=0:N;   &lt;br /&gt;condno(outer(x,i0,&amp;quot;^&amp;quot;));  # Print condition no&lt;br /&gt;c0 = -1/mean(x);  c1 = 2/c0/diff(range(x))&lt;br /&gt;x = c1*(1 + x*c0) ; # Transformed to unit unterval&lt;br /&gt;condno(outer(x,i0,&amp;quot;^&amp;quot;)); # Print condition no&lt;br /&gt;g=cbind(1,x);  &lt;br /&gt;#  Now create Chebs by recurrence&lt;br /&gt;for(i in 2:N) g=cbind(g, 2*x*g[,i] - g[,i-1]);&lt;br /&gt;condno(g);  ## Print condition number&lt;br /&gt;## Mult modified design matrix to get kernel&lt;br /&gt;k=t(g)%*%g;     ky=t(g)%*%y;&lt;br /&gt;### Solve to complete regression&lt;br /&gt;b=drop(solve(k,ky));&lt;br /&gt;## Now make binomial (a) and Cheb coef matrices&lt;br /&gt;binom=cheb=matrix(0,N+1,N+1); a2=0:1; binom[,1]=a1=1; &lt;br /&gt;for(i in 1:N){&lt;br /&gt;  j=1:i;      cheb[i,j]=a1;&lt;br /&gt;  binom[i+1,j+1]=binom[i,j]+binom[i,j+1];&lt;br /&gt;  a0=2*c(0,a1)-a2;  a2=c(a1,0,0);  a1=a0;&lt;br /&gt;}&lt;br /&gt;cheb[N+1,]=a1;&lt;br /&gt;## Now convert Cheb coefs to original polynomial coefs&lt;br /&gt;b1= b %*% cheb;&lt;br /&gt;b2= (((c1^i0)*b1) %*% binom)* (c0^i0) ## These are the NIST numbers&lt;br /&gt;rownames(b2)=&amp;quot;Coeficients B0:B10&amp;quot;;&lt;br /&gt;print(noquote(format(t(b2),digits=14)));</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2820599543824851409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2820599543824851409'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314957940185#c2820599543824851409' title=''/><author><name>Nick Stokes</name><uri>http://www.blogger.com/profile/06377413236983002873</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1145433900'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-100279346003100702</id><published>2011-09-02T05:29:24.640-04:00</published><updated>2011-09-02T05:29:24.640-04:00</updated><title type='text'>ugh...preview isn&amp;#39;t helping much here....  one...</title><content type='html'>ugh...preview isn&amp;#39;t helping much here....  one important omission:&lt;br /&gt;&lt;br /&gt;&amp;quot;THe location x,y is &lt;i&gt;relative to&lt;/i&gt; the position of a tower&amp;quot;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/100279346003100702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/100279346003100702'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314955764640#c100279346003100702' title=''/><author><name>Carrick</name><uri>http://www.blogger.com/profile/03476050886656768837</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-kTGSMoEqF5Q/TVdxUP6se6I/AAAAAAAAABE/hzLuxJo2xCI/s220/gravitar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-444080345'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-4876557014372403924</id><published>2011-09-02T05:27:18.134-04:00</published><updated>2011-09-02T05:27:18.134-04:00</updated><title type='text'>I missed a factor of pi in one place and a few oth...</title><content type='html'>I missed a factor of pi in one place and a few other things like dropped words, but hopefully the thrust of my comment makes sense.&lt;br /&gt;&lt;br /&gt;Regarding this: &lt;i&gt;That brings up another good point; the choice of basis should inform the experimental design. Maybe that will be the next post.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;That is absolutely important in good experimental design.  I encountered the following problem as a post doc:  We want to measure the gravitational acceleration anomalies (g(x,y,0) - g_model(x,y,0)) and use this to interpolate the value of g(0,0,z), where z &amp;gt; 0 is the height above the earth.  (THe location x,y is the position of a tower where we&amp;#39;re going to obtain measured values of g at various heights z_k, however, we have no choice where we measure.  The tower is a large TV tower, with a central elevator, and a fixed number of platforms where you can safely get out of the elevator to measure g.  These locations turn out to be where the tower is guyed, which also minimizes horizontal motion of the tower at those elevations.&lt;br /&gt;&lt;br /&gt;Given an infinite amount of time, you&amp;#39;d just use a rectangular grid over x and y.  What we did (of course) was transform to polar coordinates r,theta,z, then select the values r_k upon which to make m measurements at equal angles 2*pi/m.&lt;br /&gt;&lt;br /&gt;That was theory, practice puts some of the points in the middle of catfish ponds or swamps, so they have to be moved to accommodate reality (and that in turn affects the accuracy of your results);.  This experiment (in case you hadn&amp;#39;t guessed) was to provide a high-resolution test of Newton&amp;#39;s inverse square law up  a tower.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://authors.library.caltech.edu/6659/1/THOprd89.pdf" rel="nofollow"&gt;An error analysis may be found here&lt;/a&gt; but it precedes the more precise experiment &lt;a href="http://0-prd.aps.org.umiss.lib.olemiss.edu/abstract/PRD/v55/i8/p4532_1" rel="nofollow"&gt;performed later&lt;/a&gt;.  (I was a contributor to the latter but not former experiment).&lt;br /&gt;&lt;br /&gt;The size of the outer ring was chosen incidentally to tie in the measurements to an existing data base of surface gravity measurements collected by the petroleum industry.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4876557014372403924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/4876557014372403924'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314955638134#c4876557014372403924' title=''/><author><name>Carrick</name><uri>http://www.blogger.com/profile/03476050886656768837</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-kTGSMoEqF5Q/TVdxUP6se6I/AAAAAAAAABE/hzLuxJo2xCI/s220/gravitar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-444080345'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-2417893282410294245</id><published>2011-09-02T04:46:17.668-04:00</published><updated>2011-09-02T04:46:17.668-04:00</updated><title type='text'>Yep, you&amp;#39;re right about that (of course)   It ...</title><content type='html'>Yep, you&amp;#39;re right about that (of course)   It has been over 30 years since I had written that code (written as a grad student, and loosely following Numerical Recipes in C development) so I had to dig  up my code to remind myself.   Fortunately the code was well documented, and it was to derive your relationship.&lt;br /&gt;&lt;br /&gt;I had remembered you needed a special choice of point to minimize Runge&amp;#39;s phenomenon, but had forgotten what that choice was.  This turns out to be:&lt;br /&gt;&lt;br /&gt;x&amp;#39;_k = cos( (k+1/2 pi)/N)&lt;br /&gt;&lt;br /&gt;here &amp;quot;N&amp;quot; is the truncation order of the series (we are expanding from polynomial order 0 to N-1) and where,&lt;br /&gt;&lt;br /&gt;x = (xmax-xmin)/2 * x&amp;#39; + (xmax + xmin)/2 &lt;br /&gt;&lt;br /&gt;This maps our original boundaries [xmin,xmax] onto [-1,1] of course.&lt;br /&gt;&lt;br /&gt;So it certainly involves a special interval for the approximation to be optimal (I had remembered that part).  Note this gives a descending series in x_k (x_k &amp;lt; x_k-1)&lt;br /&gt;&lt;br /&gt;Anyway, it&amp;#39;s easy enough to show your contention (we&amp;#39;ll stick to the boundary near k=0 the other follows mutatis mutandis).&lt;br /&gt;&lt;br /&gt;x_k - x_0 = cos((k+1/2) pi/N)-1 ~= [(k+1/2)/N]^2/2&lt;br /&gt;&lt;br /&gt;for k small, and voila  a clustering 1/N^2 at the boundaries as per your comment!&lt;br /&gt;&lt;br /&gt;(Is there a way to insert formulas on your site?).&lt;br /&gt;&lt;br /&gt;In general, you can show,&lt;br /&gt;&lt;br /&gt;Delta x_k = x&amp;#39;_k - x&amp;#39;_(k-1) = -2 sin(pi/2N) sin(k pi/N)&lt;br /&gt;&lt;br /&gt;From this it is obvious that  the spacing between points gets clustered at the boundaries.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2417893282410294245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/2417893282410294245'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314953177668#c2417893282410294245' title=''/><author><name>Carrick</name><uri>http://www.blogger.com/profile/03476050886656768837</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-kTGSMoEqF5Q/TVdxUP6se6I/AAAAAAAAABE/hzLuxJo2xCI/s220/gravitar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-444080345'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-3699920608519393487</id><published>2011-09-01T13:29:08.058-04:00</published><updated>2011-09-01T13:29:08.058-04:00</updated><title type='text'>Good point on Chebyshev; I think to really get the...</title><content type='html'>Good point on Chebyshev; I think to really get the benefit from using that basis to avoid Runge phenomena you need the \( 1/n^2 \) clustering of the samples near the boundary.  &lt;br /&gt;&lt;br /&gt;That brings up another good point; the choice of basis should inform the experimental design.  Maybe that will be the next post.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/3699920608519393487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/3699920608519393487'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314898148058#c3699920608519393487' title=''/><author><name>jstults</name><uri>http://www.blogger.com/profile/03506970399027046387</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='26' src='http://3.bp.blogspot.com/_pCJkSNKi5RE/SV-8FN_lVTI/AAAAAAAAAQg/-nwoQegqWB0/S220/jstults.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-873687242'/></entry><entry><id>tag:blogger.com,1999:blog-5822805028291837738.post-6264979458020169380</id><published>2011-09-01T10:35:27.609-04:00</published><updated>2011-09-01T10:35:27.609-04:00</updated><title type='text'>Nice work!

I haven&amp;#39;t tried it, but I have  th...</title><content type='html'>Nice work!&lt;br /&gt;&lt;br /&gt;I haven&amp;#39;t tried it, but I have  the Tschebycheff expansion in my canned software routine (I didn&amp;#39;t try it because it&amp;#39;s C code, so it doesn&amp;#39;t have things like the numerical gain of the method computed).&lt;br /&gt;&lt;br /&gt;A typical use would be a special function (often implemented the old fashion way, e.g., direct integration of the differential equation defining it).  If you had good luck with Legendre, I suspect Tschebycheff would work as well, or even be slightly superior to the Legendre polynomial series.&lt;br /&gt;&lt;br /&gt;The main advantage I can think of is the Tschebycheff series is, if you want an optimal interpolating &amp;amp; efficient function, this is it.  (As you know the question is &amp;quot;what happens to the fitted polynomial between interpolating points&amp;quot;, whereas a plain old polynomial can oscillate wildly. &lt;br /&gt;&lt;br /&gt;Function evaluation can also be computed efficiently using Clenshaw&amp;#39;s upwards recurrence relation.  So again, it all has to do with what you are trying to accomplish, with what is &amp;quot;optimal&amp;quot;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/6264979458020169380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5822805028291837738/8528437781096915594/comments/default/6264979458020169380'/><link rel='alternate' type='text/html' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html?showComment=1314887727609#c6264979458020169380' title=''/><author><name>Carrick</name><uri>http://www.blogger.com/profile/03476050886656768837</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-kTGSMoEqF5Q/TVdxUP6se6I/AAAAAAAAABE/hzLuxJo2xCI/s220/gravitar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.variousconsequences.com/2011/08/fun-with-filip.html' ref='tag:blogger.com,1999:blog-5822805028291837738.post-8528437781096915594' source='http://www.blogger.com/feeds/5822805028291837738/posts/default/8528437781096915594' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-444080345'/></entry></feed>
