function pred_mat = mean_pred(price, data) days = size(price, 1) - size(data, 1); pred_mat = repmat(mean(data), days, 1); endfunction