Speeding on the I-5. Suppose the distribution of passenger vehicle speeds traveling on the Interstate 5 Freeway (I-5) in California is nearly normal with a mean of 73.8 miles/hour and a standard deviation of 4.96 miles/hour. Round all answers to four decimal places.
What proportion of passenger vehicles travel slower than 64 miles/hour?
What proportion of passenger vehicles travel between 63 and 70 miles/hour?
How fast do the fastest 10% of passenger vehicles travel?
Suppose the speed limit on this stretch of the I-5 is 75 miles/hour. Approximately what proportion of the passenger vehicles travel above the speed limit on this stretch of the I-5?
In: Advanced Math
Suppose the average speeds of passenger trains traveling from Newark, New Jersey, to Philadelphia, Pennsylvania, are normally distributed, with a mean average speed of 88 miles per hour and a standard deviation of 6.4 miles per hour.
(a) What is the probability that a train will average less than 72 miles per hour?
(b) What is the probability that a train will average more than 80 miles per hour?
(c) What is the probability that a train will average between 91 and 99 miles per hour?
(Round the values of z to 2 decimal places. Round your answers to 4 decimal places.)
(a) P(x < 72)=???
(b) P(x > 80)=???
(c) P(91 ≤ x ≤ 99)=???
In: Statistics and Probability
hello please correct this code
print("The Miles Per Gallon program")
print()
Trips = []
trip = 0
while 1:
print("Do you want to add a trip from a csv file or Enter it manually? 1 for csv 2 for entering it manually")
method = int(input())
if method == 1:
print("Enter the filename")
fileName = input()
try:
with open(fileName, 'r') as myFile1:
reader = csv.reader(myFile1)
Trips = list(reader)
print("Miles Driven Gallons Used \tMPG")
for i in Trips:
for j in i:
print(j, end=" ")
print()
except IOError:
print ("Could not read file:", fileName)
elif method == 2:
while 1:
miles_driven = input("Enter miles driven: ")
try:
val = int(miles_driven)
break
except ValueError:
print("No.. input string is not an Integer. It's a string")
while 1:
gallons_used = input("Enter gallons of gas used: ")
try:
val2 = int(gallons_used)
break
except ValueError:
print("No.. input string is not an Integer. It's a string")
mpg = val / val2
mpg = round(mpg, 2)
Trips.append([])
Trips[trip].append(miles_driven)
Trips[trip].append(gallons_used)
Trips[trip].append(mpg)
print("Miles Driven Gallons Used \tMPG")
for i in Trips:
for j in i:
print(j, end= " ")
print()
trip += 1
choice = int(input("Do you want to add another trip? 1 for yes 0 for no "))
if choice == 1:
continue
elif choice == 0:
break
myFile = open('trips.csv', 'w')
with myFile:
writer = csv.writer(myFile)
writer.writerows(Trips)
with open('trips.csv', newline='') as myFile:
reader = csv.reader(myFile)
for row in reader:
print(row)
print("Elemnts from the csv file printed which means it was stored successfully")
i need result as
EXAMPLE RUN 1: - Bad filename C:\Files.py The Miles Per Gallon
program
Would you like to read trips from a file? y/n: y Enter the csv
filename containing trip data: test Trips not read from file - file
not found: test Would you like to enter trip data? y/n: y Enter
miles driven: 100 Enter gallons of gas used: 10 1. Miles: 100.0
Gallons of Gas: 10.0 Mpg: 10.0
Would you like to continue? y/n: y Enter miles driven: 50 Enter
gallons of gas used: 5 1. Miles: 100.0 Gallons of Gas: 10.0 Mpg:
10.0 2. Miles: 50.0 Gallons of Gas: 5.0 Mpg: 10.0
Would you like to continue? y/n: n
EXAMPLE RUN 2: Good filename and good inputs
C:\y The Miles Per Gallon program
Would you like to read trips from a file? y/n: y Enter the csv
filename containing trip data: trips.csv Trips: 1. Miles: 100.0
Gallons of Gas: 10.0 Mpg: 10.0 2. Miles: 50.0 Gallons of Gas: 5.0
Mpg: 10.0
Would you like to enter trip data? y/n: y Enter miles driven: 75
Enter gallons of gas used: 4 1. Miles: 100.0 Gallons of Gas: 10.0
Mpg: 10.0 2. Miles: 50.0 Gallons of Gas: 5.0 Mpg: 10.0 3. Miles:
75.0 Gallons of Gas: 4.0 Mpg: 18.75
Would you like to continue? y/n: n
c:\\
EXAMPLE RUN 3: Good Filename – bad user inputs
The Miles Per Gallon program
Would you like to read trips from a file? y/n: y Enter the csv
filename containing trip data: trips.csv Trips: 1. Miles: 100.0
Gallons of Gas: 10.0 Mpg: 10.0 2. Miles: 50.0 Gallons of Gas: 5.0
Mpg: 10.0 3. Miles: 75.0 Gallons of Gas: 4.0 Mpg: 18.75
In: Computer Science
A random sample of 36 mid-sized cars tested for fuel consumption gave a mean of 26.4 miles per gallon with a standard deviation of 2.3 miles per gallon. Find a 99% confidence interval for the true population mean miles per gallon. Upload the file with your answer and work.
In: Statistics and Probability
Problem 16-03
Grear Tire Company has produced a new tire with an estimated mean lifetime mileage of 36,500 miles. Management also believes that the standard deviation is 5000 miles and that tire mileage is normally distributed. To promote the new tire, Grear has offered to refund some money if the tire fails to reach 30,000 miles before the tire needs to be replaced. Specifically, for tires with a lifetime below 30,000 miles, Grear will refund a customer $1 per 100 miles short of 30,000.
In: Statistics and Probability
Aircraft companies had very difficult times during the pandemic period. AHL, and OA have created some advantages for their loyal customers, especially for the Istanbul-Ankara flight. AHLprovides 900 points (flight miles) for each flight to its customers flying from Istanbul to Ankara. However, it gives 1000 (flight miles) extra points to more than 3 flights and 1350 (flight miles) to more than 6 flights within three months. While OA gives 1200 points (flight miles) for each flight, it gives 1500 (flight miles) extra points for every 5 flights within three months. While the ticket price of AHL company in Istanbul-ankara is 800 TL, the ticket price of OA is 600 TL.
For a person who wants to make an Istanbul-ankara flight 60 times in the next twelfe months, please create an integer programming model to maximize flight miles.
In: Physics
The average number of miles driven on a full tank of gas in a certain model car before its low-fuel light comes on is 341. Assume this mileage follows the normal distribution with a standard deviation of 39 miles. Must show ALL calculations by use of formulas ONLY, no Excel use.
Complete parts a through d below.
a. What is the probability that, before the low-fuel light comes on, the car will travel less than 369 miles on the next tank of gas?
b. What is the probability that, before the low-fuel light comes on, the car will travel more than 248 miles on the next tank of gas?
c. What is the probability that, before the low-fuel light comes on, the car will travel between 259 and 279 miles on the next tank of gas?
d. What is the probability that, before the low-fuel light comes on, the car will travel exactly 279 miles on the next tank of gas?
In: Statistics and Probability
Problem 16-03
Grear Tire Company has produced a new tire with an estimated mean lifetime mileage of 36,500 miles. Management also believes that the standard deviation is 5000 miles and that tire mileage is normally distributed. To promote the new tire, Grear has offered to refund some money if the tire fails to reach 30,000 miles before the tire needs to be replaced. Specifically, for tires with a lifetime below 30,000 miles, Grear will refund a customer $1 per 100 miles short of 30,000.
In: Advanced Math
A tire manufacturer believes that the tread life of its snow tires can be described by Normal model with a mean of 32,000 miles and a standard deviation of 2500 miles.
a). If you buy a set of these tires, would it be reasonable for you to hope that they'll last 40,000 miles? Explain.
b). Approximately what fraction of these tires can be expected to last less that 30,000 miles?
c). Approximately what fraction of these tires can be expected to last between 30,000 and 35,000 miles?
d). Estimate the IQR for these data.
e). Im planning a marketing strategy, a local tire dealer wants to offer a refund to any customer whose tires fail to last a certain number of miles. However, the dealer does not want to take too big a risk. If the dealer is willing to give refunds to no more than 1 of every 25 customers, for what mileage can he guarantee these tires to last?
In: Statistics and Probability
Problem 16-03
Grear Tire Company has produced a new tire with an estimated mean lifetime mileage of 36,500 miles. Management also believes that the standard deviation is 5000 miles and that tire mileage is normally distributed. To promote the new tire, Grear has offered to refund some money if the tire fails to reach 30,000 miles before the tire needs to be replaced. Specifically, for tires with a lifetime below 30,000 miles, Grear will refund a customer $1 per 100 miles short of 30,000.
In: Statistics and Probability