<?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 JMP calculate confidence interval for a linear fit model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37110#M21788</link>
    <description>Thanks for the speedy feedback, Mark! BTW, could you please comment on my 2nd question: indiv or mean?</description>
    <pubDate>Mon, 13 Mar 2017 18:23:31 GMT</pubDate>
    <dc:creator>ILoveJMP</dc:creator>
    <dc:date>2017-03-13T18:23:31Z</dc:date>
    <item>
      <title>How JMP calculates confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37071#M21766</link>
      <description>&lt;P&gt;For the following set of data,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;X&lt;/TD&gt;
&lt;TD&gt;Y&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7.9&lt;/TD&gt;
&lt;TD&gt;115&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;13&lt;/TD&gt;
&lt;TD&gt;154&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;10.8&lt;/TD&gt;
&lt;TD&gt;156&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11.6&lt;/TD&gt;
&lt;TD&gt;182&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;10.5&lt;/TD&gt;
&lt;TD&gt;124&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11.1&lt;/TD&gt;
&lt;TD&gt;157&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;8.8&lt;/TD&gt;
&lt;TD&gt;129&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11.9&lt;/TD&gt;
&lt;TD&gt;181&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;11.1&lt;/TD&gt;
&lt;TD&gt;164&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;TD&gt;122&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7.4&lt;/TD&gt;
&lt;TD&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;6.9&lt;/TD&gt;
&lt;TD&gt;86.2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;9.4&lt;/TD&gt;
&lt;TD&gt;118.9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7.2&lt;/TD&gt;
&lt;TD&gt;94.2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;8.8&lt;/TD&gt;
&lt;TD&gt;114.3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;7.1&lt;/TD&gt;
&lt;TD&gt;104.9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;12.4&lt;/TD&gt;
&lt;TD&gt;181.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;12.1&lt;/TD&gt;
&lt;TD&gt;166.1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;15.1&lt;/TD&gt;
&lt;TD&gt;166.1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;14.2&lt;/TD&gt;
&lt;TD&gt;157.7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can generate a linear fit model &amp;nbsp;as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Linear Fit&lt;BR /&gt;Y = 24.522739 + 11.068566*X&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Summary of Fit&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;RSquare 0.743712&lt;BR /&gt;RSquare Adj 0.729474&lt;BR /&gt;Root Mean Square Error 16.17783&lt;BR /&gt;Mean of Response 138.695&lt;BR /&gt;Observations (or Sum Wgts) 20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question I have is: how should I go about and&amp;nbsp;generate the 99% confidence intervals for the projected Y when X = 11.8 and 12.7? Or even better if you could elaborate the details on how&amp;nbsp;JMP calculates the confidence intervals (such as, 95%, 99%) for&amp;nbsp;a&amp;nbsp;linear fit model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 21:40:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37071#M21766</guid>
      <dc:creator>ILoveJMP</dc:creator>
      <dc:date>2017-05-03T21:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37078#M21770</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;to get the predicted values and confidence intervals you would do the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ci.png" style="width: 623px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5552iA3B039EB383AA9E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ci.png" alt="ci.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the hotspot (red triangle) next to "Linear Fit".&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;You will find a menu entry "Set alpha Level". Set this to 1% if you are interested in 99% confidence.&lt;/LI&gt;&lt;LI&gt;Now use the same menu and choose "Save predicteds" and "Mean Confidence Limit formula" (or "Indiv Confidence Limit Formula).&lt;/LI&gt;&lt;LI&gt;As a result you will find 3 new columns in the data table.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="data.PNG" style="width: 985px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5553i70D44596CFFAF8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To see how jmp calculates the prediction/CIs you could just klick on the "+"-symbol on the left hand side (next to the column names).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;To get the prediction and CI for specific values of X you would just add new rows&amp;nbsp;(like it did in the picture above: Row 21 and 22). JMP will automatically generate the predictions and CI-values for the X-values you enter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:10:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37078#M21770</guid>
      <dc:creator>shoffmeister</dc:creator>
      <dc:date>2017-03-13T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37102#M21783</link>
      <description>&lt;P&gt;Thanks for the reply! This was what I did. However, I was puzzled by the Vec Quadratic term in the formula as shown belown and also I was expecting 2.576 multiplying the standard error&amp;nbsp;(for 99% confidence interval calculation instead of 2.878 or 1.96 for 95% confidence interval calculation)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(24.5227390655596 + 11.0685662563684 * :X) - 2.87844047273861 *&lt;BR /&gt;Sqrt(&lt;BR /&gt;Vec Quadratic(&lt;BR /&gt;[1.00352196297906 -0.0924403260280234, -0.0924403260280234&lt;BR /&gt;0.00896173786020585],&lt;BR /&gt;[1] || :X&lt;BR /&gt;) * 261.722077754035&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd quesition: is it more appropriate to use Indiv Confidence Limit Formula than Mean Confidence Limit Formula? If not, why so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:51:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37102#M21783</guid>
      <dc:creator>ILoveJMP</dc:creator>
      <dc:date>2017-03-13T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37108#M21786</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;Vec Quadratic()&lt;/STRONG&gt; function is an optimized way to perform the matrix computations&amp;nbsp;before applying the scalar multipliers.&lt;/P&gt;
&lt;P&gt;You want a two-sided 99% confidence interval, so the probability cutoff on each tail is 0.005%. This calculation&amp;nbsp;with the given 18 degrees of freedom for the error indicates the correct multiplier:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;t Quantile( 0.995, 18 ) -&amp;gt;&amp;nbsp;2.87844047273861&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Note that you can select Graph &amp;gt; Profiler and enter all three of the formula columns. You can now change X by dragging or typing over the current value (in red) and entering an exact value. The profilers will give the point estimates, lower and upper bounds.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:08:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37108#M21786</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-13T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37110#M21788</link>
      <description>Thanks for the speedy feedback, Mark! BTW, could you please comment on my 2nd question: indiv or mean?</description>
      <pubDate>Mon, 13 Mar 2017 18:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37110#M21788</guid>
      <dc:creator>ILoveJMP</dc:creator>
      <dc:date>2017-03-13T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37112#M21789</link>
      <description>&lt;P&gt;Second answer:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;No, it&amp;nbsp;is not more appropriate to use the prediction interval if you are estimating or testing the expected value (or mean) of the response with an interval.&lt;/LI&gt;
&lt;LI&gt;Yes, it is more appropriate to use the prediction interval if you are estimating a proportion of the population.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;They are both correct and both appropriate, depending on what you want to estimate or test. They answer different questions. They are not used for the same purpose. The former is for the statistic and the latter is for the data.&lt;/P&gt;
&lt;P&gt;BTW, you can easily visualize either one or both of these intervals when you fit the line in Bivariate. Use same menu under the plot and select &lt;STRONG&gt;Confid Shaded Fit&lt;/STRONG&gt; or &lt;STRONG&gt;Confid Shaded Indiv&lt;/STRONG&gt;. One is related to the uncertainty in the sample statistic (regression line) and the other is related to the uncertainty of individual observations.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:46:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37112#M21789</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-13T18:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37113#M21790</link>
      <description>&lt;P&gt;Thanks for the detailed explanation!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:50:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/37113#M21790</guid>
      <dc:creator>ILoveJMP</dc:creator>
      <dc:date>2017-03-13T18:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43250#M25040</link>
      <description>HI Mark!&lt;BR /&gt;&lt;BR /&gt;Can you show how JMP performs Vec Quadratic calculation? I am looking for a generic equation that JMP uses to calculate prediction interval for OLS. Thanks&lt;BR /&gt;&lt;BR /&gt;Ram</description>
      <pubDate>Tue, 15 Aug 2017 12:52:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43250#M25040</guid>
      <dc:creator>akrantasiwakoti</dc:creator>
      <dc:date>2017-08-15T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43263#M25045</link>
      <description>&lt;P&gt;I can't answer your second question about which kind of interval is appropriate because you&amp;nbsp; have not stated how you would use or interpret the interval. They are both appropriate but for different questions. It depends on the alternative hypothesis you are trying to test.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:17:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43263#M25045</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-15T15:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43266#M25046</link>
      <description>&lt;P&gt;Help-&amp;gt;Scripting Index will tell you that &lt;A href="http://www.jmp.com/support/help/13-1/Matrix_Functions.shtml#2695056" target="_self"&gt;Vec Quadratic(S, X)&lt;/A&gt; is a evaluated as Vec Diag(X *S * X`).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.jmp.com/support/help/13-1/Matrix_Functions.shtml#2695045" target="_self"&gt;Vec Diag(X)&lt;/A&gt; returns the diagonal elements of the square matrix as a vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:25:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43266#M25046</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-08-15T15:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43267#M25047</link>
      <description>&lt;P&gt;Yes, I can show you how JMP performs the Vec Quadratic() calculation. Here is a direct excerpt from the guide:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 701px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7199i7206FA903EF25019/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select &lt;STRONG&gt;Help&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Books&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Scripting Guide&lt;/STRONG&gt;. Then press &lt;STRONG&gt;CTRL-F&lt;/STRONG&gt; and enter "&lt;STRONG&gt;quadratic(&lt;/STRONG&gt;" for the search string. Very easy.&lt;/P&gt;
&lt;P&gt;Using the same simple technique, I found the answer to your next question:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 662px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7200iEFC6A2A454DEB08E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This entry is right above the one for Vec Quadratic().&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:25:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43267#M25047</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-15T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43271#M25050</link>
      <description>&lt;P&gt;Thanks Jeff and Mark for your very quick reply. I got that part. However, in my formula, I have (see attached) 0.395, 0.051, and 0.007 inside first term in Vec Quadratic. I was wondering what these values represent? 0.051 and 0.007 have something to do with the slope, but not very sure. Again, thanks for your&amp;nbsp;assistance.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7201iE9AA68F243C9C9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:58:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43271#M25050</guid>
      <dc:creator>akrantasiwakoti</dc:creator>
      <dc:date>2017-08-15T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43272#M25051</link>
      <description>&lt;P&gt;Taken directly from the description and explanation I just posted, it is a "symmetric matrix," the "inverse covariance matrix." It refers to the covariance of the parameter estimates, of course.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 16:14:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43272#M25051</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-15T16:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43336#M25088</link>
      <description>Thanks Mark! But where in the JMP report can i actually see these values (other than the formula box I showed here).</description>
      <pubDate>Thu, 17 Aug 2017 03:08:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43336#M25088</guid>
      <dc:creator>akrantasiwakoti</dc:creator>
      <dc:date>2017-08-17T03:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43344#M25095</link>
      <description>&lt;P&gt;The covariance matrix for the estimates&amp;nbsp;is not provided in the JMP reports for Bivariate or Fit Least Squares. (Fit Least Squares provides an optional&amp;nbsp;report about the correlation of the estimates, but that information is not what you want.) It is not available through a menu command, either. It is available as the first argument to the Vec Quadratic() function when you save the formula for confidence intervals, as you already discovered.&lt;/P&gt;
&lt;P&gt;All of the textbooks about linear regression methods that I know of cover the linear model, parameter estimation, interval estimation, covariance of the estimates, and more. I am sure that much of the same information is available on reliable Web sites if you don't have or do not want to procure one of these textbooks.&lt;/P&gt;
&lt;P&gt;Given that you are using JMP and JMP already provides these intervals graphically and numerically, I don't understand why you want to go through of the explicit computations.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:14:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43344#M25095</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-17T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43414#M25140</link>
      <description>&lt;P&gt;Here is a script that demonstrates how the covariance of the estimates is computed using your sample of data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

// make example into data table
dt = New Table( "Example for CI in Regression",
	Add Rows( 20 ),
	New Column( "X",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values(
			[7.9, 13, 10.8, 11.6, 10.5, 11.1, 8.8, 11.9, 11.1, 9, 7.4, 6.9, 9.4, 7.2,
			8.8, 7.1, 12.4, 12.1, 15.1, 14.2]
		)
	),
	New Column( "Y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values(
			[115, 154, 156, 182, 124, 157, 129, 181, 164, 122, 100, 86.2, 118.9,
			94.2, 114.3, 104.9, 181.5, 166.1, 166.1, 157.7]
		)
	)
);

// perform regression analysis
fls = dt &amp;lt;&amp;lt; Fit Model(
	Y( :Y ),
	Effects( :X ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run(
		:Y &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Plot Actual by Predicted( 0 ),
		Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 0 ), Box Cox Y Transformation( 0 )}
	)
);

// obtain model matrix x
xx = fls &amp;lt;&amp;lt; Get X Matrix;

// compute covariance matrix of parameter estimates
cov est = Inverse( xx` * xx );

// display covariance matrix
New Window( "Estimates Covariance",
	Outline Box( "Covariance of Estimates",
		Matrix Box( cov est )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first part of the script produces a data table with the data that you first provided. I use the Fit Least Squares platform to get the regression model matrix but it could also be made using matrix operations. Then it computes and displays the covariance matrix.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 246px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7232i0E7DC8A2650D9360/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You should recognize this matrix as the first argument in the Vec Quadratic() function in the column formula that you saved.&lt;/P&gt;
&lt;P&gt;The covariance matrix is the inverse of the information matrix for the parameters, which, in turn, is the&amp;nbsp;Transpose( XX ) * XX, where XX is the model matrix. XX has a column for every term in the linear model. In your example, the frist&amp;nbsp;column is &lt;STRONG&gt;1&lt;/STRONG&gt; to estimate the intercept (constant response) and the second column is the X data column from the data table (your predictor). If you included&amp;nbsp;the quadratic term, the third column of XX would be X^2, and so on.&amp;nbsp;The response column Y is not involved.&lt;/P&gt;
&lt;P&gt;I hope that this example illustrates what the covariance matrix is and where it comes from.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 15:46:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/43414#M25140</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-08-18T15:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/45627#M26067</link>
      <description>&lt;P&gt;I think my JMP is an old versiont&amp;nbsp;(10.0) so that in my drop down menu it does not have ""Mean Confidence Limit formula" or "Indiv Confidence Limit Formula". Any suggestion how to get those Y+CI and Y-CI numbers? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 22:43:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/45627#M26067</guid>
      <dc:creator>papaya</dc:creator>
      <dc:date>2017-10-06T22:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: How JMP calculate confidence interval for a linear fit model</title>
      <link>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/421251#M67011</link>
      <description>&lt;P&gt;This forum is wonderful!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 10:23:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-JMP-calculates-confidence-interval-for-a-linear-fit-model/m-p/421251#M67011</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2022-11-04T10:23:11Z</dc:date>
    </item>
  </channel>
</rss>

