1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AURORKA [14]
3 years ago
13

Using the estimated regression model, what median house price is predicted for a tract in the Boston area that does not bound th

e Charles River, has a crime rate of 0.1, and where the average number of rooms per house is 6?
Computers and Technology
1 answer:
stepladder [879]3 years ago
8 0

Answer:

The predicted median house price "medv" is $20,775.

Explanation:

The python code below uses the python's scikit-learn package to program the housing model using multiple factor linear regression.

import pandas as pd

from sklearn.linear_model import LinearRegression

from sklearn.model_selection import train_test_split

df = pd.read_csv('Boston.csv')

df.head(10)

y = df[['medv']]

x = df[['crim', 'chas', 'rm']]

x_train, x_test, y_train, y_test = train_test_split(x, y, train_size=0.75, test_size=0.25, random_state=0)

regr = LinearRegression()

regr.fit(x_train, y_train)

print(regr.coef_)

result = (regr.predict([[0.1,0,6]])).tolist()

print(f"The mean price of house in boston with 6 rooms: {round(result[0][0], 2)}")

You might be interested in
Write an SQL statement that uses all of the SQL built-in functions on the Quantity-OnHand column. Include meaningful column name
Alexxx [7]

Answer:

Query:

select sum(QuantityOnHand) as "Total Quantity",  count(QuantityOnHand) as "Total Quantity column",  avg(QuantityOnHand) as "Average Quantity",  max(QuantityOnHand) as "Maximum Quantity", min(QuantityOnHand) as "Minimum Quantity" from inventory ;

Explanation:

The above SQL query holds all the SQL built-in functions. This type of function calculates the results like mathematics functions. There are 5 functions of these types which are as follows:-

  1. sum function is used to calculate the sum.
  2. count function is used to count the number of rows.
  3. min function is used to find the minimum value.
  4. max function is used to find the maximum value.
  5. avg function is used to find the average of the number.

The above query also holds the as a keyword which is used to display the duplicate column name in the place of the original column name.

8 0
4 years ago
Write a qbasic program to display integer numbers 1 to 100 using the for next loop<br>​
Natasha2012 [34]

Answer:

CLS

FOR i = 1 TO 100

PRINT i

NEXT i

END

3 0
3 years ago
When you're writing for mobile devices, use ________ to present the most important information first and provide successive laye
kogti [31]

Answer:

An inverted pyramid style.

6 0
3 years ago
Is downloading like installing?
Igoryamba
Downloading is another word for installing
8 0
3 years ago
A company is deploying a file-sharing protocol across a network and needs to select a protocol for authenticating clients. Manag
VARVARA [1.3K]

Answer:

The answer is "Option C".

Explanation:

Among all four of the above, the application of Kerberos is securer. The consumer not just to validates the provider but also verifies the product to the clients with secure authentication.  

  • It offers a common interface between windows as well as other operating systems.  
  • The user login Smart Card gives much higher protection as it allows security with two factors, that's why except Option C other choices were wrong.
6 0
3 years ago
Other questions:
  • Answer how do you properly dispose of a large box of assorted computer parts, including hard drives, optical drives, computer ca
    11·1 answer
  • The control programs managing computer hardware and software perform the _________ function to control and prioritize tasks perf
    8·1 answer
  • You are a developer for a company that is planning on using the AWS RDS service. Your Database administrator spins up a new MySQ
    7·1 answer
  • If you're looking to install Gigabit Ethernet, what cabling system would you use?
    9·1 answer
  • Why are we not alowed to have are phones at school?
    5·2 answers
  • Examine the following declarations and definitions for the array-based implementations for the Stack and Queue ADTs. Assume that
    14·1 answer
  • Each object in your database application is shown in the
    12·1 answer
  • What when can you expect technology to be effective?
    12·1 answer
  • Which of the following terms means the computer operating system automatically detects and installs the proper driver for a new
    9·1 answer
  • Your design company needs to create a sample animation for a client very quickly. You already have the basic graphics, and the c
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!