Reference no: EM131242212
Question 1. Markov chain: Write a function to generate a sequence of random variables {Xi}i=1n taking values 0 and 1, following the probability model
P(Xi+1 = l|Xi = k) = Πkl k,l = 0, 1;
where 0 < Πkl < 1, and Π00 + Π01 = 1 and Π10 + Π11 = 1.
Question 2. Write a function that takes a sequence (vector) of 0 or 1 as input and returns the starting locations of runs of 0's and runs of 1's, where the length of a run is set to an integer K ≥ 1.
Question 3. Write a function that takes a sequence (vector) of 0 or 1 as input and returns the starting location of all subsequences that start and end with prespecified motifs (vectors of 0's and 1's).
Question 4. Generate sequences of length 10000 from the Markov chain described in Problem 1, by using two different transition probability matrices:
(a)
Π00 Π01 |
= |
.0.5 0.5. |
Π10 Π11 |
0.5 0.5 |
(b)
Π00 Π01 |
= |
0.8 0.2 |
Π10 Π11 |
0.1 0.9 |
For each of the cases (a) and (b), compute the following:
(i) Starting location of runs of 0's and 1's of lengths up to 10. What is a good repre- sentation of this data ? Do you see any difference in patterns between runs of 0's and runs of 1's?
(ii) Starting locations of all subsequences of length 200 that start and end with the motifs 0000 and 1111, respectively.
(iii) Perform a descriptive statistical analysis to compare your results in cases (a) and (b). Write a brief report summarizing you findings.
Question 5. Give an informative graphical statistical summary of the following datasets (available with base R). In each case, write very brief (maximum of 80 words) description high- lighting the findings.
(i) AirPassengers : Monthly airline passenger numbers during 1949-1960.
(ii) EuStockMarkets : Daily closing prices of major European stock indices during 1991-1998.
(iii) PlantGrowth : Results from a controlled experiment on plant growth.
(iv) trees : Girth, weight and volume for Black Cherry trees.
(v) airquality : Data on New York air quality measurements.
Attachment:- peter_assignment.rar
Calculate the magnitude of the force
: The force applied to the skier by the tow bar is parallel to the slope. The skier's mass is 68.9 kg, and the coefficient of kinetic friction between the skis and the snow is 0.143. Calculate the magnitude of the force that the tow bar exerts on th..
|
Create a scenario that the union view as a violation
: Create a scenario that the Union/employee(s) view as a violation of the collective agreement. File a grievance using the attached grievance forms. The grievance should indicate the type of grievance you are filing.
|
Horizontal force and displacement
: What is the relationship between work and kinetic energy for a horizontal force and displacement?
|
Communicate your skills to a potential employer
: How will you promote yourself? A carefully constructed cover letter, résumé, business card, and personal Web site can all help communicate your skills to a potential employer.
|
Perform a descriptive statistical analysis
: Write a function that takes a sequence (vector) of 0 or 1 as input and returns the starting locations of runs of 0's and runs of 1's, where the length of a run is set to an integer K ≥ 1.
|
Create a strategy for ensuring that the geico plan addresses
: Evaluate the effectiveness of the communication of Geico's total rewards program based upon the Website's descriptions of the benefits. Recommend two (2) areas for improvement.
|
Compute the down payment and amount financed
: Compute the down payment, amount financed, and the monthly mortgage payment. - Down Payment: $57,000Amount Financed: $228,000.
|
Identify opportunities and threats based on possible market
: Also identify opportunities and threats based on possible market targets, including social factors, demographic factors, and multicultural issues.
|
Why is it important for an organization to have a mission
: Why is it important for an organization to have a mission? Why is it important for team members to know their roles on a team? Is competition within a team a good or bad thing? Explain your response.
|