<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: LOESS Utility for Excel</title>
	<atom:link href="http://peltiertech.com/WordPress/loess-utility-for-excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/loess-utility-for-excel/</link>
	<description>PTS Excel Charts and Tutorials Blog</description>
	<lastBuildDate>Sat, 21 Nov 2009 04:01:08 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-20209</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 06 Oct 2009 11:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-20209</guid>
		<description>Dale &amp; Jeff -

I&#039;ve found the LOESS algorithm to be pretty robust. In the back of my head, the number of 4 points for the moving regression sounds familiar as a limit I&#039;ve encountered, though most of my data sets are at least dozens of points, and I don&#039;t think I&#039;ve routinely gone below a double-digit N.

Stay tuned. I&#039;ve made some enhancements to the utility that make range selection much easier. I&#039;ll be posting the new version in a few days.</description>
		<content:encoded><![CDATA[<p>Dale &amp; Jeff -</p>
<p>I&#8217;ve found the LOESS algorithm to be pretty robust. In the back of my head, the number of 4 points for the moving regression sounds familiar as a limit I&#8217;ve encountered, though most of my data sets are at least dozens of points, and I don&#8217;t think I&#8217;ve routinely gone below a double-digit N.</p>
<p>Stay tuned. I&#8217;ve made some enhancements to the utility that make range selection much easier. I&#8217;ll be posting the new version in a few days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-20203</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Tue, 06 Oct 2009 05:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-20203</guid>
		<description>Interesting...if you do a pass with say 12 points using the default N (i.e. Number of points for the moving regression) of 5,  then it bombs out. If you try again with N of 6, then it works.  And then if you try again with N of 5, it works.</description>
		<content:encoded><![CDATA[<p>Interesting&#8230;if you do a pass with say 12 points using the default N (i.e. Number of points for the moving regression) of 5,  then it bombs out. If you try again with N of 6, then it works.  And then if you try again with N of 5, it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaleW</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-20201</link>
		<dc:creator>DaleW</dc:creator>
		<pubDate>Tue, 06 Oct 2009 04:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-20201</guid>
		<description>Well, Jeff, I got the overflow error roughly 20 for 20 times when I selected 14 pairs or less, and 0 for 8 times when I selected 15 pairs or more.  Looks systematic to me.  I even duplicated it from scratch with a new workbook.  

Each time I was using the contiguous range option.  It can accept fewer input points for separate I/O ranges without the overflow error, but with small N the output still isn&#039;t right.

Since you aren&#039;t having this problem, I&#039;ll try again tomorrow with Excel 2003 on a different PC.</description>
		<content:encoded><![CDATA[<p>Well, Jeff, I got the overflow error roughly 20 for 20 times when I selected 14 pairs or less, and 0 for 8 times when I selected 15 pairs or more.  Looks systematic to me.  I even duplicated it from scratch with a new workbook.  </p>
<p>Each time I was using the contiguous range option.  It can accept fewer input points for separate I/O ranges without the overflow error, but with small N the output still isn&#8217;t right.</p>
<p>Since you aren&#8217;t having this problem, I&#8217;ll try again tomorrow with Excel 2003 on a different PC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff weir</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-20199</link>
		<dc:creator>jeff weir</dc:creator>
		<pubDate>Tue, 06 Oct 2009 03:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-20199</guid>
		<description>I got an overflow error one time when I didn&#039;t select one of the output ranges properly. Maybe this is what&#039;s going on for you, Dale?</description>
		<content:encoded><![CDATA[<p>I got an overflow error one time when I didn&#8217;t select one of the output ranges properly. Maybe this is what&#8217;s going on for you, Dale?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaleW</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-20198</link>
		<dc:creator>DaleW</dc:creator>
		<pubDate>Tue, 06 Oct 2009 03:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-20198</guid>
		<description>Nice utility, Jon.  Am I right that it needs at least 15 input points to avoid generating an overflow error, or am I doing something it wasn&#039;t expecting?</description>
		<content:encoded><![CDATA[<p>Nice utility, Jon.  Am I right that it needs at least 15 input points to avoid generating an overflow error, or am I doing something it wasn&#8217;t expecting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-19453</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 22 Sep 2009 10:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-19453</guid>
		<description>Jeff -

1. The utility is constrained by how the RefEdit control works. You can select one cell, then use the mouse and scroll bars to find the opposite cell, nhold Shift, and click on the last cell.

1A. The latest version improves on this. If you only select the top cell of a column, the program uses the whole column, down to the first blank cell.

2. I didn&#039;t add the command to the Chart menu bar, because I figured it was really a data kind of utility. You&#039;ve convinced me otherwise. This will go into the newest edition, and I&#039;ll post it sometime soon.

3. The utility uses the same number of points, but it is a one-sided fit, with points further away given a lower weighting. It&#039;s not perfect, but it beats simple moving averages. Statisticians use this methodology, with the knowledge that there may be end effects.</description>
		<content:encoded><![CDATA[<p>Jeff -</p>
<p>1. The utility is constrained by how the RefEdit control works. You can select one cell, then use the mouse and scroll bars to find the opposite cell, nhold Shift, and click on the last cell.</p>
<p>1A. The latest version improves on this. If you only select the top cell of a column, the program uses the whole column, down to the first blank cell.</p>
<p>2. I didn&#8217;t add the command to the Chart menu bar, because I figured it was really a data kind of utility. You&#8217;ve convinced me otherwise. This will go into the newest edition, and I&#8217;ll post it sometime soon.</p>
<p>3. The utility uses the same number of points, but it is a one-sided fit, with points further away given a lower weighting. It&#8217;s not perfect, but it beats simple moving averages. Statisticians use this methodology, with the knowledge that there may be end effects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Weir</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-19427</link>
		<dc:creator>Jeff Weir</dc:creator>
		<pubDate>Mon, 21 Sep 2009 23:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-19427</guid>
		<description>Ahhh...I didn&#039;t realise you could overwrite the number of points. This utility rocks. I like how it retains the last range you used it on...handy if you want to rerun the function on the same range but just change a setting.

Some thoughts on improvement:

1. One thing that would be better is if when selecting a range you could use Shift + Cntl + Down to select really long ranges rather than having to drag down with the mouse. Is this possible? I see that Name Manager doesn&#039;t let you do this either - so maybe it&#039;s an artifact of constructing such addins?

2. In excel 2007, the PTS menu disappears from the addins &#039;menu commands&#039; if you select the chart. For a moment, I thought it was suddenly uninstalled from my machine.

3. The function can also give a misleading match at each end of the series, because it has less data points with which to perform a regression on points in a moving range around the X value than it does everywhere else (and it might be substituting zero values for any missing data here, but I&#039;m not sure). For an example of how a sine wave is affected, see my uploaded speadsheet at http://cid-f380a394764ef31f.skydrive.live.com/self.aspx/.Public/LOESS%20on%20SineWave.xls 

To counter this, you could amend the function so that either:
- if it goes to perform a regression with say a moving range of 6 points then it doesn&#039;t return data for the first 3 or the last 3 values; or
- in the above case, it substitutes any missing data from data it does have. For instance, in the above case, for the first point it would use the first 3 numbers twice instead of a moving range that has missing data points.

Alternately, the user could simply amend their range so that they use a subset of the LOESS function output that doesn&#039;t include end values. But they might not be aware of this. 

Regardless, this is staying on my ribbon! THanks Jon</description>
		<content:encoded><![CDATA[<p>Ahhh&#8230;I didn&#8217;t realise you could overwrite the number of points. This utility rocks. I like how it retains the last range you used it on&#8230;handy if you want to rerun the function on the same range but just change a setting.</p>
<p>Some thoughts on improvement:</p>
<p>1. One thing that would be better is if when selecting a range you could use Shift + Cntl + Down to select really long ranges rather than having to drag down with the mouse. Is this possible? I see that Name Manager doesn&#8217;t let you do this either &#8211; so maybe it&#8217;s an artifact of constructing such addins?</p>
<p>2. In excel 2007, the PTS menu disappears from the addins &#8216;menu commands&#8217; if you select the chart. For a moment, I thought it was suddenly uninstalled from my machine.</p>
<p>3. The function can also give a misleading match at each end of the series, because it has less data points with which to perform a regression on points in a moving range around the X value than it does everywhere else (and it might be substituting zero values for any missing data here, but I&#8217;m not sure). For an example of how a sine wave is affected, see my uploaded speadsheet at <a href="http://cid-f380a394764ef31f.skydrive.live.com/self.aspx/.Public/LOESS%20on%20SineWave.xls" rel="nofollow">http://cid-f380a394764ef31f.skydrive.live.com/self.aspx/.Public/LOESS%20on%20SineWave.xls</a> </p>
<p>To counter this, you could amend the function so that either:<br />
- if it goes to perform a regression with say a moving range of 6 points then it doesn&#8217;t return data for the first 3 or the last 3 values; or<br />
- in the above case, it substitutes any missing data from data it does have. For instance, in the above case, for the first point it would use the first 3 numbers twice instead of a moving range that has missing data points.</p>
<p>Alternately, the user could simply amend their range so that they use a subset of the LOESS function output that doesn&#8217;t include end values. But they might not be aware of this. </p>
<p>Regardless, this is staying on my ribbon! THanks Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-19402</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Mon, 21 Sep 2009 11:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-19402</guid>
		<description>Jeff -

Since alpha is a fraction, the number of points in a LOESS analysis of larger data sets is larger than that for a smaller data set, given a constant alpha. If you get a reasonable smoothing for a week of data for a given alpha, note the number of points used for smoothing. Then carry out LOESS smoothing on the larger data set, using the same number of points (and a correspondingly smaller alpha).</description>
		<content:encoded><![CDATA[<p>Jeff -</p>
<p>Since alpha is a fraction, the number of points in a LOESS analysis of larger data sets is larger than that for a smaller data set, given a constant alpha. If you get a reasonable smoothing for a week of data for a given alpha, note the number of points used for smoothing. Then carry out LOESS smoothing on the larger data set, using the same number of points (and a correspondingly smaller alpha).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeff weir</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-19392</link>
		<dc:creator>jeff weir</dc:creator>
		<pubDate>Mon, 21 Sep 2009 08:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-19392</guid>
		<description>Hi Jon. I&#039;ve been playing with this utility today, and found that while it does a great job of smoothing fairly small datasets, it doesn&#039;t do so well with the large datasets with fairly regular cyclical swings that I&#039;ve been feeding it today.

I&#039;m guessing this is an artifact of who the LOESS technique works, rather than due to your fine utility. 

In your original LOESS post, you say &quot;For each X value where a Y value is to be calculated, the LOESS technique performs a regression on points in a moving range around the X value, where the values in the moving range are weighted according to their distance from this X value.&quot; I&#039;m guessing that the larger your dataset, the larger the moving range around the X value.

I was using it on some half-hourly electricity metering data. When I used the LOESS utility to smooth a week&#039;s worth of data (336 points), I get a great looking curve compared to the rather &#039;jagged&#039; appearance of the raw data. But when I use it to smooth the whole year (17520 points), I get a flat line. I was expecting to get a similar effect for the whole year&#039;s worth of data as I did with a week&#039;s worth...that is I thought I&#039;d still see some swings etc.

Is this how you&#039;d expect LOESS to work with such a large dataset?

Regards

Jeff</description>
		<content:encoded><![CDATA[<p>Hi Jon. I&#8217;ve been playing with this utility today, and found that while it does a great job of smoothing fairly small datasets, it doesn&#8217;t do so well with the large datasets with fairly regular cyclical swings that I&#8217;ve been feeding it today.</p>
<p>I&#8217;m guessing this is an artifact of who the LOESS technique works, rather than due to your fine utility. </p>
<p>In your original LOESS post, you say &#8220;For each X value where a Y value is to be calculated, the LOESS technique performs a regression on points in a moving range around the X value, where the values in the moving range are weighted according to their distance from this X value.&#8221; I&#8217;m guessing that the larger your dataset, the larger the moving range around the X value.</p>
<p>I was using it on some half-hourly electricity metering data. When I used the LOESS utility to smooth a week&#8217;s worth of data (336 points), I get a great looking curve compared to the rather &#8216;jagged&#8217; appearance of the raw data. But when I use it to smooth the whole year (17520 points), I get a flat line. I was expecting to get a similar effect for the whole year&#8217;s worth of data as I did with a week&#8217;s worth&#8230;that is I thought I&#8217;d still see some swings etc.</p>
<p>Is this how you&#8217;d expect LOESS to work with such a large dataset?</p>
<p>Regards</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/loess-utility-for-excel/comment-page-1/#comment-16970</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 31 Jul 2009 22:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/?p=2148#comment-16970</guid>
		<description>I think I&#039;ve fixed the R1C1 problem. Try it again: &lt;a href=&quot;http://peltiertech.com/images/2009-06/LOESS.zip&quot; rel=&quot;nofollow&quot;&gt;LOESS Utility&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>I think I&#8217;ve fixed the R1C1 problem. Try it again: <a href="http://peltiertech.com/images/2009-06/LOESS.zip" rel="nofollow">LOESS Utility</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
