Statistics for Optimisation of accelerator optics and the application of nuclear microscopy to the biomedical field