I have a data of
column 1 = temperature at 55F, 57F, 60F,...
column 2 = sales of sunglasses at these temperatures
I want to calculate the empirical distribution of sales of sunglasses over time and then use this empirical distribution to estimate the sales of sunglasses when the temperature is 56.6F, etc.
I tried to use polyfit but told that polynomial is badly conditioned.