<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to best fit data to a plane or line in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11143#M10703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. I used the fit model platform as instructed and it worked perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas on how to un-fit the data? Basically if I have X, Y and the equation for Z is there a way to determine what the original Z was?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 22:27:32 GMT</pubDate>
    <dc:creator>abdulj</dc:creator>
    <dc:date>2015-02-26T22:27:32Z</dc:date>
    <item>
      <title>How to best fit data to a plane or line</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11141#M10701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I was wondering if there is a way in JMP that I could use to take raw data of multiple measurement points (each with an X, Y, Z component) and best fit this data to form a best fit plane. Basically my intent is to take raw metrology data off of OMMs/CMMs and fit them myself without the use of CMM/OMMs measurement software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:06:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11141#M10701</guid>
      <dc:creator>abdulj</dc:creator>
      <dc:date>2015-02-26T16:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to best fit data to a plane or line</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11142#M10702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used &lt;STRONG style="color: #000000; font-family: 'Times New Roman'; font-size: medium; text-align: -webkit-center;"&gt;ax + by + cz = d&lt;/STRONG&gt; as a starting point to generate some slightly random data like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14249713013201934 jive_text_macro" jivemacro_uid="_14249713013201934" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;dt = New Table( "Untitled",&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Add Rows( 20 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Table Variable( "a", 5 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Table Variable( "b", 7 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Table Variable( "c", 11 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Table Variable( "d", 13 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "x", Formula( Random Uniform() * 10 )&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "y", Formula( Random Uniform() * 10 )&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "z", Formula( Random Normal() / 2 + (:d - (:a * :x + :b * :y)) / :c )&amp;nbsp; )&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;);&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which makes Z a function of X and Y, approximately on the plane defined by A, B, C, D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, use Analyze-&amp;gt;Fit Model and put in Z as the Y (response) and ADD X and Y to the model effects.&amp;nbsp; Click Run.&amp;nbsp; The parameter Estimates are what I think you are looking for.&amp;nbsp; I get this, for my random numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8117_estimates.png" style="width: 394px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1278i973F7F03C433C0D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8117_estimates.png" alt="8117_estimates.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;to convert these back to the A=5, B=7, C=11, D=13 form, rearrange the formula as &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8118_rearrange.png" style="width: 299px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1279i4D3AB8CBFFB05CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8118_rearrange.png" alt="8118_rearrange.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and see d/c is 13/11 is 1.1818 (close to 1.179) a/c is 5/11 is .4545 (close to .4555) and b/c is 7/11 is .6363 (close to .6355).&amp;nbsp; Watch the signs.&amp;nbsp; You can see the surface in the Fit Least Squares window; red triangle menu-&amp;gt;Factor Profiling-&amp;gt;Surface Profiler.&amp;nbsp; Under Appearance turn on the Actual points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the platform you can rotate the surface to clearly see the points above and below the plane.&amp;nbsp; Try clicking the points to select them.&amp;nbsp; This picture doesn't do it justice...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8119_surfaceWithPoints.png" style="width: 817px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1280i21B4CD8BA1F242DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8119_surfaceWithPoints.png" alt="8119_surfaceWithPoints.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:40:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11142#M10702</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2016-10-18T22:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to best fit data to a plane or line</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11143#M10703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. I used the fit model platform as instructed and it worked perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas on how to un-fit the data? Basically if I have X, Y and the equation for Z is there a way to determine what the original Z was?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:27:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11143#M10703</guid>
      <dc:creator>abdulj</dc:creator>
      <dc:date>2015-02-26T22:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to best fit data to a plane or line</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11144#M10704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;red triangle-&amp;gt;SaveColumns-&amp;gt;PredictionFormula will add a formula column to the table which shows the predicted value for an (X,Y).&amp;nbsp; It will generally not be exactly the same as any of your original data points.&amp;nbsp; Perhaps what you want to see is the differences between the original and predicted column...saveColumns-&amp;gt;Residuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you might want something else though.&amp;nbsp; Can you explain what you are trying to do?&amp;nbsp; A graph perhaps, similar to the surface plot?&amp;nbsp; Or some sort of query system to retrieve the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:57:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11144#M10704</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2015-02-26T22:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to best fit data to a plane or line</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11145#M10705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3c3c3c; font-size: 12px; font-family: Arial, Helvetica, sans-serif;"&gt;I think the answer also depends on exactly what is meant by ‘best fit’. W&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; color: #3c3c3c; font-family: Arial, Helvetica, sans-serif;"&gt;hen there is no natural distinction between predictor and response variables, or when all variables are measured with error you should consider principal components analysis. This is in contrast to the usual regression assumption that predictor variables (taken as X and Y above) are measured exactly, and only the response variable (taken as Z above) has an error component.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 10:32:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-best-fit-data-to-a-plane-or-line/m-p/11145#M10705</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2015-02-27T10:32:12Z</dc:date>
    </item>
  </channel>
</rss>

