<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Ploting a 3D graph and make a 3D regresssion</title>
    <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 21:09:28 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 21:09:28 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Ploting a 3D graph and make a 3D regresssion</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Ploting a 3D graph and make a 3D regresssion</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion</link>
    </image>
    <item>
      <title>Regression</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59906</link>
      <itunes:summary>&lt;p&gt;For annotations on the axes, &lt;/p&gt;
&lt;pre&gt;
&amp;gt; pointplot3d(..., labels=['REDOX,'IC50','LIPO']);
&lt;/pre&gt;
&lt;p&gt;For the regression, assuming you want the best least-squares fit for a plane&lt;/p&gt;
&lt;p&gt;LIPO = a*REDOX + b*IC50 + c&lt;/p&gt;
&lt;p&gt;you can use LSSolve in the Optimization package:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; Optimization[LSSolve]([seq(LIPO[i]-(a*REDOX[i]+b*IC50[i]+c), 
        i=1..7)]);
&lt;/pre&gt;
&lt;pre&gt;
&amp;gt; plane:= subs(%[2],a*x + b*y + c);

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;For annotations on the axes, &lt;/p&gt;
&lt;pre&gt;
&amp;gt; pointplot3d(..., labels=['REDOX,'IC50','LIPO']);
&lt;/pre&gt;
&lt;p&gt;For the regression, assuming you want the best least-squares fit for a plane&lt;/p&gt;
&lt;p&gt;LIPO = a*REDOX + b*IC50 + c&lt;/p&gt;
&lt;p&gt;you can use LSSolve in the Optimization package:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; Optimization[LSSolve]([seq(LIPO[i]-(a*REDOX[i]+b*IC50[i]+c), 
        i=1..7)]);
&lt;/pre&gt;
&lt;pre&gt;
&amp;gt; plane:= subs(%[2],a*x + b*y + c);

&lt;/pre&gt;</description>
      <guid>59906</guid>
      <pubDate>Thu, 21 Jan 2010 22:36:03 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>NonlinearFit</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59907</link>
      <itunes:summary>&lt;pre&gt;
I hope this helps ...&lt;/pre&gt;
&lt;pre&gt;
f := proc (p, r, i) r[i, 3]-p[1]*r[i, 1]-p[2]*r[i, 2]-p[3] end proc;&lt;br /&gt;H := Statistics[NonlinearFit](3, f, &amp;lt;&amp;lt;(REDOX)&amp;gt;|&amp;lt;IC50&amp;gt;|&amp;lt;LIPO&amp;gt;&amp;gt;, 
    output = solutionmodule);&lt;br /&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;
H:-Results();&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;[&amp;quot;residualmeansquare&amp;quot; = 0.0626631103666510,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;quot;residualsumofsquares&amp;quot; = 0.250652441466604,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;quot;residualstandarddeviation&amp;quot; = 0.250326008170647,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp; &amp;quot;degreesoffreedom&amp;quot; = 4,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;parametervalues&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;parametervector&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;residuals&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
You could see a bit more with this:&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;infolevel[Optimization] := 10;&lt;br /&gt;&amp;nbsp;infolevel[Statistics] := 3;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;pre&gt;
I hope this helps ...&lt;/pre&gt;
&lt;pre&gt;
f := proc (p, r, i) r[i, 3]-p[1]*r[i, 1]-p[2]*r[i, 2]-p[3] end proc;&lt;br /&gt;H := Statistics[NonlinearFit](3, f, &amp;lt;&amp;lt;(REDOX)&amp;gt;|&amp;lt;IC50&amp;gt;|&amp;lt;LIPO&amp;gt;&amp;gt;, 
    output = solutionmodule);&lt;br /&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;
H:-Results();&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;[&amp;quot;residualmeansquare&amp;quot; = 0.0626631103666510,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;quot;residualsumofsquares&amp;quot; = 0.250652441466604,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;quot;residualstandarddeviation&amp;quot; = 0.250326008170647,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp; &amp;quot;degreesoffreedom&amp;quot; = 4,&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;parametervalues&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;parametervector&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
&amp;nbsp;&amp;nbsp; &amp;quot;residuals&amp;quot; = ...&lt;/pre&gt;
&lt;pre&gt;
You could see a bit more with this:&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;infolevel[Optimization] := 10;&lt;br /&gt;&amp;nbsp;infolevel[Statistics] := 3;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>59907</guid>
      <pubDate>Fri, 22 Jan 2010 01:52:26 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>I thank you very much for</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59909</link>
      <itunes:summary>&lt;p&gt;I thank you very much for your prompt answer,&lt;/p&gt;
&lt;p&gt;but I don't really understand all mathematical concept there is behind... Indeed I'm a French chemist and I'm not very used to use Maple software.&lt;br /&gt;
&lt;br /&gt;
I tried to&amp;nbsp;modify the&amp;nbsp;code to represent my 3 experimental variables&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;with(plots);&lt;br /&gt;
&amp;gt; IC50 := [5, .5, .6, 1.5, 1, 3, .8];&lt;br /&gt;
&amp;gt; REDOX := [.2, .41, .52, .72, .69, .56, .38];&lt;br /&gt;
&amp;gt; LIPO := [.572, 2.233, 1.966, 2.107, 1.919, 1.008, 2.345];&lt;br /&gt;
&amp;gt; s := NULL;&lt;br /&gt;
&amp;gt; for i to nops(IC50) do s := s, [LIPO[i], REDOX[i], IC50[i]] end do;&lt;br /&gt;
&amp;gt; pts := [s];&lt;br /&gt;
&amp;gt; pointplot3d(pts, axes = normal, axis[2] = [color = grey], axis[3] = [color = red], thickness = 3, font = [HELVETICA, BOLD, 11], title = &amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color = blue, symbol = sphere);&lt;br /&gt;
&lt;br /&gt;
but I think there's no difference in the representation. Isn't it?&lt;/p&gt;
&lt;p&gt;1) I tried to add label in pointplot3d function, but Maple returns an error.&lt;/p&gt;
&lt;p&gt;&amp;gt; pointplot3d(pts,axes=normal, axis[2]=[color=grey], axis[3]=[color=red],thickness=3,font=[HELVETICA,BOLD,11],title=&amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color=blue,symbol=sphere, labels=['REDOX,'IC50','LIPO']);&lt;br /&gt;
&lt;br /&gt;
Error, unable to match delimiters&lt;br /&gt;
&lt;br /&gt;
2) I&amp;nbsp;copy/paste the procedure from&amp;nbsp;Herclau (without understanding so much....) but this don't give me a graph...? isn't it?&lt;/p&gt;
&lt;p&gt;I read the help file for the function CurveFitting[ArrayInterpolation] and I think this could help me to draw my graph. But I really don't understand how to use it with my variable given that each variable is independant from another. The result of my 3D map should be a kind of sink.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I thank you very much for your prompt answer,&lt;/p&gt;
&lt;p&gt;but I don't really understand all mathematical concept there is behind... Indeed I'm a French chemist and I'm not very used to use Maple software.&lt;br /&gt;
&lt;br /&gt;
I tried to&amp;nbsp;modify the&amp;nbsp;code to represent my 3 experimental variables&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;with(plots);&lt;br /&gt;
&amp;gt; IC50 := [5, .5, .6, 1.5, 1, 3, .8];&lt;br /&gt;
&amp;gt; REDOX := [.2, .41, .52, .72, .69, .56, .38];&lt;br /&gt;
&amp;gt; LIPO := [.572, 2.233, 1.966, 2.107, 1.919, 1.008, 2.345];&lt;br /&gt;
&amp;gt; s := NULL;&lt;br /&gt;
&amp;gt; for i to nops(IC50) do s := s, [LIPO[i], REDOX[i], IC50[i]] end do;&lt;br /&gt;
&amp;gt; pts := [s];&lt;br /&gt;
&amp;gt; pointplot3d(pts, axes = normal, axis[2] = [color = grey], axis[3] = [color = red], thickness = 3, font = [HELVETICA, BOLD, 11], title = &amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color = blue, symbol = sphere);&lt;br /&gt;
&lt;br /&gt;
but I think there's no difference in the representation. Isn't it?&lt;/p&gt;
&lt;p&gt;1) I tried to add label in pointplot3d function, but Maple returns an error.&lt;/p&gt;
&lt;p&gt;&amp;gt; pointplot3d(pts,axes=normal, axis[2]=[color=grey], axis[3]=[color=red],thickness=3,font=[HELVETICA,BOLD,11],title=&amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color=blue,symbol=sphere, labels=['REDOX,'IC50','LIPO']);&lt;br /&gt;
&lt;br /&gt;
Error, unable to match delimiters&lt;br /&gt;
&lt;br /&gt;
2) I&amp;nbsp;copy/paste the procedure from&amp;nbsp;Herclau (without understanding so much....) but this don't give me a graph...? isn't it?&lt;/p&gt;
&lt;p&gt;I read the help file for the function CurveFitting[ArrayInterpolation] and I think this could help me to draw my graph. But I really don't understand how to use it with my variable given that each variable is independant from another. The result of my 3D map should be a kind of sink.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>59909</guid>
      <pubDate>Sat, 23 Jan 2010 15:47:06 Z</pubDate>
      <itunes:author>Bibinou</itunes:author>
      <author>Bibinou</author>
    </item>
    <item>
      <title>For 1), try</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59910</link>
      <itunes:summary>&lt;p&gt;For 1), try this:&lt;/p&gt;
&lt;p&gt;pointplot3d(pts,axes=normal, axis[2]=[color=grey], axis[3]=[color=red],thickness=3,font=[HELVETICA,BOLD,11],title=&amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color=blue,symbol=sphere, labels=[&amp;quot;REDOX&amp;quot;,&amp;quot;IC50&amp;quot;,&amp;quot;LIPO&amp;quot;]);&lt;/p&gt;
&lt;p&gt;You must be using the Standard interface, because with the Classic interface, the symbol=sphere option is not recognized.&amp;nbsp; The code above works in Standard with v12.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;address&gt;Regards,&lt;br /&gt;
Georgios Kokovidis&lt;/address&gt;
&lt;address&gt;Dr&amp;auml;ger Medical&lt;/address&gt;
&lt;pre&gt;

&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;For 1), try this:&lt;/p&gt;
&lt;p&gt;pointplot3d(pts,axes=normal, axis[2]=[color=grey], axis[3]=[color=red],thickness=3,font=[HELVETICA,BOLD,11],title=&amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color=blue,symbol=sphere, labels=[&amp;quot;REDOX&amp;quot;,&amp;quot;IC50&amp;quot;,&amp;quot;LIPO&amp;quot;]);&lt;/p&gt;
&lt;p&gt;You must be using the Standard interface, because with the Classic interface, the symbol=sphere option is not recognized.&amp;nbsp; The code above works in Standard with v12.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;address&gt;Regards,&lt;br /&gt;
Georgios Kokovidis&lt;/address&gt;
&lt;address&gt;Dr&amp;auml;ger Medical&lt;/address&gt;
&lt;pre&gt;

&lt;/pre&gt;</description>
      <guid>59910</guid>
      <pubDate>Sun, 24 Jan 2010 06:19:34 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>a gpaph</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59911</link>
      <itunes:summary>&lt;p&gt;this give me a graph...&lt;/p&gt;
&lt;p&gt;Statistics[Fit](p1*x1+p2*x2+p3, independentDataMatrix, LIPO, [x1, x2]);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; -0.399224485713786436 x1 - 0.239079452680029364 x2 + 2.56176858831106546&lt;/p&gt;
&lt;p&gt;g1 := plots[pointplot3d](REDOX, IC50, LIPO);&lt;/p&gt;
&lt;p&gt;plots[display](plot3d(-.399224485713786436*x1-.239079452680029364*x2+2.56176858831106546, x1 = -1 .. 1, x2 = 0 .. 5, color = grey, style = wireframe), g1, axes = normal, axis[2] = [color = grey], axis[3] = [color = red], thickness = 3, font = [HELVETICA, BOLD, 11], title = &amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color = blue, symbol = solidsphere, labels = [&amp;quot;REDOX&amp;quot;, &amp;quot;IC50&amp;quot;, &amp;quot;LIPO&amp;quot;]);&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt="the graph" src="http://www.mapleprimes.com/files/9494_TheGraph.jpg" /&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;this give me a graph...&lt;/p&gt;
&lt;p&gt;Statistics[Fit](p1*x1+p2*x2+p3, independentDataMatrix, LIPO, [x1, x2]);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; -0.399224485713786436 x1 - 0.239079452680029364 x2 + 2.56176858831106546&lt;/p&gt;
&lt;p&gt;g1 := plots[pointplot3d](REDOX, IC50, LIPO);&lt;/p&gt;
&lt;p&gt;plots[display](plot3d(-.399224485713786436*x1-.239079452680029364*x2+2.56176858831106546, x1 = -1 .. 1, x2 = 0 .. 5, color = grey, style = wireframe), g1, axes = normal, axis[2] = [color = grey], axis[3] = [color = red], thickness = 3, font = [HELVETICA, BOLD, 11], title = &amp;quot;Correlation IC50 REDOX LIPOPHILIE&amp;quot;, color = blue, symbol = solidsphere, labels = [&amp;quot;REDOX&amp;quot;, &amp;quot;IC50&amp;quot;, &amp;quot;LIPO&amp;quot;]);&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt="the graph" src="http://www.mapleprimes.com/files/9494_TheGraph.jpg" /&gt;&lt;/p&gt;</description>
      <guid>59911</guid>
      <pubDate>Tue, 26 Jan 2010 19:11:10 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>Indeed it works, 
but that's</title>
      <link>http://www.mapleprimes.com/questions/35924-Ploting-A-3D-Graph-And-Make-A-3D-Regresssion?ref=Feed:MaplePrimes:Ploting a 3D graph and make a 3D regresssion:Comments#answer59912</link>
      <itunes:summary>Indeed it works, 

but that's not exactly what I expected.

I would like not to have a simple line, 
but a kind of surface delimitated by my different points.

Thanks a lot for your help</itunes:summary>
      <description>Indeed it works, 

but that's not exactly what I expected.

I would like not to have a simple line, 
but a kind of surface delimitated by my different points.

Thanks a lot for your help</description>
      <guid>59912</guid>
      <pubDate>Thu, 28 Jan 2010 14:19:56 Z</pubDate>
      <itunes:author>Bibinou</itunes:author>
      <author>Bibinou</author>
    </item>
  </channel>
</rss>