We can create our first data set by combining two variables one and two
# Create variables
one=c('A','B','C','D','E','F','G','H','I')
two=c(25,12,7,4,6,2,1,0,2)
#Join the variables to create a data frame
d <- data.frame(one,two)
d
output:
one two 1 A 25 2 B 12 3 C 7 4 D 4 5 E 6 6 F 2 7 G 1 8 H 0 9 I 2
single bar will perform a vector operation.
both2 = d$two[(d$one=='A') | (d$one=='B')|(d$one=='C') |
(d$one=='D')|(d$one=='E') | (d$one=='F')|(d$one=='G') |
(d$one=='H')|(d$one=='I')]
y=both2
y
output:
[1] 25 12 7 4 6 2 1 0 2
Suppose you have a categorical variable X with nine categories: A, B, C, D, E, F, G, H and I. The frequencies corre...
why is this wrong for vectors vector<char> decrypt{ {'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A'}, {'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B'}, }; for(int...
Consider the following bivariate data. Point A B C D E F G H I J x 4 3 0 4 7 1 6 5 7 2 y 4 6 7 0 7 7 3 3 7 1 (b) Calculate the covariance. (Give your answer correct to two decimal places.) A = -0.167 (c) Calculate sx and sy. (Give your answers correct to three decimal places.) sx = sy = (d) Calculate r using formula 13.2. (Give your answer correct...
Consider the following bivariate data. Point A B C D E F G H I J x 1 4 6 6 4 3 7 4 5 0 y 7 6 3 4 0 6 2 0 6 3 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
We have the symbols A, B, C, D, E, F, G, H with frequencies 1, 1, 2, 4, 8, 16, 32, 64. Show the Huffman tree and Huffman code for the symbols. How much compression does a 1000 digit file use when using this Huffman code based on an 8-bit ASCII code (ie, ISO 8859-1)?
Consider the following bivariate data. Point A B C D E F G H I J x 0 6 5 6 0 0 2 5 1 0 y 5 3 1 5 3 6 4 6 5 0 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
4. R(A, B, C, D, E, F, G, H, I, J) where A → B, C, D BE F→ G, H, I (A, F) → B, C, D, E, G, H, I, J For each of the following relations, normalize it into a set of BCNF relations.
a. e. b. f. 7. Given the function f(x) = 4(2)* - 3 , the equation of the horizontal asymptote is a. X=-3 e. y=-3 b. X=4 f. y = -2 c. X= 3 g y = 2 d. y = 0 h. none of these 8. If we apply the mapping (x,y) → (x-3,- 2y + 1) to f(x) = (3)* , the equation of the image is y = 2(3) *-3 + 1 y=-(3)*+2 + 1 =-2(3)*+3+1 y=-2(3)*+3...
I have solved the questions (a) to (c). Could you please help me with questions (d),(e),(f)? Thank you! 4. Suppose that(x,y), ,(XN,Yv) denotes a random sample. Let Si-a+bX, T, e+ dy, where a, b, c and d are constants. Let X = Σ x, and with the analogous expressions for Y, S, T. Let ớXY = N- ρχ Y-σχ Y/(σχσΥ), with the analogous expressions for S, T. = NT Σ(X,-X)2, . Σ(X,-X)(X-Y), and let (a) Show that σ = b20%...
i know a b c d e but i dont know f g h i and j please solve only ' f g h i and j' thank u 4) Jaintpor f tue cont rand vas Xand 4 en(a) Answer the question (2) → fing)-xy oswa , os46ì a) Conpaile the arginl puf of X as in Is). c) Compate the conditional pdf fou (ug) asin 15).。 Compute consitrono why or why nat? on ef the random, variable is the...
please help #2(b)) What types of functions are f(x) = e" and g(x) = x". Compare the differentiation formulas for f and 9 # 3,4,6,11,14,19.21) Differentiate the function: # 3) f(x) = 186.5 # 4) f(1) = 30 # 6) (t) = {- 36 +t #11) G(x) = VI - 2* # 14) R(r) = YTO #19) y = +*+47 +3 # 21) v = # 25) Find the equation of the tangent line and normal line to the curve...