How to I insert a line of best fit on a scatter plot????

I have data already organized in tables, and I created a scatter plot. NOw I need to insert a line of best fit and get the equation. How do I do this??? I already calculated a and b (for y=a+bx) but I have no idea how to insert it on the plot. Every search tells me to "insert a trendline"..... but numbers doesnt have that function. Help please???

Open inspector
Go to chart tab
Series
Click on the "Advanced" to reveal the menu
Trendline
Choose the desired trendline (linear etc)
Hope this helps.
Dimitris

Similar Messages

  • How do I do a line of best fit graph!!?

    Hi guys, I need to do a line of best fit graph comparing two sets of numbers. I have the info on a scatter graph but can not find how to insert a line of best fit. The other graph options dont represent the data correctly. any help would be appreciated, thanks, Nick.

    Here's a link to how we did it in the "old days":
    http://www.regentsprep.org/Regents/math/data/linefit.htm
    http://mathdemos.gcsu.edu/mathdemos/lsq-demonew/indexnew.html
    Regards,

  • Extrapolation and Line of Best Fit

    Hello,
    I'm working on a project and I need to make a line of best fit for a scatter plot graph as well as make an extrapolation on the graph...any possibility someone could help me with these two questions?
    Thank you,
    Mike

    Mike,
    Numbers 08 have functions that you can use to calculate your lines of best fit, then chart the line calculations along with your data.
    See INTERCEPT and SLOPE for 1st order lines.
    Numbers 09 added quite a few new functions and also automatic Trendline generation.
    Jerry

  • Line of best fit and reverse axis

    Hi, How do i do a line of best fit in Numbers? Instead of having a line like do to dot i need it to be smooth, Excel does it but does Numbers?
    I also need the bottom axis to start at 10 and go down to 0 and i need the left axis to be on the right! How do i do this?
    thanks a lot

    Hello
    *go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish.
    Then, cross your fingers, and wait at least for iWork'09
    Yvan KOENIG (from FRANCE lundi 4 février 2008 13:36:58)

  • Line of best fit

    Is there a way I can get a linear line of best fit for an XY plot.
    Thanks,
    Matt.
    Solved!
    Go to Solution.

    Have you looked at the fitting palette under "Mathematics"?  You need the Full Development System for these tools.
    You can take the Best Linear Fit array from the linear fit.vi and wire this into your graph as a secondary plot.
    Message Edited by vt92 on 07-20-2009 10:11 AM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • How to Make a Line of Best Fit/Best Fit Line/Trendline in iWork Numbers '09

    I'm not sure if this is well-known or has been answered elsewhere already, but multiple Google searches have not shown this solution on how to create a line of best fit in Numbers '09 (there is another method that involves drawing a line yourself, but this is much easier and more accurate).
    I stumbled across this trying the above self-draw technique and got so excited I wanted to post the technique. So here is what you do:
    1) Type out your X and Y data
    2) Select the data and select Charts, then select the Scatter Plot
    3) Open up Inspector and select the Chart tab
    4) Select the "Series" tab below the picture of the Scatter Plot and the "Chart Colors..." button
    5) At the bottom of the Inspector window, open the "Advanced" arrow
    6) Select the "Trendline" tab and select the "Linear" trendline from the drop-down bar
    That's it! You can even select the options to show the line equation or the R-squared value!
    Here is a picture of the selected options and what your graph should look like (check that nice R-squared value!).
    http://i.imgur.com/AvfPv.png
    I hope this helps and hope it moves up to the top of the Google search page for this feature.

    Hi Asclepius37,
    Why not just search "trend" or "trendline" in the Numbers '09 User Guide?
    That would take you to page 149 of the guide and the article "Showing Trendlines in Charts," which lists a set of instructions very similar to those in your post.
    The Numbers '09 User Guide and the iWork Formulas and Functions User Guide are searchable pdf files, and may both be downloaded through kinks in the Help menu in Numbers. Both are excellent resources to have on hand.
    Regards,
    Barry
    PS: Searching "best fit" will return zero results, but "best" or "best-fit" will get you to the same article.
    B

  • Calendar app. How do i insert a line break in the title of an appointment?

    How do i insert a line break in the title of an appointment?

    Jonny Marshall wrote:
    Hi, I've had this problem for a while now but just can't find the answer anywhere. I keep seeing that 'shift+return' or 'ctrl+return' will create a new line in a cell in numbers but it just doesn't! I can't seem to find a way of doing it. Please help!
    Difficult to guess what is wrong in your system or what you made wrongly.
    Here it work.
    Maybe a problem of corrupted preferences.
    Try to run Numbers from an other User Account.
    If it behaves flawlessly it will be time to try to disable the Preferences files:
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Numbers. plist
    <startupVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Numbers. LSSharedFileList.plist
    (Also, not numbers related, but if you happen to know how I find out what version of OSX I'm using please let me know.)
    menu :  (Apple)
    menu item : About this mac
    Yvan KOENIG (VALLAURIS, France) jeudi 3 juin 2010 14:41:07

  • How to draw line of best fit?

    Hey all,
    I am trying to draw a line of best fit with the scattered points being displayed as well. I have attached my VI below and tried all sorts of methods,
    but to no avail. I am aware that there is a 'liner fit.vi' which I tried, but it did not give me what I wanted. In fact the line wasn't best fit at all.
    I hope someone could help me as I'm new to LabVIEW.
    Thanks in advance!
    Cheers,
    Ruben 
    Attachments:
    Weibull LabVIEW Plot_Valve Spring.vi ‏15 KB

    Hi Ruben
    The Linear Fit.vi should provide the results you require.  Check the attachment for an edited version of your code.  Does this solve your problem?  You can check the help file for advice on using different fitting techniques, setting tolerances and weightings.
    Regards,
    Peter D
    Attachments:
    EDIT_Weibull LabVIEW Plot_Valve Spring.vi ‏23 KB

  • Help with Line of Best Fit equation!

    Alright, I'm making a graphing program where the user can input up to 10 coordinates (all ints) and when they click draw, the points will be graphed on a cartesian plain and the program will calculate and draw the line of best fit... including displaying the equation.
    I've got the yIntercept to work perfectly, but sometimes the slope comes out to be 0.0, and such.
    The equation to do it can be found on this site (in the big white space)
    http://people.hofstra.edu/faculty/Stefan_Waner/RealWorld/calctopic1/regression.html
    There are several things you must do first:
    - Find the sum of all the X values
    - Find the sum of all the Y values
    - Find the sum of all the X*Y values
    - Find the sum of all the X^2 values
    You then stick it into the equation (you can see on that site) and you will get the slope. You then take the slope value and insert it into another equation to get the y-intercept
    I was just wondering if you could just look over my calculation and see where I may be going wrong. (Sometimes, I get an error in the console saying I cannot divide by 0)
    public void lineOfBestFit(int numOfPoints, int largeNumX, float increment, float incrementY)
         Graphics g = canvas.getGraphics();
         float sumX = 0;
         float sumY = 0;
         float sumXY = 0;
         float sumXSqr = 0;
         int smallNumX=9999999;
         int firstPoint, lastPoint;
         //Creates the variables for the line of best fit equation
         for(int j=0;j<numOfPoints;j++)
              sumX+=xValue[j];
              sumY+=yValue[j];
              sumXY+=(xValue[j]*yValue[j]);
              sumXSqr+=(Math.pow(xValue[j],2));
         //Line of best fit equation
         float slope = ((numOfPoints*sumXY)-(sumX*sumY))/((numOfPoints*sumXSqr)-(sumX*sumX));
         float yInt = (sumY - (slope*sumX))/numOfPoints;
         for(int j=0;j<numOfPoints;j++)
              if(xValue[j]<smallNumX)
                   smallNumX=xValue[j];
         firstPoint=((int)((slope*smallNumX)+yInt)*50/(int)incrementY+210);
         lastPoint=((int)(slope*largeNumX+yInt)*50/(int)incrementY+210);
         int firstX=((int)(smallNumX*50/(int)increment+210));
         int lastX=((int)(largeNumX*50/(int)increment+210));
         g.drawLine(firstX,firstPoint,lastX,lastPoint);
         //Rounds and displays the line of best fit equation
         slope = (Math.round(slope*100))/100;
         yInt = (Math.round(yInt*100))/100;
         if(numOfPoints>1)
                     if(yInt < 0)
              g.drawString("y = " +slope+ "x " +yInt,250,350);
              else
                   g.drawString("y = " +slope+ "x +" +yInt,250,350);

    I think I may have solved it.... seems to be working now.
    I casted all the numOfPoints as (float) .... and commented out the rounding. Since some of the slopes were coming out to be 0.00003, that would display 0.0 if I rounded.

  • Line of best fit in scatter plots

    when making a line of best fit ( in this case a curve of best fit) how do I extend the curve beyond my data so that I can extrapolate information? Can I do this or will I have to do it manually? (print it out and draw it myself)

    If you graph your data you can allow Numbers to plot a best fit AND show the equation it used (which will depend on the type of fit you selected).
    Here I plotted some data where I introduced random noise (so it won't be "perfect") then had Numbers provide the best fit.:
    The bluse graph is the original data.  The Green is a prediction based on the coefficients from Numbers.
    Once you graph the original data click on the graph, and then click a second time on one of the points in the graph to highlight the series:
    Once you have the series highlighted you can use the Chart Inspector to turn on the Trendline.
    I selected Polynomial because (1) It fit best and (2) the equation I used to make my made-up data was actually a polynomial.  Check the "Show Equation" box to see the coefficients.  Now take these coefficients and place then in cells of your table that has the original data (or some other table).
    Now add a new column to your data (I called mine Ypredicated or Yextrapolated):
    Now add a fomula to use the coefficients which will produce a 2nd graph you may extend beyond the data set:
    C2=$E$6*A2*A2+$E$7*A2+$E$8
    select C2 and fill down as needed (make sure the references to the coefficients are absolute... hence the "$" before the cell row and column names in the formula)
    Finally add the extrapolated curve to your graph to see if it fits:
    click on the graph
    1) click the little cog at the top of the X column and select "Share X values"
    <can't include screen shot right now... not sure why>
    2) then expand the graph data set by clicking and holding the little circle at the bottom right of the highlighted area, and drag to the right so the new predicted column is included.
    <can't include screen shot right now... not sure why>

  • Line of Best Fit/Trendline

    As part of my Physics class we need to graph data that can only be displayed using a line of best fit (AKA a Trendline) - I can make any graph fine on Numbers but I am at a loss on how to make a trendline.
    Could you please aid me in my search to create a Trendline?
    Thanks,
    Jean-Paul J
    Message was edited by: Jean-Paul J

    Question asked and responded several times.
    Feature unavailable.
    +-+-+-+-+-+-+-+-+
    Worried Life Blues 2008
    Discussions
    +Apple Discussions, launched in August, 2000, have grown rapidly in usage and features. The main features include personalization, subscription capabilities and email capabilities. _For information on how to use Discussions, please visit the Discussions Help Page_. Cookies should be enabled and an Apple ID account is required if you would like to contribute to the discussions.+
    +*What is Apple Discussions and how can it help me?*+
    +
    Apple Discussions is a user-to-user support forum where experts and other Apple product users get together to discuss Apple products. … You can participate in discussions about various products and topics, find solutions to help you resolve issues, ask questions, get tips and advice, and more.+
    +_If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages._+
    +*I have a question or issue*—+
    +how do I search for answers? _
    It's possible that your question or issue has already been answered by other members so do a search before posting a question._ On most Apple Discussions pages, you'll find a Search Discussions box in the upper right corner. Enter a search term (or terms) in the field and press Return. Your results will appear as a list of links to posts below the Search Discussions Content pane.+
    +Search tips are available here:+
    +http://discussions.apple.com/help/search-tips.html+
    +-+-+-+-+-+-+-+-+
    Yvan KOENIG (from FRANCE dimanche 28 septembre 2008 15:45:22)

  • Line of best fit in NUMBERS

    How is a line of best fit created from a scatter graph in NUMBERS. There is a function called SLOPE which seems to do this but no information on how to use it!

    no information on how to use it!
    you can tap the blue arrow next to the function name for a small guide on how to use the function
    You can tap on the name of the function  two times (pause in between) and the same dialog appears above it
    There is an entire manual dedicated to the functions used in Numbers.
    As almost all of these functions are identical between spreadsheets many examples can be found on the internet but for the other programs (XL for example). Just remember that Array formulas (ones that require Ctrl-Shift-Enter in XL) dont exist in Numbers. You would use the Index function to wrap those functions that require CSE XL functions, as described in the help file for LINEST.
    You might also look at LINEST as well if your working with lines of best fit.
    Jason

  • Line of Best Fit / Linear Regression

    I am trying ot get a line of best fit for a set of data in oracle
    Lets say i have the following dataset.
    Since there are a lot of 0 in the Terms I would like to ignore those Terms
    Only use the Terms which have values to get a line of best fit.
    Any help will be appreciated.
    Thank you.
           TERMS            Count
    TERM_0801     78
    TERM_0802     58
    TERM_0803     0
    TERM_0804     82
    TERM_0805     0
    TERM_0806     0
    TERM_0807     32
    TERM_0808     0
    TERM_0901     92
    TERM_0902     0
    TERM_0903     0
    TERM_0904     56
    TERM_0905     0
    TERM_0906     0
    TERM_0907     0
    TERM_0908     0
    TERM_1001     85
    TERM_1002     0
    TERM_1003     0
    TERM_1004     67
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    Edited by: Chloe_19 on Jul 24, 2012 11:14 PM

    Argh, i wonder about the values i got, different from what excel says ;-), till you came up with your solution.
    They changed the order of the paramters from that what i consider as common:
    "expr1 is interpreted as a value of the dependent variable (a y value), and expr2 is interpreted as a value of the independent variable (an x value)."
    Do they also have left-hand traffic in the new world?
    However, didnt OP wanted to have the zeros eliminated before the calculus?
    with data as
    select 'TERM_0801' t, 78 y from dual union all
    select 'TERM_0802', 58 from dual union all
    select 'TERM_0803', 0 from dual union all
    select 'TERM_0804', 82 from dual union all
    select 'TERM_0805', 0 from dual union all
    select 'TERM_0806', 0 from dual union all
    select 'TERM_0807', 32 from dual union all
    select 'TERM_0808', 0 from dual union all
    select 'TERM_0901', 92 from dual union all
    select 'TERM_0902', 0 from dual union all
    select 'TERM_0903', 0 from dual union all
    select 'TERM_0904', 56 from dual union all
    select 'TERM_0905', 0 from dual union all
    select 'TERM_0906', 0 from dual union all
    select 'TERM_0907', 0 from dual union all
    select 'TERM_0908', 0 from dual union all
    select 'TERM_1001', 85 from dual union all
    select 'TERM_1002', 0 from dual union all
    select 'TERM_1003', 0 from dual union all
    select 'TERM_1004', 67 from dual
    select
    round(regr_slope(y,x), 4) slope
    ,round(regr_intercept (y, x) , 4) intercept
    ,round(regr_r2(y,x), 4) best_fit
    from (
    select
      row_number() over ( order by t ) x, y
    from data
    where
    y!=0
    SLOPE INTERCEPT BEST_FIT
    .4762 66.6071 .0035 regards
    Edited by: chris227 on 25.07.2012 04:58
    Edited by: chris227 on 25.07.2012 05:10
    best fit added

  • How can I insert a line that extends from a word without it affecting the formatting of the WHOLE document?

    I am trying to create a simple form for people to print out and fill in. I want fields like 'Name' with a line extending from the word for people to write on. What should be the simplest of tasks has confounded me for HOURS. Inserting a line as a 'shape' or 'drawing with pen' just messes up the formatting of the whole document. I've used Pages 'Help' but it almost forced me to staple my eyelids to the carpet. Surely there is a SIMPLE way to do this. I even tried 'tricking' Pages by 'underlining' a row of spaces. It won't even allow you to do this because Pages is far more clever than a human.
    My cat is looking at me with increasing consternation.

    I would use a right-aligned tab with an underline leader.

  • How to insert contract line item from file using any bapi

    Hi gurus,
    Just wanted to ask how can I insert new line item which were created from a file
    when updating/changing contract details.
    The requirement was to create new line item from a file and use those details in updating the contracts.
    What BAPI can I use to address this requirement?
    Thanks!

    Hi Rajvansh Ravi,
    This is for Service Contracts. Sorry for missing this detail.
    Hi Tarangini Katta,
    I have already used BAPI_CONTRACT_CHANGE, and it was good in updating existing line items,
    but it doesn't update the contract when a new line item is created in the file.
    To make a clearer view of the flow (requirement)
    First scenario:
          From the tcode (ME32K or ME33K), we can download contract details into an excel file for a particular service contract.
    Next scenario:
          That same excel file (downloaded) can be enhanced per line item (can also insert new line) and be saved locally.
    Next scenario:
          This same excel file can also be uploaded. And the changes done to the file have to overwrite or rather have to changed the details of the same contract and then will appear/reflect in the tcode.
    With this, if we had a new line item created (inserted) on the file (not change), we can not see the changes when we view the same contract in the tcode. (ME33K)
    Do you have any idea how the insertion from the file can be reflected on the tcode using an existing bapi?
    Hope this was clear enough...
    Thanks and hope to hear something from you soon.

Maybe you are looking for

  • Deletion of Saleorders

    Dear All, Can any one tell me how to delete the sale orders, we are having 5000 open sale orders, we need to delete all those sale orders at a shot, is there any standard transaction for deleting all the sale orders at a time. Thanks in advance Regar

  • "Open File with" doesn't work correctly!

    Hello, for some files Bridge chooses the false software to open them. There seems to be no way to change the properties for the "open with" function. To be more concrete: - Bridge tries to open MindManager files ".mmap" using Safari for Windows. - Wi

  • Not able to use CONCAT in CDS View

    Hello, My requirement is to prepare a field by concatenating 'PR' in front of the field and use it in a CDS view. I am getting the below error while doing it. Is the issue with my HANA version or the code is wrong.

  • HI Data Mart Interface from one BW to another BW System

    Hi , I am trying to extract data from one CUBE in a BW system to another CUBE In another BW system .. WHen I am trying to extract it gives me srror saying that . udayulli - Short dump in the Warehouse Diagnosis The data update was not completed. A sh

  • Output in Browser

    Hi All, Is there anyway by which I can get the output of a query in a browser? Regarrds, Amit