Math, asked by baruahmousumi38, 5 hours ago

An input comes with value 1 or 0 with equal probability how can you change the probability of 1 and 0 to 0.25 and 0.75 respectively.Tell the logic that the black box will do on the input to get this new probability?

Answers

Answered by AditiHegde
2

Given

input with value 1 or 0 with equal probability.

To find

Change the probability to 0.25 and 0.75 respectively.

Tell the logic that the black box will do on the input to get this new probability.

Solution

First, accept the probability in variable x

If the value of x is equal to 1,

change the x value to 0.25.

otherwise, if the value of x is equal to 0,

Then change the x value to 0.75.

#SPJ3

Similar questions