UC Berkeley Math 10B, Spring 2015: Midterm 2 Prof. Sturmfels, April 9, SOLUTIONS

Similar documents
Solutions to Homework 5, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y 4y = 48t 3.

Fall 2016 Math 2B Suggested Homework Problems Solutions

First-Order ODEs. Chapter Separable Equations. We consider in this chapter differential equations of the form dy (1.1)

POLI 443 Applied Political Research

For all questions, answer choice E. NOTA" means none of the above answers is correct.

Higher Order Linear Equations

Math 106 Answers to Exam 3a Fall 2015

a k 0, then k + 1 = 2 lim 1 + 1

Quantitative Analysis and Empirical Methods

Series Solutions Near an Ordinary Point

y = (x2 +1) cos(x) 2x sin(x) d) y = ln(sin(x 2 )) y = 2x cos(x2 ) by the chain rule applied twice. Once to ln(u) and once to

Ma 221 Final Exam Solutions 5/14/13

Inferences About Two Proportions

(x t. x t +1. TIME SERIES (Chapter 8 of Wilks)

MAT 132 Midterm 1 Spring 2017

Chapter 7 Rational Expressions, Equations, and Functions

Linear Second Order ODEs

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

Carolyn Anderson & YoungShil Paek (Slide contributors: Shuai Wang, Yi Zheng, Michael Culbertson, & Haiyan Li)

Math 266 Midterm Exam 2

Math 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

STA 2101/442 Assignment 2 1

Section 6.6 Evaluating Polynomial Functions

The Logit Model: Estimation, Testing and Interpretation

MA : Introductory Probability

Systems of Ordinary Differential Equations

On linear and non-linear equations.(sect. 2.4).

3) A flagpole casts a shadow that is 21 m long when the angle between the sun s rays and

Practice problems from old exams for math 132 William H. Meeks III

Differential Equations

MATH 2413 TEST ON CHAPTER 4 ANSWER ALL QUESTIONS. TIME 1.5 HRS.

Math 23: Differential Equations (Winter 2017) Midterm Exam Solutions

Confidence Intervals for the Mean of Non-normal Data Class 23, Jeremy Orloff and Jonathan Bloom

Quantitative Introduction ro Risk and Uncertainty in Business Module 5: Hypothesis Testing

Puzzle 1 Puzzle 2 Puzzle 3 Puzzle 4 Puzzle 5 /10 /10 /10 /10 /10

Solutions Definition 2: a solution

MATH 101: PRACTICE MIDTERM 2

Stat 426 : Homework 1.

Algebraic Properties of Solutions of Linear Systems

DIFFERENTIATION RULES

Confidence Intervals for Normal Data Spring 2018

3.5 Undetermined Coefficients

All numbered readings are from Beck and Geoghegan s The art of proof.

DIFFERENTIAL EQUATIONS COURSE NOTES, LECTURE 2: TYPES OF DIFFERENTIAL EQUATIONS, SOLVING SEPARABLE ODES.

Introduction to Statistical Data Analysis Lecture 4: Sampling

Inferences About Two Population Proportions

Solutions to Math 53 First Exam April 20, 2010

California State University Northridge MATH 280: Applied Differential Equations Midterm Exam 1

Speed and Velocity: Recall from Calc 1: If f (t) gives the position of an object at time t, then. velocity at time t = f (t) speed at time t = f (t)

1 y 2 dy = (2 + t)dt 1 y. = 2t + t2 2 + C 1 2t + t 2 /2 + C. 1 t 2 /2 + 2t 1. e y y = 2t 2. e y dy = 2t 2 dt. e y = 2 3 t3 + C. y = ln( 2 3 t3 + C).

Unit 9: Inferences for Proportions and Count Data

ODE Math 3331 (Summer 2014) June 16, 2014

Chapters 3.2 Discrete distributions

Summary of Chapters 7-9

Institute of Actuaries of India

Solutions to Math 41 Final Exam December 10, 2012

Lecture Notes for Math 251: ODE and PDE. Lecture 30: 10.1 Two-Point Boundary Value Problems

Math 200 University of Connecticut

Math 322. Spring 2015 Review Problems for Midterm 2

Math 216 Second Midterm 19 March, 2018

Polling and sampling. Clement de Chaisemartin and Douglas G. Steigerwald UCSB

HIGHER-ORDER LINEAR ORDINARY DIFFERENTIAL EQUATIONS II: Nonhomogeneous Equations. David Levermore Department of Mathematics University of Maryland

8.3 Partial Fraction Decomposition

Generating Functions

Section 1.3 Integration

High School Math Contest

SOLUTIONS ABOUT ORDINARY POINTS

Carleton College, winter 2013 Math 232, Solutions to review problems and practice midterm 2 Prof. Jones 15. T 17. F 38. T 21. F 26. T 22. T 27.

ODE Homework Series Solutions Near an Ordinary Point, Part I 1. Seek power series solution of the equation. n(n 1)a n x n 2 = n=0

MULTIPLYING TRINOMIALS

Chapter 2 Polynomial and Rational Functions

Section September 6, If n = 3, 4, 5,..., the polynomial is called a cubic, quartic, quintic, etc.

