instruction
stringlengths
9
38.7k
I was wondering, how are hilbert spaces and functional analysis useful to machine learning? I thought machine learning was a mix of statistics, computer science and optimization. How does functional analysis relate to that?
Is it right that elements of both samples and sample space are called `outcomes'? Is it right that a sample is an array of outcomes? What is an outcome of an experiment: a sample, event or outcome? I do not understand why (1,1) is an outcome but "sum of two dice is 7" is an event. Why I cannot say that "sum of dice...
Mathematically, is it possible to do distributed optimization using Adam or AdaGrad algorithms? I ask this because in Adam or AdaGrad updates, it is not obvious to me that the mean of the updates is indeed the update evaluated on the mean gradient plus some noise. This is, consider the Adam iteration $$ \mathbf{x}_{t+1...
In this article by Terry Therneau 2016, to address time-varying effect, library(survival) Testing proportional hazard assumption: vfit <- coxph(Surv(time,status) ~ trt + prior + karno, data = veteran) zp <- cox.zph (vfit, transform=function(time) log(time+20) zp Extended Cox model addressing time-varying effect: v...
These are two QQ plots of my residuals after fitting a model, with the exact same structure, except that the first model used one distribution A, and the other uses distribution B (normal, vs gamma, actually). However, the global deviance of the A-model is less than the B-model, and using AIC, I get that A-model has ...
In the context of an experiment, I have eight groups (2x2x2 between subjects) and the n per group ranges between 23 and 29. My variable of interest is how many critical details (range from 0 to 5) are provided in a free report. Half of the groups have skew and kurtosis values that are within the range of what I have re...
I've been tasked with developing regression and classification models for time series data. For each observation I have a continuous target for regression and a discrete target for classification. I've fitted a LASSO model which works stupendously well. It has very low MAE and RMSE values, as well as low relative error...
I'm a complete stats newbie, but I got into a discussion on the following article about polling accuracy. The author looks through the historic accuracy of UK pollsters, then finds the average prediction is 6% off the final result. From there he extrapolates that: But if polls are missing election outcomes by 5 or 6 p...
I am trying to model and forecast the volatility of stock returns and I am not sure if what I am doing is correct. My issue is mostly with GARCH and its application. If I want to model the volatility of stock return, would fitting a GARCH to it be an appropriate method? I realize the model isn't going to be great, but ...
In the context of the portfolio allocation problem, i have calculated one step ahead volatility forecasts on a rolling window basis with DCC GARCH while re-estimating the parameters every 25th observation. I want to do the same using EWMA. The initial parameter that I used was 0.94 (for daily return data from riskmetri...
I want to build models to predict the number of car claims which follow a Poisson distribution (mean = 0.05). One model is a Poisson regression and another is a RandomForest and I want to compare the accuracy on a validation test. Questions: I heard that RMSE is inappropriate to measure the accuracy of a Poisson distr...
Quoting Weerahandi, Generalized Confidence Intervals (1993): Confidence interval (Property 1) --- Consider a particular situation of interval estimation of a parameter $\theta$. If the same experiment is repeated a large number of times to obtain new sets of observations, then the $95\%$-confidence intervals will corr...
The Poisson regression can be used to predict the expectation count. e.g: E(number of car | male = 1 & income = 40000) = 1.3 To get this, we can use the predict function in R, e.g: predict(poisson_model, data, type="response") Question: How can I get in R the probability of a specific income using the probability...
I'm writing a dynamical script which enables the user to select different scales to analyze their reliability. However, I want adress the overall reliability in some kind of global variable. Since the user might select multiple scales which are not related in any empirical or theoretical way, I'm considering just using...
I have a Control group with two replicate and two treated group with two replicate. I want to know how I can identify the sample that are significantly different between control and treated 1 (higher expression) while significant different between control and treated 2 (lower expression) This is an example data df<-st...
On this website, I found that one of the assumptions for nominal association measures tests (such as Cramer's V) is that "If a zero is present in the crosstabulation, no association can be assessed."(scroll to bottom to see assumptions in the above link). I thought at first that this meant that if there are "0" values ...
I am using the Chambers-Mallows-Stuck method for simulation of skewed stable random variables http://www.sciencedirect.com/science/article/pii/0167715295001131. There are two equations, one for $\alpha=1$ and one for leftover values of $\alpha$. I would expect that both equation will return similar output for similar v...
Let’s take for example a binary classification task To me it seems that both Deep Learning and Kernel based Methods seem to share the idea of not trying to learn a complex classification function directly in the Input Space but to first perform a mapping into a more convenient (in order to solve the task i.e. to optim...
I use extensively Gelman's bayesglm for the every day use due to the great stability of the estimates especially in the case of separation. Unfortunately I could not find an equivalent of empirical bayesian regularization for glm mixed effect models. These models are strongly influenced by extreme conditions (like cond...
If I have data generated from an underlying process like this one: $y = a + b x_1 + c x_2 + d x_1 x_2 + noise$ How would neural networks represent the interaction term between $x_1$ and $x_2$? Is there a special type of unit that can output (a linear combination of) the interactions between its inputs? Or does a networ...
My data is in the interval $(0,1)$. I am interested in regression using GAM or GAMLSS. The distribution should preferably be available in the packages mgcv or gamlss. However, so far, I have used the normal distribution*, normal after logit transformation, gamma*, and beta distribution (* means that the support of th...
It is known that sample variance and sample mean are independent for normally distributed variables, which means knowing sample mean does not say anything about to estimate the variance of the underlying distribution. However, intuitively range of a sample (max of sample-min of sample) should say something about the va...
In logistic regression with binary outcomes $y_{i},...y_{n}$, the hat matrix is $$H = \hat{V}^{1/2}X(X^{T}\hat{V}X)^{-1}X^{T}\hat{V}^{1/2}$$ where $\hat{V}$ is diagonal matrix with $n_{n}\hat{\pi}_{n}(1-\hat{\pi}_{n})$ and the diagonal elements of the hat matrix are $h_{ii} = n_{i}\hat{\pi}_{i}(1-\hat{\pi}_{n})x^{T}_{...
After trying to do som e cross validation i got some models that fitted the data fairly good but predicted them horribly (eg. fitted = [10001.543,10034.324,104023.23..], true value = [10001,543,10034,104023] and predicted = [10.22,9.44,11.323...]) For you who is a bit more experienced than i am, How can it be possible ...
I'm working with credit scoring models. Here's what I know: Let Y be the binary outcome variable, $Y \in \{0,1\}$ where $Y = 1$ is the outcome of default and $X = (X_{1},...,X_{m})$ be the random vector of predictor variables. A credit score $\text{s}(\textbf{x})$ can be represented as a linear combination of coefficie...
I have data like "5 people each completed 1 task in session 1, 4 people completed 2 tasks, 4 people completed 10 tasks, 1 person did 20." etc, and I want to visualize these. Histograms aren't really conveying the quantity of tasks completed, as the larger numbers (say 20 task) have a small number of people. What chart ...
Throughout many of my statistics classes, I've had my professors attempt to explain big "O" (oh) and little "o" notation (especially as it involves convergence, the central limit theorem, and the delta method). However, none of them have done a very good job at explaining this and they tend to wave their hand at it as...
I wish to better understand the details of ARIMA models and how to interpret ACF and PACF graphs in determining what type of ARIMA model to use. From my studies so far, I understand that there are three parts to the model, the AR, I and MA. In order to predict future values from the time series there are a number of ...
I have used GAMLSS to fit a zero-inflated model. However, when I then turn around and FIT that model, it produces absolutely no zeroes at all (even though the data used to fit the model is about 40 % zeroes). What's going on here?
Problem: You're collecting exotic oysters, and there are two different bays from which you could harvest oysters. • In both bays, 11% of the oysters contain valuable pearls and 89% are empty. • In the first bay, 4% of the pearl-containing oysters are blue, and 8% of the non-pearl-containing oysters are blue. ...
I'm looking to build a model that predicts the users who are most likely to re-engage in a service they have previously used. I'm noting there are at least two ways to build this and I'm having trouble deciding which, if any, is the right approach. Overview of problem: Users will use a given service several times over...
I am trying to understand how the gam package in R generates the partial residuals plots, so I tried to create one from scratch to compare to the one generated by plot.gam(), but they don't match. I wanted to try as simple an example as possible, so I am only using one variable, $lstat$, as a predictor of $medv$, in th...
Can someone help me to prove the equivalence between $v^{H}W v = 0$ and $W v=0$, where $W$ is positive-semidefinite? I can finish the part: $W v=0 \rightarrow v^HWv = 0$. But the inverse part: $v^HWv = 0 \rightarrow Wv=0$, I cannot find ways to prove. Can anyone help me to show the inverse part?
First, I do this library(gamlss) simnorm <- rnorm(1000, 0.5,0.1) simzero <- rep(0,1000) x <- sample(c(simnorm,simzero),1000, replace = TRUE) which gives me data in the $[0,1)$ interval. Then, I wish to fit a zero-inflated beta distribution. This is incorporated in the gamlss package, so one can go ahead and do this:...
I'm using the CBPS package in R to calculate covariate balancing propensity scores following Imai and Ratkovic 2014. However, I'm a bit confused. The scores that I get from the CBPS package -- are those both weights and propensity scores or just weights? Do I use those scores to weight my covariates only or do I match ...
I'm working on a project to classify 30 second samples of audio from 5 different genres (rock, electronic, rap, country, jazz). My dataset consists of 600 songs, where the features are a 1D array of mfccs for each song and the labels are the genres. The first 1/5th of the feature array is rock, the 2nd 1/5th is electro...
So suppose I regressed y on x1 and x2 (where x2 is a factor variable with values 0 and 1). And I wish to obtain confidence interval for the ratio of estimated y's for different x2 values for the same value of x1. So my point estimate would be = (slope(x2) * 1 + intercept + slope(x1) * mean(x1)) / (intercept + slope(x1...
I have an experimental setup where pairs of birds are producing offspring in different treatments. I'm trying to model the total number of offspring that hatched per total number of eggs that were laid (hatching success), which is a proportion, i.e. #Hatchlings/#EggsLaid. I have zero-inflation in the data. What are yo...
I used several time series as features (3 features as input) into LSTM model (1 output on regression) on TF 1.1.0. The main function started a session as below: model = SKCompat(learn.Estimator(model_fn=lstm_model, model_dir=LOG_DIR, params={'learning_rate': Learning_rate})) model.fit(train...
Currently, I designed a neural network with one hidden layer, with cross entropy cost function and softmax activation function to predict the outcome of a tennis game. The input is a matrix, where each row is a training data, each column is a variable. These features are having very different units. For numerical, we ...
There are many machine learning algorithms to generate music, like Magenta and GRUV. I want to know if it is possible to create algorithms like these but for generating styles for webpages.
I've been exploring techniques to deal with outliers that may apply to my machine learning use case and have stumbled upon this short video from Udacity. In summary: Train your machine learning model. Remove X% of points with largest residual error. Re-train model. It seems as though it could apply to my use case, bu...
The test hypothesis is this: Does a student’s gender have a greater influence on their choice in whether they study data science as a core topic; than other demographic/variable factors? The sample is of a population with 39 students in the class,and the other demographic/variable factors are: nationality (Austr...
Define $X$ as the random variable of interest. We observe a sequence of $T$ realized values for $x$, $x_{1},x_{2},\ldots, x_{T}$. The sample mean is \begin{equation*} m=\hat\mu = \frac{1}{T}\sum_{i=1}^{T}x_{i} \end{equation*} The sample variance is defined as \begin{equation*} s^{2}=\hat\sigma^{2} = \frac{1}{T-1}\su...
I want to perform a non parametric test (Mann-Whitney) for my experiments that is briefly quantification of viral load (Real Time Polymerase chain reaction). My final result is the amount of RNA copies per microliter (i.e. 1e10 copies per microliter). I log transform these values in order to better represent the data ...
For inverse transform sampling, if you know the CDF of a probability distribution ($f_X$) that you want to sample, you can generate a uniform realization ($U$) from [0,1], and then according to the sampling theorem, $CDF^{-1}(U) =f_X$ My question is that can you replace the $U$ (the sample comes from uniform distribu...
I've recently conducted a survey of 201 students and some staff at my College. I've read some discussion about using margin of error (MOE) for non-probability samples and one seemingly good point I've read is that: "The margin of error around a convenience sample is the margin of error around a similarly drawn conveni...
I do have a dependent variable with two distinct dimensions (factors). In total the dependent variable do have 10 items. The first 5 items belong to dimension 1 (as sub-dimension of the overal dependent variable) and the second 5 items belong to dimension 2. To clarify: Overall construct (10 items) ----First dimensio...
I'm trying to model this dataset using 1) msts and tbats traffic_ts <- msts(traffic_df$bits,seasonal.periods = c(24, 24*7)) tbats(traffic_ts) which seems to work but yields not-so-good forecasts..., and 2) auto.arima, with or without xreg Without xreg, auto.arima seems to "get lost in calculation", whereas with xreg t...
I have an observational study design with repeated measures on 27 patients with mean: 2.862 ± 1.36, median: 3 (IQR: 2 - 3) measurement per patient. I initially set up a mixed model analysis (R lme4::glmer()) but I noticed that many predictor had infinite or zero estimates, typical of separation problems (which indeed t...
I was looking at an example from Predictive Modeling Applications in Actuarial Science And, in one of the examples (below) -- he moves cars with 6, 7, 8 and 9 seats into the categorical variable 6+ -- why does he do that? # # Roll high values of seats (categorical variable) into a lower value idx <- dta$seats %in% c("6...
For my research I have asked the same binary question (yes/no) to the same sample five times under different conditions. So every subject goes through every treatment. I have used a McNemar Chi-Square to present the statistical differences. Now I would like to test variance and use regression. For variance between the...
I am currently working on CNNs and would like to create a Regression model. However I have a relatively small amount of new pictures so I was thinking about retraining. Is it possible to retrain a classification model and turn it into a regression model? I mean, is there a way to modify some layers at the end of the n...
I am studying Bishop's PRML book and trying to implement Gaussian Mixture Model from scratch in python. So I have prepared a synthetic dataset which is divided into 2 classes using the following code. from sklearn.datasets import make_blobs import numpy as np import matplotlib.pyplot as plt plt.title("Two blobs", fon...
I have a dataset with ~30k samples and 35 features (after feature selection; these seem to be the most important features for this dataset and they have low correlation between each other). After doing grid search with 10-fold CV on the hyperparameters, to my surprise I get the lowest validation error when colsample_by...
For tests such as chi square, the significance level is usually 0.05, but I've seen some people interpret p-values for Somers'd such as .000 as significant, displaying the results similar to this: (d= .603, p<.0005) So is the significance level for Somers'd .0005? If so, is this the same with other similar ordinal mea...
Suppose you have n broods followed up during x years. In each brood there are a varying number of sons and daughters that sum up to a varying number of offspring in each brood. You dispose of this information at the brood- and individual-level (individual refers to offspring): parQuality, a variable resembling the qua...
I know there is generalization of normal distribution of matrix-valued random variable, i.e., Matrix normal distribution. I wonder whether there is generalization of Dirichlet distribution that each row or column sums up one, and the rows or columns are not independent of each other. I have searched matrix Dirichlet Di...
I'm setting up a CNN that can handle differently-sized examples so long as all examples within the same batch are of the same size. As a trade-off for this flexibility, I need to fix the batch size. (Only one dimension of the tensor can be dynamic). In the current implementation, the training examples are split into le...
I have a question about what is the best way to estimate the amount of over dispersion in a Poisson model. I am unclear what to use as a measure for over/under dispersion as there seems to be a lack on consensus online. The Pearson Chi Squared statistic/Degrees of freedom or the Deviance Statistics/Degrees of freedom s...
For some given data, suppose I fit two models whose p-values are above 0.1. However, 2 times the negative of likelihood ratio statistic, say L (which asymptotically follows chi-square distribution) are different for the models. Can I say that the model with the minimum L value provides a better fit to the given data ? ...
I am doing linear regression with SPSS. There are two potential Predictors $X_1$ and $X_2$ for Dependent Variable $Y$. I found that $X_1$ and $X_2$ are strongly correlated $(r=0.63, p<0.001)$. So I induce the interaction term $X_1*X_2$. However, I found the Model 1, $Y=a_1X_1+a_2X_2+b(X_1\times X_2)+c$, $(\text{sig.}=...
So when I have two vectors of unequal sizes with different means and different standard deviations. One has coefficient of variation of 10% and the other 15%. Which statistical test would I use to test whether this difference is statistically significant? I've found an R package called cvequality that uses Modified si...
Suppose that there are N patients indexed by n = 1, 2, ..., N. Suppose that I estimate two different survival models M1 and M2. Model $i$ gives a risk score $r_n^i$ for patient $n$. According to https://stats.stackexchange.com/a/49054/22409: The index of concordance is a "global" index for validating the predictive ab...
I am trying to understand MLP Classifiers, but would like to know what the best way to create a score is. e.g. preferably a normalized score between 0 and 1. For instance, I looked at Scikit-learn's MLP Regressor which uses a score of $1 - u / v$, where $u = \sum(TRUE - PREDICT)^{2}$ and $v = \sum (TRUE - AVGTRUE)^2 .$...
I would like to compile data from several published studies. I am trying to conduct a meta-regression using restricted cubic splines to analyse and plot the association between two variables (x and y), which is not linear. Here's a simplified version of the code I used to fit the restricted cubic splines in the meta-r...
I have a network with a 361 nodes and 695 edges. My objective is to prove that my network is real and not a random connection of nodes like in the case of a random network. So, I did some research and 4 parameters are said to be valid 1) Degree distribution plot real network has a power law distribution for nodes rathe...
I have several thousand datasets of the same two variables (X and Y) and each dataset has at least 5,000 samples. I need to perform two-sample tests between many combinations of these datasets (total of about 10,000 tests) to determine whether or not the relationship between X and Y is different between two datasets. ...
I am trying to use the bayesglm function from the arm package to deal with the complete separation problem in my data as detailed previously in this thread How to deal with perfect separation in logistic regression?. My question is how to compare nested models (used to use anova when using non Bayesian logistic regress...
I am trying to better understand the results of logistic regression models and I wanted to apply a logistic regression model on a trivial "fair" coin flip simulation example. I want to simulate a number of coin tosses and fit a logistic regression model with whether we had at least one heads as the outcome and the numb...
Traffic data revealed that 35 percent of automobiles traveling along a portion of an interstate highway were exceeding the legal speed limit. Using highway cameras and licence plate registrations, it was also determined that 52 percent of sport cars were also speeding along the same portion of the highway. What is the ...
I predict sales for a 1000 products. I use time series cross validation to evaluate forecast for each product. I want to report how well the model is performing over the whole product range. Thus, the ideal summary would be 1-3 numbers that are easy to interpret. Product sales vary significantly. Some product are fast ...
I have daily a time series that after being first order differenced, has the ACF sinusoidal and that decays very slowly (more than 50 periods) and with a PACF, also oscillating, with very high values for the first 10 periods and above the 90% line. That would indicate a non-stationary series, but the Augmented Dick Ful...
I was using the Smarket data in the ISLR package for logistic regression (in R) and find the error below. If I use the following command, I get the error (warning): glm.fit1 = glm(Direction~. - Direction, data=Smarket, family="binomial") Warning messages: 1: glm.fit: algorithm did not converge 2: gl...
I'm simplifying a research question that I have at work. Imagine that I have 5 coins and let's call heads a success. These are VERY biased coins with probability of success p=0.1. Now, if the coins were independent, then getting the probability of at least 1 head or more is very simple, $1-(1-1/10)^5$. In my scenario, ...
I have a dataset $D=\{(\mathbf{x}_i,y_i)\}_{i=1}^N$, with $N\sim150$. The data come from 7 different test campaigns, which are not mere repetitions of the same tests, but actually different tests with different values of the $\mathbf{x}_i$ and thus of the $y_i$. Using Nonlinear Least Squares I calibrated a physical mo...
I am confused about the number and the type of assumptions I am imposing when running a regression. Consider the following situation. I have data on individuals' efficiency when performing a number of tasks at various points in time. Let $E_{i,t}^{k}$ be individual $i$'s efficency at time $t$ in performing task $k$. T...
My physics professors in grad school, as well as the Nobel laureate Feynman, would always present what they called toy models to illustrate basic concepts and methods in physics, such as the harmonic oscillator, pendulum, spinning top, and black box. What toy models are used to illustrate the basic concepts and methods...
I feel really dumb even asking such a basic question but here goes: If I have a random variable $X$ that can take values $0$ and $1$, with $P(X=1) = p$ and $P(X=0) = 1-p$, then if I draw $n$ samples out of it, I'll get a binomial distribution. The mean of the distribution is $\mu = np = E(X)$ The variance of the distri...
If we're working with a linear mixed model (fixed + random effects, normality assumptions) and are interesting in testing whether or not we can remove a fixed effect from the model, since standard asymptotic theory is complicated, my text suggests using a parametric bootstrap for approximating the distribution of likel...
I have a network of 361 nodes and 695 edges. I want to prove that my network is statistically significantly different from a random network. Small-world connectivity is a key parameter that has been tested to prove whether a network is real or random. As per this question, I would like to generate multiple random netwo...
I have a dataset where my main variable of interest and my six outcomes are reported as mean and sd (aggregated data). Basically for each of the individuals in the dataset (N=300), the measure is reported in this way. Controlling for additional covariates I would like to assess the association between 1) the variable ...
I understand how to find 95% CI of Kaplan-Meier survival estimate using Greenwood's formula, and then using a log-log transformation so that the CI is bounded correctly. My question is, what are the corresponding 95% CI of 1 - S(t)? Is it simply (1 - upper bound of S(t), 1 - lower bound of S(t))?
I'm using gradient boosting(implementation is XGBRegressor) for regression prediction, and show special interest in feature importance. I only tweak parameters for learning rate, n_estimator and max_depth. clf = XGBRegressor( learning_rate = 0.02, n_estimators = 300, max_depth =...
If X and Y be two independent Poisson rates with $\hat{\lambda}_1$ and $\hat{\lambda}_2$ how do we obtain this confidence interval for the ratio of $\hat{\lambda}_2/\hat{\lambda}_1$? Where $(l_i,u_i)$ are seperate confidence itervals for $\hat{\lambda}_1$ and $\hat{\lambda}_2$ Then the lower and upper bound is: $L=\ha...
I am conducting a meta-analysis and calculate the following chi-square statistics to test for homogeneity in the data. After forming two sub-samples - say, sub-sample A has a X² of 2,500 (df: 40) and sub-sample B has a X2 of 1,000 (df: 7) – I would like to test if one sub-sample is more homogenous than the other (along...
Let's say we want to estimate $\mu$ in a normal model. I'm interested in the estimation error. Using R code as an example; samples <- c(0, .4, .6, -2, 1, 2) fit <- lm(samples ~ 1) summary(fit) This gives the following estimate Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 0.3333 0.54...
I'm using a mixed effects model (lmer) in R to model eye-tracking data using orthogonal polynomials (poly(time,3)) for time. The response variable is log(looks to target/looks to competitor). The fixed effects are condition, talker gender, accuracy, like so: lmer(looks~(poly1+poly2+poly3)*condition*gender*accuracy+(1|s...
I'm working on a neural network, and I was wondering whether, when I want to constrain the output to be in the range (0,1), I should still be using ReLU (assuming I still want the advantages ReLU has in training). Would it eventually learn on its own to ensure that the weights arrive at this result, or would using a fu...
I do natural language processing and use words as features. But in online learning, the new training data will exist new words which does not appear in the previous data. How to deal with these new words? how to add new features in Stochastic Gradient Descent model in online learning?
I am looking for a way to test for significant differences between two dependent correlations involving different variables and two dependant regression models involving different variables. Correlation Example - correlation between job satisfaction and engagement when an employee is telecommuting (correlation 1) and ...
I'm looking at running a neural network to predict the probability of a turtle becoming entangled in a fishing net. My input variables are fishing net characteristics that include continuos and categorical values (that i have scaled between 0 and 1) and my output is either 1(present) or 0 (absent). My question is: Am i...
I have a high level question about whether or not graph networks would be an appropriate method to model a situation I'm studying. It's been a while since I last worked on a project building/analyzing a network, so I just wanted to know if this is worth continuing to explore and learn about. So far, I've been looking i...
I used the plot command in R to check whether my data fulfills the regression assumptions. Apparently, it is not even close to a normal distribution (see Q-Q-Plot). Is there a way to fix this?
I can't seem to find an answer to my exact question. I want find how much on average a stock or the stock market goes up during an up week (or month) and down during a down week (or month). Let's say it goes up 5% the first week up 10% the second week down 20% the third down 10% up 15% up 20% down 5%. Can I simply aver...
Recently I have been reading through the Lecture-One course material that can be found at this link. Anyways, in section-2 the author shows the following step in his derivation of an optimal guess by minimizing the function MSE(a): where Y is a random variable and a is the prediction we are to make. My question is...
I have modelled a, ticket :{sold , unsold} process using a glm with family = binomial as such: > head(bob_new) ticketCount ticketsRemain artistRating artistVotes artistName paintingTitle date day 1 9 21 4.38 616 Stella Mandrak-Pagani #Te...
My lecture notes give the following definition: A stochastic process $(X_t)_{t\in\mathbb{Z}}$ is called autoregressive of order $p$ if it satisfies: $$X_t=\phi_1X_{t-1}+...+\phi_{t-p}X_{t-p}+W_t.$$ Where $W_t$ is independent from $(X_s)_{s<t}$, and $\phi_p \neq 0$. Then it is stated that if the process is weak-sense st...
So basically im using data from the survival package which is: require(survival) library(KMsurv) data("pneumon") attach(pneumon) And I need to use specific variables as required. This is done in the next step: chldage1<-ifelse(chldage<12,1, ifelse(chldage>=12,0,3)) pneumon$nsibs[pneumon$nsibs>3]<-3 nsibs[is.na(nsibs)]...
I'd like to sample a pair of continuous parameters which has the constraint that one has to be smaller than the other one. I understand one approach is by rejection sampling by rejecting the samples that are violating this constraint. Another way would be propose a pair of parameters using a 2D Gaussian distribution th...