Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Homework 1. This homework is due February 2, 2016, at Noon.

Similar documents
Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Homework 1

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 12

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Homework 11

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 2

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Homework 2

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 2. This homework is due September 14, 2015, at Noon.

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Homework 4

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Homework 6

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Homework 12

Designing Information Devices and Systems I Spring 2019 Homework 11

Designing Information Devices and Systems I Babak Ayazifar, Vladimir Stojanovic. This homework is due October 25, 2016, at 1PM.

Designing Information Devices and Systems I Fall 2018 Homework 3

Designing Information Devices and Systems I Spring 2018 Homework 10

Designing Information Devices and Systems I Spring 2018 Homework 11

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Homework 5. This homework is due February 29, 2016, at Noon.

Designing Information Devices and Systems I Fall 2017 Homework 3

Designing Information Devices and Systems I Anant Sahai, Ali Niknejad. This homework is due October 13, 2015, at Noon.

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Final Exam. Exam location: RSF Fieldhouse, Back Left, last SID 6, 8, 9

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 5. This homework is due October 6, 2014, at 12:00 noon.

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Final Exam. Exam location: You re Done!!

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Homework 2

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 1

Designing Information Devices and Systems I Discussion 2A

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 12

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 10. This homework is due November 9, 2015, at Noon.

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Midterm 1. Exam location: 145 Dwinelle, last SID# 2

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Midterm 1. Exam location: 2050 VLSB, Last Name: Tong-Zzz

Designing Information Devices and Systems I Spring 2018 Homework 7

Designing Information Devices and Systems I Spring 2019 Homework 7

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 1. Exam location: 1 Pimentel (Odd SID + 61C)

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Midterm 1. Exam location: 60 Evans, last digit SID= 6

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 9

Designing Information Devices and Systems I Spring 2018 Homework 13

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 1

Designing Information Devices and Systems I Spring 2019 Homework 5

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Midterm 1

Designing Information Devices and Systems I Fall 2018 Homework 5

EECS 16A Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Final. Exam location: RSF Back Left, last SID# 1, 4, + 5

Designing Information Devices and Systems II Spring 2017 Murat Arcak and Michel Maharbiz Homework 9

Review Sheet for Math 5a Final Exam. The Math 5a final exam will be Tuesday, May 1 from 9:15 am 12:15 p.m.

Chapter 4 Statistics

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Positioning Sytems: Trilateration and Correlation

PRACTICE TEST ANSWER KEY & SCORING GUIDELINES GRADE 8 MATHEMATICS

Exponential function review and practice Day 1

Fall 2017 Math 108 Week Week 1 Task List

Designing Information Devices and Systems I Fall 2017 Midterm 1. Exam Location: 155 Dwinelle

Designing Information Devices and Systems I Spring 2017 Official Lecture Notes Note 1

4 Bias-Variance for Ridge Regression (24 points)

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 2. Exam location: 145 Dwinelle, last SID# 2

1. There are 8 questions spanning 9 pages total (including this cover page). Please make sure that you have all 9 pages before starting.

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 8. This homework is due October 26, 2015, at Noon.

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 8

Exam is: Math Dr. Smithies Spring 2018 Review and Practice Test 3

AP Statistics Bivariate Data Analysis Test Review. Multiple-Choice

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Positioning Sytems: Trilateration and Correlation

Spring 2017 Midterm 1 04/26/2017

WORD SEARCH. Please Print this Puzzle and Complete it on Paper

Summer Packet A Math Refresher For Students Entering IB Mathematics SL

The Thomas family went for a Sunday drive. Before they left, Mr. Thomas noticed the gas tank

Solutions to Second Midterm

Calculus 152 Take Home Test 2 (50 points)

These Choice Boards cover the fourteen units for eighth grade Common Core math.

HIRES 2017 Syllabus. Instructors:

7th Grade Midterm Review. Fractions, Decimals & Percents. 1. Convert 9 5 / 8 to a decimal. A B C. 9.5 D Real World Problems

Welcome to Chemistry! Sept 11, 2015 Friday

Unit 2 Modeling with Exponential and Logarithmic Functions

Trimester 2 Final Practice CC 7/8 Date Period. Unit Rates (7.RP.1)

Spring 2018 Math Week Week 1 Task List

1 Answer Key for exam2162sp07 vl

- there will be midterm extra credit available (described after 2 nd midterm)

Ohio s State Tests ITEM RELEASE SPRING 2018 INTEGRATED MATHEMATICS II

Unit 3 Day 4. Solving Equations with Rational Exponents and Radicals

Final Exam: 11 May 2001, Friday

Section 2.1 ~ Data Types and Levels of Measurement. Introduction to Probability and Statistics Spring 2017

Exploring. fractions decimals. and. slice

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Midterm 1. Exam Location: 2050 VLSB

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Midterm 1

GMAT-Arithmetic-3. Descriptive Statistics and Set theory

8.1 Frequency Distribution, Frequency Polygon, Histogram page 326

