Wednesday, 4 March 2020

Take log of your data for regression Analysis


Logarithmic transformations are very popular in econometrics, for several reasons. First, many economic time series exhibits a strong upward and downward trend. When this is caused by some underlying growth process, a plot of the series will reveal an exponential curve. In such cases, the exponential component dominates other features of the series like cyclical and irregular components of time series, and may thus obscure the more interesting relationship between this variable and another growing variable. Taking the natural logarithm of such a series effectively linearizes the exponential trend.
For example, one may want to work with the log of macroeconomic variables, which will appear on a graph roughly a straight line, rather than the exponential curve exhibited by the raw series.
Second, logs •nay also be used to linearize a model that is non-linear in the parameters.
All examples are the Cobb-Douglas production function:

Y = ALαKβeµ 

Taking logs of both sides we obtain:

ln(Y) = ln(A) +a ln(K) + b ln(L) + u

so that the transformed model becomes:

y = a + ak + bl + u

Which is linear in the parameters and hence can easily be estimated using ordinary least
squares (OLS) regression.
The third advantage of using logarithmic transformations are that it allows the regression
Coefficients to be interpreted as elasticities since for small changes in any variable x, change in log x relative change in x itself. (This follows from elementary
differentiation: d(ln x)/dx = 1/x and thus d(ln x) = dx/x.)
In the log-linear production function above measures the change in In( Y)
Associated with a small change in ln (K), i.e. it represents the elasticity of output with
respect to capital.

Monday, 2 March 2020

Graphs on EViews

In EViews we can plot graphs in a variety of ways.
 >>>> Double Click on the variable or Variables of your choice from your EViews window and a new window will appear which shows you your data.
    >>>>Click on View
       >>>>Select Graph
         >>>> Now Select Graph Type (i.e line Symbol, Bar,......, Boxplot)
           >>>> Select Detail (if any)
             >>>> Click on "OK"


Sunday, 1 March 2020

Data Type for Econometric Analysis

Cross Sectional-Data is mostly used to compare the data difference between the subject matter of data. like from the population one can take a sample and measure gender, eye color, and hight by the given point of time.

Cross Section Diagram
Time Series Data Consist of data set belongs to one or more than one variable upon the bases of time.
Time Series Diagram


Panel Data is a combination of Cross-Sectional and Time Series data.
Panel Data Diagram

Saturday, 29 February 2020

Diagrammatic Presentation of Stage of Applied Econometrics

Definition of Econometrics

Econometrics is the most advanced form of Applied Statistics, in which we analyze/measure the Quantitative Statistical data to find a result for reaching appropriate conclusions of data. 

Econometrics is basically a combination of two words. "Econo" which is taken fro Economics while "Metrics" is the Greek word mean as Measurement. so basically and essentially Econometrics includes all those Statistical and Mathematical techniques that are used in the analysis of Economic data.

Thursday, 27 February 2020

Descriptive Statistics in EViews and its interpretation

Hello Friends,
In today's lecture,  we will go and find Descriptive statistics by e-views. now a question arises why would we require descriptive statistics.here are a few reasons.

  1. It enables us to present the data in a more meaningful way, which allows a simpler interpretation of the data
  2. The main purpose of descriptive statistics is to provide a brief summary of the samples and the measures done on a particular study.
now open e-views and import data from the excel sheet. so finally you would be here.
then open the complete data table by pressing enter key (after selecting variables) 
now select Views from the menu bar
from view we have to select the "Descriptive Stats" option and then "Common Sample" and here we have the result window and it would be like that.
-------------------------------------------------------------------------------------------------------------------------- Interpretation of Descriptive Stats
Suppose ve have Results like that. then 
Description
GDP
Inflation
Population
Price
Mean
 4.005952
 5.410366
 3358333.
 176.2366
Median
 4.232143
 5.805868
 3358333.
 176.2366
Maximum
 5.200000
 8.440000
 5503333.
 340.6911
Minimum
 1.800000
 1.200000
 1200000.
 10.00000
Stad. Deviation
 0.829710
 2.070294
 1285960.
 98.75186
Variance
0.672400
4.286117
----
9751.5625
Skewness
-1.007070
-0.441171
-9.12E-05
-0.012148
Kurtosis
 3.144214
 2.104262
 1.798769
 1.818367

here we have mean of GDP, Inflation, Population, and Prices which explains the average of the data. Whereas Median explains the central value of the data. Maximum and minimum value expresses the range 0f data. Now moving towards the standard deviation we got how much data deviate from its central point. In our data, we can see that skewness is normal and positive for every four variables. When we talked about Kurtosis  it must be below 3. GDP has 3.14>3 so we can say that GDP is positively skewed with slight leptokurtic shape. Reaming variables (Inflation, Population, and Price) are less than 3 Kurtosis as well as positively skewed and have Masokartic shape.


Wednesday, 26 February 2020

Ordinary Least Square (OLS) in EViews and its Interpretation

In the Regression analysis of Econometric first of all, we should have to calculate OLS.
Because OLS is most essential for the following reasons.
  • it is one of the simplest methods to measure Regression.
  • widely used to estimate the parameter of a linear regression model.
  • it minimizes the sum of the squared errors.so we can say that is one that has minimum variance.
  • it is used to model the relationship between a continuous response variable y and an explanatory variable x.
  • it is an unbiased Estimator.
  • it is concerned with the squares of the errors.
OLS is called that it has a property of BLUE (Best, Linear, Unbiased, Estimator).

Now we are moving towards the solution and finding of OLS by E-views.

  1. Import the data from the Excel sheet and then by clicking the right-hand button from the mouse you can see the "paste" command just click on it.
      2. Select the Dependent (DV) and independent variables(IVs).
       3. By Putting Cursor on Selected Variables, Right-click from muse then selects "open" then "Group" after that click on it. Now your new window will be like that,
       4. Now click in "Quick" from the Manue Bar.
      5.  Now Select "Estimate Equation" from these options. then the new window will be open and would be like as follows.
      6. Put your DV and IVs here with constant (c) in the equational form. the demo will be as follows. After putting variables click on OK.

    7. After click results of OLS will be displayed on your screen. Like as
--------------------------------------------------------------------------------------------------------------------------
Now we are going to Interpret the Result completely.
Dependent Variable: GDP
Method: Least Squares
Date: 02/13/20   Time: 22:48
Sample: 1980 2019
Included observations: 40










Variable
Coefficient
Std. Error
t-Statistic
Prob.  

C
3.633130
1.449609
2.506284
0.0169
INFLATION
-0.199112
0.085762
-2.321683
0.0260
PRICES
0.010102
0.017605
0.573820
0.5697
POPULATION
-9.83E-08
1.37E-06
-0.071797
0.9432










R-squared
0.491027
    Mean dependent var
4.005952
Adjusted R-squared
0.448612
    S.D. dependent var
0.829710
S.E. of regression
0.616105
    Akaike info criterion
1.963840
Sum squared resid
13.66507
    Schwarz criterion
2.132728
Log likelihood
-35.27681
    Hannan-Quinn criter.
2.024905
F-statistic
11.57688
    Durbin-Watson stat
2.041251
Prob(F-statistic)
0.000018





Above mentioned randomly values are taken from the web. We have 40 observations. from the year 1980 to 2019. We have the following results,
Ho: there is no association between GDP and Inflation, Prices and Population.
Ha: there is some no association between GDP and Inflation, Prices and Population.
Results.
When P-value is less than 5% then we accept the alternative hypothesis. Now we can observe that GDP has negative signification relationship with inflation and negative in-significant relationship with the population. Meanwhile have positive in-signification relation with the price.  R-Square clarifies that our independent variables are explaining 49% variation of our dependent variable. Our F-static is higher than our Prob (F-static) which explains that our independent variables (price, inflation, and population) are jointly affecting our dependent variable (GDP). Hannan criter and Durbin Watson stat is more than 2 which indicates us there is no problem of auto-correlation prevailing in our model.  Average (mean) of the dependent variable is 4.00s whereas mean can be deviated from its central point by 0.82.  The standard error of regression explains the deference of the actual and estimated value of the dependent and independent variables. So here S.E of regression explains the difference between actual and estimated value has 0.61 differences.