Choosing functions for data approximation with least square method












0












$begingroup$


I have data (supposedly a volt-amper characteristic of some TTL component) which is:



 U[V]: x := [ 0.25,  1.0,   1.4,   1.45,  1.50, 1.55, 1.6, 5.0]
I[mA]: y := [-0.85, -0.65, -0.54, -0.31, -0.1, -0.02, 0.0, 0.004]


enter image description here



I'd like to approximate this data using the least squares method, so that I can after get a "reasonably accurate" values for 0.8V and 3.5V. The approximated function should however be "reasonably well approximated" for other values too. The best accuracy for me wasn't even $ epsilon = 0.1 $ (the error was something like 0.28),so anything beyond that is progress.



What I need is the functions, which will help me approximate this data. Getting the c-values (the multipliers for the functions) does not concern me, as I have a function that computes these sort-of optimally.



I've had some success trying to use these functions, but haven't been able to fit it properly and honestly I am out of ideas.



$$
f_{1} := -e^{-t^2} \
f_{2} := -frac{1}{t+1} \
f_{3} := 1
$$



I would welcome any kind of help, I am struggling with even finding a function that would look at least something like this.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
    $endgroup$
    – Mefitico
    Jan 9 at 18:19










  • $begingroup$
    This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
    $endgroup$
    – Welsy
    Jan 9 at 18:24










  • $begingroup$
    Did you simply try polynoms ?
    $endgroup$
    – Damien
    Jan 9 at 18:28










  • $begingroup$
    I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
    $endgroup$
    – Welsy
    Jan 9 at 18:34


















0












$begingroup$


I have data (supposedly a volt-amper characteristic of some TTL component) which is:



 U[V]: x := [ 0.25,  1.0,   1.4,   1.45,  1.50, 1.55, 1.6, 5.0]
I[mA]: y := [-0.85, -0.65, -0.54, -0.31, -0.1, -0.02, 0.0, 0.004]


enter image description here



I'd like to approximate this data using the least squares method, so that I can after get a "reasonably accurate" values for 0.8V and 3.5V. The approximated function should however be "reasonably well approximated" for other values too. The best accuracy for me wasn't even $ epsilon = 0.1 $ (the error was something like 0.28),so anything beyond that is progress.



What I need is the functions, which will help me approximate this data. Getting the c-values (the multipliers for the functions) does not concern me, as I have a function that computes these sort-of optimally.



I've had some success trying to use these functions, but haven't been able to fit it properly and honestly I am out of ideas.



$$
f_{1} := -e^{-t^2} \
f_{2} := -frac{1}{t+1} \
f_{3} := 1
$$



I would welcome any kind of help, I am struggling with even finding a function that would look at least something like this.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
    $endgroup$
    – Mefitico
    Jan 9 at 18:19










  • $begingroup$
    This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
    $endgroup$
    – Welsy
    Jan 9 at 18:24










  • $begingroup$
    Did you simply try polynoms ?
    $endgroup$
    – Damien
    Jan 9 at 18:28










  • $begingroup$
    I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
    $endgroup$
    – Welsy
    Jan 9 at 18:34
















0












0








0





$begingroup$


I have data (supposedly a volt-amper characteristic of some TTL component) which is:



 U[V]: x := [ 0.25,  1.0,   1.4,   1.45,  1.50, 1.55, 1.6, 5.0]
I[mA]: y := [-0.85, -0.65, -0.54, -0.31, -0.1, -0.02, 0.0, 0.004]


enter image description here



I'd like to approximate this data using the least squares method, so that I can after get a "reasonably accurate" values for 0.8V and 3.5V. The approximated function should however be "reasonably well approximated" for other values too. The best accuracy for me wasn't even $ epsilon = 0.1 $ (the error was something like 0.28),so anything beyond that is progress.



What I need is the functions, which will help me approximate this data. Getting the c-values (the multipliers for the functions) does not concern me, as I have a function that computes these sort-of optimally.



I've had some success trying to use these functions, but haven't been able to fit it properly and honestly I am out of ideas.



