4.20985 17.1047
4.82755 16.4046
3.17238 12.1246
4.50796 18.0955
6.04241 21.1016
Hello,
how can I run a linear regression graph of the above data?
by plotting, in python 3.7
Thank you!!
python code for above data:
import matplotlib.pyplot as plt
x = [4.20985,4.82755,3.17238,4.50796,6.04241]
y = [17.1047,16.4046,12.1246,18.0955,21.1016]
plt.plot(x,y)
plt.xlabel("x_axis")
plt.ylabel("y_axis")
plt.scatter(x,y)
plt.show()
output:


comment code:
#library for plot graphs
import matplotlib.pyplot as plt
# linear Regression graph by given data(
# x y
# 4.20985 17.1047
# 4.82755 16.4046
# 3.17238 12.1246
# 4.50796 18.0955
# 6.04241 21.1016)
x = [4.20985,4.82755,3.17238,4.50796,6.04241]
y = [17.1047,16.4046,12.1246,18.0955,21.1016]
# graph plot with respect x,y
plt.plot(x,y)
# x and y axis labled
plt.xlabel("x_axis")
plt.ylabel("y_axis")
plt.scatter(x,y)
# graph shows
plt.show()

Note:
# indicates comment for code line
4.20985 17.1047 4.82755 16.4046 3.17238 12.1246 4.50796 18.0955 6.04241 21.1016 Hello, how can I run a...
Hi so I want to run a Python script (in this example it can be something as simple as print hello world) when a button on a Python Flask Server is pressed. In other words when I enter the web server, there will be a button and pressing it will launch the python script on my computer. Thank you
python how can I print "Hello 55!" how can i add the exclamation mark at the end using a comma to add my variable? name = 55 print( "Hello", name )
Hello,
how should the code be if I want the output to be like in the
image?
it is python 3.7
For example: Test Result print numbers(00 print numbers(3) 0 1. 2
Hello! I am struggling on how to make 2 resonance forms for C3H5O-. Can you help me understand? Thank you!
Hello, I have a question about C Program. I have finished the code. And it can debug successfully. However, when I run it for more times, it will suddenly say there is one error which says that can not open the file and give a "Link" word beside. Can you tell me why it will happen to be it and what to do to avoid the problem. Thank you!
Hi May I ask how can I do this: provided a list [1,2,3,4] and return a list as each number added the number before it, for example, the final list should return as [(1+0),(1+2),(1+2+3),(1+2+3+4)] = [1,3,6,10] please do in python 3.7, thank you!!!
hello how are you ? I hope you are doing well can you please help me to understand what is western bolting by writing a summary that describe a situation where you would need this technique and the steps of the procedure or how it works. thank you so much
Hello, i am not sure on how to work this out, can you explain
and show how you get the answer? Cheers
The lecture notes show the top 5 levels of the call graph for a call coins_reqd(30, 11, 10, 25]) with a purely recursive implementation. Here is a similar call graph for a call to coins_reqd(11,[1, 5, 10]) but this time showing all levels except calls with negative values. How many times is the yellow node "5" called? 10
.HELLO, HOW DO I ANSWER IS QUESTION BY CALCULATOR. I WAS TOLD I CAN USE 2ND VARS (2) NORMAL CDF. THE ANSWERS IS 0.9940. PLEASE WRITE THE STEPS FOR ME TO GET THE ANSWER BY CALCULATOR. THANK YOU. In the past, all patrons of a cinema complex have spent an average of $5.00 for popcorn and other snacks, with a standard deviation of $1.80. If a random sample of 32 patrons is taken, what is the probability that the mean...
Hello, I have a lab that we have used bending sense in
our hand joint and we build a voltage decider to record voltage
change as angle of hand joint change as number (4) said : I did
record my values in a table1 below. However, I need help in number
(5). How would I plot these values in Matlab ? can some one help me
plotting what is asked in #5 ? I need help in this Matlab coding...