+ Reply to Thread
Results 1 to 15 of 15

Regression data

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Regression data

    Hello to everyone.

    I'm facing an issue on Excel chart. I cannot find the correct trendline for this chart.

    My goal is: find a function that give me a markup for a specific price.

    The function has to be a trendline of different price and markup as per attached file.

    Can anyone help me on this matter? Also explain why Excel is not making the right trendline?

    Thanks
    Marco
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Regression data

    I'm not sure I understand your question. It appears to me that none of the built in chart trendline equation forms is suitable for your data. You can program the spreadsheet to regress the data against just about any function you can come up with. What regression equation do you want to use for this?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    Thanks for your reply.

    I would like to use any function that explain the majority of the data.

    I have tried the Power trendline (in red) but it doesn't match my guessing.

    I would like to have a function more similar to the green line.

    Attachment 631004

    Sorry for my bad english. Hope it's more clear now. Any other question, let me know.

    Marco

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Regression data

    That data is unlike any price markup data I've seen.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Regression data

    Your attachment failed to attach, so I cannot see the red and green lines you mention.

    So you have not yet chosen a regression equation. We are usually pretty good at Excel questions (how to perform a regression against a chosen function in Excel), but don't always have the expertise to tackle non-Excel questions (like choosing a regression equation). I don't think any of us here has the expertise to recommend a regression equation based only on the raw data presented. Can you tell us anything about the desired regression equation?

    One observation, if I format your vertical axis to be a logarithmic axis (so I create a log-log plot where a power trendline should look like a straight line), it appears to me that the raw data has some artificial boundaries or something applied to it that form two straight lines on the log-log plot. I might look at whatever is causing those artificial boundaries and see what that might suggest for a regression equation.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Regression data

    Your second attachment can be opened from Chrome, and I've attached it here.

    You've used piecewise power series regressions, and the r^2 values are terrible for all but the last. If you change the plot to log-log, you'll also see that they are not piece-wise continuous, and why no smooth function could be applied to all the data.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    Thanks for all your reply.

    I'd try to explain what the Excel file contains.

    There are the prices on the horizontal axis and there are the mark-ups in the vertical axis.

    I put all the data in a scatter chart. The horizonal axis was changed in a logarithmic scale in order to have a better view.

    Selecting a datum on the graph, I inserted a trendline of POWER type (in red) but I would like to find a function more similar to the green one (I have drawn manually the curve).

    Chart.PNG

    For example, on the other sheet, I divided the data by ranges to see if I could created a more accurate curve.

    Chart_2.PNG

    Only now I wanted to find a curve that included them all but I'm not able to create the right function.

    Hopw it's more understandable.

    Marco
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Regression data

    I think I understand what you are trying to do, but I have no idea what kind of regression equation to choose. It often seems that the most difficult part of these questions is the non-Excel question of which regression equation to choose. I have no idea what kind of regression equation would be appropriate.

    As a purely empirical observation (so it has no basis in reality): If I make both axes linear, I can talk myself into seeing a hyperbola/reciprocal function in the data.
    https://en.wikipedia.org/wiki/Hyperb...uation_y_=_A/x
    https://calculus.subwiki.org/wiki/Reciprocal_function
    https://www.mathsisfun.com/sets/func...eciprocal.html

    I could see a regression equation like y=m*(1/x)+b possibly providing a decent fit of the data. I have no idea what kind of price/markup dynamics would be described by such an equation.

  9. #9
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    Thanks for your replies and advices.

    What kind of regression do you think it could be applied?

    Marco

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Regression data

    What does that data actually represent?

  11. #11
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    At the moment, same prices are multiplied with different markups.

    The data in the table represents the prices with their relative markups.

    For example:

    Price: 1,000000 - Markup: 3,410000
    Price: 1,000000 - Markup: 2,500000
    Price: 1,000000 - Markup: 2,610000
    Price: 1,000000 - Markup: 2,500000

    What I would like to have is: a function that can represent at the best the data and consequently when I have a price I can calculate the unique mark-up.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Regression data

    What kind of markup scheme adds 500 to a price of 0.002 and 2.9 to a price of 6534?

  13. #13
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    Unfortunately these are the data that I have.

  14. #14
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Regression data

    I can't speak to what kind of markup scheme this is, I will note (following up on my reciprocal function idea) that, if you take the reciprocal of price, a high percentage (~60%) of those points where price is less than about 0.4, the markup is exactly the reciprocal of price. 500=1/0.002 (the very first data point), 2.5=1/0.4, 111.11=1/0.009, 50=1/0.02, 10=1/0.1, and so on.

    I also note that there seems to be some kind of "break" in the data at price=0.4. Below price=0.4, there seems to be one way to calculate markup, and above price=0.4, there is a different way to calculate markup.

    Beyond that, it makes no sense to me.

  15. #15
    Registered User
    Join Date
    07-05-2019
    Location
    Bergamo, Italy
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Regression data

    Thanks again for you explanation and help.

    I'll try to apply some of your tips and make some changes.
    I'll see if I can get some better curves.

    Marco

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. automative Regression, Macro, update regression with new values
    By #läuftbeimir?! in forum Excel General
    Replies: 6
    Last Post: 12-17-2018, 04:49 PM
  2. Replies: 0
    Last Post: 10-14-2018, 08:38 PM
  3. generating regression slopes from raw data
    By Aaron J051in in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2017, 02:29 PM
  4. Plot Regression Equation Without Data
    By penguin123Demented in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-30-2014, 04:26 PM
  5. Panel Data Regression in Excel
    By eoino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2010, 09:21 AM
  6. Regression Line of two sets of data
    By pittopitto in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-23-2007, 02:47 AM
  7. regression input data
    By Teresa in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1