instruction
stringlengths
9
38.7k
In page 269 of the latest draft of Richard S. Sutton's RL book, he proves the policy gradient theorem for episodic MDPs. I'm trying to follow the proof, but I don't understand one of the steps. How does he go from: $$ \sum_a \left[\nabla\pi(a|s)q_\pi(s,a)+\pi(a|s)\sum_{s'}p(s'|s,a)\sum_{a'}[\nabla\pi(a'|s')q_\pi(s',a')...
I'm a software developer and I have to implement several distributions in my code. I have successfully found information and implemented Student $t$-distribution, and the next one is Log $t$-distribution which literally has very little information online. I tried integrating $x F(x)$ to calculate the expected mean, b...
Why would I need lack of fit F-test to test the fit on the Data when performing regularization with cross validation gives me better performance measure of my model ? Why is F-Test still relevant when we have regularization ?
In bioinformatics I usually do enrichment test (read hypergeometric test) with many comparisons over the same list. After correcting for multiple comparisons I usually order the results by p-value (lowest at the top). In order to focus on those that are significant in more strict threshold. However I got a comment stat...
I'm trying to implement Bayesian power priors to discount historical data. $$\pi^p(\theta|\mathbf{z_{n_0}},a_0) \propto \pi_0(\theta) * L(\theta;\mathbf{z_{n_0}})^{a_0}$$ where $\pi^p$ is the posterior, $\pi_0$ is the prior, $L$ is the likelihood function, $\theta$ are the parameters of interest, $\mathbf{z_{n_0}}$ is...
I have a dataset which has some missing values and I tried to predict them by using caret. My data set looks like this treatment block D10 ni10 am10 Plot 1 1 W1 10 0.010 0.011 S1-1 0 2 W2 10 0.002 0.014 S0-2 0 1 W3 10 0.019 0.012 S0-1 ...
I am working with a typical ML problem, trying to separate 2 classes in a supervised manner. I wanted to ask at which point you decide the data is not descriptive enough to solve the problem, and if there is anything furhter you can do. My problem is that ive been given throught my education may tools to solve problem...
I'm trying to figure out what the following statement means: As a result of point estimation of the mean value of a certain quantity, the value $$\hat{\mu} = 12.5 \pm 1.0 \ [u]$$ was obtained. Assume $n=36$ measurements, each with the same precision. I know that for a iid normal sample, the sample mean $\hat{\mu} \eq...
I am performing a random effects meta-analysis of mean differences and I am calculating effect sizes (hedges g) for each study. Each study contains 2 groups- 1 with a placebo condition and 1 with a drug condition and we have a continuous psychiatric rating scale measuring the change in symptoms for each group. I have ...
I need to find the correct way to compare the following: I have 500 patients split into two groups (Seazure and No-Seazure) The groups characteristics match (age, gender etc. is non significant) The comparison variable is WFNS-grading: grade 1: GCS 15, no motor deficit. grade 2: GCS 13-14 without deficit grade 3: GCS 1...
I have been reading about spectral clustering (SC) technique. So far I understood that it is based on computing the similarity between datapoints (using some function like the gausian kernel function) and then building the Lagrangian of this similarity matrix, and using the eigenvectors of the lagrangian to build the c...
I am working on high dimensional biological data and I am trying to use PLSR to build a model and identify important variables. The dataset has 427 X variables and 1 response variable for 16 observations. I am using R package pls to obtain these results (function plsr()). This is what the summary of my regression with ...
$S_y^2 = \frac{1}{N-1}\sum_{k \in U}(y_k - \bar{Y})^2$ is equal to $\frac{1}{2N(N-1)}\sum_{k \in U} \sum_{l \in U \\ l \neq k}(y_k - y_l)^2$ I have to proof this for an exercise but am stuck at the very beginning.
This is a follow-up on this question: In reinforcement learning, what is the formal definition of the symbols $S_t$ and $A_t$? I want to understand the construction and/or definition of the random variables $S_t$ (resembling the state at time $t$) and $A_t$ (action that we take at time $t$) in Reinforcement Learning. F...
I have 25 years of nest initiation dates, I used quantile regression to look for changes in the distribution over time, as well as to look in detail to early and late breeders. My model would be something like: nest date ~ year. Since the environment where the species nest is highly variable, there is a lot of fluctuat...
I have a dataset of object detection (bounding box + class) with 2 classes (excluding "background" class). I am worried about two things : First, my dataset counts only 196 samples (I am not too worried about that since I can do some rotations. Still are there some recommanded practices to do some data augmentation in ...
I've got some data that I one-hot encode, A is numbers B is categories, C (the thing that I predict) is categories, so... A | B | C 1 | a | cat 2 | b | dog 3 | c | apple 4 | a | dog becomes A | B_a | B_b |B_c | C_cat | C_dog | C_apple 1 | 1 | 0 | 0 | 1 | 0 | 0 2 | 0 | 1 | 0 | 0 | 1 | 0 3 | 0 | 0 | 1 | 0 | 0 | 1 4...
I have been exploring kernel density methods in statsmodel that allow categorical variables but it seems that, unlike scikit learn kernel density implementation, there are no methods to generate samples from the distribution. I have already look at this thread but the examples only use one single continuous feature.
I understand that the true Sankey diagram specifically accounts for movement of a constant amount of something through a system or process; but I find myself wanting to make the same sort of graceful arrow diagram with non-atomic items, like database records or something. Specifically, say I have 10,000 items, and at a...
To cut the long story short, I've been given this information: pdf:$$f_X=\tau xexp\left({\frac{-\tau x^2}{2}}\right)$$ $x,\tau>0$ I went ahead and found the cdf:$$F(X)=1-exp\left(\frac{-\tau x^2}{2}\right)$$ And $E(X):$ $$E(X)=\sqrt{\left(\frac{\pi}{2\tau}\right)}$$ and asked to find a method of moments estimate which ...
I have the logistic regression model $$\text{logit}(\pi_i)=\beta_0+\beta_1x_1+\beta_2x_2+\beta_3x_3+\beta_4x_4+\beta_5x_5$$ when $x_5=x_3\times x_4$. I set $H_0:\beta_3=\beta_4=\beta_5=0$ and the alternative to be $\beta_3,\beta_4,\beta_5\neq0$. As the title suggests, I would use Analysis of Deviance, but my (maybe s...
I'm interested in notation and terminology regarding performance measures related to Sensitivity (SEN) and Specificity (SPC). These two measures are commonly used in binary classification problems. I'm interested in analogous measures for probabilistic classification. $\textbf{Standard Scenario (Binary Classification):...
I am currently trying to perform MCMC sampling using a (stochastic) model, for which I cannot derive a likelihood function, but which allows me to draw samples $y_\theta \sim p_{y|\theta}$, where $p_{y|\theta}$ is the distribution defined by the model with parameters $\theta$. I already looked at several papers for lik...
I have a problem figuring out the properties of an existing fractional factorial experiment. I basically have the following samples 1-6 and the properties A-D: A B C D 1 1 -1 1 -1 2 1 -1 -1 -1 3 -1 -1 -1 -1 4 -1 1 1 1 5 1 1 1 -1 6 1 1 -1 -1 If you have a look at the ...
If we have an $ARIMA(p,d,q)$ or $ARMA(p,q)$ model, how are the first few terms of the model for values of $t < p,q $ calculated? Are the AR and MA terms for values of $p,q > t$ simply ignored until there is enough data to calculate them? Or do we not start calculating values for the model until there enough data to d...
I'm searching for the best parameters of a classifier and I chose as comparison criterion the value of the specificity at 90% sensitivity (there are various reasons behind this choice). To assess the variability of the estimate I normally used a 10-fold Cross Validation, but having a highly unbalanced dataset, I feel t...
How should I perform a statistical comparison between the model fitting results on two separate datasets? The same model is applied to both sets, but the data are from two conditions, e.g. control and treatment. I read that I need an F-test. But the formula for the F statistic (from wikipedia), $$ F = \frac{\frac{RSS_...
One of the advantages that VARs help us deal with is the issue of endogenity among variables. In terms of providing statistically sound forecasts it seems odd when compared to more static models. Why is endogeneity no longer an issue when using the VAR framework?
I have a dataset $X$, containing data and binary labels, which I want to use to create a binary classifier. Suppose I've made two different models, $A$ and $B$, both binary classifiers, and want to compare their performance. When creating either $A$ or $B$, I split $X$ into three parts ($X_1$ for training, $X_2$ for ...
I have performed an autocorrelation plot on Bitcoin log returns. Clearly there are significant autocorrelations. With a p-value of 0.05 (dotted blue line) 9 of the observations are above or below this, indicating that there is a significant correlation between the current price and the price at these lags. For data of...
I want to do exact inference in a polytree structured DAG. I know that the Sum-product algorithm always converges for trees and I have also read that the algorithm can be extended for polytrees, but I am not exactly sure of what happens in this case. So my question is: does the Sum-product algorithm work for polytrees?...
This is more a conceptual question, but it seems to me that a sufficient statistic for a parameter is a concepts that applies only if we want to estimate the parameter via maximum likelihood. Is this right or wrong? People usually claim that sufficient statistics are a data reduction technique. That is, I can store onl...
Related question: Hypothesis testing: Why is a null model that fits the data well better than one that doesn't? I simulated a response, y, that is influenced by a covariate but not by the "treatment" (the thing I care about) as follows: n <- 1e3 covar_effect <- 1 trt_effect <- 0 covar <- rnorm(n = n) trt <- rnorm(n = ...
I need to analyze this data. Tried with anova and independent t-test but i have no results. with t-test says t cannot be computed because standard deviation of both groups is zero, in anova says that needs at least 3 groups and i have 2. I need to find differences between this two groups, which analysis should i use? ...
How do I properly report the results of an R language binom.test (see documentation). My target is the APA format. Also, I am not sure whether the proper name of the test is "Exact Binomial Test" or whether it has another name. Thank you very much.
My ultimate goal is to be able to have a way to generate a vector of size $N$ of correlated Bernoulli random variables. One way I am doing this is to use the Gaussian Coupla approach. However, the Gaussian Coupla approach just leaves me with a vector: $$ (p_1, \ldots, p_N) \in [0,1]^N $$ Suppose that I have generated $...
I have $n$ data points that I would like to model via somewhat of a classical linear regression model like this, where $i$ is one of the $n$ data points: $w_1x_1^{i}+w_2x_2^{i}+...+w_mx_m^{i} = y^{i}$ However what I'm really thinking about is having each $w_j$ coefficient to represent some sort of exponential decay. In...
There are some good examples of interesting/fun spurious correlations here (Examples for teaching: Correlation does not mean causation). Many/most of these are "funny" examples that aren't likely to affect real life decision making. In contrast, this thread (Real examples of Correlation confused with Causation) has som...
What is the difference between binary encoding and one-hot for categorical input variables for English Text and their impact on the neural network? Can anyone help me to find a scientific paper about this problem?
$$X\sim N(a,c^2), \text{ }\text{ } \text{ }\text{ }Y\sim N(b,d^2)$$ Then $$X+Y \sim N(a+b,c^2+d^2)$$ What is the distribution of $X-Y$? I can't figure out if it is $$N(a-b,c^2-d^2)$$ or $$N(a-b,c^2+d^2)$$
The data I am working on has multiple time points and multiple ligand effects. The data looks like this with percentage values in concentration being measured at each time point and ligand: Sample Day ligand Condition Conc1 Conc2 .... Conc10 1 1 A Mild 99 86.6 .... 0.58 1 1 B Mild ...
I understand reporting standard error when looking at means of a variable say $X$. I am computing this mean across many categories $X_i$, where the mean for a single category is $\mu(X_i)$. However, when I am looking at means of means which is $\mu_{grand}(\mu(X_i))$ what is a meaningful error if there is no equal var...
In the wikipedia article on the Cox model, in the development of the partial likelihood, it is mentioned that the different subjects are treated "as if they were statistically independent." Is this in fact an assumption of the model, or just that the subjects be independent conditionally on the covariates? It seems the...
If $X_1$ and $X_2$ are independent, and generated from $\Gamma(\alpha,1)$ and $\Gamma(\alpha+ \frac{1}{2},1)$, and $Y$ is $$Y=3 \sqrt{X_1X_2}$$ Is $$\mathbb{E}Y = 3 \sqrt{\alpha^2+ \alpha\frac{1}{2} }?$$ Steps: $$\mathbb{E}Y = 3 \sqrt{\mathbb{E}X_1\mathbb{E}X_2}$$ $$\mathbb{E}\Gamma= \frac{\alpha}{\beta}$$ so $$\mat...
I have a set of records from 68 different watersheds that previously mined but reclaimed later. After some years a portion of mined area were converted to forest and there was no difference between unmined sites and reclaimed forest areas. I am trying to conduct a regression analysis to predict stream conductivity (de...
I am trying to write jags code for the following scenario Toss a coin with unknown probability of heads (p) If heads, then draw a random integer from 1 to 12 If tails, then draw a random integer from 1 to 6 Based on data of the integers drawn, compute posterior distribution of p, assuming uniform prior on (0,1). Here...
Suppose data $X=\{x_1,...,x_n\}$ is a mix (union) of two groups $Y_1=\{y_1^{(1)},...,y_{n_1}^{(1)}\}$ and $Y_2=\{y_1^{(2)},...,y_{n_2}^{(2)}\}$, and $Y_1,Y_2$ are generated by two different beta distributions $\text{beta}_1(a_1,b_1)$ and $\text{beta}_2(a_2,b_2)$. The task is to infer which data entry belongs to which g...
I've simulated an N-by-N raster in the following way: define a set $S$ containing a finite number $|S| = K$ of possible raster values (in my simulation, $K=3$ and the elements of $S$ are land uses / land covers) Initialize an empty $N$-by-$N$ array of raster values; draw the $1, 1$ entry of the raster uniformly at ran...
I am trying to model a process that generates random normal variables and random exponential variables, with unknown weights between the two distributions, and unknown parameters of the distributions. I am trying to do this using rjags in R. I found this post answered by Matt Denwood that mixes normal and uniform dis...
How can I compare two coefficient estimates from a lme4 or nlme model? In HLM7 (software I'm more familiar with) such comparisons are evaluated with $\chi^2$ tests. I can't find out what function in lme4, nlme or just base can do the same. An imaginary example I'm working with, is a modified sleepstudy dataset - with t...
I'm using daisy function with a data set consists of 14 columns and 57,557 entries. Data set contains both categorical and numeric values . It is failing with the error - Error: cannot allocate vector of size 6.2 Gb . Below is the code : gower_dist <- daisy(trainData, metric = "gower", ...
Wikipedia states that a $\chi^2$ distribution has $k$ degrees of freedom and is the sum of $k$ independent standard normal random variables (makes sense). But Newbold's book 'Statistics for Business and Economics' states that $\chi^2 \left( n - 1 \right) = \frac{ \left( n - 1 \right) \cdot s^2 } { \sigma^2 }$ and I qu...
I have been telling students that you cannot have a 0-1 independent variable transformed into log. My reason: a log of 0 is undefined. Am I wrong?
I have read many times that random effects (BLUPs/conditional modes for, say, subjects) are not parameters of a linear mixed effects model but instead can be derived from the estimated variance/covariance parameters. E.g. Reinhold Kliegl et al. (2011) state: Random effects are subjects’ deviations from the grand mean ...
I have weekly average values aka time series. They are the same units (e.g. revenue in £s). I want to use self-organizing maps in its standard setting (using euclidean distances) to order/cluster these times series according to their shapes and amplitudes. How should I normalizes these time series, to get the best perf...
I am implementing an autoencoder. The cost function I am trying to minimize is mean square error. When I use RMSPropOptimizer, the output is good. But with GradientDescentOptimizer, the output is not good. So can anyone please explain the differences in between these two optimizer ?
[I'm not a mathematician, so please forgive any misuse of terminology] One way of understanding scoring rules is that they measure the 'distance' between the truth value of a statement, and the probability we assign to that statement. So, if 'it's raining' is true, that statement gets assigned 1. We find the difference...
What is the maximal linear mixed effects model of a 2 x 2 within-subject and within-item factorial design with multiple observations for each subject-item-factor level combination: m1 (as I have seen quite often) but why not m2 or even m3? m1: Y ~ 1 + A*B + (1 + A*B|subject) + (1 + A*B|item) m2: Y ~ 1 + A*B + (1 + A*B...
I checked my linear regression model (WMAN = Species, WDNE = sea surface temp) and found auto-correlation so instead, I am trying generalized least squares with the following script; library(nlme) modelwa <- gls(WMAN ~WDNE, data=dat, correlation = corAR1(form=~MONTH), na.action=na.omit) s...
EDIT: I edited the question in order to make it clear. I'm having a problem with Importance Sampling and calculation of weights in more than one dimension. Because for me this is not obvious, I will explain different scenarios, some proposed solutions and potential issues in each case. I'm hoping on not only getting so...
I was interested in this project, so I cloned it and trained it on Moby Dick, for this challenge. The goal is to predict the next character given the past ground-truth characters. Overfitting is not an issue, if the neural network remembers actual passages, the better. After training the neural network, which has the f...
I want to analyze the distribution of $$X = \sum_i X_i^2$$ where independent $X_i \sim \mathcal{N}(\mu_i, \sigma_i^2)$. If $\mu_i=0$, I can derive the distribution by passing Gamma distribution like this answer. If $\sigma_i^2=1$, $X$ is non central chi-squared. But for general means and variances, is there any metho...
I'm faced with analyzing the following design: In a longitudinal study, the muscle tissue of about 25 subjects are analyzed at 8 timepoints. Specifically, 7 measurements are taken during a race during multiple days (I don't know the spacing of the measurements). The 8th measurement is several weeks after the race. At e...
i tried to figure out how to get the MSB(mean square between Groups)) and MSW(mean square within Groups and between subgroups) using ANOVA in R. My dataset has one dependent variable Y and two factors A(with values of 1 and 2) and a subgroup of A, B(with values of 1:5). My data is balanced, thus i have the same number ...
I am a university student looking for help with analysis for my dissertation, I do not have the best knowledge of R studios or statistics in general so please bear with me! I would like to perform a Poisson Generalized Linear Model (GLM) to see if artificial light had an effect on the number of bat passes recorded in e...
I am currently extremely insecure about an analysis I am about to conduct. In short, I apply cluster permutation testing to test for the significance of single coefficients of primitive nested models. As a test statistic, I use log ratio tests. Let's say I have a tone with three different levels. A quiet tone, a modera...
I have performed clustering using LSH. I can compute the false negative and false positive probability, but I think that this is not enough to validate the results. I was looking into precision and recall but I do not understand how to apply it to clustering results? I have tried to use t-SNE to visually plot the data,...
I have an assignment where 1750 data points are compared with a fitting function that uses 3 parameters. It is given that, at the best fit, the value of the reduced chi-squared statistic is about $\chi^2_\nu\approx7$, so that $\chi^2=1747\chi^2_\nu\approx12,229$. The instruction is to vary each of the fit parameters in...
I am a beginner to statistics. I have a data set which includes age, sex, weight, number of sick days for 300 people. I have to take into account confounding variables (age, sex) when I analyse the data. So I have split the data into male and female and for both groups i am now looking at whether there is a correlation...
I want to get the main effects of IV1, IV2 and IV3 as well as the interaction effect of IV2*IV3 on the outcome for the following three independent variables in a repeated measures anlysis: IV1 indicates whether a stimulus was shown (1) or not (0) IV2 represents 3 characteristics of the stimulus (from which only one ...
I have one-sided hypotheses that I want to test with multiple regressions. Does anyone know how to perform a one-sided hypothesis testing? I heard of different positions regarding this matter ("not possible to test one-tailed with regression" and "for one-sided hypotheses just cut the p-value in half"). Or maybe I need...
I have two sequences of coin tosses, which have different lengths. I want to compare their likelihoods under a model. But since the likelihood is a product of probabilities, the longer sequence ends up having a smaller likelihood. Should we normalise for the length of the sequence somehow? Example: Sequence 1: $1,0$ Se...
I'm trying to figure out what constraints I need to use to have monotonicity (both on $x$ and $z$) on the regression model with interaction. My model is: $$\mathbb{E}[Y|x,z]= \beta_0+\beta_1x+\beta_2z+\beta_3xz,$$ thus, to get an increasing function in x and z, I need the derivatives wrt x and z to be positive: $$\beta...
I was wondering if it's possible to force variables to be monotonic when building gbms in h2o? Ideally this would be enforced globally, although even the standard local constraint would be better than nothing. (example of my view of a local constraint : say that we want a variable x to be monotonically increasing -> if...
When reading about 'Predictive to Prescriptive' analytics, I am not able to find good examples of what it actually means. I know that a predictive model can only tell me what will happen. And in real business scenarios this is not enough. I need to know what can I do to handle that predicted thing for better results a...
Here is something that bothers me about Convolutional Neural Networks, hopefully I can explain this well: While the input to a given layer has channels, and the output FROM that layer has channels, the output for a given filter in that layer lacks channels. It is just a simple width*height image. In a sense, we can say...
I'm trying to understand the proof at https://en.wikipedia.org/wiki/Partition_of_sums_of_squares However, I'm stuck on the line $$\sum_{i=1}^n (\hat{y}_i - \bar{y})^2 + \sum_{i=1}^n \hat{\epsilon}_i^2 + 2 ( \beta_0 - \bar{y} ) \sum_{i=1}^n \hat{\epsilon}_i + 2 \hat{\beta}_1 \sum_{i=1}^n \hat{\epsilon}_i x_{i1} + \cdot...
Perhaps a silly question, but: Let's say I want to randomly pick a number between 1-5, so that each number is equally likely to be picked. In other words, the number I pick is discrete Unif{1,5}. Would this be equivalent to saying the distribution of picking each number is Bernoulli(0.2)?
How should I interpret Exp (B) = 3.661E-11 in negative binomial regression? I am stumped when it comes to these E-11, E-10, and E-12 values. I got these values on interaction terms consisting of categorical variables. Can anyone assist? I think I am clear on how to interpret it when Exp (B) is greater than 1. For Exp (...
Question 1: Start with the classing case of bagging, say in random forest. Fit $B$ trees to bootstrap samples of the data. Average the predictions of the $B$ trees to form a final prediction. Bagging. Why not use stacking? Form a matrix of predictions of dimension $N\times B$, and regress it on $Y$. This yields a...
I am fitting a multiple linear mixed-effects regression model in lme4. The residual fit is near-linear, enough to warrant not assuming residual homoscedasticity. One way to model regression without explicitly making this assumption is to use case-resampling regression (Davison & Hinkley 1997), an application of the boo...
I have to make an chemistry study about the lead (Pb, plumbum) contained by tomatoes inside a tomato farm, but I'm having throuble to estimate the sample size. Is there any formula to calculate the sample size?(asuming that i have to): Pick the tomatoes samples from the farm. Identify the tomatoes kind (not relevant f...
For sochastic processes $X_n$ and $Y_n$ it holds that if they are indenpendant for all $n$ then $$E[X_nY_n] = E[X_n]E[Y_n]$$ But can you go the other way. I mean if $E[X_nY_n] = E[X_n]E[Y_n]$, does that mean that $X_n \text{ and }Y_n$ HAVE to be indenpendant. Basically what I am asking is which of these following state...
The title is a bit shaky, but it sums up the question I have in volatility models. In a text I'm reading, the author gives the ACF plots on the return series of a stock. He says that if we look at the sample ACF of the returns (The first plot), there are no signs of significant serial correlation. However, if we loo...
I am estimating a diffusion model in which I am using spatial lags to predict an outcome variable, but I'm having trouble specifying the distribution of the error term because the lagged variable is related to, but not the same as, my outcome variable. Specifically, my outcome is the emergence of an attribute in obser...
there are some previous posts dealing with heteroskedasticity and autocorrelation in panel data, nevertheless I have not found any post discussing heteroskedasticity and cross-sectional dependence at the same time. I am analysing some panel data, which suffer from both aforementioned issues. To deal with a cross-sectio...
I am six years into a business role and have a bachelor's in physics and applied math/stats. Sean Carroll's (Caltech physicist) "The Big Picture" opened me to the idea that Bayesian statistics is one useful way of thinking about anything - inevitably you hold a prior and you should update your credence as additional in...
I want to solve: $$ J_{R_K,L1}(x) = ||Ax - y ||^2 + \sum^K_{k} \lambda_k x^\top R_kx + \alpha \| x \|_1, x>0$$ of course, in the case where $R_1 = I$ we get non-negative Elastic Net regularization: $$ J_{L2,L1}(x) = ||Ax - y ||^2 + \beta ||x||^2_2 + \alpha \| x \|_1, x>0$$ without the L1 norm its trivial to solve the p...
Given the performance of modern computers, doing even a large number of bootstraps to estimate a given model's parameters' standard errors usually only takes a few seconds. Given that the bootstrap doesn't have to make strong assumptions about the data it usually results in either the same or somewhat larger and more a...
In an introductory video on Bayesian methods for classification (see reference at the end), the lecturer explains that training involves the computation of the following posterior distribution: $$ P(\theta|X, y) = \frac{P(y|X,\theta)P(\theta)}{P(y|X)} $$ To make sure we're on the same page, the terms are: $\theta$ are...
I have fairly simple task data that involves either correct/incorrect responses (binomial?). In the control data, there are 50 trials per subject, in condition 1 there are 50 trials per subject, and in condition 2 there are 50 trials per subject. What I want to do is see if condition 1 is statistically significant when...
Let's assume $\{X_t\}_{t \geq0} $ is a Gaussian Process with a certain covariance matrix. In order for this process to be stationary the mean vector should not depend on $t$ and the covariance function should not depend on $t$. However, what additional restrictions should the covariance have? In order for the process t...
Is there a correlation in this scatter plot? I want to confirm whether there is a correlation or not in this scatter plot because I need to use multiple regression.
I am using multiple linear regression to analyze the significance and impact that independent variables can have on a dependent variable. After selecting my ideal model, I am able to determine the associated beta coefficients for my model. I understand the interpretation of these values ("for every 1 unit increase in ...
I was wondering about the way we refer to the term "moments". In statistics and probability the first moments is the mean $$E[X^1] $$ The second moments is the variance: $$E[(X-E[X])^2]$$ I notice that there's a difference in which we define moments. In the first case the $k'$th moment is $E(X^k)$ and the second case i...
I am able to implement supervised learning algorithms when the output label ($Y$) is one dimensional. Just in case, the output label is multidimensional ($Y$= [$y_1$ $y_2$ ... $y_s$]), I believe that for such cases, we have to have $s$ different models with $i^{th}$ model predicting $y_i$ from the input data. Am I rig...
I have the following density: $f(x)=\frac{1}{\sigma}e^{\frac{-(x-\theta)}{\sigma}}$ where $x>\theta$. It is required to obtain the maximum likelihood estimator and method of moment estimator for $\sigma$ and $\theta$. I have obtained the method of moment estimator by calculating the first and second moment as follows: ...
I am trying to fit a multiple linear regression (OLS) model with IPO underpricing as dependent variable. As part of my master thesis I would like to analyze the effect of venture capital certification (dummy) on IPO underpricing (raw returns - not transformed). My sample consists of 199 IPOs. Up to now I got the follo...
In the following version of the Multivariate Lindeberg-Feller CLT, what does $\overline{\mathbf{V}}_n^{-1/2}$ mean? It is not mentioned anywhere in the text and I have never seen the square root of a matrix before.
I am new to Statistics and R. So, I'm stumbling upon certain problems. Please bear with me. There' a question - 2% items in a factory are defective. What is the probability that there will be 2 defective items in 100 items? My textbook solved it as a Poisson distribution and took l = np = 2. Then it solved using PDF t...