Individual 5 th Grade

EECS 16A: SPRING 2015 MIDTERM 2

a. Write what the survey would look like (Hint: there should be 2 questions and options to select for an answer!).

Cornell University Final Examination December 11, Mathematics 105 Finite Mathematics for the Life and Social Sciences

Practice Test 1 BLACKLINE MASTERS

Algebra 2/Trig: Chapter 15 Statistics In this unit, we will

Designing Information Devices and Systems I Fall 2017 Midterm 2. Exam Location: 150 Wheeler, Last Name: Nguyen - ZZZ

Student s Printed Name: _Key_& Grading Guidelines CUID:

Weeks 8 and 9. Eclectic Equations

U6 A Level Maths PURE MOCK Tuesday 5 th February 2019 PM Time: 2 hours Total Marks: 100

Performance script for sixth graders By Thomas Kuo and Kimberly Kline LEAPS Fellows, University of California, Santa Barbara

AP PHYSICS SUMMER WORK

Math 1040 Sample Final Examination. Problem Points Score Total 200


2015/2016 Algebra II Final Exam Review Guide Short Answer Radical/Rationals

Math 164 (Lec 1): Optimization Instructor: Alpár R. Mészáros

CSEP 521 Applied Algorithms. Richard Anderson Winter 2013 Lecture 1

Calculator Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.

Unit 3A Modeling with Exponential Functions

Good luck! School of Business and Economics. Business Mathematics. Date: 25 October, Time: 12:00. Calculator allowed:

Transcription:

EECS 6A Designing Information Devices and Systems I Spring 06 Elad Alon, Babak Ayazifar Homework This homework is due February, 06, at Noon.. Homework process and study group Who else did you work with on this homework? List names and student ID s. (In case of hw party, you can also just describe the group.) How did you work on this homework? Working in groups of - will earn credit for your participation grade.. Sahai s Optimal Smoothies Sahai s Optimal Smoothies has a unique way of serving its customers. To ensure the best customer experience, each customer gets a smoothie personalized to his or her tastes. Professor Sahai knows that a lot of customers don t know what they want, so when the customer walks up to the counter they are asked to taste four standard smoothies that cover the entire range of flavors found in smoothies. Each smoothie is made of cup Greek yogurt, 8 cup vanilla soy milk, cup crushed ice, and cup mystery fruit. The four standard smoothies have the following recipes for the cup of mystery fruit: Fruit(cups) Banana Berry Caribbean Passion Mango-a-go-go Strawberries Wild Strawberries 0 Bananas Mangos 0 0 Blueberries 0 0 0 Each customer is assumed to have a score (from 0 to 0) for each fruit, and the total score for the smoothie is modeled as being computed by multiplying the score for a fruit with its proportion in the smoothie. For example, if a customer s score for strawberries is 6 and bananas is, then the total score for the Strawberries Wild smoothie would be 6 + =. After a customer gives a score (from 0 to 0) for each smoothie, Professor Sahai then calculates (on the spot!) how much the customer likes each fruit. Then Professor Sahai blends up a special smoothie that will maximize the customer s score. Professor Niknejad was thirsty after grading midterms, so he decided to take a drink break at SOS. He walked in and gave the following ratings: Smoothie Score Banana Berry 6 Caribbean Passion 6 Mango-a-go-go 6 4 Strawberries Wild (a) What were Professor Niknejad s ratings for each fruit? Work this problem out by hand. EECS 6A, Spring 06, Homework

(b) What mystery fruit combination should Professor Sahai put in Professor Niknejad s personalized smoothie? What score would Professor Niknejad give for this smoothie? There may be more than one correct answer.. Finding charges from voltage measurements We have three point charges Q, Q, and Q whose positions are known, and we want to determine their charges. In order to do that, we take three voltage measurements V, V and V at three different locations. The positions of the charges and voltages are shown in Figure??. Figure : A For the purpose of this problem, the following equation is true: V = k Q r at a point r meters away (for some fixed physical constant k; this problem does not require its numerical value). Furthermore, the voltage contribution from different point charges add up linearly. For example, in the setup of Figure??, the voltage measured at point V is V = k Q + k Q + k Q Given that the actual voltage measurements in the setup of Figure?? are V = k 4 + + 0, V = k + 4, V = k 4 + + 0 write the system of linear equations relating the voltages to charges. Solve the system to find the charges Q,Q,Q. You may use your IPython notebook to solve the system. EECS 6A, Spring 06, Homework

