Skip to content

Instantly share code, notes, and snippets.

@machard
Created June 26, 2025 03:13
Show Gist options
  • Save machard/2455ee9a4cc7880d632ccaf90ce49f2a to your computer and use it in GitHub Desktop.
Save machard/2455ee9a4cc7880d632ccaf90ce49f2a to your computer and use it in GitHub Desktop.
internet penetration
import numpy as np
import matplotlib.pyplot as plt
# Time vector
t = np.linspace(2000, 2045, 1000)
# Logistic growth parameters
L = 90 # asymptotic max (%)
k = 0.15 # growth rate
t0 = 2023 # inflection point
# Internet penetration sigmoid
internet_penetration = L / (1 + np.exp(-k * (t - t0)))
# Plot
plt.figure(figsize=(10, 5))
plt.plot(t, internet_penetration, color='green', linewidth=2.5, label='Global Internet Penetration (%)')
plt.axvline(x=2025, color='gray', linestyle=':', linewidth=1)
plt.text(2025.5, 70, '2025: ~68%', color='gray')
plt.title('Global Internet Penetration Over Time')
plt.xlabel('Year')
plt.ylabel('Penetration (%)')
plt.grid(True, linestyle='--', alpha=0.5)
plt.ylim(0, 100)
plt.legend()
plt.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment