Finding the best possible combination of 4 variables to produce a successful outcome

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm trying to find the best possible combination of 4 variable values to produce a successful outcome, with the data of only ~100 different recipe combinations. However, the correct outcome is a also a percent chance, meaning if I did the same recipe/combination 100 times, I might get like a 6% chance of the successful outcome, and 94% failed outcome. So different variable values/recipes would produce a different % chance of successful outcome. The range of the values can be from 10-300 inclusively. Would it be possible to sort out 4 different variables to determine some sort of rough estimate(s) of the recipe that would produce the best chance of an outcome?



Here's the best example I came I up with if I did't explain it too well; Say I want to make the best possible recipe for a magical cake (successful outcome) with 4 different ingredients with different values. Let's say the 4 variables are Chocolate, Flour, Eggs, Oil, and you have a range of 10-300 grams to put in. The oven I use has a variable % chance to produce magical cakes (successful outcome) dependent on the combination of the 4 ingredients. If it doesn't produce a magical cake, it will produce a regular cake (failed outcome). What would the best possible recipe((s) ...since there might not be enough data) be to get the highest chance of magical cakes?



I also want to apologize if it's not tagged correctly; I'm not entirely too sure what else it would fall under.



Here's some of the data. I mentioned it earlier, but I have only roughly ~100 different combinations tested for such a large range of values, which is likely going to make things harder:
https://imgur.com/a/bue2tkQ



Feel free to scale the simplify/scale down the data to make it more palatable, say to single digits and easy percentages. I just really want to learn the process so I can scale it back up to the data I'm tackling, and maybe add or take out one or two variables depending on the situation. Thanks!



EDIT: Here is one of the sets of data I want to manipulate if anyone wants to take a look!



https://docs.google.com/spreadsheets/d/1MukvLAgFyH2VAAohB3C3u5ZShIcKDOItBkTXnW4p3Xs/edit?usp=sharing







share|cite|improve this question






















  • Can you use machine learning? :)
    – Matti P.
    Aug 16 at 7:35










  • I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
    – Matti P.
    Aug 16 at 7:37










  • I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
    – Rivel An
    Aug 16 at 8:06











  • @MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
    – Rivel An
    Aug 16 at 8:17











  • I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
    – Matti P.
    Aug 16 at 9:09














up vote
1
down vote

favorite












I'm trying to find the best possible combination of 4 variable values to produce a successful outcome, with the data of only ~100 different recipe combinations. However, the correct outcome is a also a percent chance, meaning if I did the same recipe/combination 100 times, I might get like a 6% chance of the successful outcome, and 94% failed outcome. So different variable values/recipes would produce a different % chance of successful outcome. The range of the values can be from 10-300 inclusively. Would it be possible to sort out 4 different variables to determine some sort of rough estimate(s) of the recipe that would produce the best chance of an outcome?



Here's the best example I came I up with if I did't explain it too well; Say I want to make the best possible recipe for a magical cake (successful outcome) with 4 different ingredients with different values. Let's say the 4 variables are Chocolate, Flour, Eggs, Oil, and you have a range of 10-300 grams to put in. The oven I use has a variable % chance to produce magical cakes (successful outcome) dependent on the combination of the 4 ingredients. If it doesn't produce a magical cake, it will produce a regular cake (failed outcome). What would the best possible recipe((s) ...since there might not be enough data) be to get the highest chance of magical cakes?



I also want to apologize if it's not tagged correctly; I'm not entirely too sure what else it would fall under.



Here's some of the data. I mentioned it earlier, but I have only roughly ~100 different combinations tested for such a large range of values, which is likely going to make things harder:
https://imgur.com/a/bue2tkQ



Feel free to scale the simplify/scale down the data to make it more palatable, say to single digits and easy percentages. I just really want to learn the process so I can scale it back up to the data I'm tackling, and maybe add or take out one or two variables depending on the situation. Thanks!



EDIT: Here is one of the sets of data I want to manipulate if anyone wants to take a look!



https://docs.google.com/spreadsheets/d/1MukvLAgFyH2VAAohB3C3u5ZShIcKDOItBkTXnW4p3Xs/edit?usp=sharing







share|cite|improve this question






















  • Can you use machine learning? :)
    – Matti P.
    Aug 16 at 7:35










  • I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
    – Matti P.
    Aug 16 at 7:37










  • I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
    – Rivel An
    Aug 16 at 8:06











  • @MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
    – Rivel An
    Aug 16 at 8:17











  • I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
    – Matti P.
    Aug 16 at 9:09












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to find the best possible combination of 4 variable values to produce a successful outcome, with the data of only ~100 different recipe combinations. However, the correct outcome is a also a percent chance, meaning if I did the same recipe/combination 100 times, I might get like a 6% chance of the successful outcome, and 94% failed outcome. So different variable values/recipes would produce a different % chance of successful outcome. The range of the values can be from 10-300 inclusively. Would it be possible to sort out 4 different variables to determine some sort of rough estimate(s) of the recipe that would produce the best chance of an outcome?



Here's the best example I came I up with if I did't explain it too well; Say I want to make the best possible recipe for a magical cake (successful outcome) with 4 different ingredients with different values. Let's say the 4 variables are Chocolate, Flour, Eggs, Oil, and you have a range of 10-300 grams to put in. The oven I use has a variable % chance to produce magical cakes (successful outcome) dependent on the combination of the 4 ingredients. If it doesn't produce a magical cake, it will produce a regular cake (failed outcome). What would the best possible recipe((s) ...since there might not be enough data) be to get the highest chance of magical cakes?



I also want to apologize if it's not tagged correctly; I'm not entirely too sure what else it would fall under.



Here's some of the data. I mentioned it earlier, but I have only roughly ~100 different combinations tested for such a large range of values, which is likely going to make things harder:
https://imgur.com/a/bue2tkQ



Feel free to scale the simplify/scale down the data to make it more palatable, say to single digits and easy percentages. I just really want to learn the process so I can scale it back up to the data I'm tackling, and maybe add or take out one or two variables depending on the situation. Thanks!



EDIT: Here is one of the sets of data I want to manipulate if anyone wants to take a look!



https://docs.google.com/spreadsheets/d/1MukvLAgFyH2VAAohB3C3u5ZShIcKDOItBkTXnW4p3Xs/edit?usp=sharing







share|cite|improve this question














I'm trying to find the best possible combination of 4 variable values to produce a successful outcome, with the data of only ~100 different recipe combinations. However, the correct outcome is a also a percent chance, meaning if I did the same recipe/combination 100 times, I might get like a 6% chance of the successful outcome, and 94% failed outcome. So different variable values/recipes would produce a different % chance of successful outcome. The range of the values can be from 10-300 inclusively. Would it be possible to sort out 4 different variables to determine some sort of rough estimate(s) of the recipe that would produce the best chance of an outcome?



Here's the best example I came I up with if I did't explain it too well; Say I want to make the best possible recipe for a magical cake (successful outcome) with 4 different ingredients with different values. Let's say the 4 variables are Chocolate, Flour, Eggs, Oil, and you have a range of 10-300 grams to put in. The oven I use has a variable % chance to produce magical cakes (successful outcome) dependent on the combination of the 4 ingredients. If it doesn't produce a magical cake, it will produce a regular cake (failed outcome). What would the best possible recipe((s) ...since there might not be enough data) be to get the highest chance of magical cakes?



I also want to apologize if it's not tagged correctly; I'm not entirely too sure what else it would fall under.



Here's some of the data. I mentioned it earlier, but I have only roughly ~100 different combinations tested for such a large range of values, which is likely going to make things harder:
https://imgur.com/a/bue2tkQ



Feel free to scale the simplify/scale down the data to make it more palatable, say to single digits and easy percentages. I just really want to learn the process so I can scale it back up to the data I'm tackling, and maybe add or take out one or two variables depending on the situation. Thanks!



EDIT: Here is one of the sets of data I want to manipulate if anyone wants to take a look!



https://docs.google.com/spreadsheets/d/1MukvLAgFyH2VAAohB3C3u5ZShIcKDOItBkTXnW4p3Xs/edit?usp=sharing









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 16 at 8:15

























asked Aug 16 at 7:02









Rivel An

62




62











  • Can you use machine learning? :)
    – Matti P.
    Aug 16 at 7:35










  • I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
    – Matti P.
    Aug 16 at 7:37










  • I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
    – Rivel An
    Aug 16 at 8:06











  • @MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
    – Rivel An
    Aug 16 at 8:17











  • I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
    – Matti P.
    Aug 16 at 9:09
















  • Can you use machine learning? :)
    – Matti P.
    Aug 16 at 7:35










  • I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
    – Matti P.
    Aug 16 at 7:37










  • I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
    – Rivel An
    Aug 16 at 8:06











  • @MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
    – Rivel An
    Aug 16 at 8:17











  • I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
    – Matti P.
    Aug 16 at 9:09















Can you use machine learning? :)
– Matti P.
Aug 16 at 7:35




Can you use machine learning? :)
– Matti P.
Aug 16 at 7:35












I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
– Matti P.
Aug 16 at 7:37




I would recommend posting the numbers here instead of a picture. It's not very convenient to extract numbers from a picture.
– Matti P.
Aug 16 at 7:37












I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
– Rivel An
Aug 16 at 8:06





I tried to add it on to the original post, but the formatting was a bit off. I'll try again. I don't have much background in machine learning sadly ): This isn't for work/school so there's no real restriction on what you can and cannot do
– Rivel An
Aug 16 at 8:06













@MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
– Rivel An
Aug 16 at 8:17





@MattiP. I linked a google spreadsheet. Thank you for taking a look! (Also, sounds like a neat idea and future project to learn and use machine learning for stuff like this)
– Rivel An
Aug 16 at 8:17













I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
– Matti P.
Aug 16 at 9:09




I would say that the starting point is to consider that the success rate is a function of $a, b, c$ and $d$: $$ s = s(a, b, c, d) $$ Let's hope that $s$ is a smooth function, although we don't know its expression. Then you just have to find the maximum value of $s$. For this, there are many methods, and one good approach is to calculate the gradient of $s$ ...
– Matti P.
Aug 16 at 9:09















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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2884485%2ffinding-the-best-possible-combination-of-4-variables-to-produce-a-successful-out%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2884485%2ffinding-the-best-possible-combination-of-4-variables-to-produce-a-successful-out%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

Why am i infinitely getting the same tweet with the Twitter Search API?

Carbon dioxide