instruction
stringlengths
9
38.7k
I want to find video game publications by how closely their review scores match my own. I made a spreadsheet with a bunch of ratings of games(26k) by publications(330). When sheet picks publications by the percent of their reviews I also scored(how much pub 'Focuses' on my games), the outputs show a strong genera bias ...
Econometric analyses of causal effects often hinge on assumptions that authors leave unverified ("my model controls for everything important"). Discussions of the analyses often involve equally unverified criticisms ("well, maybe you didn't control for everything important"). This leaves most work in econometrics unc...
For the below decision tree, I can see how the probabilities of each end state are calculated... simply multiply the previous decisions: But for this one below, I'm totally stumped. It seems in my head the chance at resetting back to the first decision is completely negated because essentially the whole decision resta...
I was wondering if the reciprocal of P(X = 1) represents anything in particular?
I'm pretty new to regression analysis, and I'm using python's statsmodels to look at the relationship between GDP/health/social services spending and health outcomes (DALYs) across the OECD. Just to give an idea of the data I'm using, this is a scatter matrix with the diagonal being the kernel density estimate: When ...
I have an experiment where I'm testing the effect of a drug on behavior, measured in seconds. My drug group doesn't have normal distribution, probably because of a bimodal pattern: 6 of the 8 are clustered (between 100 and 150 s), while the other 2 are much higher (275 and 300 s). We believe this is because the drug wo...
A meta-analysis includes a bunch of studies, all of which reported a P value greater than 0.05. Is it possible for the overall meta-analysis to report a P value less than 0.05? Under what circumstances? (I am pretty sure the answer is yes, but I'd like a reference or explanation.)
I'm a newbie to R and am hoping someone can show me the error of my ways. I'm getting what appears to be a logistic regression and plot but I wasn't expecting the slope around 25.2 to be so steep and was expecting a more typical logistic curve. Also, the glm function threw a couple warnings but I don't think it's neces...
I have data from 64 patients. These patients underwent a food challenge to elicit allergic reactions. I want to find the specific dose at which patient first had a reaction. I am wondering how to create a data frame and perform survival analysis As I need to find out following two things 1) the lower dose (at which n...
I am trying to compare a Kernel Density estimation with a normal distribution. I use the following code to estimate the Kernel Density using a Epanechnikov kernel: from sklearn.neighbors.kde import KernelDensity X_grid = np.linspace(-5, 5, num=1000) def silverman_bw(ts): return 1.3643*1.7188*len(ts)**(-0.2)*min(n...
Given a dataset, I would like to use the frequency count of each element in a column. But if the testing data has a data point that is not found in training, how do I go about? For example consider the column in the training data that has values 1,2,3,5,1,3 If there is a data point 4 in the testing data which is not fo...
I have two questions about this test in R: How do you read the result of p-value? I assume that the bigger it is the more successful it is. When I do a multiple dummy variable regression, I get a p-value of 0.02758. How to understand this number with my result? When using the lm function to fit a model, I'm not able t...
I used different variance reduction methods, for instance, common random numbers (CRN), antithetic-variates (AV), control variates (CV) and importance sampling (IS) but still cannot wrap my head around the logic. For instance, we deliberately use correlated values for a process that is supposed to be independent. I ca...
If you are reporting a correlation matrix in APA style, are you supposed to report r as in corr.test() or R^2 as in lm()$r.squared? Which one is correct, and what does the other one represent?
Are there any good predictive models for a pattern like the left plot of the first figure? I'm trying to predict how long a file transfer takes (in seconds) according to its package size (in bytes). I've been told that the best a file transfer can perform falls in the linear minimum bound across that plot, and anything...
In R we can get a lot of information from summary model. > summary(lm(mpg~wt+hp,data=mtcars)) Call: lm(formula = mpg ~ wt + hp, data = mtcars) Residuals: Min 1Q Median 3Q Max -3.941 -1.600 -0.182 1.050 5.854 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 37.22727 ...
I am using SGD svm from scikit learn. I find that unlike SVC who has support_ as a member of the model to store the index of the support vectors, SGDClassifier only gives me the weight of the decision boundary. Is there any way that I can identify support vectors within each class while using SGD support vector machine...
I'd like to predict a variable that is bound between 0 and 1, these are patients' responses on a visual analog scale. When I use a simple linear model, some predictions are out of the bounds of the allowed range of values; I'd like to avoid that. It occurred to me to fit a Gaussian glm with a logit link. however, I ran...
It's been awhile since I've taken statistics, so forgive the simple question. My company is attempting to evaluate the effectiveness of a training we've developed. We have teams spread throughout the country and want to compare two independent groups who go through the training. The 2015 group was the original trainee...
How to interpret spli_point in getTree(randomForest) when the value of split for factor is 0 ? Here is the picture, look at row 11: Picture:
Mathematically, what does sample_weight mean in sklearn.svm.LinearSVC and also svm.SVC? According to what they say in the document, I assume the weights directly changes the C for each sample, i.e., for ith sample the penalty is Cw_i. Well but I executed the code here SVM: Weighted samples Using SVC with linear kernel ...
I use Kolmogorov-Smirnov, Cramer-von Mises and Anderson-Darling tests to examine the normality of residuals of an OLS regression. It puzzles me that R and SAS, despite giving the same test-statistics for all tests, produce quite different p values. Below is a summary of my results Test | Test-Statistic | p...
I am analyzing sage-grouse survival using cox proportional hazard models and need to test my global model for overdispersion by calculating a c-hat. Most people use the c_hat{AICcmodavg} function; however, this function doesn't seem to recognize the object produced by coxph models (see below). Is there any other simila...
To verify the function AER::bptest, I manually calculate the test statistic. The manual method and R function give the same result for the Breusch-Pagan test, but not for the White test. Am I using the bptest incorrectly, or is my manual calculation wrong? # A heteroskedastic DGP x <- rnorm(500) u <- rnorm(500, sd = sq...
I am new to time series prediction and forecasting with neural networks and am having trouble with cross validation. I am fitting a multivariate time series. I have 236 monthly observations. I am using the caret package for this, seeing as Rob Hyndman has suggested to use rolling forecast cross validation for time ser...
I am doing time series analysis. My goal is forecasting. I am trying to fit a ARIMA model. However, after 2 differences, the PACF plots show bad results. PACF after 2 differences I even tried 6 differences: The original plot might be helpful
There are two urns: the one with 2 white and 3 black balls and the other one with 3 white and 3 black balls. We pick one urn at random and draw two balls out of it. What is the probability that the two balls have different colors? I have tried like the following… let, two urns are X and Y. $X = \{W,W,B,B,B\}$ ...
For the simplest case of recurrent neural network, is the hidden state at time t+1 conditional independent from the hidden state at time t-1 given hidden state at time t?
I'm in an AP statistics class, and several weeks ago we discussed regression lines. I understand that a regression line is the best fit for the the given data and that it can be used to predict variables. A least squares regression line can be used to determine the smallest possible value for squared residuals. Why is...
Let $Ω = {0, 1, 2, 3}$, and, $P(\{k\}) = \frac{1}{4}$ for $k = 0, 1, 2, 3$. Define two random variables $X (ω) = \sin \frac{πω}{2}$ and $Y (ω) = \cos \frac{πω}{2}$. Find distributions and distribution functions of the random variables X and Y. Compute P({ω ∈ Ω : X(ω) = Y(ω)}). The range of $X$ and $Y$ are $\{-1,0,1\}...
I am doing multiple linear regression and i am using this data:https://archive.ics.uci.edu/ml/datasets/Forest+Fires (assuming I have did the transformation on y) it turns out the data contain 4 categorical data and 8 continuous data, when i try to fit a model with considering the pair relationship and the 4+8 variables...
I am estimating two count models (Poisson regression). The second count model is a robustness check on my dependent variable. I slightly adjusted how I measured my dependent variable. Here are my results Model 1 Model 2 EXP x Divided Govt -2.073 -2.898 (1.181) (1.182)...
I've read in various places that having a log-normal distribution on the error in a random process makes sense when the relative error (or percentage error) is normally distributed. I can't seem to find a way to formalize this, however. Any ideas?
n Sir Francis Galton's book, "Natural Inheritance" (found here) in particular table 12 and 13 on page 209 & pg 210 I noticed that the assumed values for the 'above' and 'below' column were 0.5 units different from the rest of the intervals (e.g. In table 13, the below column is stated as below 63, then The intervals go...
I am working on a multiclass classification problem with $k$ classes by jointy performing $k$ linear regressions (I know this isn't the best way to tackle this kind of problem). The result of this joint regression is a $N \times k$ matrix $\hat{Y}$, where each row $i$ contains $k$ floats representing the prediction fo...
I have to deal with missing value in my dataset. I have a dataset of 10.000 obs. For the aim of my analysis, I need to run out the knn algorithm from CLASS package. I show you below the code: buddy <- read.csv(file.choose(), header = TRUE , sep = ';') attach(buddy) fix(buddy) train <- dati[1:5000,] test <- dati[5001...
I have been studying mixed effects models and I read that multiple measurements such as three judges rate the taste of a food item or weigh a mouse three times during the same measurement occasion are not considered true repeated measures data. So, mixed models for repeated measures can not be applied to such data. So...
I have some physiological data that I would like to remove the gender & age effects from it. I used the model in R lm(Measure~Physio+Age+Gender) My question is for the next stage of analysis I would like to use the Measure without the gender & age effects. Which outcome variable of lm should I be using?
So... I have been trying to make a radial basis kernel for hours but I am not sure of what my final matrix should look like. I have 30 features and 200000 data points. Should my matrix K be 200000*200000 or 30*30 ? My code so far produces 30*30: def build_kernel(x, func, option): x = x.T K = np.zeros([x.shape[0], x.sha...
I'm currently studying about Logistic Regression. But I'm getting stuck at calculating intercept ($\beta_0$) and coefficient ($\beta_1$). I've been looking for it through the internet, but only get tutorials using Microsoft Excel or built-in functions in R. I heard it can be solved by Maximum Likelihood, but I don't un...
All the previous questions are more sophisticated than I can understand and also slightly different to my puzzle. Say you observe a crime and you have one possible suspect, so I have a belief about someone who might have done it. I am interested in how to update my beliefs about that suspect, every time a new crime is ...
I had to do recently a literature overview on homogeneity tests (e.g., Pettitt test, standard normal homogeneity test, etc.) for hydrological time series data and I got a little bit confused. Doesn’t homogeneity sound a lot like stationarity? Are they different in meaning?
I am interested in assessing whether my angular data distribution is satisfactorily described by a von Mises distribution. In scale data, one can potentially use a Kolmogorov-Smirnov test. However, with circular data, it is usual to use the Watson test. The Rayleigh, Watson or Rao Spacing tests are used if a uniform d...
Knowing the coefficient of determination between variables $X$ and $Y$ ($r_{XY}^2$), and $Y$ and $Z$ ($r_{YZ}^2$), what is the expected coefficient of determination between variables $X$ and $Z$? Initially, I thought $r_{XY}^2 \centerdot r_{YZ}^2$ might be a good approximation of $r_{XZ}^2$. I played around with the fo...
Suppose that I have $X_1,\ldots,X_n$ are i.i.d. and I want to do a hypothesis test that $\mu$ is 0. Suppose I have large n and can use Central Limit Theorem. I could also do a test that $\mu^2$ is 0, which should be equivalent to testing that $\mu$ is 0. Further, $n(\bar{X}^2 - 0)$ converges to a chi-squared, where $\s...
I have a (bivariate) spherically symmetric distribution, in the sense that I can generate iid values distributed according to it. But there is a detail - I can't get the generated values as a whole, but only their single component, i.e. x coordinate and not y. So I don't know the underlying distribution - it's an empir...
Let ${M_1, M_2}$ denote two competing forecasting models. With Bayesian model averaging we can get $p(y_{T+h}|y_{1:T}) = \sum_{j=1}^2p(y_{T+h}|y_{1:T},M_j)*p(M_j|y_{1:T})$ $1:T$ represents the training set and $h$ the h-ahead forecast of a out-of-sample set $N$ My problem is now to compute the j-th posterior model prob...
I am trying to apply the natural actor critic algorithm described in Algorithms for Reinforcement Learning by Csaba Szepesvári. I want to use it for the MountainCar-v0 environment of OpenAI. As function approximation, I use tile coding right now, but I don't know how to use it along with the actor. If I use a neural ne...
I am attempting a stats assignment that has got me stumped. The original question was to fit a SEM model in lavaan (I am using R) using FIML, where two latent variables (extraversion and neuroticism) predict the latent variable of job satisfaction. I did the following syntax no problem: model_demo <- ' # measur...
In a journal article, there can be dozens of statistical tests that are unrelated, and, the more tests there are, the greater the likelihood that the probabilities for one of those tests for a given type I error would convert from $p \lesssim0.05$ to $p \gtrsim0.05$ (or the obverse) with a different initial data set. Y...
I am trying to derive the parameter estimation equations for the M-step of the expectation maximization (EM) algorithm for a mixture Gaussians when all Gaussians share the same covariance matrix $\mathbf{\Sigma}$. Pattern Recognition and Machine Learning by Bishop has a section on EM for Gaussian mixtures, and it inclu...
I would like to test the impact of education on risky sex, controlling for several demographic factors. I have one categorical, ordinal independent variable and more than three dependent variables. The dependent variables are both categorical and continuous. It is likely that some dependent variables are related to ea...
I am a structural engineer out of my depth with some statistical processes. I am needing a robust estimator for covariance and there are many options out there. MCD, MVE, OGK, etc. Some of them are more computationally efficient which is important to me. The OGK estimator is particularly efficient but it does not have ...
To calculate average marginal effects in a logistic model we take the average of the logistic p.d.f for all the values of X in the sample and multiply by the coefficient $b_j$, such that $d\;Pr(y=1)/d\;x_j=b_j E[\text{logistic p.d.f(X B)}]$ (note d is a partial derivative). But this is for continuous variables. What ex...
I'm using economic data to forecast banking crises. They occur in about 14% of the total possible samples. Using basic summary statistics, one feature shows a banking crisis has taken place within 3 years of hitting a threshold 42% of the time (38 times out of 89 times if memory serves). However, logistic regression o...
I have a time series going from 2013 until late 2016. I am using the auto.arima function in R to forecast the next 12 months. I get the following where the black line are my observations and the blue line is my prediction. fcast <- forecast(auto.arima(a.ts)) plot(forecast(fcast, h = 12)) However when I use this cust...
For one sample, that I don't know its distribution is there a way to test for $$H_0: \mu=0 \text{ and }\sigma^2=1.$$ Edit: My data come from a discrete distribution (Poisson, Binomial) and the probability follows an AR(1) process, $$Y_t| \pi_t \sim Discrete(\pi_t), $$ where $$h(\pi_t)=\phi_0 +\phi_1h(\pi_{t-1})+\eps...
I am trying to fit a distribution to the data so I can use glm in order to predict more data. The problem is that with something like this all the tests of the distributions I know are rejected. Edit: Here is the ECDF that was requested.
I'm reading Probability and Statistics by DeGroot and Schervish, and in it it said that the expectation of a random variable exists if at least one of the integrals over all negative/positive values of random variable is finite: But then, later in the book, when they talk about moments, they say that for k-th moment t...
What is the simplest way to transform a normal$(\mu,\sigma)$ distribution to a beta$(a,b)$ distribution? I'm interested in knowing if there is an exact solution, but also if there are approximations that will achieve this? I'm not interested in a specific -- ie normal$(3,2)$ to beta$(0.5,3)$ -- transformation, but rath...
I see from many probability theory or stochastic theory books, they mention generic probability, generic distribution, etc. So what is the formal definition of "generic" in probability and statistics, could anyone show some official definition or related explanations in mathematics books and examples?
For a subscale of mine, it showed a reliability in the 0.6 range which is in the 'questionable' range and it showed an AVE (convergent validity) of just 0.3. Now I know that it will be perceived as a badly conceived construct but bear with me. If I use this construct as a dependent variable in the multiple regression a...
I have a series of results of some hadoop experiments. There are more than 500 datapoints (each experiment) and I want to show the overall timing. I'm asking for an effective way to plot this dataset (1 graph per experiment obviously). I'm not sure about an 'ordered' scatter plot like this (actually there is no real or...
Suppose I have some IID Gaussian data with priors for mean and standard deviation: \begin{align} P(x|\mu,\sigma)&=\prod_{i=1}^n\frac{1}{\sqrt{2\pi\sigma^2}}e^\frac{-(x_i-\mu)^2}{2\sigma^2}\\ p(\mu) &= e^{-\mu},\hspace{3mm}\mu\in(0,\infty)\\ p(\sigma) &= \frac{1}{\sigma^2},\hspace{3mm}\sigma\in(1,\infty) \end{align} The...
Suppose the regression is y=beta_0+beta_1*x + epsilon. I obtain the eydx=.295 by magins eydx(x) command. What does Stata really do? Does Stata actually regress logy on x? If so, can I interpret the result as one unit increase in x leads to 0.295 unit increase in y? Stata manual suggests "proportional change in y for a ...
Let $X_1, X_2, \ldots , X_n$ be a random sample from uniform $(2\theta, 5\theta), \,\theta>0$. Let $X_{(n)} = \max \{X_1, X_2, \ldots, X_n\}$ and $X_{(1)} = \min \{X_1, X_2, \ldots, X_n\}$. Find the Maximum Likelihood estimator of $\theta$. I think the answer is MLE of $\theta$ is $\frac {X_{(n)}}{5}$. Is it correct?...
I have a question regarding section 7.1.1 here. I have two questions to ask you. What does the following sentence mean? we shall be drawing values for $C_T,C_{T-1},\cdots,C_1$ in order. How the final formula $$\mathrm{P}(C^{(T)}|X^{(T)},\theta)\propto\mathrm{P}(C_T|X^{(T)},\theta)\times\Pi_{t=1}^{T-1}\alpha_t(C_t...
I was reading this particular paper: Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials, and I didn't understand this equation (eq 5) in the paper: I understand the first equation, but not the second one. If $k(f_i,f_j) = e^{-1*(f_i-f_j)^{2}}$, then $k(f_i,f_j)$ would return a scalar value betwe...
I'm super confused how to find which model has a higher r-squared value when this is all the information I've been given, I feel like it should be fairly simple but I can't find how to do it any where. There are two models and they have given me these tables to try work it out from.
Consider a $2^3$ factorial design lay out in 2 blocks, each of size 4, as follows Block I {1, a, b, c} Block II {ab, ac, bc, abc} Here, the treatments combinations are written in Yates’ notation. Then which of the following are always true? a) Main effect A is confounded b) Main effect B is unconfounded c) Inter...
This is a cross post from Math SE. I have some data (running time of an algorithm) and I think it follows a power law $$y_\mathrm{reg} = k x^a$$ I want to determine $k$ and $a$. What I have done so far is to do a linear regression (least squares) through $\log(x), \log(y)$ and determine $k$ and $a$ from its coefficien...
I am using SAS 9.4 . My aim is to find out whether my residual is normal or not, so i type this: proc univariate data= residual normal; var rstd; qqplot rstd/ norml(mu=est sigma=est); run; In my output the qqplot is clearly a straight while 4 pavlue of statistic for the normality is less then 5%. How can i interpret ...
I have integrated $at^2$ between $0$ and $t$ and found $\frac{at^3}{3}$. In order to $\frac{at^3}{3}$ be a CDF, $a$ should be equal to zero. $bt+c$ between $0$ and $2$. and found $t^2 (a + \frac{b}{2}) + ct$. Now, since $a = 0$, we have $ \frac{t^2b}{2} + ct $. What should I do next?
after going through a few posts here on CrossValidated, StackOverflow and Google, I am still puzzled how I can detect whether a time series has a "drift" and how it differs from trend. Here are four questions that directly relate to each other. I want to avoid creating 4 posts for each of these. Does "drift" just mean...
I have a model with two variables, and the interaction between them is significant, 0.041. When adding 9 more variables to the model (from which just two are significant), the previous interaction between the two first variables is not significant anymore. Why can this happen?
I have a very imbalanced dataset. I'm trying to follow the tuning advice and use scale_pos_weight but not sure how should I tune it. I can see that RegLossObj.GetGradient does: if (info.labels[i] == 1.0f) w *= param_.scale_pos_weight so a gradient of a positive sample would be more influential. However, according to ...
Scenario: Say we are given a "black box" which simply outputs a symbol once per second. There are an indefinite number of types of symbols with no way to know any possible upper limit to the number of types. You can imagine them like alphabet characters but where we don't know how many different types there are (could ...
In an online lecture I saw an example of hypothesis testing: The mean (of something) is at least 12 Claim: $\mu \geq 12 \implies H_0: \mu = 12$ Opposite: $\mu \lt 12 \implies H_A: \mu < 12$ And the lecturer insisted that we must put the $=$ and not $\geq$ in the $H_0$. But why? Furthermore, if we end up rejecting $H_...
I've got a multi linear regression too big for excel's linest, as there are 230,000 rows of values. So building linest equivalent by hand using COVARs. The COVAR approach is nice because it avoids a matrix multiplication with [4 x 230,000] x [230,000 x 4] multiplication. The matrix is composed of COVAR results, and m...
Assume that $\Omega=[0,2]$ and $\mathbb{P}$ is probability on $\Omega$. Find the distribution function of the random variable defined as $$X(\omega) = \begin{cases} \omega, & 0 \le \omega < 1 \\ \omega-1, & 1 \le \omega \le 2 \end{cases}$$ If $X$ is a continuous random variable, what would be the CDF of $X$?
I have monthly data of sales for 3 firms (A, B and C) for 10 years (12*5=60 data points per firm). I want to test if the variance of sales in A is more than the variance in B which is more than the variance in C. I calculated variances for each year. Thus, I had 10 values of variances for each firm. Then what? I am no...
Is there any available recursive neural network implementation in TensorFlow TensorFlow's tutorials do not present any recursive neural networks. Most TensorFlow code I've found is CNN, LSTM, GRU, vanilla recurrent neural networks or MLP. I am most interested in implementations for natural language processing. Example ...
Any general material on how to update with multivariate normal priors would do., such as text book chatpers or paper, notes etc. I tried to google, nothing similar/relevant was found. I read this in a paper(Erdem 1998) but could not understand how they derive the posterior upto to time T. No idea how to type equations...
I am carrying out modelling of a histogram, which doesn't appear to be Gaussian. The kernel distribution in Matlab showed a reasonable fit. If I were to compare the histograms across subjects, could I use the bandwidth parameter to do that?
Is someone could help to answer what is the derivative for $$ \frac{\partial \log \text{det}(\boldsymbol \Sigma + \boldsymbol X \boldsymbol X^T)}{\partial \boldsymbol \Sigma} $$ and $$ \frac{\partial \boldsymbol Y^T (\boldsymbol \Sigma + \boldsymbol X \boldsymbol X^T)^{-1} \boldsymbol Y}{\partial \boldsymbol \Sigma} ...
I'm comparing the means of two groups--A and B, using t-test. Can I say a larger p-value (e.g. 0.94) suggests higher tendencies towards similarity than a smaller p-value (e.g. 0.08)? I understand that the p-value is the probability of the observing the data when the null is true (A=B), but not sure if I can infer that ...
Going through the documentation of XGBoost I came across the following two lines in the derivation of the objective function. \begin{split}Obj^{(t)} &\approx \sum_{i=1}^n [g_i w_{q(x_i)} + \frac{1}{2} h_i w_{q(x_i)}^2] + \gamma T + \frac{1}{2}\lambda \sum_{j=1}^T w_j^2\\ &= \sum^T_{j=1} [(\sum_{i\in I_j} g_i) w_j + \f...
I got this question as an exercise, and I frankly don't know where to begin: Consider the deterministic variant of the k−means++ algorithm where the set of initial centroids are selected in the following way. Let $X$ be a set of points in $\mathbb R^d$ given in input. The first centroid is chosen arbitrarily in $X$. T...
Monte Carlo slow convergence is due to the variance term $\frac{S_n}{\sqrt{n}}$. So there are a few method to reduce the variance of the estimator to gain convergence speed. I'm asking about Antithetic Variable method, using two variables of negative correlation. In most of books, tutorial I've seen, they only talk ab...
I standardized my x and y variables by subtracting the mean and dividing the result by their respective standard deviations. I thought this operation "fixes" (i.e., normalizes) my data, but I noticed the regression t-value that's produced in R is the same using either method. I'm just curious if anyone can explain th...
To me, as a non-statistician with barely a basic understanding of statistics, this does not make sense. Why do you assume whatever distribution (e.g. Weibull or Normal) we test is true unless proven otherwise?! Isn't the null hypothesis should be the opposite of whatever we are assuming? When we use Mann-Whitney, for ...
It seems to me that if $c\geq0$ then $k(x,y)=c$ is a valid kernel since no rules are broken. However, one of the rules of constructing a kernel disagrees with this. The rule is $k(x,y)=ck'(x,y)$, where it must be true that $c>0$ (this rule is taken from Bishop, Pattern Recognition And Machine Learning). Why can't $c$ ...
I need to construct an ANOVA table by hand using this information. i think the total df is 225, but I'm not sure how to find the rest of the values for the table > summary(lm(homicide~year+fahrenheit)) Call: lm(formula = homicide ~ year + fahrenheit) Residuals: Min 1Q Median 3Q Max -31.298 -10.185 -0...
Let $(X_1, \dots, X_n)$ be an iid sample of random variables with a known continuous distribution. I would like to simulate such a sample, conditional on the value of its sum, that is: $$ X_1, \dots, X_n | \sum_{k=1}^n X_k = s $$ If I was conditioning on, say $\sum_{k=1}^n X_k \in [s - \varepsilon, s+\varepsilon]$, the...
The problem states that you play a weekly lottery that has a $1\%$ chance of winning each week, independently. Let $X$ represent the number of weeks you do not win the lottery before your first win. What is the probability that you wait more than one year to win the lottery? First I'm having some difficulty understa...
My machine learning professor gave us the following data: Admission Fee ($) Year Attendance Adult Child Group 1998 117874 4.00 2.50 1.50 1997 125363 3.00 2.00 1.00 1996 126853 3.00 2.00 1.50 1995 108363 2.50 1.50 1.00 1994 133762 2.50 1.50 ...
I have a very fundamental question related to both basic set theory (and some Probability Theory) Let $A_n$ be a sequence of events. Suppose that $$\lim_{n\to\infty}P(A_n)=0$$ When can we write$$0=\lim_{n\to\infty}P(A_n)=\lim_{N\to\infty}P\left(\bigcup_{n\geqslant N}A_n\right) \ ?$$
Assume we have some linear regression of the form $$y^{(i)}=\theta^{T}x^{(i)}+e^{(i)}$$ where: $$P(y^{(i)}|x^{(i)},\theta)=\frac{1}{\sqrt{2\pi}\sigma}exp(-\frac{(y^{(i)}-\theta^{T}x^{(i)})^{2}}{2\sigma^{2}})$$ Then using Bayes Rule we obtain some parameter distribution $p(\theta|S)$ where S is our dataset. My problem ...
I am not sure if I am using the correct terminology, something must be written about the following problem, but I cannot find it by searching. I am presently analyzing data about the effect of introduction of a new vaccination program. The data is supposedly "ecological data", that is , population data, we do not hav...
I am working with some CDC weighted survey data (specifically YRBSS). The CDC has a website that displays the proportion of respondents who respond positively to the survey questions. The results are broken down by sex, school grade, and race. In each cell there is a proportion and a confidence interval. CDC says t...