instruction
stringlengths
9
38.7k
I have a dataset divided in 2 class(lets call x1,x2) but I don't know their mean and covariance. For each class I looked their graph and made a guess about their sub-classes, then run an EM(Expectation-Maximization) algorithm to them one by one to find these inner classes mean and covairance. So now i have something l...
I am investigating conditional convergence across Indian states using panel data. I include the state name, year, SDP per capita, and a number of conditioning variables such as Public Expenditure, Literacy, Rural Banks per Capita. I hypothesize that I will find weak evidence of conditional convergence when controllin...
To further explore whether they are some relationship between missing values of observed predictors, a new dataset has created by replacing missing values with 1 while non-missing with 0. cor(newDataSet) AST ALT CD4 marriage_f AST 1.00000000 0.77589893 0.22670360 0.07317342 ALT ...
Is there a way to include seasonal dummies when doing the augmented Dickey-Fuller test in R? I have downloaded the "uroot" package but I can only include lags and not seasonal dummies. It seems that the old "uroot" package could do this but the adf test was removed from the "uroot" package for some reason.
I am using a X and Y data no standarize ($X_{196\times 20}$ and $Y_{196\times 1}$) and I get diferente coefficientes when I use the following formula: a<-lm.ridge(Y~X, lambda = 0) b<-lm(Y~X) as.matrix(b$coefficients)[-1]-as.matrix(a$coef) why? When lambda = 0 ridge regression should be the same as OLS. the lm.ridge fo...
I would know which is the best way to plot in 2D the variance of an 8-dimensional variable. I have tried to do an average (for each vector) of each one of the 8 vector's values, therefore I have performed an 8 to 1 reduction, but I'm not sure whether this kind of procedure is correct.
I want to ask a question about the Monte Carlo error of a particle filter. Assume we have information of our of the process of our true states, $x_t \forall t$ and hence, we generate our data $y_t$. (Once we obtain $y_t$ we keep it fixed.) Now, I am running a generic particle filter (using the prior proposal) with resa...
What is the difference between quantile normalization and Rank-based inverse normal transformation?
is tbats method the best model to use for my example ? for a weekly seasonality ? i want the predicted data to be like the initial data but that's not the result obtained so here's my data and the final results and the commands ececuted too data this is the final result and this is the code used : data.raw=read.csv(f...
I have a series of data in which each value $(k_1, k_2, \dots, k_j)$ is an average of individual measurements $(x_1, x_2, \dots, x_i)$; the $k_j$ values are subdivided in different clusters. I am describing the dispersion of the data within each cluster by a median statistics based on the $k_j$ values. Should I also a...
I trained a simple classifier to detect whether or not an image contains a lane line. model = Sequential() model.add(Reshape((image_size[1], image_size[0], 3), input_shape=input_shape)) model.add(Convolution2D(32, 3, 3, border_mode='valid')) model.add(Activation('relu')) model.add(Convolution2...
Right now, I want to figure out the covariance of a stochastic integral and a Riemann integral in the following form: $$\mathbb{E}\left(\int_{0}^{t}\exp[B(t)-B(s)]ds \cdot \int_{0}^{t}\exp[B(t)-B(s)]dW(s)\right)\,,$$ where $B(\cdot)$ and $W(\cdot)$ are independent Brownian motions, or $d\langle B, W \rangle_t = \gamma ...
When we do classification and regression, we usually set testing and training sets to help us build and improve models. However, when we do clustering do we also need to set testing and training sets? Why?
Problem Setup I have data points (images) of high dimension (4096), which I'm trying to visualize in 2D. To this end, I'm using t-sne in a manner similar to the following example code by Karpathy. The scikit-learn documentation recommends using PCA to first lower the dimension of the data: It is highly recommended to...
I want to predict sales with lm and machine learning so I did this: library("caret") set.seed(1) in_train <- createDataPartition(open_store$Sales, p = 0.75, list = FALSE) training <- open_store[in_train,] testing <- open_store[-in_train,] total_fit <- lm(Sales ~ DayOfWeek + Promo + SchoolHoliday + StateHoliday + Mont...
When running a linear regression, standard errors may need to be adjusted for clustering. One way to do so is to multiply the "conventional" variance estimate by the Moulton factor, defined for equicorrelated regressors as $1 + [\frac{V(n_g)}{\overline{n}}+\overline{n} -1]*\rho_e$, where $\overline{n}$ represents the a...
Imagine an experiment where 15 participants are presented with pictures. Each picture is presented 8 times (within-subject design). We want to evaluate the effect of picture repetition (independent variable; 8 levels: 1st repetition, 2nd repetition ... 8th repetition) on reaction time (RT), and on the amplitude (in mic...
So even the combined efforts of my professor, my book and the internet have not been able to make me understand the concept of Importance Sampling. I know that it is a way to help with estimating the probability of the occurance of very rare events, however, I have no idea how it works. For instance, let's assume I sta...
I would like to estimate a quantity $x$ using a given method (let's call it method $b$) and present it in the form $x \pm u$. Method $b$ is compared to a reference method $a$ by collecting measurements at multiple levels. Consequently, Bland–Altman method is used to construct the limits of agreement between methods $b$...
In exercise 1.8 of Bishop's PRML, he asks to differentiate both sides of the normalization condition of the Gaussian as given by: $$ \int^{\infty}_{-\infty} \mathcal{N}(x|\mu, \sigma^2) dx = 1 $$ with respect to $\sigma^2$ in order to demonstrate that the Gaussian satisfies the condition: $$ \mathbb{E}[x^2] = \int^{\in...
I want to see if two distributions I have are significantly different or not. They have long tails but their log-transforms are close to being normal. The number of samples is usually large, anything from a few thousands to hundreds of thousands. Therefore Student's t-test is not appropriate to use. The only tests I k...
I have this interesting data where I would like to estimate possibly a parameter of the difference (between $A+B$ and $A+C$, inference using both) that would allow me to infer the development of $A$ (whether there is a propensity to decrease or increase). Any hint as to how to approach it included type of modeling/esti...
I am new to forecasting. Occasionally, I have to face the following problem. I have data set A. Each element in this set has n features and I need to build classification model using this data set (assume k - classification categories). Building model on the whole data set occasionally yields poor results, so I am rout...
The standard fixed effects model (in econometrics, mostly) is $$ y = \mathbf{X\beta} + \mathbf{D\alpha} + \epsilon $$ where $\mathbf{D}$ is a set of factors, potentially with thousands of levels. This is typical in longitudinal data -- $\mathbf{D}$ would be a matrix of dummies representing e.g. individuals. When th...
For a certain document multi-class classification problem, I am experimenting with training an SVM in logistic regression mode (using liblinear). While the resulting classifier has a proven accurate, the log loss rate has proven to be too high (the probabilities between classes seemed not well calibrated). To improve t...
I am attempting to better understand how to use simulation techniques when working with linear regression models. For context, if I have a model that, say, predicts the margin of victory between two opponents, how can I simulate the contest. While the regression model using predict() in R give me the fitted value, I un...
I have data for student test scores taken over many years as well as demographic and screening data (Emohealth, memory, and the dependent variable MathScore changes for each year for each student). When I construct a longitudinal model in R, I'm not sure where to put certain variables. I've built two models: fit <- lm...
Suppose we consider the following $2^4$ factorial design with factors A, B, C and D in the usual order. $Block1 - (0,0,0,0),(0,1,0,1),(1,0,1,0),(1,1,1,1),(1,1,0,1),(0,0,1,0).$ $Block2 - (0,0,1,1),(0,1,1,0),(1,0,0,1),(1,1,0,0),(1,1,1,0),(0,0,0,1).$ $Block3 - (0,1,0,0),(0,1,1,1),(1,0,0,0),(1,0,1,1).$ Can anyone provide ...
I am working on some predictive modeling project these days: trying to learn a model and make real-time predictions based on the model I learned offline. I started using ridge regression recently, because I read that regularization can help to reduce the effect of multicollinearity. However, I read this blog today. I ...
Do EngleGranger residuals need to be normally distributed?
If $X(t)$ is a Gaussian AR(1) process with Variance=1 and $\alpha=1/2$ and $Y(t)=X^2(t)$, is Y(t) also stationary?
For example, we have $VAR(2)$: $Y_t := \begin{pmatrix}GNP_i \\M2_i \\ IR_i \\ \end{pmatrix}\\ = \begin{pmatrix}2\\1\\0\\ \end{pmatrix}\ + \begin{pmatrix} 0.7 & 0.1 & 0 \\0 & 0.4 & 0.1\\ 0.9 & 0 & 0.8\\ \end{pmatrix} *\begin{pmatrix} GNP_{i-1} \\ M2_{i-1} \\IR_{i-1}\\ \end{pmatrix} + \begin{pmatrix} -0.2 & 0 & 0 \\ 0...
Question: Best way to derive an ellipse formula when given bunch of points (say 60 points which when connected draws an ellipse)? Background: Using R Momocs library function conf_ell which returns confidence ellipse coordinates. Would be nice to abstract those points into a formula. You can see my ellipse points in the...
When I have a design matrix $$X = \begin{bmatrix} 1 & x_{11} & \ldots & x_{1k}\\ 1 & x_{21} & \ldots & x_{2k}\\ \vdots & \vdots & \ddots & \vdots\\ 1 & x_{n1} &\ldots & x_{nk} \end{bmatrix} $$ how can I show that subtracting the mean from columns $2$ to $k$ does not change the hat matrix given by $$H = X (X^T ...
I'm attempting to model some data using regression analysis that has different upper limits for different observations, i.e. there is no universal limit for the entire data set. However I do have observations that have been censored, but the amount of censoring will sometimes change between observations? As I understan...
I searched on topics of the bias and variance trade-off and got back lots of questions with different levels of response. The information is scattering too much and unsystematic to answer my own question which stuck me. So I open a new question here and would like to hackle how I generally run a machine learning modell...
I'm trying to calculate Kd with the following R code but my model is clearly wrong (see image). How has nls() converged so poorly? How can I use it to find a better fit for my data? Why does lm() work so much better? # log plot plot(log10(binding_data$ligand_uM),binding_data$fraction_bound) # 1.2 2.5 5.2 10.5 21...
I am confused about the second formula below, I would like some intuition here. Please correct me if any of my statements are false. For the first formula : It's like saying that by taking the SD of the means of all our samples we get the SEM. This SEM will show us how far away is our "mean of means" (mean of all our ...
I don't understand , here $X$ is data like for ex. height in a class : $X_1=186cm$ $X_2=186.9cm$ $X_3=188cm$ and so on ... or they are independent random vars like one var for height other for weight and so on ? The first step is confusing for me , please explain the following : The variance of $T=(X_1+X_2+X_3 + ...
I am looking to group items with different value and get the most optimized combination closest to a certain value. For example I have items such as the ones shown below, and I am looking to group them so that the total value is as close to "50" as possible (50 or above). What would a recommended algorithm i could use ...
I am working on a fleet management software recently. Normally, the arrival of merchant request is a Poisson process. That is to say, on average we have a new merchant request every 10 minutes, but sometimes we could have 2 merchant requests coming within 10 minutes, sometimes only 0. I am thinking about building an i...
I recently performed conditional variance model specification on six different time series (USDGBP, USDJPY, USDCAD, USDRUB, USDAUD, USDEUR). The correct form ARMA have been specified for each of the six series before taking conditional variance tests. The results shown below are results for USDJPY and USDCAD USDJPY[ Th...
Data has been gathered for a specific analytical test method to start SQC. The issue is that when the data is tested for normality, using Anderson Darling, the null hypothesis can not be rejected. -I have attached a photo to provide more information about the data. My question is, does this "non-Gaussian-nes" mean tha...
For a bill to pass the U.S. House of Representatives, a simple majority of members have to vote yes. If every member votes this will be 218 of 435. If some members vote "present", their votes are not tallied, and a majority of the remaining votes need to be yes. Say I have a probability assigned to the likelihood of ev...
I have citizen science records of turtle sightings (alive/dead, and if dead what caused its death e.g. car/predator/etc), and the date they were spotted. What would be the most appropriate test to answer the following questions: are turtles are being killed mostly at a particular time of year (or month, if it is easie...
I am doing some multivariate regression. When I plot QQnorms to check my model assumptions (errors normally distributed), I get Question: How do you interpret the above? Are the normality assumptions completely off? What's with those "breaks" near the ends of some of the plots? Is this caused by outliers?
We use the SE in order to tell, how far away are we to the true mean. Why does this formula use the standard deviation of a sample to compute the mean of the sample means ? (with other words, true population mean) Wouldn't it somehow be more intuitive it the formula for computing the mean of the sample means would have...
Is there a sound theoretical reason why there's relatively little research on heterogeneous neural networks? By this I mean neural nets with non-homogeneous activation functions. So far most of the papers I've read analyse neural networks with at most two types of activation function. One type for the hidden layers(ex...
I have a dataset with a categorical outcome no/yes, 8 predictors, in 31 examples, and I'm trying to classify the examples using different algorithms in the caret package. There are 9 "no" and 22 "yes". The code I'm using is as follows: ## SVM set.seed(101) ctrl= trainControl(method= "LOOCV",sampling="up", classProbs = ...
After performing Non-Negative Matrix Factorization (using R's rnmf() function), I'm left with W, H, and the fitted matrix (W%*%H). The Frobenius norm (squared error) is calculated by squaring the difference between our original X and fitted matrix WH. So, how can I use norm("matrix",type="f")to get my Frobenius norm? I...
The task of subgradient descent naturally appears in cases of L1 regularization: $$f(\vec{\theta}) = loss + \lambda\sum{|\theta|}$$ Here we use subderivatives to update current location in a parameter space during iterative optimization procedure. The question is what is the algorithm behavior when some of the $\theta$...
I am reading page 5 in this document: http://epub.wu.ac.at/4077/1/Report125.pdf It's about Dirichlet regression in a GLM-like setting. What I don't understand is each observed $y_c$ (of which there are $n$) is assumed to be Dirichlet-distributed with some shape parameters $a_1,...,a_C$. The author then writes $g(a_c...
I am doing text classification but I am confused which Naive Bayes model I should use. What I understood by reading answers from couple of places that Gaussian Naive Bayes can be used if the attribute values are continuous, when attribute values are binary, binomial Naive Bayes can be used, for examples if we have word...
I am running PCA on a dataset with dimensions 1460(n) * 307(p). Upon running PCA, I obtain the below plot of variance explained and the number of components. I am trying to estimate the number of PCs to select for my training dataset. Based on the plot below, It appears that around 75% of the variance is explained/cap...
Let's say I run an LDA model with 3 topics on 5 documents. After the model is learned (with Gibbs sampling presumably), I have topic distribution for each document, shown as the following: My question is, how do I retrieve document(s) that are "most similar to document-1" ? In clustering algorithms such as K-means, e...
Looking to train a linear regression model on PCA transformed data. While PCA helped reduced the # of predictors variables significantly from 307 to ~40 without compromising much of the variance, I am, however, losing interpretability of the variables. Now my variables are labeled as PC1,PC2...PCn. The question is two...
Why is the AUC not appropriate to use as an evaluation metric in cost sensitive learning? I have read the book Applied Predictive Modeling written by Max Kuhn. As he wrote in the book, The class probabilities cannot be generated for the model, at least in the available implementation. Therefore we cannot calculate an...
The observed Fisher information is the variance of the score. The score is the gradient of the log-likelihood $\ell$ with respect to the parameter vector $\theta \in \mathbb R^n$. What if the parameter vector were complex $\theta = x + yi$ for $x, y \in \mathbb R^n$? Suppose the log-likelihood is smooth, and conside...
Consider a probit regression model with Bernoulli likelihood. Assuming there are $K$ groups, we assume, $$ \mathbb{E}[y_i|G_i = k] = \Phi(\theta_k)$$ where $\Phi(\cdot)$ is standard Gaussian CDF. Now how can I calculate the likelihood function of $\theta_k$ assuming we observe the group $G_i$? I am struggling to tra...
So, if I model observation probability for a given hidden state according to a multivariate gaussian mixture model, then which parameters need to be initialized random to perform parameter re-estimation via a variation of Baum-Welch algorithm? I know that the initial distributions $\pi(i)$ has to be initialized random...
Receiver operating characteristics (ROC) curves provide critical performance insights for the evaluation of an authentication algorithm. However, there are two different versions of it in literature I'm not sure which one to follow. ROC curves mostly appear to have the FAR or FPR on the $x$-axis and the sensitivity or ...
I have a small data set of $150$ points each with four features. I plan to fit a SVM regression for the reason that the $\varepsilon$ value gives me the possibility of define a tolerance value, something that isn't possible in other regression techniques. I have run cross-validated grid search on the $\gamma$ and $C$ v...
I am building a movie recommender. But unlike common recommender from movielens data, features of my movies are sets like actor list, genre list, list of producers and writers etc. I know I can use Jaccard similarity to find similarity of 2 movies on one feature but I cant figure out how to combine these features to fi...
I'm trying to compare the prevalence of a specific lesion (binary) at the symptomatic side to the asymptomatic side within a group of patients. I've already performed a McNemar test to compare the prevalence at the symptomatic versus asymptomatic side within patients. However, I'm asked to also perform a conditional l...
I have a wood-burning lambda-controlled furnace that collects a number of variables during its operation once a minute, such as: exhaust oxygen content (lambda probe) exhaust temperature furnace temperature air inlet opening percentage (0-100%) exhaust fan speed mode of operation (off, ignition, full power, half po...
I have 14 observations. There are 11 independent variables $(x_1,x_2,\dots,x_{11})$. Dependent variables and all independent variables are continuous. I am not sure which regression model we use in this case to predict y( dependent variable). Any hints ?
I am performing a regression on one variable against a set of predictors. I am trying to test whether a certain variable (constructed by myself from 3 other variables) had a significant effect on the response. Feasibly, the other three variables could have had an impact on the response by themselves. Therefore, I have...
Consider $\theta \sim N(\mu,\sigma^2)$. And let $\Phi(\cdot)$ denote the CDF of standard normal distribution. Then what is the distribution of $\Phi(\theta)$?
I'm trying to do text detection thanks to Naive Bayes Algorithm. If I teach my tool: "Football is a great hobby" and assign it to the label "football", I'm totally fine with it detecting "I play football" as "football" The issue is, if I have a sentence that does not match ANY label, the probability will be the same f...
Problem Background: I have free form text data with more or less arbitrary formatting/structure, but semantically it can be broken down like this: {header} {title} {subtitle} {article} {boilerplate} However, not all sections need necessarily have Length > 0, except {article} and {title}. Another thing to consider is t...
Is there a theorem indicating that the OBB obtained by PCA from a point cloud is almost the same (or the same) than the one obtained with a subset of points (regularly distributed) on the surface of this point cloud ? So that if you are given a set of points laying on the boundary of an object you do not need to use i...
$\newcommand{\P}{\mathbb{P}}$I have three variables $X_a, X_b, X_c \in \{0, 1\}$ and I define a joint distribution: $$ \P(X_a, X_b, X_c) \propto \exp \left \{ \theta_{abc} \mathbb{I}_{\{X_a = 0 \wedge X_b = 0 \wedge X_c = 0\}} \right \} $$ from which we get the following conditional probabilities of $X_a$ $$ \P(X_a...
I am attempting to analyze the relationship between exchange rates and stock market prices using the regression model below. What software package can I use to achieve this? How would I get the variables $a, \beta_1$ and $\varepsilon_t$? Model: bivariate regression model with GARCH (1, 1) error term ($\varepsilon_t$):...
I have written a short function in R to estimate the expected number of mutations that will be observed in a set of DNA sequences. The parameters are the mutation rate (x), the length of the DNA sequence (y) and the number of stretches of DNA being observed (z). I want to simulate how many mutations one expects to obs...
What to do when qqplots aren't as nice as they should be? Do you disregard the model and go look for another one? If so, how? How do you figure out from a qqplot what model you should look for? Or do you continue with the model but stress that it may not be the appropriate one? I am doing some exercises in my stat clas...
Background: I am trying to show an increase in a number of variables over time, so initially I ran a simple linear regression. However, I subsetted the data so that I could get a regression estimate for each species and reef combination (which would indicate the change per year). The entire regression would look som...
I have a data that consists of some "after treatment" and "before treatment" observations from some individuals. Specifically the data looks like this: A B C D before 10 15 4 0 after 12 12 2 3 A = not agree B = slightly not agree C = agree D = definitely agree Basically I have a group of in...
My doubt is regarding Balanced Incomplete Block Design (BIBD) Consider the following design with 9 treatments and 12 blocks each of size 3, is this design BIBD or not ? in my opinion it's not BIBD (but I am not sure whether my logic is correct). This is what my logic is: since we have 9 treatments we must have $9\c...
I know that lmer() from lme4 is the function to use to specify complex random effects. However, I need to translate the following lmer() functions into lme()from nlme package, to be able to use them in the package piecewiseSEM: canopy_mfinal <- lmer(log(Canopy) ~ Bulk_Density + H + fGrazing + (...
I am facing some weird issue on calculating $R^2$. Probably, I am messing it up somewhere badly. I am applying a LR model like this: linmodel = lm(helpfulness~., data = train) summary(linmodel) The summary of this model gives me an $R^2$ = 0.1948 I am now trying to check this $R^2$ value by using the "predict" functio...
I have a data, which looks like mixture of $\gamma$ and Gausian distributions: Could you help me to find parameters of these distributions?
I am taking a course in machine learning and just made a neural network, but I don't know how to interpret it. The input variables are related to wine, and the output variable is representing whether it is red or white wine. From the figure I should be able to interpret how the network predicts the type of wine, but I...
I'm doing some anomaly detection, basically classifying stuff as normal (0) or aberrant (1) As with all anomalies, they are rare, so during the train/test phase it's not good enough for me to just look at general training error (which would be reduced to 10% if I just guessed class 0 (normal) all the time!) with 90% no...
General Regression Neural Network is a one-pass neural network. The spread of the data sigma is updated based on output error. But I did not quite understood how it is changed. Anyone knowledgeable about this neural network can answer this? Thanks. https://www.ncbi.nlm.nih.gov/pubmed/18282872 http://easyneuralnetwork.b...
Given a sample function X(t) of a random process as \begin{equation} X(t) = \sum_{n=-\infty}^{\infty} {[\mathcal{H}(t-nT-to) - \mathcal{H}(t-nT-to-T/2)]} \end{equation} where A and B are constants, and to is uniformly distributed from 0 to T. The process is an ergodic one since it is an ensemble of pulse functions ...
In regressions, can someone explain me the difference between mean square residual and mean square error. What is the significance of each?
I am doing critical appraisal of a paper. The study has missing covariate data. The missing data is listed but it does not state what categories the data is missing? Is it appropriate to impute missing covariate data or was the study correct in just listing the amount missing and continuing with analysis. Independent ...
I'm trying to test random forest's ability to classify samples between 2 groups; There are 54 samples and varying numbers of variables used for classification. I was wondering why the out-of-bag (OOB) estimates can vary as much as 5% from one another even when I'm using 50k trees? Is this something that bootstrapping ...
I've followed the discussion stream about different types of means, towards which end I'd like to pose the following query: I have two columns of biological data tht have been log-transformed (e.g. 1000 -> 3, 100 -> 2), and I've taken the difference between them (e.g. 3 - 2 = 1). I wish to know the "mean" for the data...
If we have a probability density function, we can integrate it and now we have a cumulative probability distribution function. Can you help my intuition on why this works?
According to this paper by Meinshausen and Bühlmann (2006) the variable subset selection coming out of a Lasso is not always consistent in high-dimensional cases. It is bounded by the neighbourhood stability criterion. Is there somebody who can explain me in layman terms what this condition implies? If I understand co...
I understand that we can use time as a categorical or continuous variable in multilevel models (MLM). In which cases would it be better to use time as a categorical variable? And how is the analysis of time as a categorical variable different from that when time is continuous variable?
Do you have any case in which fitting a multivariate regression (so having multiple output nodes) outperforms the fitting of a single output one at a time in terms of accuracy? I ask this because there is not, as I see it, a sharing of information between output nodes, as could be the case in a linear multivariate reg...
I am working on a project training neural networks with an LSTM layer using Q-Learning. I haven't been able to achieve optimal results on my test bench problems. I believe my problem has to do with the internal state of the LSTM. When predicting an action using the network to modify the game state, the internal state i...
Consider the below scenario. llegal immigrant behavior: Suppose you want to interdict with illegal immigrants to catch them enter a country. Let say they wait/observe some certain condition set X (e.g., patrol schedule(if known somehow), hour of the day, day of the week, weather conditions, etc.) to move and pass the b...
$y=\beta_1+\beta_2x_2+\beta_3x_3+\beta_4x_3^2+\beta_5x_5+\beta_6x_6$ for a sample size of 50. Doing an F-test for joint significance, t-tests gives that $x_3,x_3^2,x_5$ are not significant. If I remove $x_3^2,x_5$, then $x_3$ becomes significant. Why? At first I thought of some collinearity, but one is the square of th...
How can I generate 1000-element sample using inverse CDF method? It should be easy but I'm a complete beginner. I know what it is mathematically but I don't know how to implement it in Python
I want to predict the performance of several students by using their grades during the first three years of high school in order to produce the grades of the next three years. I'm interested in any suggestion of regression methods. Here's an example of my data Year1 Year2 Year3 Year4 Year5 Year6 Student1 58 ...
If the result of series A and B shows cointegration, is this a spurious regression if series A,B,C,D,E,F were found cointegration as well? My explanation is that , if the stochastic trend series A can be explained by the stochastic trend of series B with residual being white noise, it can't be at the same time when sto...
Let $x_i$ represent samples from a Truncated Exponential distribution between $0$ and $1$, with rate parameter $\lambda$. Defining $\tilde x = \dfrac{\sum_{i=1}^{n}x_i}{n}$ What is the PDF of $\tilde x$?