Blog Topics...

3D plotting (1) Academic Life (2) ACE (18) Adaptive Behavior (2) Agglomeration (1) Aggregation Problems (1) Asset Pricing (1) Asymmetric Information (2) Behavioral Economics (1) Breakfast (4) Business Cycles (8) Business Theory (4) China (1) Cities (2) Clustering (1) Collective Intelligence (1) Community Structure (1) Complex Systems (42) Computational Complexity (1) Consumption (1) Contracting (1) Credit constraints (1) Credit Cycles (6) Daydreaming (2) Decision Making (1) Deflation (1) Diffusion (2) Disequilibrium Dynamics (6) DSGE (3) Dynamic Programming (6) Dynamical Systems (9) Econometrics (2) Economic Growth (5) Economic Policy (5) Economic Theory (1) Education (4) Emacs (1) Ergodic Theory (6) Euro Zone (1) Evolutionary Biology (1) EVT (1) Externalities (1) Finance (29) Fitness (6) Game Theory (3) General Equilibrium (8) Geopolitics (1) GitHub (1) Graph of the Day (11) Greatest Hits (1) Healthcare Economics (1) Heterogenous Agent Models (2) Heteroskedasticity (1) HFT (1) Housing Market (2) Income Inequality (2) Inflation (2) Institutions (2) Interesting reading material (2) IPython (1) IS-LM (1) Jerusalem (7) Keynes (1) Kronecker Graphs (3) Krussel-Smith (1) Labor Economics (1) Leverage (2) Liquidity (11) Logistics (6) Lucas Critique (2) Machine Learning (2) Macroeconomics (45) Macroprudential Regulation (1) Mathematics (23) matplotlib (10) Mayavi (1) Micro-foundations (10) Microeconomic of Banking (1) Modeling (8) Monetary Policy (4) Mountaineering (9) MSD (1) My Daily Show (3) NASA (1) Networks (46) Non-parametric Estimation (5) NumPy (2) Old Jaffa (9) Online Gaming (1) Optimal Growth (1) Oxford (4) Pakistan (1) Pandas (8) Penn World Tables (1) Physics (2) Pigouvian taxes (1) Politics (6) Power Laws (10) Prediction Markets (1) Prices (3) Prisoner's Dilemma (2) Producer Theory (2) Python (29) Quant (4) Quote of the Day (21) Ramsey model (1) Rational Expectations (1) RBC Models (2) Research Agenda (36) Santa Fe (6) SciPy (1) Shakshuka (1) Shiller (1) Social Dynamics (1) St. Andrews (1) Statistics (1) Stocks (2) Sugarscape (2) Summer Plans (2) Systemic Risk (13) Teaching (16) Theory of the Firm (4) Trade (4) Travel (3) Unemployment (9) Value iteration (2) Visualizations (1) wbdata (2) Web 2.0 (1) Yale (1)
Showing posts with label Networks. Show all posts
Showing posts with label Networks. Show all posts

Thursday, March 3, 2011

Why networks matter in finance...

I have recently been on the defensive regarding the importance of networks in financial markets, and I feel that I have not done a good job of explaining my position to a sceptical audience.  This post is an attempt to organize my thoughts on the subject in a manner that will make sense to non-network people.  For those readers who are "network people" and want to understand why/how networks matter check out the Financial Network Analysis research database.

First of all, I don't like the claim "networks matter."  It is much too general a statement to be of any use.  Context matters.  I claim that within the context of finance, thinking about the functioning (or lack thereof) of financial markets requires considering the inter-weaving of financial contracts across space and across time.  I further claim that network theory provides a useful set of analytical tools to model the complex interdependencies that such financial contracts create.

How does this relate to my own research? At its core, my model is a story about how spillovers across time are transformed by the credit network into spillovers across space.  The chief result being that the density of the network of financial contracts plays a key role in amplifying the transformation of spillovers across time into spillovers across space.

Does this make any sense?  I really made an effort to distil my point as much as possible...

Thursday, February 24, 2011

Applications of Financial Network Analysis...

