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 battery
mu = 14200;

% Given standard deviation for new battery
sigma = 500;

% Z-Score for 16500 km
z = (16500 - mu) / sigma;

% Using the standard normal distribution to find the probability
p = 1 - normcdf(z);

disp(['The probability that the battery will last over 16500 km is: ' num2str(p)]);
329 chars
14 lines

related categories

gistlibby LogSnag