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
inysia [295]
3 years ago
5

A complete simulation of an event has already been written and run for you. The simulation is of spinning two wheels each with a

ll of the numbers 1 through 16. Each spin in stored as a row (observation) in the DataFrame df under the columns wheel1 and wheel2. Using the simulation results in df, find an estimate of the probability that you get at least one value less than 6 and the second value is greater than 6.
Mathematics
1 answer:
miskamm [114]3 years ago
3 0

Using the pandas library in python for creating dataframes, the required expression to calculate the required probability is \frac{len(reqout)}{len(df)}

  • df = dataframe which holds the entire data

  • wheel1 = column for the values of wheel 1

  • wheel2 = columns for the values of wheel 2

<u>Subsetting columns using pandas</u> :

Rows where wheel 1 is less than 6 ;

  • (df['wheel1'] < 6)

Rows where wheel 2 is greater than 6 ;

  • (df['wheel2'] > 6)

<u>Combining the two conditions</u> :

(Wheel < 6 and wheel 2 > 6)

  • ((df['wheel1'] < 6) & (df['wheel2'] > 6))

<u>Subsetting the condition into the entire dataframe ; such that we have the required outcome </u>

  • reqout = df[((df['wheel1'] < 6) & (df['wheel2'] > 6))]

<u>Recall</u> :

  • Probability = \frac{required\:outcome}{Total\:possible\:outcomes}

To obtain the number of each outcomes, we use the len function, which gives the <em>length of observations in a dataframe. </em>

P(at_least_6_or_greater_than_6) = \frac{len(req_out)}{len(df)}

Therefore, expression for the estimate of the probability is \frac{len(reqout)}{len(df)}

Learn more :brainly.com/question/18405415

You might be interested in
Sub to astronaut gaming i have 27 subs if you need help finding i will help
BaLLatris [955]

Answer:

i will join

Step-by-step explanation:

8 0
3 years ago
The table below shows the Emfuleni Local Municipality domestic electricity tariffs during a low
Otrada [13]

Answer:

A

Step-by-step explanation:

4 0
3 years ago
How do I solve this​
Gemiola [76]

Answer:

Step-by-step explanation:

Simplifying

f(x) = 800(0.85) * x

Multiply f * x

fx = 800(0.85) * x

Multiply 800 * 0.85

fx = 680x

Solving

fx = 680x

Solving for variable 'f'.

Move all terms containing f to the left, all other terms to the right.

Divide each side by 'x'.

f = 680

Simplifying

f = 680

3 0
3 years ago
Please help mee with this thing
jasenka [17]
It’s c) but my answer has to me 20 things long so yah
5 0
3 years ago
Read 2 more answers
The width of a rectangle varies directly as it’s length. What is the perimeter of a rectangle that is 15 inches long?
hichkok12 [17]
15 x 2 + 5 x 2 = 40in
3 0
4 years ago
Other questions:
  • A bookstore rents books to students at $2 per book. The cost per hour of running the bookstore is $300. The numbers of books and
    8·1 answer
  • Use the survey results to find the probability that a respondent has a​ pet, given that the respondent has had a pet.
    13·1 answer
  • What's one whole subtracted by 3/8
    9·2 answers
  • Find the value of y= 3x - 2 for x=-2
    7·2 answers
  • I need help on 16. 17. And 18. Please
    6·2 answers
  • The water level in Lake Siscal dropped 6 3/4 inches in the fall. In the winter, the level rose 4 2/3 inches. Which expression sh
    6·2 answers
  • Please help me answer question 12
    14·1 answer
  • PLEASE HELP, I NEED THIS OR I WILL FAIL MY CLASS PLZZZZ.
    14·1 answer
  • Find the mean, median, and mode of the set of data. 10, 11, 4, 7, 12, 11, 16, 6, 9, 15
    9·2 answers
  • Tom has a 15 pounds bag of cat food. If he feeds his cat 1/4 pound
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!