Monday, May 14, 2012

Weather risk and the farmer

The 19th century farmer had much less control of the environment in which his crops were growing compared to modern farmers. But did weather risk get translated into different rents? After all, you'd expect a farmer who was wanting to rent land in an area where the weather was very changeable to try to negotiate a lower rent. It seems that the amount of rainfall in July matters a large amount for a grain crop such as wheat or barley. The coefficient of variation is a useful (and somewhat overlooked statistic). It is the standard deviation of a set of observations divided by their mean. So there are no units: it is just a percentage. Perfect for measuring "changeability" of weather. Malcolm kindly got me the CoV for July rainfall for 10 weather stations. I used GIS to interpolate between the stations, and then get the stretched values into the observations for our parishes. Then I ran a regression and --- wonderful news! --- CoV has a strong negative effect on rents. Greater CoV means lower rents. Below is a map of the southwest, showing the parishes and a raster of stretched CoV values. The highest CoVs are in the extreme southwest---that is Cornwall, well known for wet summers.

The pinkish bits have the lowest CoVs and it is no coincidence that wheat is grown there. The very wet areas are suitable for livestock and so that is where cattle and sheep raising went on.

Friday, May 11, 2012

Rent and distance from railway station

I am still working on the Railways Paper, trying to quantify the difference that an extra kilometre of railway track had on agricultural rents. The draft is very nearly finished, and I am hoping I can get the article into a journal such as Economic Geography.

So far I have found a significant relationship using two measures of the availability of railway track. One method is what I call the 'nearest station' method, which involves the measuring of the distance from the farm to the nearest railway station on an annual basis. As the railway was being built, it approached the farm. This meant that the farmer could put his animals into wagons for transport to market. He saved on the costs involved in droving the animals along roads (loss of weight, expenses and risk). So a reduction in distance to nearest station increased the rent...which is what we found. The other measure is the 'buffer' measure, which involves counting the total kilometres of railway track within a 40km radius of the farm. More track nearby raises the rent---it is easier to get your stuff to market. Greater "connectivity" in modern parlance.

Here are a couple of interesting graphs:


We have the rent rolls for 31 large estates. The graph shows the average rent and distance from nearest station. As theory predicts, rent is a declining function of distance. Now take a look at this one:
This is the distance between estate and nearest station over time. By 1860 or so, all the estates were within 10km of the nearest station. That accounts for the clustering around the 10 km mark in the first graph.


Wednesday, March 21, 2012

Surplus extraction!

Elasticity is a term used in economics to quantify the relationship between two variables in terms of percentages. Typically we use the price elasticity of demand. This means: “how many percent does demand change for a one per cent change in price?” If gas goes up ten per cent, how many per cent does demand change?

I am using elasticity to find how much agricultural rents changed for a change in price. This gives me an indication of how closely rents were oriented to market conditions. If landowners were setting their rents without really wanting to “squeeze” their tenants, then we would expect the elasticity to be small. Prices could change a lot, but the rent wouldn’t change very much. As the elasticity increases, this shows that landowners are beginning to set rents more competitively.

We can find elasticity using regression, if we first transform the variables to their natural logarithms. The coefficient is then the elasticity. I got a rent series for 1760 to 1840, and a price series, then did the transformation and the regression. Because I want to see the change in the coefficient over time, I used a technique called a ‘rolling’ regression. Here is the result:


You can see that the elasticity climbs up, reaching unity at about 1840. This is fascinating: landowners who were stuck with long leases during the time of big price increases during the Napoleonic Wars (ended 1815) got excluded from the windfall profits. So they renegotiated their leases to shorter ‘rack rent’ leases to scoop up the surplus. Greedy fellows, but we caught up with them!

Saturday, February 18, 2012

The Ricardian method

The so-called Ricardian method has become quite popular in the last ten years as a way of trying to estimate the potential damage (or gains) to agriculture through climate change. It is usually a cross-sectional regression on land values (price of land per hectare or rent per hectare) and a bunch of exogenous variables. Records such as past wheat yields aren’t included. Then we can measure the impact of a change in a variable such as temperature or precipitation. Control variables, such as strength of the local economy are usually added.

I’ve been doing the same with the arable rents for the southwest of England in the early 19th Century, but with recent meteorological data. There were no weather measurements taken then, and even if climate change has occurred in the period between 1835 and now, the change is likely to have been relative. The regression output is below, but here are some interesting points:

