Function to obtain TL relationship given var from samples

This function, together with sample_var(), is essentially breaking
TL_analysis() into two separate parts, so that variance of individual
samples are recorded, just in case that they are needed later.