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
The base figure in a mandala design is a nine-pointed star. Find the measure of each arc of the circle circumscribed about the s
Murrr4er [49]
We need a picture for that lol for taht
3 0
3 years ago
If a central intercepts an arc of 6.3 cm. in a circle whose
katrin2010 [14]
It’s 5.4m

Yeah hellooooo
6 0
3 years ago
Anyone wanna r p on pad let im bor ed
Margarita [4]

Answer:

no on no no no no no

Step-by-step explanation:

no

7 0
3 years ago
The ratio of the length to the width of
tekilochka [14]
What are you trying to find out the length of
8 0
3 years ago
I need help on determining the firs expression to evaluate 5+9+10+16÷4
Artyom0805 [142]
5+9=14+10=24+16=40/4= 10
7 0
3 years ago
Read 2 more answers
Other questions:
  • Petra throws a ball up with an initial vertical velocity of 35 ft/s from a platform that is at ground level.How long will the ba
    7·2 answers
  • Clare has 150$ in her bank account. She buys a bike for 200$. What is Clares account balance now?
    15·2 answers
  • In math we use blank to show repeated addition and we use black to show repeated multiplication
    5·1 answer
  • What is the percent of 2wrong out of 5?
    12·1 answer
  • I'm given 10=log(x) and I'm supposed to find the x-intercept.
    10·1 answer
  • STRUCTURE Write the ratio of the side lengths of the two cubes described in simplest form. a. The volumes of the two cubes are 2
    5·1 answer
  • 5765865876+5737555586=
    5·1 answer
  • Get each equation into slope-intercept form 3y + 2 = 6x + 8
    10·1 answer
  • Help Me! ASAP! Find the value of c using the distributive property. Write your answers in the blanks.​
    14·1 answer
  • Find the solution by graphing the equations pls help
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!