Statistics: Statistics for Beginners in Data Science: Theory and Applications of Essential Statistics Concepts using Python by Publishing AI

Statistics: Statistics for Beginners in Data Science: Theory and Applications of Essential Statistics Concepts using Python by Publishing AI

Author:Publishing, AI [Publishing, AI]
Language: eng
Format: azw3, mobi
Publisher: AI Publishing LLC
Published: 2020-06-20T16:00:00+00:00


Then, we use the same price and area variables that we discssed before in addition to a thrid variable representing the area of the garage.

price = [100,110,120,140,135,141,158,160,180,200,210]

meters_squared = [100,120,122,125,130,140,160,180,200,220,250]

garage_squared = [10,30,22,25,30,40,60,80,90,120,150]

Finally, we use the same function to plot the 3D graph but with an addition of defining the axis as 3D.

fig = pyplot.figure()

ax = Axes3D(fig)

ax.scatter(meters_squared, price, garage_squared)

ax.set_xlabel(‘meters squared’)

ax.set_ylabel(‘Price’)

ax.set_zlabel(‘garage squared’)

pyplot.show()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.