I include variables of interest, such as MARAIN (March rainfall) with their squares. That’s because there is a non-linear relationship. So for March rain, the regular unsquared variable has a negative sign, while the square is positive. The result of the combination on arable rents is a upward curve, meaning more rain was good in March. That is true: farmers want water in the ground to get the plant through to the summer.


But look at July rain. The signs are the opposite way round. The result is a curve, shown above. The recorded range of July rainfall in mm is on the x axis. The y axis is the rent. Some July rain is good, but then at about 52mm, that’s enough, thanks. The plant gets waterlogged and the forthcoming harvest is ruined.

Days of airfrost is fascinating: see the positive sign? Farmers wanted more days of airfrost back in 1835, because that is what killed the pests. No Roundup etc then. For soil, I put in dummies for different levels of clay. The negative signs mean that more clay lowers the rent. This seems counter-intuitive until one realises the connection with rainfall. Heavy clay soils tend to hold the water, generally good, unless you farm in a poorly drained area. Much of the southwest was just that. 


Friday, February 17, 2012

Agricultural production functions

Different types of agriculture have different manpower needs---at least they did in the early 19th century. For a farm of any given size, less workers are required for livestock than for arable. Arable requires a lot of labour for sowing, weeding, harvesting, threshing and all the rest of it. So we might expect to see the number of workers per farmer increasing with an increasing share of arable. Now, here is the interesting thing. The ratio between arable and livestock changed with proximity to London, at least it did from the perspective of the southwest of England. The closer the farm was to London, the more arable. Cornwall, Devon , Dorset and Somerset were heavily into livestock.



So, how about we plot the ratio between arable and livestock against distance from London AND the ratio between number of labourers to farmers?  I have used lowess smoothing to get a single trend line from a mass of points. I have to say that I was really deeply surprised by the closeness of the two lines. And the best thing is that the data sources were entirely independent. The farmer to labourer ratio came from the 1851 Census records, and the arable to pasture ratio came from the 1836 Tithe Commission Files. The 'kink' at around 200km from London is the beginning of the heavily pastoral country, eastern part of Somerset. 

Wednesday, February 15, 2012

Von Thunen and intensification

JH von Thunen was a German farmer and economist who lived about 200 years ago (which makes him even older than me!). In the Devon rents paper, we successfully tested his theory that rents decline with distance from the market. He had another, less well-known theory. He argued that the intensity of agricultural production would increase the closer the farm was to the market. The rent would be higher, and so the farmer would 'work' his (or her!) land harder.

Amy and Malcolm,  you helped me to calculate the ratio between farmers and agricultural labourers, using data from the 1851 census. I built a shapefile using the locations and the ratios and then 'kriged' the shapefile to get an interpolated surface. I put the ratio values for each location into the observations for our 609 parishes in the southwest of England. Finally I plotted the ratio for each parish against its distance from London. The result is the graph below.


Isn't this fascinating? You can see quite plainly that the ratio decreases with increasing distance from London. The farmer employs less labour the further away he is from the market. The furthest distance represents Cornwall at the extreme west. There the ratio is very small, so probably most of the farmer's family were involved in work on the farm. Looks like von Thunen was right!

Wednesday, February 8, 2012

Direction for the railways paper

The focus of the ‘railways’ paper is a quantification of the amount of money saved by agriculture.  We are going to try to calculate the savings as a share of Gross National Product in the years 1850-1870.  Some previous studies (e.g. Hawke, 1970) conclude that the savings made by farmers using railways are “insignificant.”  Let’s test this!

Our methodology

1.      The graph shows the coefficient of the regression of rent against track length.  The coefficient provides the rent-per-acre increase for every extra kilometre of track within 40 km. of the estate.  The landlord is “extracting” this amount, equal to what the tenant farmer saves by using the railway.

2.      If we multiply the coefficient by number of acres by the length of track (year by year), this will give us the total amount saved. For example, take the year 1860. If a landowner had 1,000 acres, and in (say) 1860 200 km of track became available, then he would be able to gain an extra 1000*200*0.0002 = 40 pounds for that year and going on into the future. (I got the 0.0002 from reading off the graph).  But the point is that this saving is cumulative. We could (and we will!) go back to 1850, find the savings and then add that to the saving for 1851, and so on. The landowner gets the cumulative savings year after year. 