Math 320, spring 2011 before the first midterm

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

Math 334 A1 Homework 3 (Due Nov. 5 5pm)

Recurrence Relations and Recursion: MATH 180

Midterm Preparation Problems

Trimester 2 Expectations. Chapter (McGraw-Hill. CCSS covered Key Vocabulary Vertical. Alignment

Math 10b Ch. 8 Reading 1: Introduction to Taylor Polynomials

Algebra ll/pre-ap Algebra II Common Core Standards

i=1 X i/n i=1 (X i X) 2 /(n 1). Find the constant c so that the statistic c(x X n+1 )/S has a t-distribution. If n = 8, determine k such that

Chapter 13: Integrals

Math Homework 3 Solutions. (1 y sin x) dx + (cos x) dy = 0. = sin x =

MTH135/STA104: Probability

STATISTICS AND NUMERICAL METHODS

Math 54. Selected Solutions for Week 5

Math 304 Answers to Selected Problems

First Order Systems of Linear Equations. or ODEs of Arbitrary Order

Solutions to Exercises Chapter 5: The Principle of Inclusion and Exclusion

Midterm 3 Review. Terms. Formulas and Rules to Use. Math 1010, Fall 2011 Instructor: Marina Gresham. Odd Root ( n x where n is odd) Exponent

Module 7 Practice problem and Homework answers

Discrete Math, Spring Solutions to Problems V

Euler-Cauchy Using Undetermined Coefficients

2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

QUEEN S UNIVERSITY FINAL EXAMINATION FACULTY OF ARTS AND SCIENCE DEPARTMENT OF ECONOMICS APRIL 2018

Teacher's Page. Mar 20 8:26 AM

DIFFERENTIAL EQUATIONS

Unit 3 Vocabulary. An algebraic expression that can contains. variables, numbers and operators (like +, An equation is a math sentence stating

Unit 3. Integration. 3A. Differentials, indefinite integration. y x. c) Method 1 (slow way) Substitute: u = 8 + 9x, du = 9dx.

DIFFERENTIAL EQUATIONS

Transcription:

UC Berkeley Math 10B, Spring 2015: Midterm 2 Prof. Sturmfels, April 9, SOLUTIONS 1. (5 points) You are a pollster for the 2016 presidential elections. You ask 0 random people whether they would vote for the Republican candidate or the Democratic candidate. 0 people say that they will vote for the Democrat. (a) Find a 95% confidence interval for the percentage of votes p that the Democrat will get. (You do not need to simplify your answer). Let p be the random variable which measures the percentage vote that the Democratic candidate gets. We assume that the polling process follows a Binomial distribution, i.e. each voter s preference is independent of other voters. The sample gives us the observed percentage, ˆp = 0 0 =. Assuming binomial ( ) distribution, the sample standard error is SE ˆ = ˆp(1 ˆp) = 1 The 95% confidence interval is given by the following: ( ˆp 2 SE ˆ, ˆp + 2 ˆ ) SE. n n Substituting the values above, we find ( ) 2 1, 0 + 2 ( 1 0 ) (0.5286, 0.5914). (b) Based on the information you have, if you wanted to be 99% confident instead of 95%, will you have to increase the size of your confidence interval from part(a) or decrease it? Explain briefly in your own words. If I want to increase my confidence, I must opt for a bigger interval because then I can be more sure that the parameter I am looking for is included in it.

2. (5 points) Find an explicit formula for the sequence {a n } n 0 which satisfies a 0 = 1, a 1 = 4, a 2 = 4, and a n = 2a n 1 + a n 2 2a n 3 for n 3. We rewrite the given recurrence relation as a n 2a n 1 a n 2 + 2a n 3 = 0 (1) from which we deduce that the characteristic polynomial is x 3 2x 2 x+2. Inspection shows that r = +1 and r = 1 are roots. Since the product of all three roots is the constant term +2, the third root is r = 2. So, the characteristic polynomial this factors as (x 1)(x + 1)(x 2), and the general solution to the recurrence is a n = c 1 1 n + c 2 ( 1) n + c 3 2 n for n 0. (2) We now use the given initial conditions to determine c 1, c 2, c 3. Substituting n = 0, 1, 2 into (2) and applying the initial conditions gives the system of linear equations c 1 + c 2 + c 3 = 1 (3) c 1 c 2 + 2c 3 = 4 (4) c 1 + c 2 + 4c 3 = 4 (5) in the variables c 1, c 2, c 3. Subtracting (5) from (3) gives 3c 3 = 3; so c 3 = 1. Substituting into (3) and (4) gives c 1 + c 2 = 0 (6) c 1 c 2 = 2 (7) from which we obtain c 1 = 1 and c 2 = 1. Hence the desired formula is a n = 1 ( 1) n + 2 n for n 0. 2

3. (5 points) Is the function f(x) = sin x a solution to the differential equation: f (x) = f (x) + f(x) for all < x <? Why or why not? Give an explanation in complete sentences. We plug in f(x) = sin x into both sides of the differential equation. The left hand side evaluates to the function f (x) = (cos x) = ( sin x) = cos x. The right hand side evaluates to zero: f (x) + f(x) = (cos x) + sin x = ( sin x) + sin x = 0. Since it is not true that cos x equals 0 for all < x <, we conclude that the given function f(x) = sin x is not a solution to the differential equation. 3

4. (5 points) Is the sequence defined by a solution to the recurrence relation: a n = 1 n(n + 1) for n = 0, 1, 2, 3,... 2 a n = 2a n 1 a n 2 + 1 for all n = 2, 3, 4,...? Why or why not? Give an explanation in complete sentences. We plug in a n = 1 2n(n + 1) for n = 0, 1, 2,... into the recurrence relation. In order to do this, we need to plug in n 1 and n 2 for n in a n = 1 2n(n + 1) to get: for all n = 2, 3, 4,.... a n 1 = 1 2 (n 1)n, a n 2 = 1 (n 2)(n 1) 2 For all integers n = 2, 3, 4,..., the following equations hold: 2a n 1 a n 2 + 1 = 2 1 2 (n 1)n 1 (n 2)(n 1) + 1 2 = (n 2 n) + ( 12 n2 + 32 ) n 1 + 1 = 1 2 n2 + 1 2 n = 1 2 n(n + 1) = a n. Therefore, if a n = 1 2 n(n + 1) for all n = 0, 1, 2,..., then a n = 2a n 1 a n 2 + 1 for all n = 2, 3, 4,.... This is exactly what it means for the sequence defined by a n = 1 2 n(n+1) to be a solution to the recurrence relation, so 1 2n(n+1) is a solution. 4

5. (5 points) Find the general solution to the ordinary differential equation (t 3 t)y = (t + 2). This is equivalent to finding the antiderivative of the function f(t) = t + 2 t 3 t = t + 2 t(t 1)(t + 1) Applying the method of partial fractions, we seek constants a, b and c such that f(t) = a t + b t 1 + c t + 1 a(t 1)(t + 1) + bt(t + 1) + ct(t 1) =. t(t 1)(t + 1) The numerator equals (a+b+c)t 2 +(b c)t a, and hence we have a+b+c = 0, b c = 1, and a = 2. This implies a = 2, b = 3/2, c = 1/2, so our rational function equals f(t) = 1/2 t + 1 2 t + 3/2 t 1. Therefore the desired antiderivative equals y(t) = f(t)dt = (1/2) ln t + 1 2 ln t + (3/2) ln t 1 + C. Here C is an arbitrary constant. 5

6. (5 points) This table records the observed frequencies of joint outcomes for a random variable X with values x 1, x 2 and a random variable Y with values y 1, y 2. x 1 x 2 y 1 17 12 y 2 11 8 (a) Compute the table of expected frequencies under the null hypothesis H 0 that X and Y are independent. (You do not need to simply the numbers in your answer). The row sums of the given table are 29 and 19, and the column sums are 28 and 20. The sample size is. Hence the table of expected frequencies is 29 28 y 1 19 28 y 2 x 1 x 2 29 20 19 20 (b) Explain how to use the tables of observed and expected frequencies to carry out a χ 2 test. Under what circumstances will we reject the null hypothesis? We compute the test statistic for independence on this data set as follows: ( ) 2 ( ) 2 ( ) 2 ( 29 28 19 28 29 20 19 20 17 11 12 8 r = 29 28 + 19 28 + 40 29 20 + 40 19 20 For this value of r we compute the p-value to be P ( R r H 0 ) where P has the χ-square distribution with one degree of freedom. If this p-value is small we reject the null hypothesis of independence. If it is large, say larger than 5%, then we do not reject the null hypothesis. ) 2. 6

7. (5 points) Determine all functions y(t) that satisfy y + 4y + 5y = 0 and y(0) = 3 and y(π/2) = 0 (Your final answer should not involve the complex number i = 1.) The given second-order linear ODE is # 12 on homework 9 with a = 2. Its characteristic equation λ 2 + 4λ + 5 = 0 has two complex solutions, namely λ = 2 ± i. This implies that the general solution to the ODE is y(t) = c 1 e 2t cos(t) + c 2 e 2t sin(t), where c 1 and c 2 are arbitrary constants. By plugging in the two given values we find 3 = y(0) = c 1 e 0 cos(0) + c 2 e 0 sin(0) = c 1 and 0 = y(π/2) = c 1 e π cos(π/2) + c 2 e π sin(π/2) = c 2 e π. Therefore c 1 = 3 and c 2 = 0. We conclude that the problem has a unique solution, namely the function y(t) = 3e 2t cos(t). 7

8. (5 points) Find all solutions to the differential equation y + y 2 cos(t) = 0. This is a separable first-order ODE. We first note that the constant function y = 0 is a solution. For all other solutions that are define on some open subset of the real line R, we can divide by y, and we can write dy = cos(t)dt. y 2 By passing to antiderivatives, we find y 1 = sin(t) + C, where C is a constant. Multiplying by 1 and taking reciprocals, we find y(t) = 1 sin(t) C. Conclusion: The set of all solutions to the given ODE consists of the zero solution 1 y(t) = 0 and y(t) =, where C ranges over all real constants. sin(t) C 8