PSTAT 10 UCSB TEST 2025, Exams of Statistics

PSTAT 10 UCSB TEST 2025.......

Typology: Exams

2024/2025

Available from 04/17/2025

Upstudy
Upstudy 🇺🇸

2.8

(9)

14K documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PSTAT 10 UCSB TEST 2025
> print("PSTAT 10") - ANSWER [1] "PSTAT 10"
>7+5*SQRT(9)-2 - ANSWER 20
example of character vector - ANSWER y<- c("one","two","three")
command that extracts the 4th element of x - ANSWER x[4]
barplot(H, xlab, ylab, main, names.arg, col, border)
Then names. arg is. - ANSWER a vector of the names that will appear under
each bar
summary(x) - ANSWER prints the output of min, 1st Qu.,Median, Mean, 3rd
Qu., Max.
given the vector x<-3:7, the length of x is:
- ANSWER 5
rbind(x,y) - ANSWER [,1] [,2] [,3]
x 1 2 3
y 10 11 12
which of the following is NOT a predefined constant in R? - ANSWER
MONTH.NAME
a tibble:
- ANSWER displays the first 10 rows and all columns on the screen
df1<- data.frame(x=c(1,2,3), y=c(5,NA,8))
na.omit(df1) -
pf3
pf4

Partial preview of the text

Download PSTAT 10 UCSB TEST 2025 and more Exams Statistics in PDF only on Docsity!

PSTAT 10 UCSB TEST 2025

print("PSTAT 10") - ANSWER [1] "PSTAT 10" 7+5*SQRT(9)- 2 - ANSWER 20 example of character vector - ANSWER y<- c("one","two","three") command that extracts the 4th element of x - ANSWER x[4] barplot(H, xlab, ylab, main, names.arg, col, border) Then names. arg is. - ANSWER a vector of the names that will appear under each bar summary(x) - ANSWER prints the output of min, 1st Qu.,Median, Mean, 3rd Qu., Max. given the vector x<-3:7, the length of x is:

  • ANSWER 5 rbind(x,y) - ANSWER [,1] [,2] [,3] x 1 2 3 y 10 11 12 which of the following is NOT a predefined constant in R? - ANSWER MONTH.NAME a tibble:
  • ANSWER displays the first 10 rows and all columns on the screen df1<- data.frame(x=c(1,2,3), y=c(5,NA,8)) na.omit(df1) -

ANSWER x y 1 1 5 3 3 8 ten times a fair coin is flipped. The chance of getting at most 4 heads can be determined by entering which of the following lines of code? ANSWER pbinom(4, size=10, prob=1/2) which of the following is a binomial random variable?

  • ANSWER the number of women in a random sample of 5 who are taller than 68 inches which of the following is a continuous random variable?
  • ANSWER the time it takes a randomly chosen student to complete a multiple choice test the expected value of a random variable is the: - ANSWER mean value over an infinite number of observations of the variable which of the following properties holds for the standard normal distribution but not for other normal distributions? - ANSWER The mean is 0 and the standard deviation is 1 which of the following if the modulus operator in R? - ANSWER %% what happens by executing the following script: i<- 2 while(i<4){ print(i) i=i+1}
  • ANSWER [1] 2 [1] 3

dbReadTable() - ANSWER Imports database table to data frame dbDisconnect() - ANSWER Disconnects the database DML stands for - ANSWER Data Manipulation Language DDL stands for - ANSWER Data Definition Language A primary key is: - ANSWER - must be unique

  • used to define rows in relations
  • candidate key
  • used to assign unique names to different rows a foreign key is - ANSWER how a primary key is related to data and another table inner join - ANSWER Gives just common records in joined tables