Suppose the weather of the day for the future days (starting from tomorrow) is good (including sunny, cloudy and etc) has probability 1/3 and the weather of the day is bad (including raining, foggy, windy and etc.) has probability 2/3.
Starting from tomorrow, compute the expectation of number of days until there are 7 consecutive days of good weather.
We are given here that:
P( good weather) = 1/3 and P( bad weather ) = 2/3
Let the expected number of days it takes to reach 7 consecutive days of good weather be X.
Let the expected number of days be A1 when 1 good
weather day has already occurred.
Let the expected number of days be A2 when 2 good
weather day has already occurred.
Let the expected number of days be A3 when 3 good
weather day has already occurred.
Let the expected number of days be A4 when 4 good
weather day has already occurred.
Let the expected number of days be A5 when 5 good
weather day has already occurred.
Let the expected number of days be A6 when 6 good
weather day has already occurred.
Therefore, X = (1/3)(A1 + 1) + (2/3)*(X + 1)
3X = A1 + 1 + 2X + 2
X = A1 + 3
From 1 good weather already occurred, we have here:
A1 = (2/3)*(X + 1) + (1/3)*(A2 + 1)
3A1 = 2X + 2 + A2 + 1
3A1 = 2A1 + 6 + 2 + A2 + 1
A1 = A2 + 9
From 2 good weather already occurred, we have here:
A2 = (2/3)*(X + 1) + (1/3)*(A3 + 1)
3A2 = 2X + 2 + A3 + 1
3A1 - 27 = 2A1 + 6 + 2 + A3 +
1
A1 = A3 + 36
From 3 good weather already occurred, we have here:
A3 = (2/3)*(X + 1) + (1/3)*(A4 + 1)
3A3 = 2X + 2 + A4 + 1
3(A1 - 36) = 2A1 + 6 + 2 + A4 +
1
A1 = 108 + 9 + A4
A1 = A4 + 117
and so on.. every time we are multiplying the number by 3 and
adding 9 here.
A1 = A5 + 3*117 + 9
A1 = A5 + 360
A1 = A6 + 3*360 + 9
A1 = A6 + 1089
A6 = (2/3)(X + 1) + (1/3)*1
3A6 = 2X + 2 + 1
3A1 - 3267 = 2A1 + 6 + 3
A1 = 3276
Therefore, X = 3276 + 3 = 3279
Therefore 3279 is the expected number of days until there are 7 consecutive days of good weather.
Suppose the weather of the day for the future days (starting from tomorrow) is good (including...
The weather in Columbus is either good, indifferent, or bad on any given day. If the weather is good today, there is a 60% chance the weather will be good tomorrow, a 30% chance the weather will be indifferent, and a 10% chance the weather will be bad. If the weather is indifferent today, it will be good tomorrow with probability .40 and indifferent with probability .30. Finally, if the weather is bad today, it will be good tomorrow with...
Suppose that the chance of rain tomorrow depends on previous weather conditions only through whether or not it is raining today and not on past weather conditions. Suppose also that if it rains today, then it will rain tomorrow with probability 0.6, and if it does not rain today, then it will rain tomorrow with probability 0.3, then (a) Calculate the probability that it will rain four days from today given that it is raining today. (b) What is the...
We want to track weather conditions during the past year's three-month summer season as has designated each day as either rainy ('R'), cloudy ('C'), or sunny ('S'). Write a program that stores this information in s 3x30 array of characters, where the row indicates the month and the column indicates the day of the month. Note no data is being captured for the 31st of any month. This program will read the data in from a file called RainOrShine.txt. From...
Resources Give Up? Feedback Favorable weather has been shown to be associated with increased tipping. Will just the belief that future weather will be favorable lead to higher tips? The researchers gave 60 index cards to a waitress at an Italian restaurant in New Jersey. Before delivering the bill to each customer, the waitress randomly selected a card and wrote on the bill the same message that was printed on the index card. Twenty of the cards had the message...
#525. Weather and Flight Delay Probability Dave travels from Champaign to Chicago often for work. He usually flies from Champaign to Chicago to save time on busy days. Depending on the weather in Chicago, the flight might be delayed. Suppose that there are 3 possible weather conditions in Chicago: sunny, rain, and snow with the corresponding probabilies: 70%, 20%, and 10%. When it is sunny in Chicago, the flight will be on time 70% of the time. But in bad...
Hi im having trouble with this homework question. Can someone show me how to do this in C++ with all the steps? Weather Analysis WeatherAnalyzer - New Day Data 2- Good Days 3- Summary 0- Exit Step 0: You can get the sample file from this link: Each row in the text file represent weather measurement of a day. For each day, the file contains the temperature (first column), humidity (second column) and the wind (third column) values emp 70...
2. The level of air pollutants in Los Angeles varies from day to day because of wind and weather. Overall though, some neighborhoods are very unhealthy. The level of PM2.5 (a type of small particles) in the Chinatown neighborhood of LA has an average of 160 μg/m3 (that’s micrograms per cubic meter). It varies day to day though, with a standard deviation of 22 μg/m3. This last month has been particularly bad: for the last 31 days, the average has...
B5. (a) A factory makes 5 trucks per day, seven days per week. Each truck has probability 0.1 of being faulty, independently of any other trucks i) What is the probability that exactly two of the trucks made in one week are faulty? ii) What is the expected number of faulty trucks made per week? 5 marks (b) The workers at the factory are asked to keep making trucks until a faulty truck is made. Again each truck has probability...
2. Good Sleep Inc. is considering the purchase of a new mattress assembler that allows the construction of multiple firmness levels in the same mattress. Good Sleep anticipates the following 5-year earnings stream from the sale of this mattresS. Years in the Future Anticipated Profit (000's) 24 26 28 30 4 If the discount rate is 10% and the machine costs $90 (000), payable at once, what is the net present value of the machine? Is it a good purchase?...
Decision Tree-Fall Break Shopping Trip Node Node Cost (3) Probabilities Value ($) Flal 12 $2,500.00 13 $2,600.00 14 $2,200.00 15 $2.600.00 16 $2.500.00 17 $2.800.00 18 $2,500.00 19 $2,600.00 20 $1,900.00 21 $3,500.00 22 23 24 $2.500.00 25 $2,800.00 26 $2,100.00 27 $2,600.00 28 $2.200.000 29 $2,600.00 It is the week before fall break and your parents have informed you that your family will be making an overseas trip for a few days. Your parents are undecided as to where...