Click Here to Request a FREE Quote to Develop an iPhone App or Android App

Can Machine Learning Do Physics? Or Perform Complex Financial Calculations?

Neural Network Physics Demo

Can machine learning be used to emulate complex mathematics?

This question has implications for other fields. Merchant bankers hire Physics PHDs to do the math for complex trading software, the mathematics which governs complex physics is surprisingly similar to the mathematics which is used to manage your pension.

I didn’t know the answer, so I decided to ask Claude to build a machine learning physics engine so I could see for myself.

This engine contains a real neural network, but as you can see if you try it out, the neural net simulation of real physics is only good at replicating the physics of data it has already seen. The moment it tries to simulate anything outside its safe zone, there is a strong risk of it veering wildly off course.

This tendency to veer off course is similar to the problem encountered when using mathematical approximation methods like Taylor series or Maclauren series to simulate complex math functions. The simulation is only good for a limited portion of the function domain, the moment you travel outside the safe zone, the simulation veers wildly off course.

With hindsight this tendency to veer off course seems inevitable when you think about how neural networks and other simulation methods work. Instead of performing the underlying calculation, simulation methods contain a set of nudges, much simpler calculations which when run together push the curve into a shape which approximates the true curve. But as soon as you move outside the range of inputs which those approximation calculations were created to deal with, the process breaks down, and the curve can veer wildly off course.

This has implications if you trust a neural network to manage your investment portfolio. If the market enters a regime the neural network wasn’t trained to deal with, the decisions it makes will likely be really bad.

Despite these shortcomings, such simulations are still potentially useful. Neural net simulations often run much faster than the real physics calculation, particularly for iterative calculations, so simulations can help map out the set of possible calculation answers much faster than running the actual calculation.

But given the risk of error, any simulation map must be taken with a grain of salt. Or in the case of using neural networks to perform financial calculations, the key results must be checked using the real calculation before betting the house on the result.

Leave a Reply

Your email address will not be published. Required fields are marked *