Predicting Population Growth in 1900 with Stewart 275/05

In summary, the conversation discusses using exponential fitting on pairs of points to determine population growth over time. The code provided uses polyfit and plot functions to graph the data and find the population at a specific year.
  • #1
xpack
37
0
muhaag.jpg


I have this
Code:
delete s275x05.txt; diary s275x05.txt
clear; clc; close all; echo on
%
% Stewart 275/05
%
year=[0:1]; % n+1 = year + 50
pop=[728 906];
p=polyfit(year,log(pop),2)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold on
%part a
%popluation at year 1900
x1900=3
%
echo off; diary off

What I am stuck at is how do I say I want the y value when x = 3?
 
Physics news on Phys.org
  • #2
i just got finished with that problem, and mine is a little bit different than yours. for instance, on the polyfit lines, you don't need to make them quadratic, i just made mine linear. also, i didn't do parts a b and c because on the website (http://calclab.math.tamu.edu/~dmanuel/calclab/m151/Fall/2009c_matlab8.html) all it says is to use exponential fitting on the pairs of points. so it's a lot simpler than you're making it out to be. all in all, i got this:

'delete s275x05.txt; diary s275x05.txt
clear; clc; close all; echo on

year=[0:1];
pop=[728 906];
p=polyfit(year,log(pop),1)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold off

year=[2:3];
pop=[1171 1608]
p=polyfit(year,log(pop),1)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold off

year=[3:4];
pop=[1608 2517];
p=polyfit(year,log(pop),1)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold off

year=[0:4];
pop=[728 906 1171 1608 2517];
p=polyfit(year,log(pop),1)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold off

echo off; diary off'
 
  • #3


I would approach this problem by analyzing the data and using mathematical techniques to make a prediction. The Stewart 275/05 data shows the population values for two years, 0 and 1, and using the polyfit function, I have calculated a polynomial fit for these data points. This allows me to make a prediction for the population values at any given year between 0 and 1.

To determine the population at a specific year, such as 1900, I would first need to convert the year into a value that can be used in the polynomial equation. In this case, the year 1900 would correspond to x=3, as indicated in the code. I would then use the polyval function to calculate the predicted population value for that year.

In conclusion, using the Stewart 275/05 data and the polynomial equation, I can predict the population growth at any given year, including 1900. The predicted population value for 1900 can be found by substituting x=3 into the polynomial equation and using the polyval function.
 

What is the significance of predicting population growth in 1900?

Predicting population growth in 1900 allows us to understand how the world's population has changed over time and helps us plan for future population trends.

Who is Stewart 275/05 and why is their prediction important?

Stewart 275/05 is a mathematical model used to predict population growth. Their prediction is important because it takes into account various factors such as birth and death rates, immigration, and emigration to provide a more accurate estimate of population growth.

How accurate is the prediction made by Stewart 275/05?

The accuracy of the prediction made by Stewart 275/05 depends on the accuracy of the data used as input. However, it has been shown to have a relatively high accuracy compared to other population growth models.

What are some limitations of using Stewart 275/05 to predict population growth?

Stewart 275/05 relies on historical data and may not account for unforeseen events or changes in trends. It also does not take into consideration cultural, economic, or political factors that may affect population growth.

How can the prediction of population growth in 1900 be used in the present day?

The prediction of population growth in 1900 can be used to compare and analyze current population trends, as well as inform decision-making for future population management and resource allocation.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
14
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
Back
Top