Donate Bitcoin

Donate Paypal


PeakOil is You

PeakOil is You

THE Walmart Thread pt 2 (merged)

What's on your mind?
General interest discussions, not necessarily related to depletion.

Unread postby dmtu » Fri 22 Oct 2004, 20:49:52

Pup,
If you are willing, I'm betting Aaron or Admin would put your .xls in the downloads section. I'd like to see it just to try and understand the data set and math. I've done some simple stuff in relation to mine production benchmarking so I might even learn something I can use! :)
You observed it from the start
Now you’re a million miles apart
As we bleed another nation
So you can watch you favorite station
Now you eyes pop out your sockets
Dirty hands and empty pockets
Who? You!
c.o.c.
dmtu
Tar Sands
Tar Sands
 
Posts: 538
Joined: Sun 04 Apr 2004, 04:00:00
Location: Western US

Unread postby pup55 » Fri 22 Oct 2004, 23:53:30

EE:

http://www.roperld.com/minerals/depletth.exe

See if this is not a zip file with the equations on it

The formula for the symmetrical model is:

Q(sub-t)=1/2 Q(inf) *(1-tanh(t-t (sub 1/2)/2*tau))

where Q (sub-t) is the remaining quantity for a given year
Q-inf is the ultimate recoverable quantity
t is the year
t (sub 1/2) is the guesstimate of the peak year
and tau=1/k where k is the "fudge factor" for the curve fatness.

The asymmetrical model is slightly different. Both rely on hyperbolic tangent to give it the distinctive shape.


I calculate Q(sub-t) for a given year and subtract the previous year to arrive at the "production value" for each year.

dmtu:
Put an email address in my personal message box and I will send it to you.
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Unread postby ohanian » Sat 23 Oct 2004, 23:06:31

$this->bbcode_second_pass_quote('pup55', 'E')E:

http://www.roperld.com/minerals/depletth.exe

See if this is not a zip file with the equations on it

The formula for the symmetrical model is:

Q(sub-t)=1/2 Q(inf) *(1-tanh(t-t (sub 1/2)/2*tau))

where Q (sub-t) is the remaining quantity for a given year
Q-inf is the ultimate recoverable quantity
t is the year
t (sub 1/2) is the guesstimate of the peak year
and tau=1/k where k is the "fudge factor" for the curve fatness.

The asymmetrical model is slightly different. Both rely on hyperbolic tangent to give it the distinctive shape.


I calculate Q(sub-t) for a given year and subtract the previous year to arrive at the "production value" for each year.

dmtu:
Put an email address in my personal message box and I will send it to you.


There is a free chart plotting program call gnuplot. This program has a functionality which automatically fits a equation curve to the data points. I shall try to put your depletion formula to the equation fitter. I shall report back on the success of my attempt.

If successful, then all anyone have to do is to give it a textfile of the form below and it will automagically fit the equation to the datapoint.

# year amount
1980 234
1981 242
1982 256
User avatar
ohanian
Heavy Crude
Heavy Crude
 
Posts: 1553
Joined: Sun 17 Oct 2004, 03:00:00

Unread postby ohanian » Sat 23 Oct 2004, 23:16:25

$this->bbcode_second_pass_quote('pup55', 'E')E:

http://www.roperld.com/minerals/depletth.exe

See if this is not a zip file with the equations on it

The formula for the symmetrical model is:

Q(sub-t)=1/2 Q(inf) *(1-tanh(t-t (sub 1/2)/2*tau))

where Q (sub-t) is the remaining quantity for a given year
Q-inf is the ultimate recoverable quantity
t is the year
t (sub 1/2) is the guesstimate of the peak year
and tau=1/k where k is the "fudge factor" for the curve fatness.

The asymmetrical model is slightly different. Both rely on hyperbolic tangent to give it the distinctive shape.


I calculate Q(sub-t) for a given year and subtract the previous year to arrive at the "production value" for each year.

dmtu:
Put an email address in my personal message box and I will send it to you.


Pup55,

Can you confirm that this formula is correct?

