Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a simple model of a nucleotide in a genome, which at any moment can be in one of two states: ancestral (A) and mutant

Consider a simple model of a nucleotide in a genome, which at any moment can be in one of two states: ancestral (A) and mutant (M). Suppose that the transition probabilities are (per generation): 0.3 (mutation from A to M) and 0.1 (reversion from M to A). Write a script to a make a random decision for a single nucleotide based on the Markov model, where you assign the initial state to be either 0 (A) or 1 (M). The script should first use an if statement to check whether the state is 0 or 1 and then use the transition probabilities given above to make the random decision

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Discrete and Combinatorial Mathematics An Applied Introduction

Authors: Ralph P. Grimaldi

5th edition

201726343, 978-0201726343

More Books

Students also viewed these Mathematics questions

Question

Non formal Education explain?

Answered: 1 week ago

Question

Goals of Education System?

Answered: 1 week ago

Question

What is privatization?

Answered: 1 week ago

Question

What is wastage?

Answered: 1 week ago