$$
f_{1} := -e^{-t^2} \
f_{2} := -frac{1}{t+1} \
f_{3} := 1
$$



I would welcome any kind of help, I am struggling with even finding a function that would look at least something like this.










share|cite|improve this question











$endgroup$




I have data (supposedly a volt-amper characteristic of some TTL component) which is:



 U[V]: x := [ 0.25,  1.0,   1.4,   1.45,  1.50, 1.55, 1.6, 5.0]
I[mA]: y := [-0.85, -0.65, -0.54, -0.31, -0.1, -0.02, 0.0, 0.004]


enter image description here



I'd like to approximate this data using the least squares method, so that I can after get a "reasonably accurate" values for 0.8V and 3.5V. The approximated function should however be "reasonably well approximated" for other values too. The best accuracy for me wasn't even $ epsilon = 0.1 $ (the error was something like 0.28),so anything beyond that is progress.



What I need is the functions, which will help me approximate this data. Getting the c-values (the multipliers for the functions) does not concern me, as I have a function that computes these sort-of optimally.



I've had some success trying to use these functions, but haven't been able to fit it properly and honestly I am out of ideas.



$$
f_{1} := -e^{-t^2} \
f_{2} := -frac{1}{t+1} \
f_{3} := 1
$$



I would welcome any kind of help, I am struggling with even finding a function that would look at least something like this.







numerical-methods approximation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 10 at 11:10









Mefitico

1,184218




1,184218










asked Jan 9 at 18:12









WelsyWelsy

1




1












  • $begingroup$
    Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
    $endgroup$
    – Mefitico
    Jan 9 at 18:19










  • $begingroup$
    This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
    $endgroup$
    – Welsy
    Jan 9 at 18:24










  • $begingroup$
    Did you simply try polynoms ?
    $endgroup$
    – Damien
    Jan 9 at 18:28










  • $begingroup$
    I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
    $endgroup$
    – Welsy
    Jan 9 at 18:34




















  • $begingroup$
    Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
    $endgroup$
    – Mefitico
    Jan 9 at 18:19










  • $begingroup$
    This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
    $endgroup$
    – Welsy
    Jan 9 at 18:24










  • $begingroup$
    Did you simply try polynoms ?
    $endgroup$
    – Damien
    Jan 9 at 18:28










  • $begingroup$
    I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
    $endgroup$
    – Welsy
    Jan 9 at 18:34


















$begingroup$
Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
$endgroup$
– Mefitico
Jan 9 at 18:19




$begingroup$
Do you have any reference on what curve to expect from this component? Usually there should be some function with few parameters that models the behavior fairly well and have parameters you can estimate with your available data. If this is a practical problem and you do need some kind of quick interpolation, you could consider using a spline which would fit the points exactly with some smoothness properties that makes them better than linear interpolation between two points..
$endgroup$
– Mefitico
Jan 9 at 18:19












$begingroup$
This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
$endgroup$
– Welsy
Jan 9 at 18:24




$begingroup$
This is an excercise for my course "Numerical methods", which requires me to use the least square methods functions provided to me. Sadly, the excercise only states: "Find a reasonable approximation of this data, using this approximation, estimate the differential entry resistance with entry voltage 0.8V and 3.5V. That's all there is.
$endgroup$
– Welsy
Jan 9 at 18:24












$begingroup$
Did you simply try polynoms ?
$endgroup$
– Damien
Jan 9 at 18:28




$begingroup$
Did you simply try polynoms ?
$endgroup$
– Damien
Jan 9 at 18:28












$begingroup$
I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
$endgroup$
– Welsy
Jan 9 at 18:34






$begingroup$
I've tried using basic polynoms from t to t^5 but I don't really know how to choose them well enough to get somewhere. When I use polynoms from degree 1 to 8, I get accuracy alright, but it doesn't look legit, you know what I mean... i.imgur.com/oaomaga.png
$endgroup$
– Welsy
Jan 9 at 18:34












0






active

oldest

votes












Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3067777%2fchoosing-functions-for-data-approximation-with-least-square-method%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3067777%2fchoosing-functions-for-data-approximation-with-least-square-method%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Måne

Storängen

VLT Carioca