Cloud duration approximately follows a beta distribution with parameters 0.3 and 0.4 for a particular location. Find the probability that cloud duration will be longer than half a day:
Simulate the fraction of the day that is cloudy over a period of one month:
Find the average cloudiness duration for a day:
Find the probability of having exactly 20 days in a month with cloud duration less than 10%:
Find the probability of at least 20 days in a month with cloud duration less than 10%:
Beta distribution can be used to model the proportion of the stocks that increase in value on a given day. Fit beta distribution into Dow Jones Industrial stocks:
Find daily change:
Filter out missing data and pad with zeros:
Calculate the daily ratio of companies with an increase in value:
Find fit, excluding days with zero companies having an increase in value:
Compare the histogram of the data with the PDF of the estimated distribution:
Find the probability that at least 60% of Dow Jones Industrial stocks will increase in value:
Find the average percentage of Dow Jones Industrial stocks that will increase in value:
Simulate the percentage of Dow Jones Industrial stocks that will increase in value for 30 days: