R probblem statistics
Suppose you have a data set that consists of 10 numerical
observations from group A, and 10 numerical observations from group
B. Suppose we also randomly permute the numerical observations, so
that each observation is equally likely to appear in group A and in
group B (as in a permutation test). Let X denote the mean of the
values in group A, and Y denote the mean of the values in group B.
Find E[X −Y ].
rm(list=ls())
groupA=c(43,89,71,49,58,62,73,84,80,49)
groupB=c(40,70,85,64,59,60,45,78,55,68)
#x denote mean of group A.
x=mean(groupA)
#y denote mean of group B.
y=mean(groupB)
z=mean(x-y)
so here each observation appear equally likely in group A and group
B.That is as in a permutation test
OUTPUT:
> x
[1] 65.8
> y
[1] 62.4
> z
[1] 3.4
R probblem statistics Suppose you have a data set that consists of 10 numerical observations from...
The following table provides a set of training data that contains 10 observations, 2 characteristics and a qualitative response variable that tells us if the patient should be classified as sick and go immediately to emergency. Observation X1 X2 Y 1 4 1 Healthy 2 1 0 Healthy 3 2 4 Sick 4 3 2 Healthy 5 1 2 Sick 6 2 5 Sick 7 4 3 Healthy 8 3 4 Sick 9 2 3 Sick 10 6 2 Healthy...
Having trouble with these two problems 3. Suppose a Coed basketball team consists of 7 females and 8 males. Suppose a starting line-up of five players is randomly selected (each possible starting line-up is equally likely). What is the exact probability that the chosen starting line-up contains at least one male? A bar is trying to get a feel for the number of drinks that a person will order. Let the random variable X denote the number of drinks a...
1. Suppose a population of N individuals has true (unknown) numerical measurements yi, y2, …YN (repeats allowed). The unknown population mean 1S yj One way to estimate the unknown population mean μ is to decide on a number nS N, then successively randomly select one individual at a time, observe and record the quantity of interest for that individual, put that individual back in, and repeat the process n times. Then form the mean of the recorded n observations. Prove...
Problem 1. Suppose we have a finite population of bivariate data, so the population consists of N pairs (You can think of these as pairs of measurements on a particular object-height and age of an individual, for instance.) Let μΖ and μy be the population means of the z-and y-measurements, respectively, and σ and σ, denote the population variances of the r-and y-measurements. So, for instance, and the corresponding formulas hold for Finally, let and σ ー1 denote the population...
Question text Suppose that you have a five-point sample data set; the observations of (x, y) are given by (8, 3), (10, 3), (6, 2), (2, 0), and (2, 1). Fit a simple linear regression model to this data by first computing the least squares estimate of the slope parameter. Which of the following is the most accurate? Select one: a. 0.3438 b. 0.4728 d. 0.6712
52.1 Three primary statistics are used to describe a variable's central tendency, defined as the average behavior of the variable. You can use these statistics, known as the mean, the median, and the mode, to draw meaningful conclusions about a variable's past behavior and to predict its future behaviar An investor is considering a stock with the following returns over the past 12 years: Year Annual Return Year Annual Return 12 10 12 The mean, also known as the arithmetic...
Suppose a set of data was arranged in order from lowest to highest values as shown below, where each letter or symbol had an unknown numerical value: b, a, #, v, w, y, @, p, c, m, n, x, q, &, k, +, r, $ (a) Find the five number summary.
answer all the questions, I will give u a thumb! 1.3 A portfolio consists of 10 shares of stock A and 8 shares of stock B. The price of A has a mean of 10 and variance of 16, while the price of B has a mean of 12 and a variance of 9 The correlation between prices is 0.3. What are the mean and variance of the portfolio value? 2.1 2.1.a State the definition of the sampling distribution of...
DR 252: Applied Statistics Total ring 2019 Quiz 13 Name: Karun Dor yon y 8, 2019 -- we have n observations (zn, yī), (z21, บ2), . . . , (Zn1.Yn), where the response variable yi takes on the values either 0 or 1. We generate another training set of n observations {(x11,212, yı), (z21, Χ22W2), . . . , (4m Ind, yn)), where in each observation zil and Vi are the same as in the previous set and then t2...
4. Suppose an experiment consists of picking a student from the set of all students registered on the UCSD campus this quarter. It is not necessary to assume that all students are equally likely to be picked, but you may make this assumption if it makes you feel happier and more confident. (a) Consider the two events: Athe student has had four years of high school science (FYS, the student has had calculus in high school If the probability that...