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
X2 + 5x - 50 = 0<br><img src="https://tex.z-dn.net/?f=%20%7Bx%7D%5E%7B2%7D%20%20%2B%205x%20-%2050%20%3D%200" id="TexFormula1" ti
love history [14]

Answer:

x = -10

x = 5

Step-by-step explanation:

{x}^{2}  + 5x - 50 = 0 \\ (x + 10)(x - 5) = 0 \\  \\ x =  - 10 \\ x = 5

8 0
2 years ago
Ron works 5 hours for a total of $300. He deposits all of his money in his account. He is trying to save a $500 for a new LED TV
9966 [12]
Ron must work 9 hours. If he makes 300 every 5 hours, that means he makes 60 every hour. 60x9 = 540
3 0
3 years ago
I need a little extra help with number three
diamong [38]

Answer:

The answer to your question is:

Step-by-step explanation:

Data

f(x) = -2x² + 8x - 2

Process

                -2x² + 8x = y + 2

                -2(x² - 4x + 4) = y + 2 - 8

                -2(x - 2)² = y - 6

                    (x - 2)² = 1/2 (y - 6)

Vertex = (2, 6)

Axis of symmetry =   x = 2

y-intercept

                 f(0) = -2(0)² + 8(0) - 2

                 f(0) = 0 + 0 - 2

                 f(0) = -2

Domain    (-∞, ∞)

Range    (-∞, 6]

See the graph below

6 0
2 years ago
Carlos had 7¾ cups of cheese. After making 5 pizzas, he now only has 2 cups of cheese. How much cheese did Carlos use?
Musya8 [376]

Answer:

5 3/4 cups of cheese used for the pizza

Step-by-step explanation:

7 3/4 = 31/4 cups cheese to start

Two cups of cheese remaining.  2 = 8/4 cups

31/4 cups - 8/4 cups = 23/4 cups used for the pizza.

23/4 = 5 3/4 cups of cheese used for the pizza

4 0
2 years ago
Mr. O'Connor had $90 to spend at a football game. He spent 31/45 on his ticket. Then, he spent 3/7 of his remaining money at the
Kobotan [32]

He has $90 in total to spend

He spent (31/45) of this money on ticket

so money spent on ticket =(31/45) *90 =2790/45 =62

Now money left with him is 90-62 =28 $

Now it says that he spent (3/7) of this remaining money at concession stand

so money spent on concession stand =(3/7)*28 =84/7 =12

Now money left with him = 28-12 =16

So money left with him is $16 but hat costs for $18

So Mr. O'Connor didnt have enough moeny to buy the hat

4 0
3 years ago
Other questions:
  • So I don't understand this problem...<br><br> Solve for g.<br><br> 25g &lt; 200
    15·1 answer
  • How many numbers are divisible by 100 between 1 and 6296?
    11·1 answer
  • In the figure, lines a, b, and c are parallel and m∠4=156° . Drag and drop the correct angle measure for each angle.
    12·2 answers
  • 5g&gt;25 solve the inequality
    7·2 answers
  • Is the expression X^3 equivalent to X^3•3•3
    7·1 answer
  • Find the degree measure of alpha to the nearest tenth of a degree.
    9·2 answers
  • Select the graph of the function f (x) = 1/4 Then find the value of f (x) when x = -6.
    13·2 answers
  • A recipe needs 5/4 of a cup of sugar. you are going to triple the recipe . how much sugar do you need.
    15·2 answers
  • PLEASE HURRY! i’ll give brainliest
    5·1 answer
  • 2x + 75 = 8x + 9<br><br><br><br> Please help for a quiz
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!