For anyone interested in applications of financial network analysis being done at leading central banks I would highly recommend the following research database available via the Financial Network Analysis blog...

A nice quote from a recent European Central Bank paper related to my current research area:
"...in order to enable financial network analysis to fulfil its promising role in better understanding financial stability, work is needed on three aspects: (1) a better theory on contagion channels in the financial system, on the information content of financial links and on the behaviour of financial institutions under both normal and stress situations; (2) better tools to manage and analyse the financial information available; and (3) a broader set of data on financial linkages – at bank-to-bank level, cross-market and cross-currency, both nationally and on a cross-border basis. Developments on all these three aspects are likely to depend on each other."
My current paper contributes (perhaps trivially) to (1).  Prof. John Moore's work on liquidity and financial contracting is crucially important to (1)...

Thursday, January 20, 2011

The BoE is interested in my area of research...

Andrew Haldane, who is the Bank of England's Executive Director of Financial Stability, and his co-author Robert May have recently published a paper in Nature that focuses on the dangers to the stability of the financial system caused by too much complexity in the structure of financial networks.  It is an excellent, easy read and definitely gives the flavour of the major results so far regarding systemic risk and financial network structure.

One of the many insights referenced in the paper is the idea that regulatory policy should take a more systemic approach (as opposed to focusing regulatory policy at the level of the individual institution).  This reminded me of a recent post by Cosma Shalizi questioning the need for microfoundations in macroeconomics.

Andrew Haldane will be coming to Edinburgh in March to give a lecture on financial stability, and I will definitely be in attendance...

Wednesday, December 29, 2010

Irving Fisher, and the Debt-Deflation Theory...

In preparation for a talk I am giving in January on Fragile Financial Networks I have been reading papers on various versions of the "financial accelerator."  I just finished reading Irving Fisher's  classic 1933 Econometrica paper on the debt-deflation theory of depressions...I would highly recommend it! Besides the famous debt-deflation stuff, I thought Fisher's comment that new investment opportunities created by technological (or financial) innovation are a major "starter" of over-indebtedness.  Here it seems like Fisher is saying that market economies (which tend to be very good at generating technological/financial innovations) sow the seeds of their later destruction...

I am working on the slides for this presentation now, and will be sure to post them as soon as they are finished...
 

Tuesday, December 14, 2010

Best network visualization that I have seen in a while...

Follow the link to read the story behind this image...if you look closely you will notice that there are actually no geographical borders plotted in this image...the "borders" emerge as a result of the geographical clustering of network connections between Facebook users...spooky!
Facebook visualisation

Sunday, December 12, 2010

Networks, cycles, and supply chains...

If you haven't already read it, check out this post on Stumbling and Mumbling...it is very similar in spirit to some things that James, Sean, and I have been talking about recently regarding network theories of complementarities in the production process and how this might generate business cycles...

Friday, December 10, 2010

Slide from my trade networks presentation...

So, today I gave my first presentation of work that I have been doing on the evolution of hierarchy and community structure in international trade networks.  I have included my slides below...you can also skip down to just below my slides and find a short description of the various plots (if you are interested)...feedback and comments are appreciated as always...
Network Fragility Short)


Some additional thoughts on the CCC plots...
Below is the plot of the CCC for OECD countries from 1962-2009 using data from UN Comtrade.  Grey bars represent U.S. recessions as defined by NBER.   I will focus my discussion on this plot (the other is similar...one of the nice things about limiting analysis to OECD countries is that the results are not dependent on choice of data!).  Note that five countries have yet to report for 2009. 
The evolutionary theory that I am testing predicts that environmental change will cause an increase in the modularity of the trade network.  Here modularity (really hierarchy) is measured by CCC.  He (2010) supposes that U.S. recessions are an indicator of environmental change.  I have a couple of issues with this.  First, he is using U.S. recessions which may or may not be a good indicator of global recessions (to my knowledge there is not a universally accepted measure of global recessions).  More importantly, while the CCC does indeed increase during recessions, the largest increases in the CCC seem to occur outside of recessions...see for example the entire decade of the 1960's!  Generally speaking, the economic environment in which global trade is being conducted is constantly changing and forcing individuals and companies to adapt along with it.  I think a better measure of environmental change is needed.

