auton uuden akun kesto on keskiarvolla 14200 km, millä todennäköisyydellä auto kestää yli 16500 km? in matlab
main.m
% Given mean mileage for a new batterymu = 14200;
% Given standard deviation for new batterysigma = 500;
% Z-Score for 16500 kmz = (16500 - mu) / sigma;
% Using the standard normal distribution to find the probabilityp = 1 - normcdf(z);
disp(['The probability that the battery will last over 16500 km is: ' num2str(p)]);