function p=weight(x,y)

% x= weight in pounds
% y= angina severity (o= no angina, 1= mild angina, etc.)

mu= 170 + 20*y;
p= exp( -(x-mu)*(x-mu)/800 ) / (20*sqrt(2*pi));
