+ Reply to Thread
Results 1 to 3 of 3

Thread: Linear regression vs logistic regression

  1. #1
    Points: 874, Level: 15
    Level completed: 74%, Points required for next Level: 26

    Location
    Gothenburg
    Posts
    13
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Linear regression vs logistic regression




    I have a time series dataset. The,

    X (Independent variable) is time and is denoted as 1,2,3,4,5,6..1000.etc Y (Dependent variable ) is a percentage scale as 99%, 98.7%, 96%, 91% ...etc. This is a continuous data set.

    I have 1000 such data points. The first 700 data points used as training set and rest 300 is used for testing.

    I tried to use simple linear regression but when predicting sometimes the prediction is more than 100%. And the case is even worse when I calculated the confidence interval and prediction interval.

    So I tried to use logistic regression as there is a boundary ( from 0% to 100%). But logistic regression can take only binary data. I am confused on how to appropriately convert my existing time series data so that I can try how logistic regression on that.
    Last edited by Mukund; 03-12-2016 at 10:02 AM.

  2. #2
    Super Moderator
    Points: 13,151, Level: 74
    Level completed: 76%, Points required for next Level: 99
    Dragan's Avatar
    Location
    Illinois, US
    Posts
    2,014
    Thanks
    0
    Thanked 223 Times in 192 Posts

    Re: Linear regression vs logistic regression

    The easiest answer is to "censor" your data by converting the percentages (the dependent variable) from 70%-100% to scores of 1. For percentage points less than 70% convert those data points to scores of 0. As such, you could then use binary logistic regression.

  3. #3
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Linear regression vs logistic regression


    If you have time series data its questionable if either linear or logistic regression is ideal. Something like ARDL might be better.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats