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
Is 13812 divisible by 3
In-s [12.5K]
Yes it would be 4604
hope this is helpful to you! :D
8 0
4 years ago
Read 2 more answers
I need help, <br> Please
Anna71 [15]

Answer:

answer a

Step-by-step explanation:

3 0
3 years ago
Mike buys four equally priceDVD's online each DVD cost the same amount with a 5.98 shipping charge included the total cost came
Alchen [17]

Answer:

$79.94=4x+$5.98 or you could write it the other way 4x+$5.98=$79.94 either way you get same answer

Step-by-step explanation:

4 0
3 years ago
What's the answer to this question?
Usimov [2.4K]
What book is that from
6 0
4 years ago
WORTH 20 POINTS PLEASE HELP
Dmitriy789 [7]
The answer is d its decreasing
8 0
3 years ago
Other questions:
  • Please explain also! I am not here just to get answers, I am here to understand. Thank you!
    13·1 answer
  • How many ones equal 9 tens?
    13·1 answer
  • The following information is known about a loan.
    6·2 answers
  • Ten times the square of a nonzero number is equal to forty times the number. what is the number?
    15·1 answer
  • If the ratio of a circle's sector to its total area is 5/6, what is the measure of its sector's arc?
    11·1 answer
  • i know this will be reported but please look up a video on yt called me singing juice wrld and please sub to the channel that up
    7·2 answers
  • Percents as fractions 68%
    8·2 answers
  • PLZ HELP IDK HOW TO DO THIS
    6·1 answer
  • WILL MARK BRAINLIEST!!! GIVING 15 POINTS!
    9·1 answer
  • Write the value of <br><img src="https://tex.z-dn.net/?f=1%20-%202%20%5Ccos%20%20%7B%7D%5E%7B2%7D%20c" id="TexFormula1" title="1
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!