instruction stringlengths 9 38.7k |
|---|
I have developed a glm Poisson model in R and would like to extract the formula so that I can do the computation in another software language. When I write out the equation I am getting different values from the predict function in R and the math I do manually.
summary(model1)
Call:
glm(formula = time ~ dayPart+ weekP... |
I'm currently trying to investigate relationships between habitat characteristics and animal abundances using GLMs. I've gone through the process of whittling down possible predictors and have a final model that I think is both biologically and statistically meaningful.
Unfortunately I have a huge problem with over-dis... |
Are there any general results on bounds for linear regression model coefficients if we change the data set? For example, if I learn a model with a few data points less, what will happen to the model coefficients?
I have tried to look at the algebra, but the design matrix inversion involved in finding the model coeffic... |
For the model $y=\beta_0+u$
(i) How could we define the vertical distance from each point to the line that we are estimating ?
(ii) While minimizing, the derivative gives us result only related with $\beta_0$. In that kind of situations, how are we constructing Hessian matrix and is OLS estimator a result that we get a... |
For the even image dimension case, max pooling is simple to understand - it simply performs convolution over the image with the max operator with a $x$-by-$x$ kernel with a stride of $x$. However for the case of images with odd image dimensions, you have to make a design choice: do you zero-pad the image then max pool ... |
Researching the topic of treatment duration on multiple clinical outcomes, some non-fatal which occur earlier and some fatal occurring later, I have stumbled upon mediation analysis (eg Zhang et al, Ann Transl Med 2016), which is already available in the mediation R package.
It appears to me that there is substantial ... |
I have a database with 300k+ Russian sentences and their English translation. My goal is to use these sentences as flashcards, so the users can learn the top N most frequent Russian words (let's assume N = 10k).
A requirement is that the easiest sentences are shown first, and more complex sentences get slowly introduce... |
I'm using a neural network mainly for binary classification. I'm using the cost function of mean squared error (cross-entropy seems to have the same results).
The problem that I'm having is that the network is either guessing 1 or 0 when optimized (class or no-class) instead of outputting the correct probability for t... |
This post Testing for Linear Separability with Linear Programming in R, discusses using linear programming to test if data is linear separable.
What's the connection (if there are any) between LP formulation and logistic regression?
This picture is coming from the link I posted
Specifically, are the lines coming for... |
I had multivariate data which has total number of data is 70. I want to separate the data set in three subset of data into training, validation and prediction. The forecast is on one. Therefore the data will become, 68 data for training, 1 validation and 1 for prediction. Is it reliable to divide data where only used 1... |
Spark doc contains this:
An Estimator abstracts the concept of a learning algorithm or any algorithm that fits or trains on data. Technically, an Estimator implements a method fit(), which accepts a DataFrame and produces a Model, which is a Transformer. For example, a learning algorithm such as LogisticRegression is ... |
Let's say you have data with revenue from a car wash. You gain enough data to come up with expected values of revenue based on the color of the car and the style (coupe, sedan, or hatchback). That makes six separate expected values.
How do you combine expected values from these individual attributes into a single exp... |
I am trying to prove or disprove that the difference between Spearman's Correlation and Kendall's Correlation is no more than 1 (or less, the tighter the merrier).
I am assuming there are no ties.
In an attempt to disprove the result using a counter example, I checked all possibilities for vectors with length 8. Got so... |
I had run artificial neural network on Matlab. Although i used the same design structure of ANN and the same data set, the result always different. Some suggested using ensemble neural network. From my reading ensemble is combine ANN with different design structure. Do this applicable in my problem. Other than that, wh... |
I'm not sure if this question falls in Cross Validated or Stack Overflow. I am specifically interested in differences in community composition between univariate population groups of a longitudinal microbiome study. However, individuals could provide between 1 and 20 samples at any point during this study period, there... |
I have a manufacture dataset of 65 million rows corresponding to 65 millions distinct items.
Out of those 65 millions, I have 60,000 of them that failed a certain test, thus I have very imbalanced classes.
I have about 200 to 300 variables/features that describe them that are both categorical (2 levels or more) and nu... |
I've been reading Bishop's book on pattern recognition and machine learning and I keep finding the term discrete tables (mostly in the hidden markov models chapter) but I can't seem to find any information about what those tables consist of. Could someone give me a hint?
|
Given several Markov chains running in parallel, suppose one doesn't know which chain is moving from one state to another at each time, but instead observe the aggregate amount of chains in each state at each time.
How can one find the Hidden Markov Model in this setting?
Example:
Take two individual chains and two s... |
Apologies if this is a really simple question; I'm sure if only I knew what to google I'd be able to find the answer myself, but it's been driving me mad.
I have two datasets with approximately gaussian distributions. Both are measurements of the same background distribution, taken for reproducibility of some optical i... |
I have a binary classification (supervised learning) problem, where all my features are boolean, with the following twist: I want to learn a classifier $f:\{0,1\}^n \to \{0,1\}$ that is monotone. In other words, changing any subset of features from 0 to 1 should never change the output of the classifier from 1 to 0.
H... |
I am analyzing data from 17 studies (25 data points) with mixed measures of association (OR, RR, HR). Most associations are less than 2.0, with four from 2.0 to 3.1. Only one is less than 1.0 (not significant).
My options are fairly limited. Will consider doing stratified meta-analysis.
Are there some examples where t... |
Typically sequence taggers (specifically, linear-chain CRFs) in NLP use sentence level information, i.e., for each word, we define feature functions that only depend on the tokens in the sentence. I have a sequence tagging problem where I am trying to use document level information.
It is a BIO chunking problem, where... |
I am watching basketball with a friend and the Pistons lead the Hawks 42-18 after the first quarter. My friend then says this is just as likely as the Pistons winning the game 168-72. This seems wrong, but I don't know how to explain it. I know it might have something to do with the low probability of repeating a rare ... |
I am conducting a statistical analysis on data that has already been collected pertaining to early life exposures (e.g. timing of introduction of solid food) and risk of disease later in life (e.g. diabetes).
I have a lot of data to work with, so I was advised to include covariates that have been associated with the ou... |
The full question is: Assume we fit the following quadratic function: $f(x) = w_0+w_1x+w_2(x^2)$ to the dataset shown (blue circles). The fitted function is shown by the green curve in the picture below. Out of the 3 parameters of the fitted function ($w_0$, $w_1$, $w_2$), which ones are estimated to be 0? (Note: you m... |
I've learned that the weights of the RBM defines the joint probability distribution of the visible units and hidden units. So I try a very simple matlab code to prove that. I try two methods to calculate the joint probability distribution:
1.
I take a random 8X4 matrix as the weight matrix W of a no-bias RBM and a ran... |
I've developed an indicator that is very highly correlated to a the value of a related basket of time series. When I regress over the indicators and values at different points in the time series the $R^2$ is always very high. Below is a graph of scaled values of the time series vs the value of the indicator for each fi... |
Suppose we have an hotel and we know all the reservations of the last five years. We would like to forecast/estimate the room demand day-by-day for the next year.
I'm a mathematician but not a statistician, I'm sorry if I'm saying something trivial or dumb.
I'm wondering if a "standard model" (as ARMA, ARIMA, SARIMA) e... |
I'm using the gam.vcomp() function to obtain the variance explained by each predictor in various GAMs fitted using the mgcv package in R.
Gam1 <- gam(presence = s(var1, k=10) + s(var2, k=10) + s(var3, k=10) + var4,
family=binomial))
Gam2 <- gam(presence = s(var1, k=10) + s(var2, var3, k=100) + var4, fam... |
Other than ANN inconsistent prediction performance, What is other ANN disadvantage and weakness?
|
I have two samples, one which has 1436 observations where sd=0.0405, mean=0.7776 and skewness=0.032 and the other which has 4956 observations and sd=0.0416, mean=0.7716 and skewness=-0.0897.
Now i am doing a Welch Two Sample t-test in R, but I am wondering whether I should correct for sample size, as my analysis is ove... |
I have a Bayesian modelling problem different somehow from standard modelling problems I have come across.
Instead of learning a posterior estimation of the parameters from some data, we are interested in learning the prior given two separate sets of data: input/training data (which gives likelihood) and output/test d... |
I have data from a user study that I'm struggling to know how best to analyse.
Participants were asked to manually organise a set of images into clusters (i.e. a group of related objects). Those artefacts had (unseen) creation timestamps associated with them. Participants repeated the task in 3 conditions, with three d... |
I was trying to work out probability of a candidate winning the majority vote but I got a crazy z value, which i'm not sure is correct or not but it sure as hell seems crazy. Bear in the mind, that I've just started university and so my knowledge of statistics is limited. I will be working this out in a very simple way... |
As far as I understand information criteria (IC) can be used to perform hyper parameter tuning/variable selection (e.g. I can use AIC to find the best $p^*$ and $q^*$ for an ARMA$(p,q)$ model) but not to select models from 'different classes': e.g. I cannot compare the AIC values of an ARIMA$(1,1,1)$ with that of an AR... |
I need help to understand the article Measures for Binary Data from the SPSS knowledge center. Especially I do not understand how to interpret the parameters $p$ and $np$. All the defining equations of the documented measures have the form
$$F(x,y) := f(a,b,c,d)$$
which doesn't make sense to me mathematically. What doe... |
I am just reading the results of an experiment, and I am having a hard time estimating their validity.
In the experiment, several participant had to perform a certain task twice, once with the treatment and the other one without it. There were two possible tasks each participant could work on, but she could only pick o... |
In the article Measures for Binary Data from the SPSS knowledge base, one reads:
The following binary measures [K2, SS4, HAMANN] yield values that can
be interpreted in terms of conditional probability. All three measures
are similarity measures.
I wonder how similarity measures and conditional probability are re... |
So currently running a logistic regression and as a precursor i run some pairwise correlation tests and find that some variables are correlated >.7.
I then run a multicollinearity test and get all tolerance values greater than 0.4 and all VIF values were between 1 and 3 suggesting no multicollinearity?
Does this mean t... |
Suppose I have a dataset comprising three binary variables that indicate whether or not an observation belongs to a certain group (X1 to X3) where
$X3 \subset X2 \subset X1 $. How is a graph that summarizes the data in a way like this called?
I always considered this to be a Venn diagram but none of the Venn diagram... |
Example:
Say I have a normal distribution that contains responses from both male and female participants with an average score of 50 ± 2.
Lets then say I actually receive this information in the following way;
Men have an average score of x = 49 ± 3.
Women have an average score of y = 51 ± 4.
I can use this to calculat... |
I've N=1000 balls and X=20 bins. I distribute them randomly in these 20 bins. Let's say I've y=100 balls in one of the bins (let's say bin y). What is the probability to have y=100 balls in this bin. Can I use a binomial as :
pbinom(100,1000,1/20,lower.tail=F)
3.908209e-11
And can I compute the p-value for each bin us... |
As I assume, we more often have datasets with (A) very many cases (objects) and not so many variables (properties) (= large data) than the other way around: (B) just a few cases and many more variables (= high dimensionality).
There are other conceivable cases: (C) few cases, few variables, (D) very many cases, equally... |
Very short question: are there tools (by preference in R or Stata) to solve a simultaneous equation model, without needing instrumental variables?
In my case, I would like to model irrigation and croptype. A farmer needs more or less irrigation depending on the croptype. However, the croptype that he chooses also depen... |
Suppose that 2 persons collect samples of a random variable X.
Each of them come up with :
- the number of observations
- the mean
- the variance
How can we calculate the variance of all the observations ?
Is there an exact calculus or an approximation.
|
I am conducting a CFA on a questionnaire with 4 factors. I know that the exploratory factor analysis to obtain theses 4 factors was done using oblimin rotation. I am now wondering, if this affects the model I have to build with lavaan-package in R.
Following the tutorial on the lavaan website I built the following mode... |
My question is about "The elements of statistical learning" book (yup, the one).
Right now I am kinda stuck on second chapter at part, where they derive EPE for linear regression (Somewhat related to Confusion about derivation of regression function , but I have more a detailed investigation here =)).
Here it is:
Ok, ... |
Let's say we have binary classification problem: 0 vs 1. Some set of images needs to be mapped to those labels by convolutional neural network.
Main trend for now is to use ReLu as activation unit, nonlinearity, after convolution(or after conv + BN). ReLU cannot give negative values by definition(pReLU can, but let's s... |
I have data from a number of subjects who rated conditions 1 through 8 on a Likert-type ordinal scale (from “much worse” to “much better”, here, coded from -3 to 3). It results in the following counts of occurrences:
-3 -2 -1 0 1 2 3
1 1 2 8 18 46 28 17
2 13 15 47 24 17 2 2
3 0 5 13 21 39 24 18
4... |
One of the main reasons that ANN performs better is due to its influential feature in handling nonlinear data (Wu et al, 2008).
Can anyone explain to me what is this meaning?
|
I'm fairly new to regression analysis, but I am planning on writing an economics paper involving revenues and standings for a sports league - specifically, I want to determine whether a team's standing at the end of the season is correlated with their revenue. Obviously, I could run a simple regression for all the team... |
I am trying to calculate modification indices in a Structural Equation Model (SEM) with an endogenous categorical variable. I am using the R package 'lavaan'. Running what it seems to be the correct code and I can not compute them. Reproducible example below.
Am I missing something?
CODE
table.7.5 <-read.table("http://... |
This might be completely unfeasible or obvious, but I wanted to see if anyone has come across a similar problem. Typical classification methods (decision tree, random forest, etc) require at least two groups to determine group differences, however is it possible to have a singular group, and classify it based on the pr... |
I had a question about working with models when there is little historic data.
For example, if a high school school in its first year of existence wanted to predict how many students would transfer, what could it do? The school doesn't have any historic transfer data to build off of.
Would it make sense to use a bayesi... |
Let $X_i$ for $i\in 1,\dots,n$ be a sequence of bounded (potentially) correlated random variables. No two variables $X_i$ and $X_j$ are perfectly correlated.
I am interested in
$$
Y=\lim_{n\rightarrow \infty}\text{Var}\left(\max_i X_i\right)
$$
Intuitively, it seems that we should have $Y=0$ or at least
$$
Y \leq \max_... |
In my data I have $n_1$ people who had an "event" and $n_2$ people who did not. Cases (those with an event) were oversampled substantially (the true prevalence is probably more like 1 in 10000). If it matters, $n_1 = 70$ and $n_2 = 250$. For all of those who had an event, I also know how long it took from baseline for ... |
Given a time series with Events (chart patterns), I want to assess whether events (chart patterns) occur systematic or randomly in a time series.
My idea is to
identify patterns in a given time series
simulate multiple new time series
identify patterns in the simulated time series
compare the results
The key que... |
Ordinary autoencoder architectures (not variational autoencoders, stacked denoising autoencoders, etc.) seem to only have three layers: the input, the hidden/code, and the output/reconstruction. Are there any examples of papers which used architectures consisting of multiple hidden layers? If not, what are the theoreti... |
I have a dataset with over 100 features and 200k observations. My objective is to try and group these observations into clusters as a more meaningful way to understand the interaction between my feature set. Specifically I'm interested in how one specific feature behaves across the different clusters. I don't know how ... |
I am quite stunned: I did some test on generated data and found out that model estimates from JAGS of the standard deviation of input data are systematically overestimated by certain and fixed constant 1.20247, for N = 9!
This is the result of more than 10,000 models (100,000 iterations each):
Here is the model:
model... |
I have 100 offices. Some with 1-person and another with 700-people.
We've sent them a survey and I want to order them by response %.
With that in mind, the office of 1-person who has responded, yielding a response rate of 100% should not be ranked ahead of a 700-person office who has a response rate of 85%.
How would I... |
Given the Wold representation:
$$X_t = \mu + \sum_{j=0}^{\inf} b_j \epsilon_{t-j}$$
Which is its autocovariance function?
I made some algebra and I ended up with: $$COV(X_s,X_t)=\sigma^2 \cdot \sum_{i=0}^{min(s,t)}b_i$$
Is it correct? Thanks.
|
I have a collection of (200) points that are well-fitted by a (negatively-skewed) beta distribution with parameters $\alpha=3.1$ and $\beta= 1.9$. This is all fine and good, of course, but I am interested in possible theoretical underpinnings/explanations of the curve, so I would appreciate any suggestions for alternat... |
I am trying to eliminate seasonality from my data using Fourier analysis in MATLAB. Following this post https://stackoverflow.com/questions/19285684/fast-fourier-transform-for-deasonalizing-data-in-matlab?answertab=oldest#tab-top I came up with this code:
clear;
clc;
close all;
%
load(fullfile(matlabroot,'examples','ec... |
I'm comparing two datasets from DNA sequencing studies, and comparing mutation rates in genes between the two datasets, which I'm doing using a two-tailed Fisher's exact test (please correct me if I'm wrong in using it in this situation!). I've run the test in R using the fisher.test function, and have included a subse... |
I have about 200 observations and 33 predictors. Due to sample size limitation, I used an elastic net logistic regression model. I have really high specificity ~0.9 but really low sensitivity < 0.01. Out of curiosity, I run a logistic regression model with the same parameters as the elastic net. And I have high specifi... |
I have the value of a dependent variable, Y, for every day from 1/1/2000 to 12/31/2016. The value is partially dependent on the day of the year/week/month, the month, and the year; as well as on other variables. I'm training my model using 2000-2015 and testing using 2016. If I have a model that predicts Y based on ... |
As I researched from documents I found that, when working with classifiers, we generally use 3 sets that are:
A set for training the classifiers
A set for testing the classifiers during development
An untouched testing set that is only used after the development
So my question is: Why do we really need the 3rd set? A... |
What will be the effect on the solution of least square analysis if we apply the following transformations on the training set: add a real number $k$ to the output value of each datapoint.
And the model is $y = \phi w$ where $w$ is the weight attached to the functions $\phi_1, \phi_2, \phi_3....\phi_p$.
Least squ... |
I was reading this question here to understand the geomteric interpretation of OLS solution. I have seen this before, and I understand it: given that I take for granted that the minima can be interpreted as contour plots.
My question is how exactly I can relate the contour plots to this question. Why do we draw differ... |
I'm working on a Relation Extraction Task that has Train/Dev/Test Dataset. The performance is measured by F-score (MicroAverage without Non-entity-relation class). I'm computing a Neural Network for this end, and I have to find the best epoch via early stopping criterion in the Dev set for training a good model. I see ... |
I want to optimize random forest hyperparameters.
I am using random search. I have specified a range of 100 to 1000 as the number of trees.
How can I know whether the given # of trees is overfitting the data? I mean lets say I am given 450 trees as an ideal value. But the truth is that with 156 is just enough.
Thank y... |
I'd like to estimate the Cost Per Lead for a given advertising campaign.
I have eight data points, each with Cost and # of Leads for a given week. Here are the Costs:
81.05
63.17
171.44
104.53
95.33
39.06
80.88
110.55
Here are the # of Leads:
4
1
3
5
2
0
6
2
The Cost Per Lead is the Cost divided by the Number of Le... |
My question grew out of a discussion with @whuber in the comments of a different question.
Specifically, @whuber 's comment was as follows:
One reason it might surprise you is that the assumptions underlying a correlation test and a regression slope test are different--so even when we understand that the correlation a... |
The question I have is:
Define X,Y to be two independent uniform(0,1) random variables and $Z:=\frac{Y}{X}$
Compute
$P(X<x|\sigma(Z))$
The answer given apparently by "straightforward elementary computations" is for $x\geq 0$
$P(X<x|\sigma(Z))$=min$\{{x^2,1}\}\mathbb{I}_{Z\leq 1}$ $+$ min$\{{x^2 Z^2,1}\}\mathbb{I}_{Z\ge... |
I am reading about MCMC from this PDF Murphy's MCMC (1), on page 4, above equation (21) the author states:
"Note that when evaluating α (acceptance probability), we only need to know the target density p up to a normalization constant. In particular, suppose $π(x) = 1/Z (π′(x))$, where $π′(x)$ is an unnormalized distr... |
I have time series data and applied the cross correlation function in matlab. We know that the correlation coefficients that are shown in the output are the 'best' values shown with the corresponding lag times. This means that other lags are also tested and found to be 'inferior' or of low correlation.
When I should t... |
I am analyzing frequency data (response variable = no. of seeds produced per plant) by fitting GLMM with a logarithmic link function and a Poisson error distribution. I also have data on no. of ovules produced per plant, so technically I can calculate the proportion of seed set as (no. of seeds produced per plant) / (n... |
A mouse does four things: eats (E), drinks (D), defecates (S), and urinates (U). A time chart records the occurrence of each event along with the time in minutes (after the commencement of measurement) at which the event occurred. The time-chart actually has around 12,000 events of which the following is a sample.
S, 5... |
I am using gam (mgcv) to model a continuous response (a soil nutrient) in relation to a continuous predictor plus categorical predictors plus site random effects (modest number of sites) with:
gam(log(y) ~ s(x, bs = "cr", by = fac1) +
fac1 + fac2 + s(site, bs = "re", by = flag),
method = "RE... |
We use back propagation through time in the recurrent neural nets. It's done by adding up the gradients w.r.t to weights in each time step. But my question is why can't we just keep getting the derivatives as we normally done in back prop.
|
I have a dependent continuous variable with range 0-100 representing restaurant health violations. Due to the nature of the variable, it does not make sense for a regression equation to predict a restaurant to score negative violations. I would like to limit the prediction interval for many different regression algorit... |
Having too many species in the data, makes the species labels overlap in a plot of a canonical correspondence analysis. This makes it difficult to interpret. Is there a reasonable possible solution?
How can I make the plot so that it is easier to interpret? There are so many species names that they are getting overlap... |
I'm working through an old qualifying exam, and part of a problem requires finding $E_t[X_{t+1}^{1 - \alpha}]$, where $X_{t+1}$ follows a random walk with drift that includes an iid normally-distributed shock and an iid "rare-disaster" shock that follows a two-point distribution. The process is defined as
\begin{equati... |
Let's say I were to impute values for a variable (using multiple imputation). Then I wanted to use that variable in a regression. Can I use the same variables I used to impute in my new regression?
So, for example, if I were to impute math test score with the variables race and income, could I then regress on GPA the v... |
I have a heavily imbalanced dataset with 170 columns and 2 million rows, there are also missing data in the set. As practiced, I drop all the null values, normalized the data using min-max method and performed different techniques to address the imbalance. I tried random oversampling, random undersampling, SMOTE, SMOTE... |
I have a use case where I need to check if new data received this week, is different from older data received last week. The data is continuous (basically voltage & power readings from a machine).
I had used Anova to do this but that doesn't really suit my application, I was wondering if there was a statistical method ... |
I'm working on CNN and I have a question about regularization. Max-norm constraints (a form of gradient clipping) apply a rescale of the weight vector that satisfies $|W|_2<c$, normally in the layer where Dropout is applied. If we apply a Lagrange multiplier to the function that satisfies this constraint we have $+λ (|... |
I used Metropolis-Hastings algorithm to run a MCMC to some failure data in Bayesian analysis and the posterior samples of the parameters were obtained. There's a strong correlation between the posterior samples. Does the correlation affect the point estimates from the posterior values? Can anyone please help me with th... |
I have been going through 2 posts:
What are the multidimensional versions of median here
And
Is there an accepted definition for the median of a sample on the plane, or higher ordered spaces? here
In the first post @Bitwise mentions a method for calculating the median for multivariate data by finding the minimum Eu... |
I have tried compute the autocovariance of the following process:
$$ Y_t = \beta_0+\beta_1t+\epsilon_t ~~~~~~~~~~~~,~ \epsilon_t \sim WN(0,\sigma^2) $$
I tried this way:
$$COV(Y_t, Y_{t-j}) = E[(Y_t - E(Y_t))(Y_{t-j}- E(Y_{t-j}))]$$
$$ = E[(\beta_0+\beta_1t+\epsilon_t-(\beta_0+\beta_1t))(\beta_0+\beta_1(t-j)+\epsilon_t... |
Similar to the following question,
How to extract/compute leverage and Cook's distances for linear mixed effects models
Is there any method in R to determine influential points in a GAM?
|
I've just started to examine the subject. Excuse me, if my questions sound stupid.
I have some statistics of football matches (injuries, corner kicks, yellow cards) with time references (a certain minute of the match). I want to make the model of neural network, which would bind football match to one of the patterns, d... |
I use monthly data to estimate relationship between some financial assets, get the following result using OLS with White covariance matrix (anticipating some sort of heteroskedactisity).
However, the AC/PACS analysis indicates strong autocorrelation and there seem to be volatility clustering on the residual chart:
Th... |
There's an old rule of thumb for multivariate statistics that recommends a minimum of 10 cases for each independent variable. But that's often where there is one parameter to fit for each variable.
Why I'm asking: I'm working through a textbook example that uses 500 Training cases (out of 25000 in the data set) with 15... |
I am trying to eliminate seasonality from a time series using Wiener-Kolmogorov filter, I am following the methodology explained in here this paper about signal extraction which is the same followed in this paper.
Following the paper I am able to reproduce figures 12 and 13 using the following MATLAB code:
clear
clc
... |
The arrival of photons at a pixel in an image sensor is a Poisson distributed random variable such that the input can be modeled as a Poisson r.v. $X\sim \mathrm{Poisson}(\lambda)$.
Since the input is Poisson, the mean and variance are equal such that
\begin{equation}
\frac{\mathbb{E}[X]}{\mathrm{Var}[X]}=1
\end{equati... |
I tried to implement my own LDA program in python, while following this tutorial. When I use gibbs sampling, the program assigns all words to a particular topic on convergence. When I greedily np.argmax assign the topics according to the probability, then program seems to work fine. Is there a problem with the code or ... |
I was reading Pattern recognition and Machine Learning by Bishop. There I found this equation, 2.21, which states how to calculate prior mean as the average of posterior mean.
$$\mathbb{E}_{\theta}{[\theta]} = \mathbb{E}_{\mathcal{D}}[\mathbb{E}_{\theta}{[\theta|\mathcal{D}]}]$$
where,
$$\mathbb{E}_{\theta}{[\theta]} ... |
Trying to compare different statistical tests, in particular anova(model,test="Chisq") and AIC, I have read the nice discussion under Logistic regression: anova chi-square test vs. significance of coefficients (anova() vs summary() in R)
However, it raised for me the question whether likelihood is in the background of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.