write function to conduct monte carlo experiment on sgpData_LONG