Ids Exp13
Ids Exp13
import numpy as np
np.random.seed(123)
# Plot settings
plt.figure(figsize=(15, 12))
# Basic Histogram
plt.subplot(3, 1, 1)
plt.xlabel('Marks')
plt.ylabel('Frequency')
plt.subplot(3, 1, 2)
plt.xlabel('Marks')
plt.ylabel('Frequency')
# Histogram with fewer bins (5)
plt.subplot(3, 1, 3)
plt.xlabel('Marks')
plt.ylabel('Frequency')
plt.tight_layout()
plt.show()
# Summary statistics
print("Summary Statistics:")
print(f"Mean: {np.mean(marks):.2f}")
OUTPUT: