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
Wasting my points, say slime
leva [86]

Answer:

slime

Step-by-step explanation:

8 0
3 years ago
91 more than a square of a number
ipn [44]
N^2 +91 is the answer
6 0
4 years ago
There are 24 hours in one day.
inn [45]

YA BOI NEEDS THEM POINTS I HOPE YOU UNDERSTAND BRAINLIEST WOULD BE APPRECIATED!?{!?!?!?!?!

7 0
3 years ago
What numbers would you subtract from each side of the equation x + 12 = 17 + 3 to get the variable by itself ?
kenny6666 [7]
The number you would subtract on both sides would be 12... but this in  and of itself is not the first step. the way you would solve this is by:
combine like terms. x + 12=20
then, subtract 12 from both sides to get variable alone.
you will end up with a final answer of x=8
7 0
3 years ago
Read 2 more answers
The function f(x)=(25)x is shown on the coordinate plane.
andre [41]
It is a straight line


3 0
4 years ago
Read 2 more answers
Other questions:
  • What is the slope of the equation y=5/4x-7/4?<br><br> A. -7<br> B. -7/4<br> C. 5/4<br> D. 5
    10·1 answer
  • Select the difference of (8x2 - 3x3) - (4x2 - 7x3). 
    14·1 answer
  • Neil started a stamp collection with 12 stamps. Every week, he adds 4 more stamps to the collection. Which function f represents
    12·2 answers
  • Which is bigger 800 cm or 8 mm
    13·2 answers
  • In 6 days, a group of workers can plant 42 acres. What is their rate in acres per day?​
    14·2 answers
  • Find all geometric sequences such that the sum of the first two terms is 24 and the sum of the first three terms is 26.
    11·1 answer
  • 7. Expand and reduce A(x). Then calculate A(x) for x=1.<br> A (x) = (3x – 3)(3x + 2)
    15·1 answer
  • I need help on this math question please
    10·1 answer
  • Need help on a Algebra 2 Assignment
    5·1 answer
  • Layna can paint a 350-square foot room in 4 hours. It takes Bebe 7 hours to paint the same room. Which equation can be used to f
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!