Basic matrix and vector operations

Assignment Help Basic Statistics
Reference no: EM131041984

Suppose we represent vectors v = (v i ) as sequences of numbers, and matrices m = (mij) as sequences of vectors (the rows of the matrix). For example, the matrix

321_kk.jpg

is represented as the sequence ((1 2 3 4) (4 5 6 6) (6 7 8 9)). With this representation, we can use sequence operations to concisely express the basic matrix and vector operations. These operations (which are described in any book on matrix algebra) are the following:

689_kk.jpg

We can define the dot product as 17 define (dot-product v w) (accumulate + 0 (map * v w))
Fill in the missing expressions in the following procedures for computing the other matrix operations. (The procedure accumulate-n is defined in exercise 2.36.)

The procedure accumulate-n is similar to accumulate except that it takes as its third argument a sequence of sequences, which are all assumed to have the same number of elements. It applies the designated accumulation procedure to combine all the first elements of the sequences, all the second elements of the sequences, and so on, and returns a sequence of the results. For instance, if s is a sequence containing four sequences, ((1 2 3) (4 5 6) (7 8 9) (10 11 12)), then the value of (accumulate-n + 0 s) should be the sequence (22 26 30). Fill in the missing expressions in the following definition of accumulate-n:

Reference no: EM131041984

Questions Cloud

Determining the profitability index rule : Juan assigns a discount rate of 10 percent to Project A and 12 percent to Project B. Which project or projects, if either, should he accept based on the profitability index rule?
What is the expected market risk premium : The common stock of United Industries has a beta of 1.34 and an expected return of 14.29 percent. The risk-free rate of return is 3.7 percent. What is the expected market risk premium?
Analysis of a hr problem or issue : Assessment Task: Analysis of a HR problem or issue. Task: Each group should identify a problem situation (HR problem) in an organisation they have access to- preferably an organisation where at least one group member works or has worked recently
Expected return on the portfolio : You own a portfolio that has $2,150 invested in Stock A and $3,050 invested in Stock B. If the expected returns on these stocks are 8 percent and 16 percent, respectively, what is the expected return on the portfolio? (Do not round your intermedia..
Basic matrix and vector operations : Suppose we represent vectors v = (v i ) as sequences of numbers, and matrices m = (mij) as sequences of vectors (the rows of the matrix). For example, the matrix
Describe similarities and differences between these three : In your own words, where do you think laws, ethics, and values come from? Describe the similarities and differences between these three. Give an example of when you can be lawful, but unethical.
What do you see as the pros of government safety regulation : What do you see as the pros and cons of government safety regulation? Is advertising a positive or socially desirable aspect of our economic system?
What is the cost of equity : Country Markets has an unlevered cost of capital of 12 percent, a tax rate of 38 percent, and expected earnings before interest and taxes of $15,700. The company has $11,000 in bonds outstanding that have a 6 percent coupon and pay interest annual..
What are its costs and benefits : Why do most animals have two sexes?

Reviews

Write a Review

Basic Statistics Questions & Answers

  Evidence to reject the salesmans claim

Find that a random sample of 14 similar cars has a mean of price of $19,850 with a standard deviation of $1084. Is there enough evidence to reject the salesman's claim at "alpha" = 0.05?

  What are the hypotheses needed to test the clain of the

in a research report on the effect of moisture on a certain kind of composite material it is reported that in 80 of

  Compare the mean for the heights of males which is 6978

compare the mean for the heights of males which is 69.78 and the mean for the heights of females which is 67.08.

  The mean and standard deviation on a calculus mid term are

the mean and standard deviation on a calculus mid term are 55 and 16 points while they are 65 and 22 on the final. if a

  A large database of us worker data reveals that number of

a large database of u.s. worker data reveals that number of years of work experience is correlated with higher

  Jorge finds that his standardized z score on an iq is 20

jorge finds that his standardized z score on an iq is 2.0. what percentage of people did he score higher than?a. 98b.

  Prepare a histogram for youngsters involved in road accident

Prepare a Histogram for Youngsters Involved in Road Accidents

  Suspects that the proportion of households

Suppose a consumer group suspects that the proportion of households that have three cell phones is 30%. A cell phone company has reason to believe that the proportion is 30%. Before they start a big advertising campaign, they conduct a hypothesis ..

  Con?dence interval for difference in mean weight loss

Construct a 99% con?dence interval for the difference in the mean weight loss by these two methods. State any assumptions you made and interpret the result you obtained.

  Average cost of accessories on mini coopers

a. Calculate a 95% confidence interval for the average cost of accessories on Mini Coopers. b. Determine the margin of error in estimating the average cost of accessories on Mini Coopers.

  The shelf life of a particular type of battery is being

the shelf life of a particular type of battery is being studied. twenty batteries are tested and the mean shelf life of

  Problem regarding the geometric random variable

(i) Establish that E(X) for the geometric random variable is 1/p and that V ar(X) = q/p2, where q = 1 - p. (ii) Given that for a certain geometric random variable, P (X = 2) = 0.0475 and P (X = 10) = 0.0315, determine P (2 ≤ X ≤ 10).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd