Write a function to generate a sequence of random variables

Assignment Help Applied Statistics
Reference no: EM131240058

Q1. Markov chain: Write a function to generate a sequence of random variables {Xi}ni=1 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.

Q2. 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.

Q3. 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).

Q4. Generate sequences of length 10000 from the Markov chain described in Problem 1, by using two different transition probability matrices:

1054_Figure.png

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 representation 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.

Q5. 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 highlighting 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.

Reference no: EM131240058

Questions Cloud

Implication of moore law for managers : State Moore's Law. What is the implication of Moore's Law for managers?
Compare and contrast symmetric and asymmetric encryption : What is a security hole and how do you fix it? Explain how a Trojan horse works. - Compare and contrast symmetric and asymmetric encryption.
Themselves and information friends post about them : Visit two or more social media sites and review information that people post about themselves and information friends post about them. What types of information is available? What challenges do corporations face with regards to social media? Do co..
Compare and contrast des and public key encryption : Describe how asymmetric encryption and decryption work. What is key management? How does DES differ from 3DES? From RC4? From AES?
Write a function to generate a sequence of random variables : STA 141A Fall 2016 Homework. Markov chain: Write a function to generate a sequence of random variables {Xi}ni=1 taking values 0 and 1, following the probability model
Program to produce a sales receipt : Write a program to produce a sales receipt. Use a class level variable to track the sum of the prices.
Develop a work breakdown structure for project : Develop a Work Breakdown Structure (WBS) for this project using one of the formats described in the textbook - top-down outline, bottom-up aggregation or mind mapping. You should have at least 15 work packages at the lowest level
Evaluate the effectiveness of the organizations behavior : Evaluate the effectiveness of the organization's behavior. How do you think the organization's mission and vision impact the organizational culture?
What is pki and why is it important : Explain how authentication works. What is PKI and why is it important? - What is a certificate authority? - How does PGP differ from SSL?

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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