It is customary to provide formulas to describe experimental data, namely in regression. So, when Einstein proposed the formula $E = mc^2$ (I reckon the original formulation was not like this, but I am not a physicist so I will stick to this 'canonical' formulation), did he want to provide a theoretical model to experimental data?
In other words, did Einstein produce this equation based on experimental data or was it a totally theoretical approach? And if the first case, what experimental data he used?
Thank you