Question

In: Advanced Math

For this problem, let ke = max{2,the largest even number in your student number}, ko =...

For this problem, let ke = max{2,the largest even number in your student number}, ko = max{3,the largest odd number in your student number} So, e.g., if your student number is 5135731, then ke = 2 and ko = 7. The data in Table 2 represents points (xi,yi) sampled from an experimentally generated triangular wave function with period 2π.
(a) Use the least-squares technique we developed in class to estimate the coefficients a, b and c for the optimal least-squares fit of the data points to the function yf(x) = acos(x) + bcos(kox) + ccos(kex)
(b) The repeating triangular wave function can be expressed as y(x) =(2x−π π 0 ≤ x ≤ π3 π−2x π π ≤ x ≤ 2π Using the inner product hf(x),g(x)i = 1 πR2π 0 f(x)g(x) dx, compare the least-squares coefficients you have obtained with the inner productshy(x),cos(nx)i, for suitable choices of n. How do they compare? What can you conclude?
x y 0.00000 -0.96468 0.50000 -0.64637 1.00000 -0.32806 1.50000 -0.00975 2.00000 0.30856 2.50000 0.62687 3.00000 0.94518 3.50000 0.80715 4.00000 0.48884 4.50000 0.17053 5.00000 -0.14778 5.50000 -0.46609 6.00000 -0.78440

Solutions

Expert Solution

Given that

we have to Use the Least-squares technique we developed in class to estimate the coefficients a,b and c for the optimal least -squares fit of the data points to the function

yf(x) = a cos(x) + b cos(kox) + c cos(kex)


Related Solutions

Write code that finds the largest number in data and stores it in the variable max...
Write code that finds the largest number in data and stores it in the variable max and the smallest number in data and stores it in min. Test Cases Test case #1 Expected result: max is 52.66; min is 15.53 Test case #2 Expected result: max is 56.95; min is 5.77 Test case #3 Expected result: max is 77.02; min is 24.24 Test case #4 Expected result: max is 90.48; min is 35.94.
Let X be the event that the first number is even. Let Y be the event...
Let X be the event that the first number is even. Let Y be the event that the second number is even. Let Z be the event that the sum of the two numbers is even. Are the events X and Z independent? ( Are the events X ∩ Y and Z independent?
divide even number by 2 and what is the reminder? duvid odd number by 2 and...
divide even number by 2 and what is the reminder? duvid odd number by 2 and what is the reminder? here modulus is a remiander function. MY_ARRAY[] is an array if 49 elements or DINT[49]. Create four versions of structured text code that sets all even elements of MY_ARRAY[] =3 and all odd elements = 7 using. You can use any function or construct in structured text however each version will contain only 1 type of loop construct: 1) 1...
Let x be the number of courses for which a randomly selected student at a certain...
Let x be the number of courses for which a randomly selected student at a certain university is registered. The probability distribution of x appears in the table shown below: x 1 2 3 4 5 6 7 p(x) .05 .03 .09 .26 .37 .16 .04 (a) What is P(x = 4)? P(x = 4) = (b) What is P(x 4)? P(x 4) = (c) What is the probability that the selected student is taking at most five courses? P(at...
Let G be a simple undirected graph with n vertices where n is an even number....
Let G be a simple undirected graph with n vertices where n is an even number. Prove that G contains a triangle if it has at least (n^2 / 4) + 1 edges using mathematical induction.
A bored student starts rolling a die. (a) Let N7 be the number of tries he...
A bored student starts rolling a die. (a) Let N7 be the number of tries he needs to get 7 fours. Find a formula for the exact probability P(N7 = 42). You do not have to evaluate it to get a number. To get started note that in order for N7 = 42, the 42nd toss must be a four. (b) Let N30 be the number of tries he needs to get 30 fours. Use the central limit theorem with...
2.c++ if and loop statement Write a program that will count the number of even number...
2.c++ if and loop statement Write a program that will count the number of even number and odd numbers between two inputted numbers. Display the numbers and compute the sum and average of all the even numbers and the sum and average all the odd numbers. Sample outputs: Enter starting number:3 Enter starting number:4 Enter ending number:10 Enter ending number:10 odd numbers Even number 3 4 5 6 7 8 9 10 number of even numbers=4 number of even numbers=4...
Consider the following problem. max ? 0.5?1 + 2.5?2 + ?3 subject to ?1 + 2?2...
Consider the following problem. max ? 0.5?1 + 2.5?2 + ?3 subject to ?1 + 2?2 + 3?3 ≤ 8 ?1, ?2, ?3 ∈ ℤ + ∪ {0} Solve the problem by dynamic programming. Show each step clearly.
Let B={2,4,6} be the event that we roll an even | number. Find P(B) and type...
Let B={2,4,6} be the event that we roll an even | number. Find P(B) and type the fraction
Let X represent the number of times a student visits a bookstore in a one-month period....
Let X represent the number of times a student visits a bookstore in a one-month period. Assume that the probability distribution of X is as follows: Let X represent the number of times a student visits a bookstore in a one-month period. Assume that the probability distribution of X is as follows: x 0 1 2 3 p(x) 0.15 0.20 0.45 ? Find the mean µ  and the standard deviation  σ  of this distribution. What is the probability that the student visits the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT