# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""

import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt

print("başladı*************************")
data=pd.read_csv("linear.csv")
#print(data)

x=data["metrekare"]
y=data["fiyat"]

print(x)
print(y)

plt.scatter(x,y)

m,b=np.polyfit(x,y,1)

a=np.arange(150)
plt.scatter(x,y)
plt.plot(m*a+b)
z=int(input("Kaç metre kare"))
tahmin = m*z+b
print(tahmin,"Tahminizmiz" )

plt.scatter(z,tahmin,c="red",marker=">")

plt.show()
print("y=",m,"x+",b)
c270ec936c157828e25fcdfff64fe29f3514be37
<mask token>

<mask token>
print('başladı*************************')
<mask token>
print(x)
print(y)
plt.scatter(x, y)
<mask token>
plt.scatter(x, y)
plt.plot(m * a + b)
<mask token>
print(tahmin, 'Tahminizmiz')
plt.scatter(z, tahmin, c='red', marker='>')
plt.show()
print('y=', m, 'x+', b)

<mask token>
print('başladı*************************')
data = pd.read_csv('linear.csv')
x = data['metrekare']
y = data['fiyat']
print(x)
print(y)
plt.scatter(x, y)
m, b = np.polyfit(x, y, 1)
a = np.arange(150)
plt.scatter(x, y)
plt.plot(m * a + b)
z = int(input('Kaç metre kare'))
tahmin = m * z + b
print(tahmin, 'Tahminizmiz')
plt.scatter(z, tahmin, c='red', marker='>')
plt.show()
print('y=', m, 'x+', b)

<mask token>
import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt
print('başladı*************************')
data = pd.read_csv('linear.csv')
x = data['metrekare']
y = data['fiyat']
print(x)
print(y)
plt.scatter(x, y)
m, b = np.polyfit(x, y, 1)
a = np.arange(150)
plt.scatter(x, y)
plt.plot(m * a + b)
z = int(input('Kaç metre kare'))
tahmin = m * z + b
print(tahmin, 'Tahminizmiz')
plt.scatter(z, tahmin, c='red', marker='>')
plt.show()
print('y=', m, 'x+', b)

# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""

import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
import matplotlib.pyplot as plt

print("başladı*************************")
data=pd.read_csv("linear.csv")
#print(data)

x=data["metrekare"]
y=data["fiyat"]

print(x)
print(y)

plt.scatter(x,y)

m,b=np.polyfit(x,y,1)

a=np.arange(150)
plt.scatter(x,y)
plt.plot(m*a+b)
z=int(input("Kaç metre kare"))
tahmin = m*z+b
print(tahmin,"Tahminizmiz" )

plt.scatter(z,tahmin,c="red",marker=">")

plt.show()
print("y=",m,"x+",b)