Write and upload a MATLAB script to do the following.
Compute the sequence S(n+1) = (2 – K) S(n) – S(n-1) ; Assume S(1) = 0, S(2) = 1;
(a) Case 1, Assume K = 1
(b) Case 2, Assume K = 2
(c) Case 3, Assume K = 4
Plot all of these on the same plot, for N = 1 to 20
In: Mechanical Engineering
What data is selected to in excel to calculate MAD for part b?
The graduate assistant for the Santa Clara Broncos football team has compiled the following statistics: Year wins avg offensive yards avg interceptions 1 10 500 2 2 8 450 4 3 5 250 10 4 10 485 1 5 7 399 4 6 11 521 2 7 4 158 15 8 11 525 0 9 8 485 4 10 4 300 9 11 5 350 9 12 7 375 9 13 2 150 15 14 5 380 5 a. Using Excel, develop a linear regression model for wins, employing average offensive yards and average interceptions. b. Calculate the MAD for your model. c. Calculate R, F, and t statistics and interpret them.
In: Statistics and Probability
Carry probabilities to at least four decimal places for intermediate steps. For extremely small probabilities, it is important to have one or two significant non-zero digits, for example, 0.000001 or 0.000034. Round off your final answer to two decimal places.
Benign prostatic hyperplasia is a noncancerous enlargement of the prostate gland that adversely affects the quality of life of millions of men. A study of a minimally invasive procedure for the treatment for this condition looked at pretreatment quality of life (QOL_BASE) and quality of life after three months on treatment (QOL_3MO). The data is shown on the following table:
|
Participant |
QOL_BASE |
QOL__3MO |
|
1 |
2 |
1 |
|
2 |
4 |
1 |
|
3 |
3 |
1 |
|
4 |
4 |
3 |
|
5 |
5 |
2 |
|
6 |
6 |
2 |
|
7 |
4 |
2 |
|
8 |
4 |
5 |
|
9 |
3 |
3 |
|
10 |
3 |
1 |
a)Calculate differences in quality of life scores (delta) for each participant. (1 point)
b)Calculate the means for QOL_BASE, QOL_3MO, and the delta (difference in QOL_BASE and QOL_3MO). (3 points)
c)Calculate the standard deviation of the delta (difference in QOL_BASE and QOL_3MO. (1 point)
d)Test the mean difference for statistical significance. Use a two-sided alternative test and ? = 0.05. Include all hypotheses testing steps for full points. (Hint: Paired sample) (10 points)
e)Calculate a 95% confidence interval, and provide an interpretation. Does your interval further support your decision in the hypothesis test above? (5 points)
In: Statistics and Probability
You are the DBA in the service of the British Royal Museum. You need to update the database of all Britons that have been knighted in the past. You want to build in a validation of the data to find all these people.
Which of the following metacharacter combinations would you use?
| A. |
'Sir .' |
|
| B. |
'Sir +' |
|
| C. |
'Sir ?1' |
|
| D. |
'Sir EG*1' |
ou query the database with this SQL statement:
SELECT *
FROM transaction;
For which purpose was this statement created?
| A. |
to insert data into the TRANSACTION table |
|
| B. |
to view the data in the TRANSACTION table |
|
| C. |
to review the structure of the TRANSACTION table |
|
| D. |
to delete selected data from the TRANSACTION table |
The four phases that indicate the different phases of SQL statement execution are as follows:
1. execute
2. fetch
3. parse
4. bind
Which option represents the correct sequence of events while executing a statement?
| a. |
1, 2, 3, 4 |
|
| b. |
2, 3, 4, 1 |
|
| c. |
3, 4, 1, 2 |
|
| d. |
4, 3, 1, 2 |
Which three statements about constraints are true? (Choose three.)
| A. |
Constraints only enforce rules at the table level. |
|
| B. |
Constraints prevent rows with dependencies from being deleted. |
|
| C. |
You must provide a name for each constraint at the time of its creation. |
|
| D. |
Constraint names are not required to follow the standard object-naming rules. |
|
| E. |
Constraints can be created at the same time as the table or after the table is created. |
In: Computer Science
Please solve this with only transformations (I.E. Translation matrices, Reflection matrices, Rotation matrices. You need to use matrices (linear algebra). Please only do this if you know what I mean when I say "transformations using matrices."
A 2-D polygon has the following vertices in (x, y): A (2, 1), B (1, 2), C (2, 3), D (3, 3), E (4, 2), and F (3, 1). The polygon is taken through a set of 3 transformations in the given order: 1. Reflection about the line x=4 2. Translation by -3 in x direction. 3. Rotation counter clockwise about the point (2.5, 2) by 180 degrees . Determine the final coordinates.
In: Advanced Math
Code in python
Write a while loop code where it always starts form 2. Then it randomly chooses a number from 1-4. If the number 4 is hit then it will write “TP” if the number 1 is hit then it will write”SL”. It will rerun the program every time the numbers 1 and 5 are hit. The code should also output every single number that is randomly chosen. 2 of the same numbers can't be chosen back to back as well, so the program can't choose 2 and then 2 again.
The output should look like this:
Code Started, at number 2
Chosen number is 3
Chosen Number is 2
Chosen Number is 5
TP
Rerunning program
Code Started, at number 2
Chosen Number 1
Sl
Rerunning program
In: Computer Science
a) Find the intervals over which f is increasing or decreasing.
b) Find the local maximum and minimum values of f.
c) Find the concavity intervals and the inflection points.
a. ?(?) = 2x 3 + 3? 2 − 26?
b. ?(?) = 4x 3 + 3? 2 − 6? + 4
c. ?(?) = ? 4 − 2? 2 + 1
In: Math
In first ten minutes of the reaction 2O3(g) --> 3O2(g), the amount of ozone lost is 9.0 × 10–3 M.
What is the rate at which O2 appears during this interval?
|
4.5 × 10–4 M min-1 |
||
|
1.4 × 10–3 M min-1 |
||
|
6.0 × 10–4 M min-1 |
||
|
9.0 × 10–4 M min-1 |
||
|
1.4 × 10–2 M min-1 |
In: Chemistry
The reaction 4 A + C + H ? D has the mechanism below. What is
the rate law? PLEASE EXPLAIN HOW
1) 2 A ? B fast
2) 2 B ? B2 fast
3) B2 + C ? G slow
4) G + H ? D fast
In: Chemistry
1.You have been following a stock for 4 months and the following is its past return
Year 1: 5%
Year 2: 16%
Year 3: -1%
Year 4: -2%
What is the expected return based on historical data?
2.You have been following a stock for 3 months and the following is its past return
Year 1: 7%
Year 2: 14%
Year 3: 7%
What is the standard deviation of the stock based on the historical data?
3.Your investment has a 30% chance of earning a 9% rate of return, a 40% chance of earning a 21% rate of return and a 30% chance of earning -3%. What is the standard deviation on this investment?
4.You calculated that the average return of your portfolio is 7% and the standard deviation is 23%, what is the value at risk (VaR) at 5% for your portfolio?
5.The returns of a mutual fund manager for the past 3 years are the following:
Year 1: 7%
Year 2: 11%
Year 3: -2%
What is the geometric average return of the fund for the past three years?
In: Finance