Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
suyashi29
GitHub Repository: suyashi29/python-su
Path: blob/master/Lab1 Key Python Lib.ipynb
3064 views
Kernel: Python 3

Q1- ## Analyze given data set using Key Python Libraries (Company Details)

  • Check data shape

  • Describe data

  • Check for null values and drop null values or replace it

  • Drop colums that you find unnecessary

  • What is revenue distribution for Bekins in 2005

  • What is the growth% for Data/Technology in 2006

  • What is the Revenue distribution for Education in 2005

  • What is number of companies in Each industry

  • Draw a correlation plot to check on feature realtionship.

Q2 Simple Linear Regression

###Lets assume that the two variables are linearly related.

Find a linear function that predicts the response value(y) as accurately as possible as a function of the feature or independent variable(x). x = [9, 10, 11, 12, 10, 9, 9, 10, 12, 11] y = [10, 11, 14, 13, 15, 11, 12, 11, 13, 15]

x as feature vector, i.e x = [x_1, x_2, …., x_n],

y as response vector, i.e y = [y_1, y_2, …., y_n]

for n observations (in above example, n=10).