Skip to main content

Posts

Featured

ML PROGRAMS

ML PPT LINK  ML LAB PROGRAMS EXP1: To compute and understand the basic measures of Central Tendency (Mean, Median, Mode) and Dispersion (Variance, Standard Deviation) using Python Program: import numpy as np         # Library for numerical computing(used for numerical                      operations and missing values) from scipy import stats # Library for statistical analysis data = [85, 92, 78, 85, 95, 88, 72, 85, 90, 80] # Dataset data_array = np.array(data) # Converting lists to NumPy array mean_value = np.mean(data_array) # Average median_value = np.median(data_array) # If kept in order middle value mode_result = stats.mode(data_array) # stats.mode() will give repeated number print(f"Mean: {mean_value:.2f}") # :.2f (decimal point) print(f"Median: {median_value:.2f}") print(f"Mode: {mode_result.mode[0]}") variance...

Latest posts