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
A class has a total of 135 absences over 18 weeks. what is the mean number of absences per week?
Butoxors [25]
135 divided by 18 is 7.5 so I would guess 7 each week and maybe possibly 8 on some weeks
5 0
3 years ago
Pablo built a large wooden storage box. The box was in the shape of a rectangular prism, as shown below. He covered all the side
Naily [24]

The cost of wallpaper used to cover all sides of the storage box is given by $3 per square foot

<h3>Cost of wallpaper per square foot</h3>

  • length = 9 ft
  • Width = 8 ft
  • Height = 5 ft

Surface area of a box = 2(lh + wh + lw)

= 2(9×5 + 8×5 + 9×8)

= 2(45 + 40 + 72)

= 2(157)

= 314 square foot

  • Total cost of wallpaper = $942

Cost of wallpaper per square foot = $942 ÷ 314 square foot

= $3 per square foot

Learn more about surface area:

brainly.com/question/2500827

#SPJ1

3 0
2 years ago
Just help, my brain shutdown and its currently 9:51, so help me asap. &lt;3
Sergeu [11.5K]

Answer:

B hope this helps!

Step-by-step explanation:

Trust <3

4 0
3 years ago
Read 2 more answers
Help please!!!!!!!!!!!
andreev551 [17]

Answer:

download a app called photo math

Step-by-step explanation:

Thank me later

3 0
3 years ago
Solve the following absolute value inequality. Express your answer in interval notation:
Masteriza [31]

hope this kinda helps

6 0
3 years ago
Other questions:
  • Martha has 3 cards but she wants more.if she makes 5 cards an hour, how many cards will she have after 6 hours?
    7·2 answers
  • In airline​ applications, failure of a component can result in catastrophe. As a​ result, many airline components utilize someth
    6·1 answer
  • -(-6) + (-1.5) + 2 1/5 Someone please help.
    9·1 answer
  • If 3x^2+2xy+y^2=2 then the value of dy/dx at x=1 is
    6·1 answer
  • In the accompanying diagram, ABCD is a
    6·1 answer
  • 1. Use the graph of the rational function
    8·1 answer
  • Estimate each quotient by rounding the dividend and the divisor to the largest place value
    8·1 answer
  • Can somebody answer this question?
    5·1 answer
  • ? Steve has 7 biscuits in a tin. There are 3 digestive and 4 chocolate biscuits. Steve takes two biscuits at random from the tin
    8·1 answer
  • Who’s right? And why?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!