3.      At this point, we don’t care whether it was the landowner or the tenant who got the money.  It was saved, that’s enough.

4.      The result from paragraph 2 gives us the savings for our estates – now we need to extend this to the whole country.

5.      This isn’t too hard: Malcolm and I can calculate total track year by year, and Amy and I can find (where?!) total amount of pastoral land and cattle.

6.      The next step is to divide the total savings by the yearly GNP.

7.      Trying to get this done by the end of February!

Monday, February 6, 2012

1835 Wheat prices in colour!

I was looking for wheat prices in 1835 at a local level.  The 19th century farmer sold his wheat production locally, so the local price was important.  We know the historical prices in London of course, but not throughout the country.  And it is the regional differences we want to find.

Here is how you -- Amy and Malcolm -- solved this data problem with me.  I approached wonderful Mary L. at UBC Library who is an authority on government data.  She found that wheat prices were published in the London Gazette at the market-town level.  That was enough!  A clip of a bit of the data source Mary found is here.

I selected 76 market-towns from the several hundred provided.  Malcolm got the geographical coordinates.  Amy put the old weights and money into shillings per quarter.  Using ArcGIS I built a “surface” with wheat price as the elevation.  The result is here.


You can see that wheat was cheaper in the Midlands and eastern counties, where it was grown.  Around the Southwest and London it was much more expensive.  Transport costs and demand drove up the price. This result isn’t really that much of a surprise – but how else could we have actually shown that what economic theory suggests actually takes place? And then, using ArcGIS I got the wheat prices at the highly localised parish level into the dataset...and guess what, it worked. So thanks Mary, Amy and Macolm.

Railway distance coefficients...a surprise!

The “Devon Rents” paper is pretty much done – the theory written up and the empirical section completed.  Now on to completing the Railways paper. 

Malcolm calculated kilometers of track and Amy worked on the rents for 25 estates over the period 1832-1870.  We found that an increase in track increased the rents – why?  Because the tenant farmer saved money by using the railways to take his cattle to market. However, he didn't get to keep the money. Those savings were “extracted” by the landowner as higher rent.  This is exactly what economic theory would predict.  So what’s new?


First, I plotted the coefficient of the length of track variable in the regression against time.  I found that the coefficient decreased over time. You can see this from the graph above. This means that for every extra kilometre of track, the landowner extracted a smaller amount year by year.  Why should this be?  Suddenly being soft-hearted?  I don’t think so! It’s more to do with competition among the railways.  They dropped their rates and so there was less to be extracted.  The graph shows it all.

Tuesday, January 10, 2012

Distance coefficients---positive?!!

Finally got it! I did two regressions:
Arable rent = arable yield + distance from London (and a bunch of other variables)
Pasture rent = pasture yield + distance from London

Agricultural location theory (and common sense) would tell us that the sign for yield should be positive (rent goes up for better land) and negative for distance from the main market. The further away you are, the more your transport costs, so your rent is less. So why was I getting negative signs for pasture (meaning livestock) and positive signs for arable? Seems contradictory. The pasture sign is fine---the animals had to walk all the way to London, so you would expect a negative. But arable?

I finally got it at about three this morning. Couldn't sleep. Wheat was produced in the eastern counties and the western counties were importers from the east. They could not produce enough to feed themselves. So those western producers who could grow wheat were in a sense protected by the distance. So the further you are away from London (which is close to the wheat-producing counties) the greater your arable rent.

I checked this by getting averages of wheat prices in 1820 for all counties (no data at the county level available for 1836). The map below shows that the west (darker colour for higher wheat prices) did have higher wheat prices. In effect Cornwall acted as a main market, which is why the prices are highest there. Here is the map.
London is the red dot to the east. The 588 parishes are coloured by their r-squared values. You can see there is patch of dark red (high r-squared) in north Devon/Somerset. Now I also made a graph of the regression coefficients for distance from London against distance from London. Here:
You can see that at the point closest to London (ie further from Cornwall) the regression coefficient is 0.00002. As we move towards Cornwall, the coefficient goes down to 0.000008, a reduction of 2.5 times. Notice the interest shape of the curve (which I think I can model). The 'straightest' or most linear section is between about 200,000 metres and 300,000 metres (marked with vertical red lines). It happens that our high r-squared values lie between these distances. The r-squared values are high because distance is being accurately incorporated.

