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
Novay_Z [31]
3 years ago
13

How many times can a simulation be repeated?

Computers and Technology
1 answer:
Vinvika [58]3 years ago
5 0

Answer:

Explanation:

A general idea is that you should repeat the simulation until the results converge. An easy but illustrative example of this is that we want to see if the R function rbinom is accurate in simulating a coin toss with a given probability. We will simulate one coin toss 10000 times, and plot the percentage of heads against the number of coin tosses:

set.seed(1)

n <- 10000

result <- NULL

percent <- NULL

for (i in 1:n) {

 result[i] <- rbinom(1,1,0.5)

 percent[i] <- sum(result)/i

}

plot(seq(1:10000),percent, type="l")

abline(0.5, 0, lty=2)

You might be interested in
What is the process called if you are erasing data on your hard drive from a MAC
exis [7]
If the requirement is to erase all the data from the hard disk drive on the Mac, then it's best to use a tool known as the Disk Utility. This will delete all the files and volumes on the hard drive. The Disk Utility offers four options:
1. Don't erase data2, Zero out Data3. 7-Pass Erase4. 35-Pass Erase
On the other hand, if the requirement is to delete individual files, then the best thing to do is to highlight the file you want to delete, right-click on it and "Move to trash".
4 0
3 years ago
The following method is intended to return true if and only if the parameter val is a multiple of 4 but is not a multiple of 100
Tresset [83]

Answer:

.isLeapYear (1900) will return an incorrect response

Explanation:

Given

The above method

Required

Which method call will give an incorrect response

(a) will return an incorrect response because 1900 is not a leap year.

When a year is divisible by 4, there are further checks to do before such year can be confirmed to be a leap year or not.

Since the method only checks for divisibility of 4, then it will return an incorrect response for years (e.g. 1900) that will pass the first check but will eventually fail further checks.

<em>Hence, (a) answers the question;</em>

5 0
3 years ago
An exact-match query is:
Greeley [361]

Answer:

C. Where a record is returned if its unique identifier matches the search value

Explanation:

Exact match is a Google keyword match type that allows you show your adverts when searcher type the exact word or phrase you are bidding on. An exact match query will always return records that matches what is being searched on.

5 0
3 years ago
Which tabs are expandable and collapsible
NeTakaya

Answer:

quick access toolbar, page layout, status bar

Explanation:

7 0
3 years ago
Seven basic internal components found in a computer tower
Yuliya22 [10]
Power supply unit, central processing unit (CPU), hard disk drive (HDD), RAM modules, motherboard, video card, sound card etc.
4 0
3 years ago
Other questions:
  • When used as parameters, _________ variables allow a function to access the parameter’s
    10·1 answer
  • In your opinion, what is the best practice for organizing files within your computer?
    15·2 answers
  • Interoperability means
    8·1 answer
  • geoffrey is on location for a long shoot. he is worried that the battery power in his camera will not last. which source can he
    5·1 answer
  • Please help I’ll give you 10 points
    8·2 answers
  • Which is the biggest known issue specific to satellite Internet connections?
    13·2 answers
  • What two tools can be used to disable a service and to give a list of all currently running services, respectively?
    7·1 answer
  • What type of malicious software tries to gather information about you without your consent?
    7·1 answer
  • Websites not only give us information, but they also inspire designers in their layouts, illustrations, images, typefaces, and c
    6·1 answer
  • What is a banner grab?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!