Skip to content

Instantly share code, notes, and snippets.

View fmnobar's full-sized avatar

Farzad Mahmoodinobar fmnobar

View GitHub Profile
@fmnobar
fmnobar / sampling.ipynb
Created October 12, 2022 23:21
Central Limit Theorem, Confidence Level and Interval, Sample Size and Sampling
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fmnobar
fmnobar / kc_house_data.csv
Created October 16, 2022 03:30
Regression
We can't make this file beautiful and searchable because it's too large.
id,date,price,bedrooms,bathrooms,sqft_living,sqft_lot,floors,waterfront,view,condition,grade,sqft_above,sqft_basement,yr_built,yr_renovated,zipcode,lat,long,sqft_living15,sqft_lot15
"7129300520","20141013T000000",221900,3,1,1180,5650,"1",0,0,3,7,1180,0,1955,0,"98178",47.5112,-122.257,1340,5650
"6414100192","20141209T000000",538000,3,2.25,2570,7242,"2",0,0,3,7,2170,400,1951,1991,"98125",47.721,-122.319,1690,7639
"5631500400","20150225T000000",180000,2,1,770,10000,"1",0,0,3,6,770,0,1933,0,"98028",47.7379,-122.233,2720,8062
"2487200875","20141209T000000",604000,4,3,1960,5000,"1",0,0,5,7,1050,910,1965,0,"98136",47.5208,-122.393,1360,5000
"1954400510","20150218T000000",510000,3,2,1680,8080,"1",0,0,3,8,1680,0,1987,0,"98074",47.6168,-122.045,1800,7503
"7237550310","20140512T000000",1.225e+006,4,4.5,5420,101930,"1",0,0,3,11,3890,1530,2001,0,"98053",47.6561,-122.005,4760,101930
"1321400060","20140627T000000",257500,3,2.25,1715,6819,"2",0,0,3,7,1715,0,1995,0,"98003",47.3097,-122.327,2238,6819
"2008000270","20150115T000
@fmnobar
fmnobar / Regression.ipynb
Created October 17, 2022 02:32
OLS Regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fmnobar
fmnobar / Regression-Classification.ipynb
Last active October 18, 2022 01:18
Regression vs. Classification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fmnobar
fmnobar / heart.csv
Created October 21, 2022 14:27
Heart
age sex cp trestbps chol fbs restecg thalach exang oldpeak slope ca thal target
63 1 3 145 233 1 0 150 0 2.3 0 0 1 1
37 1 2 130 250 0 1 187 0 3.5 0 0 2 1
41 0 1 130 204 0 0 172 0 1.4 2 0 2 1
56 1 1 120 236 0 1 178 0 0.8 2 0 2 1
57 0 0 120 354 0 1 163 1 0.6 2 0 2 1
57 1 0 140 192 0 1 148 0 0.4 1 0 1 1
56 0 1 140 294 0 0 153 0 1.3 1 0 2 1
44 1 1 120 263 0 1 173 0 0 2 0 3 1
52 1 2 172 199 1 1 162 0 0.5 2 0 3 1
@fmnobar
fmnobar / logisticRegression.ipynb
Created October 27, 2022 02:16
Logistic Regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fmnobar
fmnobar / DelayedFlights_JFK.csv
Created October 27, 2022 15:16
DelayedFlights_JFK
We can't make this file beautiful and searchable because it's too large.
,Year,Month,DayofMonth,DayOfWeek,DepTime,CRSDepTime,ArrTime,CRSArrTime,UniqueCarrier,FlightNum,TailNum,ActualElapsedTime,CRSElapsedTime,AirTime,ArrDelay,DepDelay,Origin,Dest,Distance,TaxiIn,TaxiOut,Cancelled,CancellationCode,Diverted,CarrierDelay,WeatherDelay,NASDelay,SecurityDelay,LateAircraftDelay
129224,2008,1,1,2,945.0,935,1135.0,1118,YV,2614,N939LR,110.0,103.0,79.0,17.0,10.0,CLT,JFK,541,17.0,14.0,0,N,0,17.0,0.0,0.0,0.0,0.0
129920,2008,1,2,3,1010.0,935,1155.0,1118,YV,2614,N914FJ,105.0,103.0,72.0,37.0,35.0,CLT,JFK,541,4.0,29.0,0,N,0,37.0,0.0,0.0,0.0,0.0
129921,2008,1,2,3,1436.0,1325,1611.0,1516,YV,2622,N905FJ,95.0,111.0,73.0,55.0,71.0,CLT,JFK,541,8.0,14.0,0,N,0,0.0,0.0,55.0,0.0,0.0
130192,2008,1,2,3,1645.0,1559,1905.0,1803,YV,2619,N905FJ,140.0,124.0,91.0,62.0,46.0,JFK,CLT,541,5.0,44.0,0,N,0,0.0,0.0,62.0,0.0,0.0
130193,2008,1,2,3,645.0,620,905.0,822,YV,2629,N914FJ,140.0,122.0,99.0,43.0,25.0,JFK,CLT,541,12.0,29.0,0,N,0,43.0,0.0,0.0,0.0,0.0
130194,2008,1,2,3,1220.0,1205,1425.0,1354,YV,2685,N914FJ,125.0,109.0,
@fmnobar
fmnobar / Classification_KNN_NB_LR.ipynb
Last active December 29, 2022 22:20
Classification_KNN-NB-LR
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
type fixed acidity volatile acidity citric acid residual sugar chlorides free sulfur dioxide total sulfur dioxide density pH sulphates alcohol quality
white 7 0.27 0.36 20.7 0.045 45 170 1.001 3 0.45 8.8 6
white 6.3 0.3 0.34 1.6 0.049 14 132 0.994 3.3 0.49 9.5 6
white 8.1 0.28 0.4 6.9 0.05 30 97 0.9951 3.26 0.44 10.1 6
white 7.2 0.23 0.32 8.5 0.058 47 186 0.9956 3.19 0.4 9.9 6
white 7.2 0.23 0.32 8.5 0.058 47 186 0.9956 3.19 0.4 9.9 6
white 8.1 0.28 0.4 6.9 0.05 30 97 0.9951 3.26 0.44 10.1 6
white 6.2 0.32 0.16 7 0.045 30 136 0.9949 3.18 0.47 9.6 6
white 7 0.27 0.36 20.7 0.045 45 170 1.001 3 0.45 8.8 6
white 6.3 0.3 0.34 1.6 0.049 14 132 0.994 3.3 0.49 9.5 6
@fmnobar
fmnobar / DecisionTrees.ipynb
Created November 4, 2022 17:11
Decision Trees
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.