Not that this is the answer, but I think I will plot some measure of real oil price shocks against CCC ans see what that looks like...           

Wednesday, December 8, 2010

Theory of Value: Chapter 3 (cont'd...Again!)...

Last post on producer theory.  In his end of chapter notes, Debreu makes underlines three things that are not covered by the producer theory that he has described.  I repeat them below as I think they merit attention:
  1. External economies and diseconomies: the case where the production set of a producer depends on the production sets of the other producers (and or on the consumptions of consumers).  Both of these cases are, I think, incredibly likely to occur in the real-world.  In fact such interdependencies are well modeled by networks.
  2. Increasing returns to scale: one of my new favorite pastimes...these can also be well modeled with networks (although they can be well-modeled via other methods as well).
  3. The behavior of producers who do not take prices as given: monopolistic competition...I would go so far as to submit that some form of monopolistic competition is a superior null model of producer behavior than perfect competition.

Saturday, December 4, 2010

Posting will be eratic this week...

I am working on my presentation for the upcoming workshop in Edinburgh on Network Fragility and as such posting will be highly limited this week.

Tuesday, November 30, 2010

The Vaults and Garden Cafe...

Coming at you, post-"Community Detection in Multi-Slice Networks," from the Vaults and Garden Cafe in Oxford...

Dr. Mason Porter gave a very nice and thorough seminar on applications of his method of detecting communities in multi-slice networks.  Applications ranged from financial networks to actual human brains (and everything in between).  The technique itself is deceptively simply:  one simply seeks the community partition that optimizes a well-known network quantity called modularity (where modularity is measured in terms of departure from some chosen null model).  However, actually implementing the technique can be extremely challenging.

I am interested in applying these techniques to international trade (which to Dr. Porter's knowledge has not yet been attempted).  To start, what I need is to find an appropriate null model for international trade networks.  I will then find a community partition that maximizes modularity relative to what one would expect given my null model.  Typically, null models are random network models...so which random network model is most descriptive on the international trade network?  What about Kronecker graphs?

Complexity Catastrophes...

On the train down to Oxford I read through almost all of the proceedings from the original Sante Fe Conference on economics as a complex system.  I found the following chapters to be particularly useful for economists:
  1. The Evolution of Economic Webs, Stuart Kaufman
  2. Persistent Oscillations and Chaos in Economic Models, Michele Boldrin
  3. Self-Reinforcing Mechanisms in Economics, W. Brian Arthur
  4. Computation and Multiplicity of Economic Equilibria, Timothy J. Kehoe
  5. Rational Expectations, Game Theory and Inflationary Inertia, Mario Henrique Simonsen
  6. The Global Economy as an Adaptive Process, John H. Holland
Of the above chapters, Kaufman's on the evolution of economic webs is by far the most thought-provoking.  I am particularly fond of his ideas on complexity catastrophes, as they parallel some of my own ideas on the dangers posed by overly dense connectivity in financial networks. 

Saturday, November 27, 2010

Edinburgh at Dusk...

Took this photo from the top of Arthur's Seat around 4:30 pm...
 
I am heading south to Oxford University tomorrow to attend a seminar on the evolution of community structure in multi-slice networks at CABDyN.

I have never been to England before (I do not count layovers at Heathrow), and I am excited about this first (of hopefully many) visits to Oxford University.

Tuesday, November 23, 2010

Computational Model of Trade...

Just need to jot down the specifics of an idea I had about a computational model of trade with endogenous network formation...

The world consists of an exchange economy with N agents arranged in a circle.  Each agent is described by the following parameters:
  1. Parameter, r~U[0,1] describing their level of risk aversion.
  2. Parameter, v~U[a,b] describing their vision.  This vision parameter tells how many agents to the left and right are in an agents neighbourhood.  Vision could also be the same fixed v for all agents to simplify things.  Assume that agent's have perfect information about the endowments etc of all other agents in their neighbourhood/vision.
  3. Each agent is endowed with some amount of two goods sugar and spice.  Endowments could be distributed uniform on some interval.
  4. Agent have the same utility function which takes the amount of sugar and spice as arguments, and also must include risk aversion somehow.  I am open to suggestions as to what utility function would be most appropriate.
Agents would then have to decide whether or not to trade (if they wanted to trade at all) at "home" within their neighbourhood/vision or "abroad" by linking up with some other agent about which they know nothing (except the distributions of risk aversion, vision, etc.).  Of interest to me are the following...
  1. Do agents with higher levels of risk aversion trade at home more often? Do agents with less risk aversion trade abroad more often?
  2. What type of trade networks evolve through this process? Network structure within time steps and network structure aggregated across time steps would be of interest.
  3. What are the equilibrium properties of such a model?  Is there meaningful convergence?  If so, how fast?  Is the equilibrium Pareto efficient/Pareto optimal?
I wrote this down very fast, and no doubt left out details necessary to close the model, but I thought I better write it down lest I forget...

International Trade Network: A First Pass...

I will be presenting a talk on the structure of international trade at a networks workshop being held here at the University of Edinburgh.  What follows is a dump of my thoughts related to the subject which so far are largely based on my attempt to replicate recently published work on the structure of international trade network.

International Trade Network Data...
There are two principle sources of network data on international trade (that I have been able to find):
  1. Prof. Kristian Skrede Gleditsch at the University of Essex:  Data are from 1948-2000 and the primary source is the IMF.
  2. UN Comtrade: Data are from 1962-2009 and the primary source is of course the UN.  
  3. There is a third data source, the Economics Web Institute, that I would like to dissuade people from using even though they use Prof. Gleditsch's IMF data (without going into too much detail, the Economics Web Institute, seems to use an inconsistent methodology to assign edge weights (trade values) to countries when converting from Prof. Gleditsch's raw .asc files to .xls workbooks). 
If you would like to hear the gory details on the data validity issues feel free to contact me.

Hierarchical Clustering and Trade Network Density:
For the moment I am simply trying to replicate the work of the Deem et al. (2010) paper (linked to above).  I have applied a average linkage hierarchical clustering algorithm to the OECD international trade network as outlined in their paper.  Below are some plots of the cophenetic correlation coefficient (CCC) and network density for the international trade network for OECD countries using two different data-sets.  The first plot uses data entirely from the UN Comtrade database.  NBER recessions are marked with gray bars.  I downloaded the data by hand from Comtrade (commodity code is SITC ver. 1 AG0) and then used a Python script to clean and reorganize the .xls spreadsheets into more manageable text files.  Statistical analysis is done using SciPy, network analysis (so far) has been done using NetworkX, and plotting has been done using Matplotlib.     
The plot below is the CCC and network density for the international trade network for OECD countries using Prof. Gleditsch's IMF data for 1948-2000 and then UN Comtrade from 2001-2009 (commodity code this time is SITC ver. 3 AG0). 
There are some differences between the two plots of the CCC (I have not yet tested whether or not they are significantly different nor have I tested whether or not the CCC jumps significantly during/after recessions...this is on my to do list!).

Still to come:
  1. Dendrogram of identified clusters
  2. Results of community structure algorithm applications
  3. Weighted clustering algorithms and other graph measures
Basically I am just trying to learn to do network analysis using Python by applying the tools to an interesting topic...

Monday, October 25, 2010

Slight PhD Research Detour...

My PhD research has taken a slight detour over the last couple of days.  In order to do theory I need to work with data, and there is just not a lot of publicly available data on financial networks at the moment.  So I decided that for the time being I am going to do some empirical research on trade networks using data from the UN Comtrade database. 

The inspiration for my research comes from the the following paper on the evolution of international trading networks.  The paper basically postulates that international trade is best described as a specific type of evolutionary system that satisfies the following three requirements:
  1. The dynamics of the international trade system are "slow" to respond to environmental change
  2. That environmental change is present
  3. Information is exchanged between agents in the system
The authors have studied this type of evolutionary system in previous research and two of their papers on the details of their evolutionary theory can be found here and here.  Their theory makes three specific predictions about the evolution of international trade networks:
  1. Decreased modular/hierarchical structure in the world trade network increases the sensitivity of the network to recessionary shocks
  2. Decreased modular/hierarchical structure decreases the rate of recovery from shocks
  3. Recessions (negative shocks) should spontaneously increase the modular/hierarchical structure in the trade network
According to the authors, all three of these predictions are borne out in the data...I am going to attempt to replicate their results.  Their theory implies that the modular/hierarchical structure that forms in response to environmental shocks (recessions) increases the resistance to and rate of recovery from shocks (recessions).  Globalization reduces modular/hierarchical structure in the global trade network and thus should lead to increasingly large recessions and a decreased rate of recovery from these recessions.

I have already written Python scripts to download the UN trade data and combine it into a single text file for use in the analysis.  I will be building an on-line code repository in the near future where people can come and download my code so that they can attempt to replicate MY results...

I would be interested in comments from readers concerning what standard economic theory I could bring to bear on this problem...I suspect that there is quite a bit of support for this line of research in more mainstream economics, but I could be wrong...

Friday, October 1, 2010

Goldmine of Information on using Python in Social Sciences...

I came across this gem of a post on Zero Intelligence Agents while waiting for Business School IS support to install Python, NetLOGO, and R onto my office computer...

Wednesday, September 22, 2010

Totally Remiss on my Blogging...

OK...I am back.  Have been preparing for the start of the teaching term and as such have been a bit absent minded when it comes to blogging.  I have another meeting with my PhD adviser, Ed Hopkins, tomorrow afternoon and assuming he concurs with my research proposal for the next year I will move out smartly.

I have finally obtained access to the CRSP data (which was used in the Billio et al paper on econometric measures of systemic risk) and I plan to start my research by duplicating part of their work and then moving on the analyze a similar data-set for the UK.  I also have plans to ground some of the systemic risk measures a bit more in economic network theory, and then develop a couple measures of my own...

On the theory side of things, I am working on refining a set of research questions to tackle the complexity of large economic networks.  What I am going to try and tackle first is the following: I want to develop a economic model that captures...
  1. Densification power laws: networks are becoming denser over time, with the average degree increasing (and hence with the number of edges growing super-linearly in the number of nodes). Moreover, the densification follows a power law pattern
  2. Shrinking diameter: The effective diameter is, in many cases, actually decreasing as the network grows.
This idea is motivated by empirical findings and other work from this paper by Leskovic et al.  I have no firm modeling strategy yet, but strategic complements and some type of localized information structure will almost certainly be involved.

Saturday, September 18, 2010

Datastream Tutorial...

So it looks like tomorrow is going to be spent in the library learning how to use Thomson-Reuters Datastream.  I have a nice idea for an empirical study of financial networks that will help me get started on my PhD...but first I will need to collect data on stock prices, market capitalization, and sector code for all stocks on the FTSE 100.  I think (hope?) that I can complete the vast majority of the work by Winter holiday....

Monday, September 13, 2010

Network Position and Interest Rates...

The title says it all: Systemically important banks get better terms for their overnight borrowing

Basically, they get a hold of a really nice data set from the Central Bank of Norway that covers a three year period that includes the recent financial crisis (i.e., 2006-2009) and using a panel data econometric model they find that banks who occupy key positions within the interbank network in Norway were able to use this position to get better deals on interest rates for their overnight borrowing/lending.  They also found that interest rates depended not only on the total amount of market liquidity, but also on the distribution of that liquidity amongst the market participants.  This suggests that banks with surplus liquidity are able to exploit this market power in order to get beneficial rates.  Finally they find that the aforementioned effects on interest rates were stronger during the recent financial crisis than in the period leading up to it.

Excellent Research Resource on Financial Networks...

Anyone interested in financial network analysis should check out Kimmo Soramaki's blog...