This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Faculty of Computers and Information Faculty of Computers and Information Faculty of Computers and Information Faculty of Computers and Information Assignment 2 (Computer Exercise) Department of Computer Science Pattern Recognition 1. Assume that the daily temperature in Cairo in Summer time is normally distributed with μ = 37 and σ = 2. • Using mathematics, find the probability that, in a particular day, the temperature exceeds 42? • Using simulation, answer the question above by generating 10 5 observations of that random variable and find the fraction of them exceeding the value of 42. Repeat the experiment 10 times with different samples of the same size; is there any change in the answer? Why? • Generate 10 observations of the same random variable and plot their values on a horizontal line; this gives you the feeling of how separated they are. plot their histogram as well and compare to the pdf of the random variable. Repeat the whole procedure 4 times, every time with multiplying the sample size by 10, i.e., generate 100 observations for the second time and 1000 for the third time,...etc. This example gives you the feeling of two things. First, the dense region of a pdf is translated to many observations in sampling. Second, the more observations you have the closer you are to the “true” pdf.observations you have the closer you are to the “true” pdf....
View
Full
Document
This note was uploaded on 01/06/2011 for the course IT 342 taught by Professor Waleeda.yousef during the Spring '10 term at Helwan University, Helwan.
 Spring '10
 WaleedA.Yousef
 Computer Science

Click to edit the document details