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

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

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

View Full Document
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

## 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.

### 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
Ask a homework question - tutors are online