input: Write a function to design a Python program to perform linear regression for predicting the numbers in a given dataset. 
  
  assert linear_regression([1,2,3,4,5], [3,5,7,9,13])==15.0
output: def linear_regression(x, y):
      n = len(x)
      sum_x = sum(x)
      sum_y = sum(y)
      sum_xy = sum(xi * yi for xi, yi in zip(x, y))
      sum_x_squared = sum(xi ** 2 for xi in x)
      
      m = (n * sum_xy - sum_x * sum_y) / (n * sum_x_squared - sum_x ** 2)
      b = (sum_y - m * sum_x) / n
      
      return m * (x[-1] + 1) + b