# Find / "reverse engineer" a formula?

**URL:** <https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334>\
**Category:** Questions\
**Tags:** physics\
**Created:** [April 17, 2018, 5:07am UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334 "2018-04-17T05:07:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcraker](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tcraker](https://community.wolfram.com/u/tcraker)\
**Post date:** [April 17, 2018, 5:07am UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/1 "2018-04-17T05:07:21Z")

</div>

I have come across a formula that has been kept private for the past decade and I want to go about recreating it, however don’t know where to begin. I do know that it is deterministic and I know the inputs/outputs. I do not know the relationships of the variables. The first input is weight of the participant, the next four variables are athletic measurements. The output has no unit of measurement and is just one single number. Here are a few examples of the inputs/outputs

Inputs: 181 lbs, 4.75 s, 4.04 s, 33.6 ft, 35.5 in Output: 99.66

Inputs: 163 lbs, 4.91 s, 4.04 s, 33.6 ft, 36.5 in Output: 92.79

Inputs: 185 lbs, 4.82 s, 4 s, 33.5 ft, 31.1 in Output: 93.96

Inputs: 193 lbs, 4.7 s, 4 s, 33.5 ft, 33 in Output: 102.78

Inputs: 171 lbs, 4.69 s, 4.01 s, 33.5 ft, 32.7 in Output: 97.53

Where can I begin? What kind of formulas should I try? Any help is greatly appreciated

---

<div class="post-metadata">

**Author:** ![b3m2a1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/b3m2a1/32/7562_2.png) [@b3m2a1](https://community.wolfram.com/u/b3m2a1)\
**Post date:** [April 17, 2018, 6:38am UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/2 "2018-04-17T06:38:09Z")

</div>

Have you tried `FindFormula`? Also you’ll likely need way more than four data points to get a sense for this (and anyone helping you would too).

---

<div class="post-metadata">

**Author:** ![sjoerds](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sjoerds/32/19589_2.png) [@sjoerds](https://community.wolfram.com/u/sjoerds)\
**Post date:** [April 18, 2018, 11:54am UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/3 "2018-04-18T11:54:37Z")

</div>

I don’t think `FindFormula` is going to work here since the inputs are 5-dimensional and `FindFormula` only works on x-y type data. Realistically, I’d first throw this whole data set into `Predict` first and see what it comes up with. It won’t be a formula, but maybe the prediction method will tell you something. And if the predictor works well, you can use it to generate helpful plots.

Other than that, I’d recommend plotting the data in as many different ways as you can come up with. For example, try a log-log plot from the weights to the output to see if there’s some power-law that connects the two.

---

<div class="post-metadata">

**Author:** ![anon\_91240867](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon\_91240867](https://community.wolfram.com/u/anon_91240867)\
**Post date:** [April 19, 2018, 7:46pm UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/4 "2018-04-19T19:46:14Z")

</div>

Tell us what you trying to find so we know it’s not illegal, and so we can comment on the physics,  
then I’ll offer advice. 🙂

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [April 20, 2018, 2:21pm UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/5 "2018-04-20T14:21:40Z")

</div>

`LinearModelFit` or the nonlinear alternative might be useful here. But it would really require a larger data set in order to give a plausible result.

---

<div class="post-metadata">

**Author:** ![pedro](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/pedro/32/38573_2.png) [@pedro](https://community.wolfram.com/u/pedro)\
**Post date:** [April 20, 2018, 6:56pm UTC](https://community.wolfram.com/t/find-reverse-engineer-a-formula/12334/6 "2018-04-20T18:56:59Z")

</div>

If I understand correctly, DATAMODELER from Evolved Analytics should be able to do what you want (have never used it…, just saw presentations). But it is a paid “package”.
