TØ 4. Laboratory Exercise 1
In this session we will use Python to analysis data gathered in the laboratory. First we will start by using Python to calculate statistics of pipette measurements and afterwards we will use Python calculate and plot the standard curve for absorption measurements.
1 Pipette measurements
In the laboratory, you carried out a pipetting exercise in which you had to measure the same volume three times in order to assess your precision (Exercise 1, protocol step 12).
In this session we will stary by using Python to calculate the mean and standard deviation of these results.
1.1 Exercise: A function for the mean
The mean of three numbers \(x_1\), \(x_2\), \(x_3\) can be written as \[ m(x_1, x_2, x_3) = \frac{x_1+x_2+x_3}{3} \]
In the cell below finish implementing the function mean_func for calculating the mean
1.2 Exercise: Calculating the mean and standard deviation
In the cell below the two functions mean_func and std_func are available.
Start by setting the variables x1, x2, x3 equal to your measurements, then use the two functions to calculate the mean and the standard deviation.
If you want to try writing a more general function for calculating the mean see the extra exercises.
1.3 Exercise: Analyzing the standard deviation
What does the standard deviation tell you about your precision?
If the standard deviation is high, what could this be due to in your pipetting?
2 Adsorption measurements
In the laboratory you made adsorption measurements, now you will use Python to make a standard curve from these measurements. Start by uploading your measurements
This loads the data as a pd.DataFrame which will be touched on later and used extensively in other courses.
The next cell calculates the mean and the standard deviation across the replicates
And now we can plot it the standard curve
2.1 Exercise: Interpretation
How can you tell whether you have made your dilutions and carried out your absorbance measurements with high accuracy? What can a standard curve be used for?