1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mnenie [13.5K]
3 years ago
10

Let's use the results of the 2012 presidential election as our x0. Looking up the popular vote totals, we find that our initial

distribution vector should be (0.5106, 0.4720, 0.0075, 0.0099)T. Enter the matrix P and this vector x0 in MATLAB:

Mathematics
2 answers:
mylen [45]3 years ago
8 0

Answer:

The voter-base after 3 elections is:

0.392565, 0.400734, 0.109855, 0.096846

The voter-base after 6 elections is:

0.36168, 0.36294, 0.14176, 0.13362

The voter-base after 10 elections is:

0.35405, 0.34074, 0.15342, 0.15178

Step-by-step explanation:

This question is incomplete. I will proceed to give the complete question. Then I will add a screenshot of my code solution to this question. After which I will give the expected outputs.

Let's use the results of the 2012 presidential election as our x0. Looking up the popular vote totals, we find that our initial distribution vector should be (0.5106, 0.4720, 0.0075, 0.0099)T. Enter the matrix P and this vector x0 in MATLAB:

P = [ 0.8100 0.0800 0.1600 0.1000;

0.0900 0.8400 0.0500 0.0800;

0.0600 0.0400 0.7400 0.0400;

0.0400 0.0400 0.0500 0.7800];

x0 = [0.5106; 0.4720; 0.0075; 0.0099];

According to our model, what should the party distribution vector be after three, six and ten elections?

Please find the code solution in the images attached to this question.

The voter-base after 3 elections is therefore:

0.392565, 0.400734, 0.109855, 0.096846

The voter-base after 6 elections is therefore:

0.36168, 0.36294, 0.14176, 0.13362

The voter-base after 10 elections is therefore:

0.35405, 0.34074, 0.15342, 0.15178

Aleonysh [2.5K]3 years ago
4 0

Answer:

The code is as given below to be copied in a new matlab script m file. The screenshots are attached.

Step-by-step explanation:

As the question is not complete, the complete question is attached herewith.

The code for the problem is as follows:

%Defining the given matrices:

%P is the matrix showing the percentage of changes in voterbase

P = [ 0.8100 0.0800 0.1600 0.1000;

0.0900 0.8400 0.0500 0.0800;

0.0600 0.0400 0.7400 0.0400;

0.0400 0.0400 0.0500 0.7800];

%x0 is the vector representing the current voterbase

x0 = [0.5106; 0.4720; 0.0075; 0.0099];

%In MATLAB, the power(exponent) operator is defined by ^

%After 3 elections..

x3 = P^3 * x0;

disp("The voterbase after 3 elections is:");

disp(x3);

%After 6 elections..

x3 = P^6 * x0;

disp("The voterbase after 6 elections is:");

disp(x3);

%After 10 elections..

x10 = P^10 * x0;

disp("The voterbase after 10 elections is:");

disp(x10);

%After 30 elections..

x30 = P^30 * x0;

disp("The voterbase after 30 elections is:");

disp(x30);

%After 60 elections..

x60 = P^60 * x0;

disp("The voterbase after 60 elections is:");

disp(x60);

%After 100 elections..

x100 = P^100 * x0;

disp("The voterbase after 100 elections is:");

disp(x100);

The output is as well as the code in the matlab is as attached.

You might be interested in
Anyone know the answer to any of these.
skad [1K]
A is c=75 B is a=120 C is b= square root of 75 and D= square root of 245
7 0
3 years ago
Heyy! i’ll give brainliest please help.
san4es73 [151]

Answer:

The answer is B.

Step-by-step explanation:

Its B because the lower the altitude the higher the pressure, and in this case the air towards the ground is being moved up, which is letting cold air sink back down.

8 0
3 years ago
To visit his grandmother, Michael takes a motorcycle 3.853 kilometers and a horse 3.32 kilometers. In total, the journey takes 5
Marysya12 [62]

3.853 + 3.32 = 7.173 km

8 0
3 years ago
What is 39/100 in simplest form?
svp [43]
39/100 is the simplest form
7 0
3 years ago
Read 2 more answers
Two groups collected litter along the side of the road it takes each group 5 minuites to clean up a 200 yard section how long do
meriva
This is dividing 
So 1 mile has 1760 yards so in total 
2 miles = 3520 yards and it takes 5 minutes to clean up 200 yards (We divide)
3520 ÷ 200 = 17.6 ( Now we multiply)
17.6 x 5 = 88 minutes or ( 1 hour and 22 minutes)
8 0
3 years ago
Other questions:
  • The 2s in 6,228 was
    12·1 answer
  • What is the slope of o line that passes through (-4,-14) and (19,11)?
    14·1 answer
  • What is 4/5 equal to?
    10·1 answer
  • The diameter of a circle with endpoints A(-1,5) and B(4,-3) Use the midpoint formula to find the coordinates of the center of ci
    5·1 answer
  • 11/6 = n + 7/9 so what is n?
    15·2 answers
  • What is the equation in point-slope form of the line passing through (1, 9) and (1, 11)? (5 points)​
    11·2 answers
  • Line L passes through points S and R. Determine the slope of line L.
    7·2 answers
  • Karen rode her bike at a constant speed of 10 miles per hour. Her distance d is proportional to the number of hours she rode, t.
    10·1 answer
  • Help, please I will give you 10 points
    13·2 answers
  • In some 4.0 grading systems, a student's grade point average (GPA) is calculated by assigning letter grades the following numeri
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!