Q(t) = 0.5 * F * ( 1 - tanh((t-Z) - (H-Z) / (2*k) )
where
Z:= shift for year zero(ie let year 1870 be Z)
F:= Q_inf
H:= t_sub(1/2)
k:= 1 / tau

Also should I set Z to 0 (ie. basically get rid of Z)
Thank you.
User avatar
ohanian
Heavy Crude
Heavy Crude
 
Posts: 1553
Joined: Sun 17 Oct 2004, 03:00:00

So much for automagically producing a good fit

Unread postby ohanian » Sat 23 Oct 2004, 23:47:54

gnuplot> plot 'walmart2.txt'
gnuplot> F=3000
gnuplot> H=1995
gnuplot> k=1
gnuplot> Z=1970
gnuplot> q(x)=0.5*F*(1.0 - tanh((x-Z) - (H-Z)/(2.0*k)))
gnuplot> FIT_LIMIT=1e-3
gnuplot> show variables


Variables:
pi = 3.14159265358979
F = 3000
H = 1995
k = 1
Z = 1970
FIT_LIMIT = 0.001

gnuplot> fit q(x) 'walmart2.txt' via F,Z,H,k

<<Lots of numbers and Iterations scroll past on the screen>>
Iteration 6
WSSR : 301389 delta(WSSR)/WSSR : -0.000530409
delta(WSSR) : -159.859 limit for stopping : 0.001
lambda : 0.0018104

resultant parameter values

F = 0.121088
Z = 1968.28
H = 2015.93
k = 2.47001

After 6 iterations the fit converged.
final sum of squares of residuals : 301389
rel. change during last iteration : -0.000530409

degrees of freedom (ndf) : 31
rms of residuals (stdfit) = sqrt(WSSR/ndf) : 98.6014
variance of residuals (reduced chisquare) = WSSR/ndf : 9722.23

Final set of parameters Asymptotic Standard Error
======================= ==========================

F = 0.121088 +/- 38.28 (3.161e+004%)
Z = 1968.28 +/- 7493 (380.7%)
H = 2015.93 +/- 9.87e+004 (4896%)
k = 2.47001 +/- 4057 (1.642e+005%)


correlation matrix of the fit parameters:

F Z H k
F 1.000
Z -0.177 1.000
H 0.252 -0.901 1.000
k 0.290 -0.835 0.988 1.000

<<trying again with F=>>
gnuplot> F=4000000

gnuplot> fit q(x) 'walmart2.txt' via F,Z,H,k

Iteration 6
WSSR : 5.33927e+013 delta(WSSR)/WSSR : -1.536e-006
delta(WSSR) : -8.20115e+007 limit for stopping : 0.001
lambda : 0.783324

resultant parameter values

F = 3.8465e+006
Z = 1967.65
H = 122850
k = 10153.1

After 6 iterations the fit converged.
final sum of squares of residuals : 5.33927e+013
rel. change during last iteration : -1.536e-006

degrees of freedom (ndf) : 31
rms of residuals (stdfit) = sqrt(WSSR/ndf) : 1.31238e+006
variance of residuals (reduced chisquare) = WSSR/ndf : 1.72235e+012

Final set of parameters Asymptotic Standard Error
======================= ==========================

F = 3.8465e+006 +/- 8.457e+005 (21.99%)
Z = 1967.65 +/- 1.318 (0.06698%)
H = 122850 +/- 2.941e+006 (2394%)
k = 10153.1 +/- 2.466e+005 (2429%)


correlation matrix of the fit parameters:

F Z H k
F 1.000
Z -0.095 1.000
H 0.355 -0.641 1.000
k 0.358 -0.637 1.000 1.000
User avatar
ohanian
Heavy Crude
Heavy Crude
 
Posts: 1553
Joined: Sun 17 Oct 2004, 03:00:00

Unread postby ohanian » Sun 24 Oct 2004, 00:38:08

$this->bbcode_second_pass_quote('pup55', 'E')E:

http://www.roperld.com/minerals/depletth.exe

See if this is not a zip file with the equations on it

The formula for the symmetrical model is:

Q(sub-t)=1/2 Q(inf) *(1-tanh(t-t (sub 1/2)/2*tau))

where Q (sub-t) is the remaining quantity for a given year
Q-inf is the ultimate recoverable quantity
t is the year
t (sub 1/2) is the guesstimate of the peak year
and tau=1/k where k is the "fudge factor" for the curve fatness.

The asymmetrical model is slightly different. Both rely on hyperbolic tangent to give it the distinctive shape.


I calculate Q(sub-t) for a given year and subtract the previous year to arrive at the "production value" for each year.

dmtu:
Put an email address in my personal message box and I will send it to you.


PUP55,

No matter how hard I tried, I cannot get the formula you gave to fit the walmart data. So I stood back and examine the formula you gave.

Q(sub-t)=1/2 Q(inf) *(1-tanh(t-t (sub 1/2)/2*tau))

My first idea was to plot a graph of f(x)=tanh x

The graph goes from zero to one as x approaches infinity. NOW I know why I cannot get the graph to fit. Peak oil graph goes from zero to peak and back to zero. tanh(x) graph goes from zero to one and stays at one forever. Thus tanh(x) is not a good function for graphing peak oil.

What you need is a function look something like this

extraction rate = tanh((x-1870)/k) for x < 2005
= tanh(((2*2005 - x)-1870)/k) for x >= 2005

where 2005 = estimated peak
1870 = year zero

Any comments?
User avatar
ohanian
Heavy Crude
Heavy Crude
 
Posts: 1553
Joined: Sun 17 Oct 2004, 03:00:00

Unread postby pup55 » Sun 24 Oct 2004, 09:40:47

go to:

http://www.roperld.com

in the bottom frame, click on "david l roper"
Scroll downward in the bottom frame, to "interdisciplinary studies" and click on "crude oil depletion"
when the next page loads, click on "depletion theory"

Equation 2 is what I have been using for the model. You and EE will be able to see a picture of this thing. We are back to this problem of not being able to see equations in "equation form". My guess is that one of the brackets/parenthesis is misplaced.

You are quite right, post-peak, the model has to be the mirror image of
the pre-peak. But, I think it works using t-sub-1/2 (the estimate of the peak" as the midpoint and calculating forward and backward from there.

Send me your email (in the private message box) and I will send you this spreadsheet, maybe you can dedude from that what is happening.
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Unread postby ohanian » Sun 24 Oct 2004, 23:59:52

$this->bbcode_second_pass_quote('pup55', 'g')o to:

http://www.roperld.com

in the bottom frame, click on "david l roper"
Scroll downward in the bottom frame, to "interdisciplinary studies" and click on "crude oil depletion"
when the next page loads, click on "depletion theory"

Equation 2 is what I have been using for the model. You and EE will be able to see a picture of this thing. We are back to this problem of not being able to see equations in "equation form". My guess is that one of the brackets/parenthesis is misplaced.

You are quite right, post-peak, the model has to be the mirror image of
the pre-peak. But, I think it works using t-sub-1/2 (the estimate of the peak" as the midpoint and calculating forward and backward from there.

Send me your email (in the private message box) and I will send you this spreadsheet, maybe you can dedude from that what is happening.


The equations by david roper for those who are interested are located here.

http://arts.bev.net/roperldavid/minerals/DepletTh.htm
User avatar
ohanian
Heavy Crude
Heavy Crude
 
Posts: 1553
Joined: Sun 17 Oct 2004, 03:00:00

Unread postby Soft_Landing » Mon 25 Oct 2004, 09:31:33

$this->bbcode_second_pass_quote('', 'T')he three "knobs" if you will, are Q-inf, which is the total area under the curve (how big the curve is), k, which is the "fatness" of the curve, and some guesstimate of T-50 or the "peak".


Ok. I've just put these equations into my spreadsheet, and I'm a little bamboozled by the fact I have to give it a T-50. Why am I giving it a T-50? I want the model to give me a peak.

In the past, I've mucked about with Gaussian's - they have the advantage that all you need to give are Qinf, Qnow, and Pnow, and the rest of the curve is defined for you. Of course, we have a pretty good idea about Pnow (80 odd mb/d) and Qnow (930 Bb used so far), so all you have to guess is Qinf. Of course, this isn't perfect either, but can somebody tell me, why would I want to use a model where I need to input T-50 to generate an estimation of peak? Doesn't seem to be too good an idea.

In response to my question as to why the model should produce such consistent prediction of peak, it seems like the predicted peak date is very much dependent upon your estimate of T-50. It seems that Roper's model will be useless for any phenomenon that does not yield a strong independent estimate of Qinf. In light of this, it would seem that, although we would expect Walmart's turnover to peak in response to peak oil, the Roper method will not be suitable to model Walmart production in the absence of a reliable method of estimation of Qinf, which we do not have.

I will submit a spreadsheet that includes the Generalized Verlurst Equation to the downloads section soon (unless someone beats me to it; I can't see anything uploaded as yet)...
User avatar
Soft_Landing
Lignite
Lignite
 
Posts: 367
Joined: Fri 28 May 2004, 03:00:00
Top

L.David Roper

Unread postby EnviroEngr » Mon 25 Oct 2004, 11:52:12

-------------------------------------------
| Whose reality is this anyway!? |
-------------------------------------------
(---------< Temet Nosce >---------)
__________________________
User avatar
EnviroEngr
Heavy Crude
Heavy Crude
 
Posts: 1790
Joined: Mon 24 May 2004, 03:00:00
Location: Richland Center, Wisconsin

Unread postby pup55 » Mon 25 Oct 2004, 14:09:51

Thanks, EE for your help with the links to Roper's paper.

SL: I think the main function of the T-50 estimate is just to orient the curve along the X-axis. If you knew the function, and had enough data points to fit the first part of the curve accurately, this would probably be unnecessary or calculate-able. The area under both the predicted and actual curves (in essence, cumulative production) probably ought to be equal. This should be calculateable by integrating the "predictive function" from t=0 to t=your last data point, and setting it equal to "cumulative actual production" for the same interval. Then, you should be able to back-work it to get T-50.

Still gotta have a pretty good estimate of Q-inf, plus have to re-calculate for every new data set.

Also the Lahererre paper cited the other day:

http://dieoff.org/page191.htm

compares the logistic curve to the gaussian, and notes that the gaussian gave a higher, delayed peak, at least in the example he showed. Still, it would probably be interesting to build another spreadsheet using this function and compare the peak calculations to the other two models just out of curiosity.

Alternately, if there is a better model, I will run it. I am an equal opportunity modeler.
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Unread postby Soft_Landing » Tue 26 Oct 2004, 03:53:36

i don't know if this'll work, but here's a link to a spreadsheet.

see if you can download it.

Verhulst.xls

Good Luck
User avatar
Soft_Landing
Lignite
Lignite
 
Posts: 367
Joined: Fri 28 May 2004, 03:00:00

Unread postby pup55 » Tue 26 Oct 2004, 10:46:11

ah.... our models are synchronized!

Only problem is I am using an archaeic version of excel which does not have tools:solution. I have to settle for goal seek, which does not allow me to select multiple cells to run.

Good work!
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Unread postby Soft_Landing » Tue 26 Oct 2004, 12:00:12

First of all, thanks pup55 for getting me off my proverbial and figuring out how Roper's model actually works. The formulas were first posted quite a while ago, but I figured I could avoid them if I just looked the other way.

$this->bbcode_second_pass_quote('', 'S')L: I think the main function of the T-50 estimate is just to orient the curve along the X-axis. If you knew the function, and had enough data points to fit the first part of the curve accurately, this would probably be unnecessary or calculate-able. The area under both the predicted and actual curves (in essence, cumulative production) probably ought to be equal. This should be calculateable by integrating the "predictive function" from t=0 to t=your last data point, and setting it equal to "cumulative actual production" for the same interval. Then, you should be able to back-work it to get T-50.


As far as I can tell, you were modelling earlier with the standard logistic curve. Using the General Verhulst equation, you get an extra variable, n. When n=1, T-50 will equal peak date. As Roper explains...

$this->bbcode_second_pass_quote('', 'T')he generalized Verhulst curve is skewed toward short times for 0>n>1, is symmetrical for n=1 and is skewed toward large times for n>1.


This is good because we'd like to allow for the possibilty that oil production isn't symmetrical, as many have suspected (Side note: the PFC report suggested that the average depletion point was when extracted oil hit 54% of discovered reserves (note: this is different to 54% of ultimate)). The downside is that when modelling for pre-peak data, the best fit model will automatically skew toward large times (example on spreadsheet above). It's possible to leave n=1 and exclude n from the solver, or alternately, to set solver to constrain peak to within 2% of T-50, for example. All this seems unpleasantly arbitrary, and I wonder if anyone has any suggestions for things worth trying??

Roper appears to experience the same phenomena for his world oil forecast:

$this->bbcode_second_pass_quote('', 'F')it of Verhulst Function to World crude oil production and projection to 2100. The peak will probably be at a later year and the tail will probably be shorter than this projection shows.


http://arts.bev.net/RoperLDavid/minerals/crudeoil.htm
User avatar
Soft_Landing
Lignite
Lignite
 
Posts: 367
Joined: Fri 28 May 2004, 03:00:00
Top

Unread postby pup55 » Tue 26 Oct 2004, 15:30:36

Actually I built both models at the same time, but only posted the "highlights" in:

http://peakoil.com/fortopic2082.html

because I did not observe too much difference in peak date, plus can't do graphics because too cheap to pay for my own website.

Be that as it may, it looked to me like the trick on the Verhulst model is the estimate of the time gap between "peak" and T-50, which greatly affects the downslope of the curve.

I think he observed this phenomenon in certain examples of mineral depletion wherein people either got smart and were more efficient at mining the remainder, or looked for substitutes, or there was "demand destruction" on the downside of the depletion curve.

I suppose if you made observations of enough individual countries' depletion curves (after they had peaked), and took some kind of aggregate "k" and "n" for typical oil depletion examples, you could apply it with some objectivity to the global data and estimate the global peak. This would not necessarily give you better reliability, but at least you would have some defense from the skeptics.
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Is there any consensus?

Unread postby seahorse » Thu 28 Oct 2004, 20:29:24

So, what's the final verdict? Can a model accurately predict a peak for an entity like wal-mart? If not, then how could it ever be possible to predict a peak for something like oil with all its unknowns?

Understand my questions come from a layperson that barely got through 6th grade math. However, the fact that models are so difficult to plug numbers into, and the fact that there is some much interpretation in the values inserted, seems only to buttress what Michael Lynch says, which is, all these predictions of peak oil are meaningless.

Interested to know what you all think.
User avatar
seahorse
Expert
Expert
 
Posts: 2275
Joined: Fri 15 Oct 2004, 03:00:00
Location: Arkansas

Unread postby Soft_Landing » Thu 28 Oct 2004, 23:27:06

$this->bbcode_second_pass_quote('', 'U')nderstand my questions come from a layperson that barely got through 6th grade math. However, the fact that models are so difficult to plug numbers into, and the fact that there is some much interpretation in the values inserted, seems only to buttress what Michael Lynch says, which is, all these predictions of peak oil are meaningless.


I don't go in much for the gun control debate, but I'm reminded of the passionate refrain: Guns don't kill people, people do. Well, it's kind of the same thing with models and modeling - mostly models don't fail, people just use them incorrectly...

For me, this forum is about getting down and dirty and seeing what the models can and cant do, first hand... To see what is application and what is misapplication. With regard to your question, then, I suggest you keep an eye out, cause that's exactly the question I'm working toward too, just not quite there yet.

You may have noticed the blind challenge on the Egypt thread. Well, I'm just seen Pup's models, so I'm going to go plot up the results now. I can tell you they'll be worth looking at - I think both "contestants" will be surprised just how far off their models are. The question is, why so, and what can be done? Results will be up shortly.
User avatar
Soft_Landing
Lignite
Lignite
 
Posts: 367
Joined: Fri 28 May 2004, 03:00:00
Top

Light Sweet Crude Depletion Model

Unread postby seahorse » Fri 29 Oct 2004, 09:56:48

We may all be approaching a "peak" model from the wrong angle. Everyone is trying to make a model for a "peak" of all oil (light, heavy, tar sands). However, the world is literally driven by light sweet crude, so what happens if when the world peaks in light sweet crude? As we all know, light sweet crude is the oil of choice, as it drives most of our transportation. It is in fact the price of light sweet crude that has gas prices running high and has everyone revisiting the peak oil issue. The Saudis, for example, have lots of heavy sour crude that they recently couldn't sale even at a discount, b/c everyone wants light sweet.

So, what are the repercussions of a peak in light sweet crude? There are millions of cars in the world that need it, most refineries are set up to refine it and not heavy crude. What is the cost of trying to convert everything (cars/refineries) to run on diesel, and still yet, how do you get Americans to buy and drive diesals? I read somewhere that to build a refinery to process heavy crude its about $8 billion (Oil and Gas Journal I believe). We have what, about 20+ refineries now in the U.S. most of which are processing light sweet crude? How much does it cost to convert them, assuming that's possible, I don't know.

So, all other depletion models aside, what is the depletion model for light sweet crude? Isn't a more restricted model of light sweet crude only warranted (even from pure economic cost to society)? Would a peak in light sweet crude have the same effect on society overall as a peak in all oils?

I would like to see a world depletion model for light sweet crude if it can be done. Everyone projects the world demand for total oil in BPD, but what is the world BPD demand from here to 2020 for light sweet crude only, and can that demand be met? If not, what is the peak date for light sweet crude?

I know the Saudis are trying now to produce more light sweet crude (since their heavy didn't sale), but how much can they add, will it be enough, and can anyone else add any? It seems the main sources of today's light sweet crude have been U.S. (decline), North Sea (decline), Nigeria (many problems not much left in expansion capacity), Gulf, and a few others.

Interested in your thoughts.
User avatar
seahorse
Expert
Expert
 
Posts: 2275
Joined: Fri 15 Oct 2004, 03:00:00
Location: Arkansas

Unread postby pup55 » Fri 29 Oct 2004, 14:58:38

http://www.woodmac.com/pdf/crudequality.pdf

You are on to something, Seahorse. In fact, the above source was charging 25000 brit pounds in 2002 for a report of this exact thing.

It's obviously of critical importance to somebody running an oil refinery who needs to know how to modify his production process to accept nastier crude going forward.

Unfortunately, the normal sources (BP review, anyway) do not have data broken out into what is "light and sweet" vs. other. The methodology is that these guys have gone through and identified each field and which field produces which grade, and from that has come up with a composite. Evidently, there are varying degrees of "lightness and sweetness" and they will all deplete at different rates as the individual fields die.

On the bright side, evidently there is a career in this sort of research, for somebody with the means and opportunity and motivation to do it. In fact, I would go so far as to say that someone could turn the info on this website into a pretty nice, high dollar consultancy report. We should probably start copyrighting our posts.

On the not-so-bright side, these characters were thinking $15 crude going forward, and $30 worst-case as of 2002, so you know their prognosticating ability was not necessarily up to the level of their other research.


(c) 2004 by pup55. All rights reserved.
User avatar
pup55
Light Sweet Crude
Light Sweet Crude
 
Posts: 5249
Joined: Wed 26 May 2004, 03:00:00

Interesting!

Unread postby Cool Hand Linc » Tue 02 Nov 2004, 22:48:54

If we know that American is in decline. Post peak. We have seen the curve and can derive an estimated Q-inf that should be close.

Looking am many countries that have already peaked and getting an average Q-inf.

Knowing the exact amount of oil left isn't required. Being close is. Oil will never run out anyway. It will just get to costly to continue to produce. Energy IN must be less than the energy OUT or the pumping will stop. At least for energy. (Oil could still be used for a lubricant.)

So is it possible to look at countries that are well past peak and derive an estimated Q-inf to use for other countries?

Hubbert predicted to the year when peak in America would occur.
Peace out!

Cool Hand Linc 8)
User avatar
Cool Hand Linc
Tar Sands
Tar Sands
 
Posts: 922
Joined: Sat 17 Apr 2004, 03:00:00
Location: Tulsa, Ok

PreviousNext

Return to Open Topic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron