Econometrics in Panel data?

D

DeepBlue

Hi all,

I am new to Python. Just wondering can Python able to do econometric
regression in either Time-series or pooled (panel) data? As well as test
for hetero, autocorrelation, or endogeneity?
Thank you!
 
B

beliavsky

DeepBlue said:
Hi all,

I am new to Python. Just wondering can Python able to do econometric
regression in either Time-series or pooled (panel) data? As well as test
for hetero, autocorrelation, or endogeneity?
Thank you!

NumPy can do linear regression, and one can certainly program any
statistical algorithm in it. For the fairly advanced statistical
methods you are interested in, however, it may be easiest to call R
from Python using the methods described at
http://www.omegahat.org/RSPython/index.html .
 
D

Dennis Lee Bieber

Hi all,

I am new to Python. Just wondering can Python able to do econometric
regression in either Time-series or pooled (panel) data? As well as test
for hetero, autocorrelation, or endogeneity?

Can you do such in FORTRAN, COBOL, SNOBOL, APL, C, Matlab, Maple,
Excel, Turing Machine? Most likely...

Is there a pre-built library to compute such? No idea...

--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 
D

DeepBlue

so are you saying that Python is not an appropriate language for doing
econometrics stuff?
 
C

Cameron Laird

so are you saying that Python is not an appropriate language for doing
econometrics stuff?
.
.
.
While I count on Dennis to speak for himself, I'll interrupt
and say that, yes, Python is an appropriate language for
econometrics--but not an ideal one.

There's been quite a bit of Python-based work on financial
analytics in the past. I don't have a convenient handle on
who all has done this, and what they've done, but I'm certain
that research will yield results. Python boasts quite a few
general advantages that make it apt for these tasks.

There is not, however, a readily-accessible library targeted
for this sort of work. If I had the opportunity to work in
econometrics now, I'd think seriously about R, Lisp, and
Mathematica, and see what's available among the functional
languages, along with Python.
 
D

Dennis Lee Bieber

so are you saying that Python is not an appropriate language for doing
econometrics stuff?
"Appropriate" was not a qualifier in your original query... I was
only pointing out that, if one can implement the needed algorithms in
any of those other languages, one can implement them in Python (in the
case of an Excel implementation, maybe one wouldn't even need to
implement them in Python -- just interface to Excel and use whatever
formulation existed for it <G>). IOWs, your original phrasing was on par
with "can one do arithmetic with Python", not (pardon the techno-babble)
"can one do multi-variate graphical regression of quantum fluctuations
in real-time with Python". {Of course, I'm one of those that considers
"real-time" to mean "before the next input"... For a payroll system
real-time means the paycheck for last week's time comes out the other
end before the input of the current week's time <G>}

About the only thing Python, as it exists today, is not suitable
for, is writing a operating system -- the language doesn't have native
hardware access and relies upon a pre-existing OS for such services. One
would have to replace the C-language runtime with an OS-independent
rewrite.
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 
C

Cameron Laird

.
.
.
There is not, however, a readily-accessible library targeted
for this sort of work. If I had the opportunity to work in
econometrics now, I'd think seriously about R, Lisp, and
Mathematica, and see what's available among the functional
languages, along with Python.

Smalltalk, too; I'd throw it in the mix. Much serious econometrics
has been done with Fortran, but I have no enthusiasm for pursuing
that direction, mostly because I think too much of the computing
world is going in a different one.

But I'm not you, DeepBlue, or, more specifically, it's unlikely that
our circumstances are at all similar. Is your project at a hobbyist
level? How does hardware constrain you? How big is your team ...?
 
R

Robert Kern

DeepBlue said:
so are you saying that Python is not an appropriate language for doing
econometrics stuff?

Alan Isaac certainly thinks it is appropriate and lists many Python resources
for econometrics:

http://www.american.edu/econ/pytrix/pytrix.htm

You may also want to look at QuantLib, which has a Python interface via SWIG.

http://www.quantlib.org

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
B

beliavsky

Cameron said:
Smalltalk, too; I'd throw it in the mix. Much serious econometrics
has been done with Fortran, but I have no enthusiasm for pursuing
that direction, mostly because I think too much of the computing
world is going in a different one.

There are many statistics packages and programming languages used in
econometrics and in general, so most of the computing world is going in
a different
"direction", no matter which package or language you choose.

Enough programmers still use Fortran that major hardware vendors such
as Intel, IBM, and Sun are actively maintaining their Fortran 95
compilers and adding features from Fortran 2003. G95 is free, available
almost everywhere that gcc is, and good enough for production use IMO.

The recent book
http://methcenter.psu.edu/newbooks/fortranbook/thebook.html
Developing Statistical Software in Fortran 95
by David R. Lemmon and Joseph L. Schafer
Spriger (2005)

discusses how to build statistical software components in Fortran that
can be used in statistical packages.

The IMSL and NAG software libraries have extensive statistical
functionality and are available in Fortran, among other languages.

It is important for a programming language used for econometrics to
conveniently handle multidimensional arrays, and here Fortran outshines
C, C++, and Java (NumPy is good, though).

I am a quantitative financial analyst who implements econometrics
algorithms. Data sets are getting bigger -- use of intraday data is now
common -- and the CPU time for many algorithms scales as the N^2 or
N^3, where N is the number of observations. Speed still matters.
 
N

N/A

Oh! I think I should stop wasting time to learn Python to do my
econometric algorithms. >_<
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,213
Latest member
DonnellTol

Latest Threads

Top