MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 6, Problem 13P
The reciprocal Fibonacci constant ?is defined by the infinite sum:
ψ=∞∑n=11Fn
where Fnare the Fibonacci numbers 1, 1,2. 3, 5, 8, 13,.... Each element in this sequence of numbers is the sum of the previous two. Start by setting the first two elements equal to 1, then Fn=Fn−1+Fn−2 . Write a MATLA B program in a script file that calculates ? for a given n. Execute the program for n = 10, 50,and 100.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
24 Line graphs typically connect the dots that
represent the data values over time. If the
time increments between the dots are large,
explain why the line graph can be somewhat
misleading.
17
Make a box plot from the five-number
summary: 3, 4, 7, 16, 17.
992) wa
12
10 -
8
6
4
29
0
Interpret the shape, center and spread of the
following box plot.
brill smo slob.nl bagh
Chapter 6 Solutions
MATLAB: An Introduction with Applications
Ch. 6 - Prob. 1PCh. 6 - Given: d=6e=4f=2 . Evaluate the following...Ch. 6 - Given: v=[-2 4 1 0 2 1 2] and w=[2 50 1 2 1 3]....Ch. 6 - Use the vectors v and w from Problem 3. Use...Ch. 6 - Evaluate the following expressions without using...Ch. 6 - Use loops to create a 46 matrix in which the value...Ch. 6 - Write a program that generates a vector with 30...Ch. 6 - Write a program that asks the user to input a...Ch. 6 - Write a program that asks the user to input a...Ch. 6 - The daily high temperature (°F) in New York City...
Ch. 6 - The Pascal triangle can be displayed as elements...Ch. 6 - Fibonacci numbers are the numbers in a sequence in...Ch. 6 - The reciprocal Fibonacci constant ?is defined by...Ch. 6 - The value of p can be estimated from:...Ch. 6 - The value of p can be estimated from the...Ch. 6 - Write a program that (a) generates a vector with...Ch. 6 - A vector is given by x= [9 -1.5 13.4 13.3 -2.1 4.6...Ch. 6 - The Pythagorean theorem states that a2+ b2= c2....Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - A safe prime is a prime number that can be written...Ch. 6 - Sexy primes are two prime numbers that the...Ch. 6 - A Mersenne prime is a prime number that is equal...Ch. 6 - A perfect number is a positive integer that is...Ch. 6 - A list of exam scores (S) (in percent out of 100%...Ch. 6 - The Taylor series expansion for axis:...Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - The following are formulas for calculating the...Ch. 6 - Body mass index (BMI) is a measure of obesity. In...Ch. 6 - Write a program in a script file that calculates...Ch. 6 - Write a program that determines the change given...Ch. 6 - The concentration of a drug in the body CPcan be...Ch. 6 - One numerical method for calculating the cubic...Ch. 6 - Write a program in a script file that converts a...Ch. 6 - In a one-dimensional random walk, the position x...Ch. 6 - The Sierpinski triangle can be implemented in...Ch. 6 - The roots of a cubic equation a3x3+a2x2+a1x+a0=0...Ch. 6 - The overall grade in a course is determined from...Ch. 6 - A Keith number is a number (integer) that appears...Ch. 6 - The following MATLAB commands create a sine-shaped...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.Similar questions
- Suppose that a driver's test has a mean score of 7 (out of 10 points) and standard deviation 0.5. a. Explain why you can reasonably assume that the data set of the test scores is mound-shaped. b. For the drivers taking this particular test, where should 68 percent of them score? c. Where should 95 percent of them score? d. Where should 99.7 percent of them score? Sarrow_forward13 Can the mean of a data set be higher than most of the values in the set? If so, how? Can the median of a set be higher than most of the values? If so, how? srit to estaarrow_forwardA random variable X takes values 0 and 1 with probabilities q and p, respectively, with q+p=1. find the moment generating function of X and show that all the moments about the origin equal p. (Note- Please include as much detailed solution/steps in the solution to understand, Thank you!)arrow_forward
- 1 (Expected Shortfall) Suppose the price of an asset Pt follows a normal random walk, i.e., Pt = Po+r₁ + ... + rt with r₁, r2,... being IID N(μ, o²). Po+r1+. ⚫ Suppose the VaR of rt is VaRq(rt) at level q, find the VaR of the price in T days, i.e., VaRq(Pt – Pt–T). - • If ESq(rt) = A, find ES₁(Pt – Pt–T).arrow_forward2 (Normal Distribution) Let rt be a log return. Suppose that r₁, 2, ... are IID N(0.06, 0.47). What is the distribution of rt (4) = rt + rt-1 + rt-2 + rt-3? What is P(rt (4) < 2)? What is the covariance between r2(2) = 1 + 12 and 13(2) = r² + 13? • What is the conditional distribution of r₁(3) = rt + rt-1 + rt-2 given rt-2 = 0.6?arrow_forward3 (Sharpe-ratio) Suppose that X1, X2,..., is a lognormal geometric random walk with parameters (μ, o²). Specifically, suppose that X = Xo exp(rı + ...Tk), where Xo is a fixed constant and r1, T2, ... are IID N(μ, o²). Find the Sharpe-ratios of rk and log(Xk) — log(Xo) respectively, assuming the risk free return is 0.arrow_forward
- i need help with question 2arrow_forward4 (Value-at-Risk and Expected Shortfall) Suppose X Find VaR0.02(X) and ES0.02 (X). ~ Uniform(-1, 1).arrow_forward亚 ח Variables Name avgdr employ educ exerany Label AVG ALCOHOLIC DRINKS PER DAY IN PAST 30 EMPLOYMENT STATUS EDUCATION LEVEL EXERCISE IN PAST 30 DAYSarrow_forward
- Variables Name wage hours IQ KWW educ exper tenure age married black south urban sibs brthord meduc feduc Label monthly earnings average weekly hours IQ score knowledge of world work score years of education years of work experience years with current employer age in years =1 if married =1 if black =1 if live in south =1 if live in SMSA number of siblings birth order mother's education father's educationarrow_forwardInformation for questions 4 • • Please Download "wages" from Canvas (the link to this dataset is right below the HWA1 questions - it is a Microsoft excel worksheet) and store it in your favorite folder. It contains 797 observations and 16 variables. The "state" variable gives the names of the states involved in this dataset. • You need to have excel on your computer to open this dataset. i. You should use File > Import > Excel Spreadsheet etc. as done in class 3 convert this file into a Stata dataset. Once you are done, write the final STATA code that makes the transformation of an excel file to a STATA file possible. ii. Write a code that will close the log file that has been open since Question 1 part ii.arrow_forwardThe mean, variance, skewness and kurtosis of a dataset are given as - Mean = 15, Variance = 20, SKewness = 1.5 and Kurtosis = 3.5 calculate the first four raw moments. (Note- Please include as much detailed solution/steps in the solution to understand, Thank you!)arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Use of ALGEBRA in REAL LIFE; Author: Fast and Easy Maths !;https://www.youtube.com/watch?v=9_PbWFpvkDc;License: Standard YouTube License, CC-BY
Compound Interest Formula Explained, Investment, Monthly & Continuously, Word Problems, Algebra; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=P182Abv3fOk;License: Standard YouTube License, CC-BY
Applications of Algebra (Digit, Age, Work, Clock, Mixture and Rate Problems); Author: EngineerProf PH;https://www.youtube.com/watch?v=Y8aJ_wYCS2g;License: Standard YouTube License, CC-BY