The Method of Free Hand Curve (2020)

The secular trend is measured by the method of the free hand curve in the following steps:

  • Take the time periods along the $x$-axis by taking appropriate scaling
  • Plot the points for observed values of the $Y$ variable as the dependent variable against the given time periods
  • Join these plotted points by line segments to get a historigram
  • Draw a free-hand smooth curve (or a straight line) through the histogram

In this method we draw the given times series data on graph paper, then we draw a free-hand trend line through the plotted graph according to the trend of the graph. Then we read trend values from this free-hand trend line.

It is generally preferred to use a curve instead of a straight line to show the secular trend.

Merits (Free Hand Curve)

  • The free-hand curve method is simple, easy, and quick for measuring secular trends.
  • A well-fitted trend line (or curve) approximates the trend closely based on a mathematical model.

Demerits (Free Hand Curve)

  • It is a rough and crude method.
  • It is greatly affected by personal bias as different persons may fit different trends to the same data.
    The estimates are not reliable due to personal bias.

Question: The following time series shows the number of road accidents in Punjab from 1972 to 1978.

Year1972197319741975197619771978
No. of Accidents2493263826993038374540794688
  • Obtain the historigram showing the number of road accidents and a free-hand trend line by drawing a straight line
  • Find the trend values for this time series

Solution:

Method of Free Hand Curve
YearValueTotalMeanTrend value
19722493  2200
19732638  2550
19742699  2950
1975303823338033403340
19763745  3650
19774079  4050
19784688  4499

The method of free hand curve is useful for:

  1. Exploratory Data Analysis (EDA): As a preliminary step free hand curve method helps us to understand the basic characteristics of the data and identify potential relationships between variables.
  2. Visual Communication: It also helps to present trends in the data in a clear and easily understandable way for non-statistical audiences.
  3. Limited Data: When you have a relatively small dataset, a free hand curve might be sufficient to get a basic idea of the central tendency.

By understanding the method of free hand curves and its limitations, one can use it as a valuable tool for initial data exploration and visualization alongside other statistical techniques for a more robust analysis.

MCQs Intermediate Mathematics Part-I Quadratic Equations

Heteroscedasticity Residual Plot (2020)

The post is about Heteroscedasticity Residual Plot.

Heteroscedasticity and Heteroscedasticity Residual Plot

One of the assumptions of the classical linear regression model is that there is no heteroscedasticity (error terms have constant error terms) meaning that ordinary least square (OLS) estimators are (BLUE, best linear unbiased estimator) and their variances are the lowest of all other unbiased estimators (Gauss Markov Theorem).

If the assumption of constant variance does not hold then this means that the Gauss Markov Theorem does not apply. For heteroscedastic data, regression analysis provides an unbiased estimate of the relationship between the predictors and the outcome variables.

As we have discussed heteroscedasticity occurs when the error variance has non-constant variance.  In this case, we can think of the disturbance for each observation as being drawn from a different distribution with a different variance.  Stated equivalently, the variance of the observed value of the dependent variable around the regression line is non-constant. 

We can think of each observed value of the dependent variable as being drawn from a different conditional probability distribution with a different conditional variance. A general linear regression model with the assumption of heteroscedasticity can be expressed as follows

\begin{align*}
y_i & = \beta_0 + \beta_1 X_{i1} + \beta_2 X_{i2} + \cdots + \beta_p X_ip + \varepsilon_i\\
Var(\varepsilon_i)&=E(\varepsilon_i^2)\\
&=\sigma_i^2; \cdots i=1,2,\cdots, n
\end{align*}

Note that we have a $i$ subscript attached to sigma squared.  This indicates that the disturbance for each of the $ n$ units is drawn from a probability distribution that has a different variance.

If the error term has non-constant variance, but all other assumptions of the classical linear regression model are satisfied, then the consequences of using the OLS estimator to obtain estimates of the population parameters are:

  • The OLS estimator is still unbiased
  • The OLS estimator is inefficient; that is, it is not BLUE
  • The estimated variances and covariances of the OLS estimates are biased and inconsistent
  • Hypothesis tests are not valid

Detection of Heteroscedasticity Residual Plot

The residual for the $i$th observation, $\hat{\varepsilon_i}$, is an unbiased estimate of the unknown and unobservable error for that observation, $\hat{\varepsilon_i}$. Thus the squared residuals, $\hat{\varepsilon_i^2} $, can be used as an estimate of the unknown and unobservable error variance,  $\sigma_i^2=E(\hat{\varepsilon_i})$. 

One can calculate the squared residuals and then plot them against an explanatory variable that you believe might be related to the error variance.  If you believe that the error variance may be related to more than one of the explanatory variables, you can plot the squared residuals against each one of these variables.  Alternatively, you could plot the squared residuals against the fitted value of the dependent variable obtained from the OLS estimates.  Most statistical programs (software) have a command to do these residual plots.  It must be emphasized that this is not a formal test for heteroscedasticity.  It would only suggest whether heteroscedasticity may exist.

Below there are residual plots showing the three typical patterns. The first plot shows a random pattern that indicates a good fit for a linear model. The other two plot patterns of residual plots are non-random (U-shaped and inverted U), suggesting a better fit for a non-linear model, than a linear regression model.

Heteroscedasticity Regression Residual Plot 3
Heteroscedasticity Residual Plot 1
Heteroscedasticity Residual Plot 1
Heteroscedasticity Residual Residual Plot 2
Heteroscedasticity Residual Plot 2
Heteroscedasticity Residual Plot 3

Learn R Language from R Frequently Asked Questions

The Secular Trend Example and Uses (2020)

For the estimation of the secular trend of a time series, the most commonly used method is to fit a straight line $\hat{y} = a+bx$, an exponential curve $\hat{y}=ab^x$, and a second-degree parabola $\hat{y}=a +bx+ cx^2$, etc, where $y$ is the value of a time series variable, $x$ representing the time and all others are constants (the intercept $a$, and the slope $b$). The method of least squares is a widely used method to determine the values of the constants appearing in such an equation.

The Secular Trend is used

  • For prediction (or projection) into the future
  • The detrending process (removal of trend) in a time series for studying other non-trend fluctuations.
  • It is used for historical description

The secular trend can be represented either by a straight line or by some type of smooth curve. It is measured by the following methods:

Least Squares Method (secular trend)

The secular trend may be used in determining how a time series has grown in the past or in making a forecast. The trend line is used to adjust a series to eliminate the effect of the secular trend to isolate non-trend fluctuations.

Note that

  • These trends can be positive or negative. For example, the advancement of technology offers new opportunities but also raises concerns about job displacement and privacy.
  • These trends can be interrelated. For instance, urbanization might be fueled by technological advancements that allow people to work remotely.
  • Identifying secular trends can be challenging, as they unfold over a long period. However, by analyzing historical data, monitoring current developments, and considering expert opinions, one can gain valuable insights into the long-term direction of change.

By understanding and utilizing secular trends, individuals, businesses, and policymakers can make informed decisions, prepare for future challenges, and capitalize on emerging opportunities in a constantly evolving world.

Time Series Data Analysis

R Programming Language