input: Write a function to perform linear regression for predicting the numbers in a given dataset. The function should take two lists, X and Y, as input and return the predicted value of Y for a new X value.
  
  def linear_regression(X, Y):
      import numpy as np
      from sklearn.linear_model import LinearRegression
      
      X = np.array(X).reshape(-1, 1)
      Y = np.array(Y)
      
      model = LinearRegression()
      model.fit(X, Y)
      
      return model.predict([[7]])
  
  X = [1, 2, 3, 4, 5]
  Y = [3, 5, 7, 9, 13]
  
  assert linear_regression(X, Y)==[14.33333333]
output: def linear_regression(X, Y):
      import numpy as np
      from sklearn.linear_model import LinearRegression
      
      X = np.array(X).reshape(-1, 1)
      Y = np.array(Y)
      
      model = LinearRegression()
      model.fit(X, Y)
      
      return model.predict([[7]])