COMPSCI C8 Chapter 8: Computational & Inferential Thinking: Randomness

41 views3 pages
9 Mar 2017
School
Professor

Document Summary

Are differences between treatment and control groups due to the treatment, or the random assignment? np. random. choice(array_name[, number_of_items_to_return]) selects a specified number of items at random from an array. Have only two possible values: true or false. Strings can be compared, and their order is alphabetical. Shorter strings go before longer strings that begin with the shorter string. If it is false, the body is skipped. elif clause means else if", can be used many times else clause, optional. The call np. append(array_name, value) returns a new array that is array_name augmented with the additional value . probabilities : numbers between 0 and 1 that represent relative frequencies in this course. The more conditions there are to be satisfied, the less likely it is that all of them will be satisfied. Two main forms of sampling in this course: random sampling with replacement, the default mechanism of np. random. choice.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents