function pred = rand_pred(price, data) times = size(price, 1) - size(data, 1); pred = zeros(times, size(price, 2)); for i = 1:times pred(i,:) = abs(normrnd(mean(data), sqrt(var(data)))); end end