Professional Documents
Culture Documents
Eee137 PS3
Eee137 PS3
INSTRUCTIONS
• For problem-solving parts, support correct answers with complete and concise solutions. The checker
reserves the right to disregard illegible handwriting.
• Answer each problem on a separate sheet, properly labeled with your name and the name of your large
class instructor.
Suppose we want to check whether scholars entering PSHS (from Grade 7 to Grade 12) are equally represented
in the two genders- Male and Female. Using Bayesian Inference, answer the following questions:
1. 3points What is the collective ratio of male to female (via total counts)?
2. 2points What is the likelihood of a male scholar in PSHS?
Arrange the spreadsheet so that you will have data on the male to female ratio for each grade for each
campus. Refer to the example below. Remove rows with 0 entries for the scholar count. There should be
78 row entries in your sorted data.
3. 5points Using Gaussian approximation/CLT, what are the statistical parameters of your sorted data
(mean and standard deviation)?
4. 5points Find a MAP estimate of the male to female ratio given a prior hunch of M2F ratio as uniformly
distributed between 0.5 to 2.5.
5. 10points Find a MAP estimate of the male to female ratio given a prior hunch of M2F ratio as Gaussian
with mean 1.0 and variance of 0.10. Hint: Product of two Gaussians
1. 5points Based on your prior, what is the probability that the coin is more likely to produce a head than
a tail?
2. 5points You tossed the coin two times, and got two tails. Solve for the MAP estimate of θ.
V 1 = U + Z1
V 2 = U + Z2
where U is the transmitted signal, and Z1 , Z2 ∼N (0,1) are independent Gaussian random variables. You
may also assume that U is independent of Z1 and Z2 . The receiver makes a maximum likelihood (ML) decision
on which signal is transmitted based on Y = V1 + V2 . Calculate the probability of making an erroneous decision.
Page 1 of 3
EEE 137 1s1920 Problem Set #3 20 November 2019
Problem 4. Estimation
Let X and Y be random variables, where Y is to be estimated as Ŷ = âX (without an extra constant).
1. 5points Solve for â so that Ŷ produces the minimum mean square error.
2. 5points Show that the mean square error when â = Cov(X,Y) / Var(X) is at least as large as the mean
square error obtained using #1 above.
1. 4points Solve for the coefficients of the linear least squares regression model, I= θ0 + θ1 V.
2. 2points Determine the sum of square error for the model you have solved above.
V
An alternative model for the diode current is to assume a non-linear model of the form I= αe β . We can
use linear least squares regression by linearizing this model into a linear model of the form I 0 =a+bV,
where I 0 =f(I).
3. 3points Solve for I 0 in terms of I such that I 0 will become a linear function of V.
4. 6points Solve for α and β in terms of a and/or b.
V
5. 6points Solve for the coefficients of the least squares regression model, I=αe β , by performing linear least
squares regression on the model I 0 =a+bV.
6. 2points Determine the sum of square error for the model you have solved in #5 above.
7. 2points If you can only choose one of the two regression models, which would you choose (linear or
non-linear) and why?
The first column uniquely identifies each student. The second column (Athlete) has a value of 1 if the student
is an athlete and 0 otherwise. The third column is the time recorded during the trial run and is converted to
its equivalent time in minutes in the last column. We want to determine if there is enough evidence to support
the theory that athletes run faster (smaller mile time) than the average of students within the sampled class.
Page 2 of 3
EEE 137 1s1920 Problem Set #3 20 November 2019
Problem 7. ANOVA
A clinical trial is run to compare three weight loss programs over the course of 8 weeks: (1) a Low Calorie Diet,
(2) Low Fat Diet, and (3) Low Carbohydrate. For comparison purposes, a fourth group, a control group, is
added to assess the placebo effect of knowing theyre participating in a dietary study. A total of 20 patients
agree to participate in the study and are randomly assigned to the four groups. The difference of the measured
weight at the start and end of the trial is shown below. Note that positive differences indicate weight loss while
negative differences indicate weight gain.
1. 3points What are the null and alternative hypotheses? Write these out in terms of the given.
2. 3points Identify the critical value, Fcritical , given that α = 0.05.
3. 9points Fill up the ANOVA Table. Show your solutions.
4. 4points Evaluate the null hypothesis based on your answers above. What is your conclusion?
5. 6points If a person wants to lose the most amount of weight, which diet should he/she choose? Use the
Tukey HSD to identify the best diet.
Page 3 of 3