It seems that the size of the coefficient is a function of distance. So if I can get the equation of the curve above, I can use integration to get the total cost of any journey....then plug that back into the regression. Hey the sun is finally shining!

Saturday, January 7, 2012

Capitalisation in the southwest

Agriculture in the 1830s was very much in a state of change (does that make sense!), and one way of detecting rates of change on a regional basis is by calculating the ratio of farmers to the agricultural labourers employed. A higher ratio of employees to employer implies a greater degree of capitalisation. A smaller ratio means that much of the labour would have been supplied by the farmer and his family. Malcolm has found me the XY coordinates for 138 datapoints, and Amy and I have calculated the ratios. The datasource for the numbers of farmers and labourers is the 1851 census. Together we have created a 'surface' which interpolates between the 138 datapoint. The result is below. The surface is draped over an outline map of the southwest.




The darker the blue, the greater the ratio (goes from 0.97 to 14). There is an obvious pattern. The closer we go towards London, the higher the ratio. Similarly, the very low ratio in Cornwall seems to imply almost peasant subsistence. 

Friday, January 6, 2012

Update on the Devon rents paper

I haven't posted anything for about six months---so here is an update of the Devon rents paper. Here we have the data on 488 parishes in the southwest of England for the year 1836. We are trying to test the following five hypotheses:

H1: farmers were integrated into the national economy, even before the railways reduced transport costs
H2: agricultural rents were set  at levels predictable by agricultural location theory
H3: farmers considered weather risks when negotiating rent
H4: some landowners reduced rents in exchange for votes from their tenants
H5: the practice in the county of Devon of leasing agricultural land by auction increased rents in that county, other factors (such as land quality) being equal