IPython hint: For constants a i,b i,c i,y i, you can solve the system of linear equations a x + a x + a x = y, b x + b x + b x = y, c x + c x + c x = y, in IPython with the following code import numpy as np a = np.array([ [a, a, a], [b, b, b], [c, c, c] ]) b = np.array([y, y, y]) x = np.linalg.solve(a, b) The square root of a number a can be obtained as np.sqrt(a) in IPython. 4. The Framingham Risk Score The Framingham risk score estimates the 0-year cardiovascular disease (CVD) risk of an individual. There are multiple factors (predictors) that weigh in the calculation of the Framingham score. For each individual, these factors are: gender, age, total cholesterol, level of high-density lipoprotein (HDL) cholesterol, systolic blood pressure (SBP), whether or not the individual smokes, whether or not the individual is treated for high blood pressure and whether or not the individual is diabetic. For this problem, we will focus on the algorithm that estimates the CVD risk for female individuals who smoke, are not treated for high blood pressure and are not diabetic. To calculate the 0-year CVD risk of an individual in the group described above, a score R is first assigned based on the values of age, total cholesterol, HDL cholesterol and systolic blood pressure as follows R =a ln(age (years)) + b ln(total cholesterol (mg/dl))+ c ln(hdl cholesterol (mg/dl)) + d ln(sbp (mm Hg)) where a,b,c and d are constant coefficients and ln( ) denotes the natural (base e) logarithm. After the score R is calculated, it is plugged into the following formula in order to obtain the risk p (in terms of probability) of the individual suffering from a CVD in the next 0 years: p = 0.9 e(r.66) (Note that there is a double exponent in the expression.) When the algorithm was first devised, the only copy of the document that reported the coefficients a,b,c and d was shredded by mistake by a new intern in the hospital where the research was conducted. The intern needs to restore the values of the coefficients from existing records of hospital patients. He needs your help to do so. Throughout the problem, you can approximate any numbers up to the fourth decimal. For example, you can approximate 0.46789 by 0.46 and 0.496 by 0.40. EECS 6A, Spring 06, Homework

Patient ID 4 Age (years) 66 6 60 Total Chol. (mg/dl) 98 80 80 HDL Chol. (mg/dl) 47 0 4 SBP (mm Hg) 4 0 Risk (p) 0.0 0.08 0.0940 0.00 Table : Patient records for 0-year CVD risk assessment (a) The intern dug up some of the records for patients in the study group who fit the criteria of the formula in question. The records are summarized in the table??. Use these records to devise a system of linear equations where a, b, c and d are the unknowns. (b) Solve the system of linear equations that you devised in question?? of this problem. For this question, you can use IPython. Note: The natural logarithm of a number a (i.e. ln (a)) can be obtained as np.log(a) in IPython. Note: Some of the values in the algorithm were modified from the original study values.. Filtering out the troll You attended a very important public speech and recorded it using a recording device that consists of two directional microphones. However, there was this particular person in the audience who was trolling around. When you went back home to listen to the recording you realized that the two recordings are dominated by the troll and you cannot hear the speech. Fortunately since you had two microphones, you realize that there is a way to combine the two recordings such that trolling is removed. Recollecting the scene, the locations of the speaker and the troll are shown in Figure??. Figure : A The way your recording device works is that each microphone weighs the audio signal depending on the angle of the audio source, relative to the x axis, hence the name directional microphones. More specifically, if the audio source is located at an angle of θ, the first microphone will record the audio signal with weight f (θ ) = cos(θ ), and the second microphone will record the audio signal with weight f (θ ) = sin(θ ). For example, an audio source that lies on the x axis will be recorded with the first microphone with weight equal to (since cos(0) = ), but will not be picked by microphone two (since sin(0) = 0). Note that the weights can also be negative. EECS 6A, Spring 06, Homework 4

Graphically, the directional characteristics of the microphones are given in Figures?? and?? (colors red and blue denote positive and negative values of the weight respectively). Putting all of this together, assume that there are two speakers, A and B, at angles θ and ψ, respectively. Assume that speaker A produces an audio signal represented by the vector a R n. That is, the i-th component of a is the signal at the i-th time step. Similarly, assume speaker B produces an audio signal b, Then the first microphone will record the signal and the second microphone will record the signal m = cos(θ) a + cos(ψ) b, m = sin(θ) a + sin(ψ) b, Figure : Directional characteristics of mic. Figure 4: Directional characteristics of mic. (a) Using the notation above, let the important speaker be speaker A (with signal a) and let the person trolling be speaker" B (with signal b). Express the recordings of the two microphones m and m (i.e. the signals recorded by the first and the second microphones, respectively) as a linear combination of a and b. (b) Recover the important speech a, as a weighted combination of m and m. In other words, write a = u m + v m (where u and v are scalars). What are the values of u and v? (c) Partial IPython code can be found in prob.ipynb. Complete the code to get a clean signal of the important speech. What does the speaker say? (Optional: Where is the speech taken from?) Note: You may have noticed that the recordings of the two microphones sounded remarkably similar. This means that you could recover the real speech from two trolled recordings that sounded almost identical! Leave out the fact that the recordings are actually different, and have some fun with your friends who aren t lucky enough to be taking EE6A. 6. Your Own Problem Write your own problem related to this week s material and solve it. You may still work in groups to brainstorm problems, but each student should submit a unique problem. What is the problem? How to formulate it? How to solve it? What is the solution? EECS 6A, Spring 06, Homework