<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.komputilo.org/index.php?action=history&amp;feed=atom&amp;title=Least_squares</id>
	<title>Least squares - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.komputilo.org/index.php?action=history&amp;feed=atom&amp;title=Least_squares"/>
	<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Least_squares&amp;action=history"/>
	<updated>2026-04-21T12:48:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.13</generator>
	<entry>
		<id>https://tech.komputilo.org/index.php?title=Least_squares&amp;diff=70&amp;oldid=prev</id>
		<title>77.72.146.250 at 13:23, 7 March 2013</title>
		<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Least_squares&amp;diff=70&amp;oldid=prev"/>
		<updated>2013-03-07T13:23:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:23, 7 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Leastsquares implementation in python:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; def leastsquares(data):&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; def leastsquares(data):&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    n=len(data)+0.0&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    n=len(data)+0.0&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>77.72.146.250</name></author>
	</entry>
	<entry>
		<id>https://tech.komputilo.org/index.php?title=Least_squares&amp;diff=69&amp;oldid=prev</id>
		<title>77.72.146.250: Created page with &quot;   def leastsquares(data):     n=len(data)+0.0     avx=sum([d[0] for d in data])/n     avy=sum([d[1] for d in data])/n     do=[(d[0]-avx, d[1]-avy) for d in data]     slope=sum([…&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Least_squares&amp;diff=69&amp;oldid=prev"/>
		<updated>2013-03-07T13:23:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;   def leastsquares(data):     n=len(data)+0.0     avx=sum([d[0] for d in data])/n     avy=sum([d[1] for d in data])/n     do=[(d[0]-avx, d[1]-avy) for d in data]     slope=sum([…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &lt;br /&gt;
 def leastsquares(data):&lt;br /&gt;
    n=len(data)+0.0&lt;br /&gt;
    avx=sum([d[0] for d in data])/n&lt;br /&gt;
    avy=sum([d[1] for d in data])/n&lt;br /&gt;
    do=[(d[0]-avx, d[1]-avy) for d in data]&lt;br /&gt;
    slope=sum([d[0]*d[1] for d in do]) / sum([d[0]*d[0] for d in do])&lt;br /&gt;
    offset=avy-avx*slope&lt;br /&gt;
    return offset, slope&lt;br /&gt;
    #print &amp;quot;avx=&amp;quot;, avx&lt;br /&gt;
    #print &amp;quot;avy=&amp;quot;, avy&lt;br /&gt;
    #print &amp;quot;slope=&amp;quot;, slope&lt;br /&gt;
    #print &amp;quot;offset=&amp;quot;, offset&lt;/div&gt;</summary>
		<author><name>77.72.146.250</name></author>
	</entry>
</feed>