HW2 - Faculty of Computers and Information Faculty of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 2

HW2 - Faculty of Computers and Information Faculty of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online