Curve fitting problem

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,691
Office Version
  1. 365
Platform
  1. Windows
I know this is technically not an Excel question, but there are a lot of people here with better math skills than mine, so I hope this is OK.

I would like to find a family of functions, f(x,m), that meets these conditions:

  1. Maps the domain (0,10) onto the same range and is continuous over that domain.
  2. f(0) = 0
  3. f(10) = 10
  4. f(5) = m; 0<m<10
  5. f(x) is monotonically increasing. This means that it cannot be greater than 10 or less than 0.
  6. If m=5, the function is y=x (straight line)

I thought I had it with quadratics (parabolas), but when m gets close to 0 or 10, the function exceeds the range. Here are the results of the parabolas:

https://www.dropbox.com/sh/hwboo6bb6i40451/AADDz82Ev1oEYycC-0QRNSXBa?dl=0

This is more or less what I want, but with the functions staying within the range.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
One way you might want to do this:

For m<=5:
f(x) = xk / 10k-1
where k = (ln(10) - ln(m)) / (ln(10) - ln(5))

For m>5:
f(x) = 10 - (10-x)k / 10k-1
Where k = (ln(10) - ln(10-m)) / (ln(10) - ln(5))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top