M README.md => README.md +2 -2
@@ 367,8 367,8 @@ Germany 1991 4.654 0.2372
2021 0.000 0.0000 0.000
Does Germany import coal when the consumption increases?
-Pearson correltion: 0.04456, p-value 0.81185
+Pearson correlation: 0.04456, p-value 0.81185
Does not seem like it. Maybe they just produce more instead?
-Pearson correltion: 0.97654, p-value 0.00000
+Pearson correlation: 0.97654, p-value 0.00000
That's it!
```
M scientific_python/natural_resources.py => scientific_python/natural_resources.py +2 -2
@@ 34,14 34,14 @@ def main():
germany["Coal consumption per capita"],
germany["Coal imports per capita"],
)
- print(f"Pearson correltion: {pearson:.5f}, p-value {p_value:.5f}")
+ print(f"Pearson correlation: {pearson:.5f}, p-value {p_value:.5f}")
if p_value > 0.05:
print("Does not seem like it. Maybe they just produce more instead?")
pearson, p_value = pearsonr(
germany["Coal production per capita"],
germany["Coal consumption per capita"],
)
- print(f"Pearson correltion: {pearson:.5f}, p-value {p_value:.5f}")
+ print(f"Pearson correlation: {pearson:.5f}, p-value {p_value:.5f}")
if p_value > 0.05:
print("That's not it as well...")
else: