
MATLAB: An Introduction with Applications, 6th Edition: An Introduction with Applications
6th Edition
ISBN: 9781119385134
Author: Amos Gilat
Publisher: WILEY
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 14P
Use a single command to create a row
Expert Solution & Answer

Want to see the full answer?
Check out a sample textbook solution
Students have asked these similar questions
You have been hired as an intern to run analyses on the data and report the results back to Sarah; the five questions that Sarah needs you to address are given below. please do it step by step
Does there appear to be a positive or negative relationship between price and screen size? Use a scatter plot to examine the relationship.
Determine and interpret the correlation coefficient between the two variables. In your interpretation, discuss the direction of the relationship (positive, negative, or zero relationship). Also discuss the strength of the relationship.
Estimate the relationship between screen size and price using a simple linear regression model and interpret the estimated coefficients. (In your interpretation, tell the dollar amount by which price will change for each unit of increase in screen size).
Include the manufacturer dummy variable (Samsung=1, 0 otherwise) and estimate the relationship between screen size, price and manufacturer dummy as a multiple linear…
Exercises: Find all the whole number
solutions of the congruence equation.
1. 3x 8 mod 11
2. 2x+3= 8 mod 12
3. 3x+12= 7 mod 10
4. 4x+6= 5 mod 8
5. 5x+3= 8 mod 12
Scenario
Sales of products by color follow a peculiar, but predictable, pattern that determines how many units will sell in
any given year. This pattern is shown below
Product Color
1995
1996
1997
Red
28
42
21
1998
23
1999
29
2000
2001
2002
Unit Sales
2003 2004
15
8
4
2
1
2005 2006
discontinued
Green
26
39
20
22
28
14
7
4
2
White
43
65
33
36
45
23
12
Brown
58
87
44
48
60
Yellow
37
56
28
31
Black
28
42
21
Orange
19
29
Purple
Total
28
42
21
49
68
78
95
123
176
181
164
127
24
179
Questions
A) Which color will sell the most units in 2007?
B) Which color will sell the most units combined in the 2007 to 2009 period?
Please show all your analysis, leave formulas in cells, and specify any assumptions you make.
Chapter 2 Solutions
MATLAB: An Introduction with Applications, 6th Edition: An Introduction with Applications
Ch. 2 - Prob. 1PCh. 2 - Create a variable b that is a row vector with the...Ch. 2 - Create a variable c that is a colums vector with...Ch. 2 - Create a variable d that is a column vectorwith...Ch. 2 - Define the variables x= 3.4 and y= 5.8, and then...Ch. 2 - Define the variables c = 4.5 and d = 2.8, and then...Ch. 2 - Create a variable g that is a row vector in which...Ch. 2 - Create a variable h that is a row vector with...Ch. 2 - Create a variable M that is a column vector in...Ch. 2 - Create a variable N that is a column vector with...
Ch. 2 - Using the colon symbol, create a row vector...Ch. 2 - Using the linspace command, create a row vector...Ch. 2 - Using the colon symbol, create a variable named...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Use a single command to create a row vector...Ch. 2 - Create two row vectors v=41:-3:29 and w=17:4:37....Ch. 2 - Create two column vectors T= [5:5:25]’ and S=...Ch. 2 - Create a row vectors A=4:3:13 and a column vector...Ch. 2 - Create a row vector vA=1: 3 : 34 that has 12...Ch. 2 - Create a row vector vC=2 :3 :38 that has 13...Ch. 2 - Create two row vectors vD=20 :4 :44 and vE=50 :3...Ch. 2 - Create a nine-element row vector vF=5 : 7: 61....Ch. 2 - Create the following matrix by assigning vectors...Ch. 2 - Create the following vector by using the linspace...Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following matrix by typing one command....Ch. 2 - Create the following three row vectors: a=[58102]...Ch. 2 - Create the following three row vectors: a= [5 8 -1...Ch. 2 - Create the following to row vectors: d=[6-1 4 0 -2...Ch. 2 - Prob. 34PCh. 2 - Create the following vector: V=[5 0 -3 7 6 -1 2 8...Ch. 2 - Create the following vectors: u= [0 9 -5 6 3 -1 2]...Ch. 2 - Create the following matrix M: M= 1 7 13 19 25 3 9...Ch. 2 - Create the following matrix N: N= 0 3 6 9 12 15 18...Ch. 2 - Create the following matrix G: G= 0.1 0.2 0.3 0.4...Ch. 2 - Create the following matrix K: K= 0.25 0.5 0.75...Ch. 2 - The following matrix is defined in MATLAB: S= 1 2...Ch. 2 - The following matrix is defined in MATLAB: T= 2 4...Ch. 2 - By hand (pencil and paper) write what will be...Ch. 2 - Using the zeros, ones, and eye commands, create...Ch. 2 - Use the eye, ones, and zeros command to create the...
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
- One hundred students were surveyed about their preference between dogs and cats. The following two-way table displays data for the sample of students who responded to the survey. Preference Male Female TOTAL Prefers dogs \[36\] \[20\] \[56\] Prefers cats \[10\] \[26\] \[36\] No preference \[2\] \[6\] \[8\] TOTAL \[48\] \[52\] \[100\] problem 1 Find the probability that a randomly selected student prefers dogs.Enter your answer as a fraction or decimal. \[P\left(\text{prefers dogs}\right)=\] Incorrect Check Hide explanation Preference Male Female TOTAL Prefers dogs \[\blueD{36}\] \[\blueD{20}\] \[\blueE{56}\] Prefers cats \[10\] \[26\] \[36\] No preference \[2\] \[6\] \[8\] TOTAL \[48\] \[52\] \[100\] There were \[\blueE{56}\] students in the sample who preferred dogs out of \[100\] total students.arrow_forwardBusiness discussarrow_forwardYou have been hired as an intern to run analyses on the data and report the results back to Sarah; the five questions that Sarah needs you to address are given below. Does there appear to be a positive or negative relationship between price and screen size? Use a scatter plot to examine the relationship. Determine and interpret the correlation coefficient between the two variables. In your interpretation, discuss the direction of the relationship (positive, negative, or zero relationship). Also discuss the strength of the relationship. Estimate the relationship between screen size and price using a simple linear regression model and interpret the estimated coefficients. (In your interpretation, tell the dollar amount by which price will change for each unit of increase in screen size). Include the manufacturer dummy variable (Samsung=1, 0 otherwise) and estimate the relationship between screen size, price and manufacturer dummy as a multiple linear regression model. Interpret the…arrow_forward
- Does there appear to be a positive or negative relationship between price and screen size? Use a scatter plot to examine the relationship. How to take snapshots: if you use a MacBook, press Command+ Shift+4 to take snapshots. If you are using Windows, use the Snipping Tool to take snapshots. Question 1: Determine and interpret the correlation coefficient between the two variables. In your interpretation, discuss the direction of the relationship (positive, negative, or zero relationship). Also discuss the strength of the relationship. Value of correlation coefficient: Direction of the relationship (positive, negative, or zero relationship): Strength of the relationship (strong/moderate/weak): Question 2: Estimate the relationship between screen size and price using a simple linear regression model and interpret the estimated coefficients. In your interpretation, tell the dollar amount by which price will change for each unit of increase in screen size. (The answer for the…arrow_forwardIn this problem, we consider a Brownian motion (W+) t≥0. We consider a stock model (St)t>0 given (under the measure P) by d.St 0.03 St dt + 0.2 St dwt, with So 2. We assume that the interest rate is r = 0.06. The purpose of this problem is to price an option on this stock (which we name cubic put). This option is European-type, with maturity 3 months (i.e. T = 0.25 years), and payoff given by F = (8-5)+ (a) Write the Stochastic Differential Equation satisfied by (St) under the risk-neutral measure Q. (You don't need to prove it, simply give the answer.) (b) Give the price of a regular European put on (St) with maturity 3 months and strike K = 2. (c) Let X = S. Find the Stochastic Differential Equation satisfied by the process (Xt) under the measure Q. (d) Find an explicit expression for X₁ = S3 under measure Q. (e) Using the results above, find the price of the cubic put option mentioned above. (f) Is the price in (e) the same as in question (b)? (Explain why.)arrow_forwardProblem 4. Margrabe formula and the Greeks (20 pts) In the homework, we determined the Margrabe formula for the price of an option allowing you to swap an x-stock for a y-stock at time T. For stocks with initial values xo, yo, common volatility σ and correlation p, the formula was given by Fo=yo (d+)-x0Þ(d_), where In (±² Ꭲ d+ õ√T and σ = σ√√√2(1 - p). дго (a) We want to determine a "Greek" for ỡ on the option: find a formula for θα (b) Is дго θα positive or negative? (c) We consider a situation in which the correlation p between the two stocks increases: what can you say about the price Fo? (d) Assume that yo< xo and p = 1. What is the price of the option?arrow_forward
- We consider a 4-dimensional stock price model given (under P) by dẴ₁ = µ· Xt dt + йt · ΣdŴt where (W) is an n-dimensional Brownian motion, π = (0.02, 0.01, -0.02, 0.05), 0.2 0 0 0 0.3 0.4 0 0 Σ= -0.1 -4a За 0 0.2 0.4 -0.1 0.2) and a E R. We assume that ☑0 = (1, 1, 1, 1) and that the interest rate on the market is r = 0.02. (a) Give a condition on a that would make stock #3 be the one with largest volatility. (b) Find the diversification coefficient for this portfolio as a function of a. (c) Determine the maximum diversification coefficient d that you could reach by varying the value of a? 2arrow_forwardQuestion 1. Your manager asks you to explain why the Black-Scholes model may be inappro- priate for pricing options in practice. Give one reason that would substantiate this claim? Question 2. We consider stock #1 and stock #2 in the model of Problem 2. Your manager asks you to pick only one of them to invest in based on the model provided. Which one do you choose and why ? Question 3. Let (St) to be an asset modeled by the Black-Scholes SDE. Let Ft be the price at time t of a European put with maturity T and strike price K. Then, the discounted option price process (ert Ft) t20 is a martingale. True or False? (Explain your answer.) Question 4. You are considering pricing an American put option using a Black-Scholes model for the underlying stock. An explicit formula for the price doesn't exist. In just a few words (no more than 2 sentences), explain how you would proceed to price it. Question 5. We model a short rate with a Ho-Lee model drt = ln(1+t) dt +2dWt. Then the interest rate…arrow_forwardIn this problem, we consider a Brownian motion (W+) t≥0. We consider a stock model (St)t>0 given (under the measure P) by d.St 0.03 St dt + 0.2 St dwt, with So 2. We assume that the interest rate is r = 0.06. The purpose of this problem is to price an option on this stock (which we name cubic put). This option is European-type, with maturity 3 months (i.e. T = 0.25 years), and payoff given by F = (8-5)+ (a) Write the Stochastic Differential Equation satisfied by (St) under the risk-neutral measure Q. (You don't need to prove it, simply give the answer.) (b) Give the price of a regular European put on (St) with maturity 3 months and strike K = 2. (c) Let X = S. Find the Stochastic Differential Equation satisfied by the process (Xt) under the measure Q. (d) Find an explicit expression for X₁ = S3 under measure Q. (e) Using the results above, find the price of the cubic put option mentioned above. (f) Is the price in (e) the same as in question (b)? (Explain why.)arrow_forward
- The managing director of a consulting group has the accompanying monthly data on total overhead costs and professional labor hours to bill to clients. Complete parts a through c. Question content area bottom Part 1 a. Develop a simple linear regression model between billable hours and overhead costs. Overhead Costsequals=212495.2212495.2plus+left parenthesis 42.4857 right parenthesis42.485742.4857times×Billable Hours (Round the constant to one decimal place as needed. Round the coefficient to four decimal places as needed. Do not include the $ symbol in your answers.) Part 2 b. Interpret the coefficients of your regression model. Specifically, what does the fixed component of the model mean to the consulting firm? Interpret the fixed term, b 0b0, if appropriate. Choose the correct answer below. A. The value of b 0b0 is the predicted billable hours for an overhead cost of 0 dollars. B. It is not appropriate to interpret b 0b0, because its value…arrow_forwardUsing the accompanying Home Market Value data and associated regression line, Market ValueMarket Valueequals=$28,416+$37.066×Square Feet, compute the errors associated with each observation using the formula e Subscript ieiequals=Upper Y Subscript iYiminus−ModifyingAbove Upper Y with caret Subscript iYi and construct a frequency distribution and histogram. LOADING... Click the icon to view the Home Market Value data. Question content area bottom Part 1 Construct a frequency distribution of the errors, e Subscript iei. (Type whole numbers.) Error Frequency minus−15 comma 00015,000less than< e Subscript iei less than or equals≤minus−10 comma 00010,000 0 minus−10 comma 00010,000less than< e Subscript iei less than or equals≤minus−50005000 5 minus−50005000less than< e Subscript iei less than or equals≤0 21 0less than< e Subscript iei less than or equals≤50005000 9…arrow_forwardThe managing director of a consulting group has the accompanying monthly data on total overhead costs and professional labor hours to bill to clients. Complete parts a through c Overhead Costs Billable Hours345000 3000385000 4000410000 5000462000 6000530000 7000545000 8000arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Linear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningElementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill

Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning

Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning

College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning

Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage

Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Graph Theory: Euler Paths and Euler Circuits; Author: Mathispower4u;https://www.youtube.com/watch?v=5M-m62qTR-s;License: Standard YouTube License, CC-BY
WALK,TRIAL,CIRCUIT,PATH,CYCLE IN GRAPH THEORY; Author: DIVVELA SRINIVASA RAO;https://www.youtube.com/watch?v=iYVltZtnAik;License: Standard YouTube License, CC-BY