I have finally managed to get a working regression, of arable rent against grain yield, elevation, distance to London and pasture rent for adjoining land. The coefficient of determination (r-squared) is a tad over 0.7, which is not at all bad (although of course I'd like it higher). I then used geographically-weighted regression to discover any regional differences in the regression coefficients. The result is below.

The colours represent different levels of r-squared, with red (in the green rectangle) being the highest. This means that for some reason the rents in the red parishes were set more closely in accordance with what agricultural location theory would predict. Why is this? Possible answers are:

1. There is a misspecification in the model, perhaps I've omitted a variable or two
2. John Knight bought 15,000 acres of Exmoor Forest in 1819, and that corresponds very closely to the green rectangle. Because he was a newcomer, the rents may have been set at more realistic levels
3. Agricultural leases in Devon were set by auction, in contrast to elsewhere. In this case we would expect the level of rent to reflect market conditions more closely than rents set arbitrarily.
4. More---I am working on this....but weather risk is an interesting possibility.

Just to keep you up to date. We are nearly there!

Sunday, June 26, 2011

A beautiful day!

No pictures or equations---just a huge sigh of relief. I finally managed to export data from my agent-based model and get it into Stata statistics software for analysis. The thing that was holding me up was that the attribute data for the 604 parishes in the SW of England is held in polygons....and when those polygons are imported into the Netlogo agent-based model, some of the data "disappears" or reappears in a corrupted form, which is even worse. I converted the polygons to points and that does the trick.

So---the agent - based model calculates the closest market-town for each farmer, and tells the farmer its population. Then exports that data so I can work out the effect of distance and population. Sounds simple doesn't it...

Anyway, I found that we have an interesting "gravity" model here, where the gravity equals the population divided by the square root of the distance. This declining effect makes sense: the average cost per unit distance was higher for shorter distances because of the fixed costs of loading and unloading all those sacks of grain.

It is days like these that I live for.

Friday, April 8, 2011

The effect of soil type on rent elasticity

The railways paper is moving along. We now have 23 estates in the dataset. We have shown that rent rose with the amount of track within a 40km radius of the estate. We have also shown that the year when the railway track near the estate was connected to London was statistically highly significant. This implies that the London market was really dominant. One result which is still a bit puzzling and which we are working on is the differences in elasticity. By elasticity, we mean the percentage change in rent caused by a percentage change in amount of track. The elasticities are really quite different....Holkham Hall for example is twice that of the smallest. This is interesting! The rate of increase may show us something about the relationship between landowner and tenant.

One possible reason is the production type of the farm. We know that dairy and meat prices rose more than wheat farming during the 1832-1869 time period. Folks were getting richer and so could afford a better diet. So farms which were on soil suitable for dairying might be more profitable and so the landowner could charge a higher rent. The map shows the estates, with the green circle proportional to the elasticity. Red soil is good for dairying and light blue for wheat. The seems to be a pattern: smaller elasticities on wheat soil. BUT look at the circle I've drawn around Leconfield and Emmanuel Hospital. They seem to be on the same (red) soil but the elasticities are quite different. Leconfield is the little circle just to the left of the larger Emmanuel circle. Why? Perhaps because Emmanuel Hospital is institutionally owned. Or the owner of Leconfield wasn't a tough businessman? More work to do.

Thursday, February 24, 2011

Railways and rent

So far we have twelve estates with kilometres of railway track counted up. In the regression we get very satisfactory results, which go to show that railway construction did indeed cut costs for farmers---but those savings were transferred to their landlords in the form of higher rents. However, in my readings I am finding some interesting differences between landlords. Some landlords had political ambitions and wished to be able to direct the votes of their tenants. As a result they under-rented...so the next research step is to try to find out which of our landlords had political ambitions, and then include this variable as a dummy variable. Then we can see the effect of politics on rent.

Wednesday, February 16, 2011

Coastal counties got cheaper wheat

I coded the counties with a dummy variable (0 = interior, 1 = coastal) so that I could test whether there was
any difference in the 'mark-up' according to whether a county importing wheat was on the coast or not.  A lot of wheat was shipped by coastal routes because that mode was often easier than using a horse and cart. I want to test for that. So
was the regression equation I used. On the left-hand side we have the dependent variable, the difference in wheat price between any one county and the source of the wheat, which was either Cambridgeshire or Lincolnshire. On the right-hand side is the intercept, then the coefficient for distance between the counties; the coefficient for amount of surplus or deficit in wheat for that county; and finally the dummy variable for 'coastal'.

As you can see from the output below, all the explanatory variables are statistically significant at the 95% level (p < 0.05). The coefficient for distance is positive, meaning that the further away, the higher the price difference. In effect this is giving us the transport rate for hauling wheat. It should be positive, makes sense doesn't it? Surplus/deficit has a negative sign. That means that the more surplus the county has, the smaller the price difference. Again, that makes sense. Why would a county pay more for wheat if they already have lots of it? The coastal dummy is the most interesting. It has a negative sign. So if you lived in a county on the coast, you paid less for wheat "other things being equal". We are 'controlling for" distance and surplus. So if we happened to have two counties, both the same with respect to distance and surplus, the one on the coast would pay less for wheat. Because they got more of their wheat through coastal shipping would seem to be a reasonable explanation! Can you see the power of these techniques? We can learn a huge amount just with a few bits of data scraped off the floor.

Tuesday, February 15, 2011

Difference in wheat market prices by distance

I came across a really special dataset that has wheat (and other grain) prices by the week from 1760 to 1820 for every one of the 40+ English counties. Think of the work some dedicated soul did in copying out all those numbers! I used this dataset in a recent post to show that wheat prices varied quite a lot, especially by 'demand', ie whether the destination market was in surplus or deficit.
Malcolm's map showing wheat origins

Malcolm has kindly provided me with a set of measurments from the two major wheat producing counties (Cambridgeshire and Lincolnshire) to each of the counties. See Malcolm's map on the right. We know the price difference between the wheat exporting county and county of importation; the distance between the two; the mean elevation of the journey, and the standard deviation of the elevation of the journey. The last measurement is to proxy the 'roughness' of the journey. I figured that greater changes in the standard deviation would be more expensive for the horse and cart operators of that time, and so they would increase the prices accordingly. We only have about 35 observations, but the results are interesting. After some experimentation, I found that regressing the natural log of the price difference against the natural log of the distance produced an acceptable result (p=0.02). The scatter plot of log price difference on the x axis with log distance on the y axis is shown here, together with a trend line of predicted values.

Regression of log price diff against log distance
If we use logs in the regression, then we also have a measure of the elasticity. The coefficient from the regression is 0.47, which means that a one percent increase in distance increases the price difference by 0.47 per cent. (See how useful logs and elasticities are!). This is quite a lot, and more than I had expected. The other measurements, such as roughness of the journey, didn't seem to matter as much. Now I am going to move on to 'control' for other variables, such as whether or not the county was industrial/agricultural, or on the coast. Why should coastal be interesting? Quite a lot of wheat was shipped by coastal vessels, probably a lot cheaper than by land. More later.

Thursday, February 10, 2011

Wheat price differentials surplus/deficit areas

Earlier I calculated the 'wheat flow' from counties where they grew more than they ate to counties which grew less wheat and more livestock. Recently I found extraordinarily detailed data which lists the wheat price by county only by year but by week within the year! I thought that the difference in wheat price between counties might be explicable just by some function of the distance between them. Turns out not to be so simple as that, but more interesting. The difference between counties is much more pronounced when there is a bad harvest. When the harvest is bad, the wheat exporting counties really take advantage and the prices in the importing counties surge. Sounds like the sort of behaviour we see over tickets to hockey games, doesn't it! So I worked out which counties had the most surplus (Lincolnshire and Cambridgeshire) and which had the biggest deficits (Lancashire and Middlesex). Then I subtracted Lincolnshire from Cambridgeshire...because if my theory os correct, the gap between the two surplus counties shouldn't change much. Then between the biggest surplus county (Lincolnshire) and the highest deficit county (Lancashire). If things are going my way, then the difference between these two should be accentuated in years of bad harvests. Sure enough, the red line really jumps in years when we know from old books that the harvest was poor. The years 1816/17 are a good example of this. 1800 looks dramatic, but we were at war with the French then (remember Napoleon?) and so there were all sorts of other factors involved. These results have a modern-day significance in terms of food security. Especially now as the world looks like it is running out of food. The events in Eqypt were basically triggered by high food prices. Learn from history! Next step is to try to quantify the effect. This is fun!

Tuesday, February 8, 2011

Relationship between flow and price in wheat

Negative relationship between surplus/deficit
In my last post I presented a map showing counties which were in surplus or deficit. I am convinced there is a relationship between price and surplus or deficit, with the price difference between counties being due to transport costs. I regressed (there you are again!) the flow against the wheat price, and found a strong statistical relationship (p=0.007). Here is a scatterplot which admittedly looks---well, scattered! But you can tell by eye that the relationship is negative. The greater the deficit, shown by having a negative sign on the y axis, the more you pay for wheat, price of wheat on the x axis. Now I need to try somehow to build a mathematical relationship between flow, distances travelled, and wheat prices. If I can find this relationship, then I can set it to zero on one side of the equation to find the 'limit of cultivation'. If that limit happens to be the border between Devon and Somerset----problem solved and game over!

Wheat price betrween farm and market

Wheat movements
England is rather regional in wheat production. But of course consumption of wheat (typically in the form of bread) is not regional. Everybody likes a toasted bagel! So that meant that wheat had to be moved (by horse and cart usually) from areas where production exceeded consumption to areas where they ate more than they grew. I've added surplus and deficit to the map...so red areas exported wheat to areas in deficit. I have looked at wheat price records for 1760-1820 trying to associate surplus/deficit with difference in price. Sure enough, areas with surplus had a lower wheat price than areas with a big deficit. The graph below shows the wheat price for Lincoln and Norfolk (big surplus) and Lancashire and Devon (deficit). As you can see, surplus areas were pretty much always cheaper than deficit areas. Isn't it interesting how correlated the prices are? The gap between them is remarkably consistent. So, it might be reasonable to suppose that this gap is due to the cost of moving the grain from one county to another. If this was the case, then we could work out the distance and from that get the transport costs per unit of distance. We would do this by (our friend!) regression, something like this:

difference in prices between two counties = intercept + beta1*distance

beta 1 would be the transport costs.

(Now, I've linked the word 'regression' here to a Youtube video I've done in case you need a little revision). Take a look!
Remarkable price correlations
Why do we want to know this? Look at Devon. It's wheat cost is very high and it is also furthest from the big wheat producing areas. We have also found that 'distance to market' sign changes around the Devon/Somerset border. It could just be that this is the point where wheat brought in from Norfolk etc is just too expensive because of transport costs. This leaves the local farmers in control of their own market, so distance to market becomes important. Just a thought!