The change of the standard Gibbs function $\Delta G$ of a reaction was determined by measuring equilibrium constants at various temperatures. The following values were obtained:
$T$ [K] | $\Delta G$ [kJ $\mathrm{mol}^{-1}$] |
---|---|
270 | 40.3 |
280 | 38.2 |
290 | 36.1 |
300 | 32.2 |
310 | 29.1 |
320 | 28.0 |
330 | 25.3 |
The uncertainty in $T$ is negligible and the weight factors are equal for all cases.
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from scipy import stats
import seaborn as sns
T = np.array([270, 280, 290, 300, 310, 320, 330])
x = T
DeltaG = np.array([40.3, 38.2, 36.1, 32.2, 29.1, 28.0, 25.3])
y = DeltaG