instruction stringlengths 9 38.7k |
|---|
Quant developer interview question:
There are two price prediction models, one with accuracy 55%, another with accuracy 65%, both predict price is gonna go up, what's the probability that price is gonna go up? Please provide detailed answer.
One can assume two predictions are independent.
|
I use Naive Bayesian to train a dataSet:
weather temperature humidity windspeed Y/N?
rain cool normal strong N
sunny hot high strong N
sunny hot high weak N
sunny mild high weak N
sunny cool n... |
When I specify a GARCH-model (using "rugarch" package in R) and choose "std" as conditional distribution then the fit gives me a shape parameter. I read both, some say this is equal to DF (a thread on R-SIG-Finance), some say not.
If I use rdist function and plot the density, the higher the shape the fatter the tails,... |
I’m modelling a discrete-time 1-dimensional signal $y(t)$ as a sum of two input variables $x_1(t), x_2(t)$ convolved with their respective kernels plus noise
$y=x_1*g_1+x_2*g_2+\eta$
and I’m estimating the kernels $g_1$, $g_2$ by minimizing squared error with ridge regularization.
Both input variables are positive-val... |
When determining sample size we require population proportion (p) for a dichotomous outcome that to be measured (at 95% CI , 3% error ).
If the proportion (p) is unknown a conservative estimate of .5 assumed. sometimes pilot study conducted to find a value for the proportion (p). If there is previous study we can take... |
As far as I know, the outcome of classification tree is the class that the input observation belongs to.
Is it possible to obtain the probability that the input observation belongs to the predicted class? Is there another other way to compute this probability?
I'm not able to use the regression tree because my target ... |
am trying to learn KNN by working on Breast cancer dataset provided by UCI repository. The Total size of dataset is 699 with 9 continuous variables and 1 class variable.
I tested my accuracy on cross-validation set. For K =21 & K =19. Accuracy is 95.7%.
from sklearn.neighbors import KNeighborsClassifier
neigh = KNeighb... |
I would have to define, in R, a mixture of a number of bivariate normal distributions like that:
a strategy would be to define the single pieces of the expressions, for example:
bivn_1 <- mvrnorm(1000, mu = c(0, 0), Sigma = matrix(c(1, 0, 0, 1), 2))
bivn_2 <- mvrnorm(1000, mu = c(.5, .5), Sigma = matrix(c(.4, 0, 0, .4... |
We are interested in replicating several duration studies in the literature using ensemble learning methods. After some experimentation, we opted for random survival forests (Ishwaran et al. 2008) for their simplicity and performance. However, the package randomForestSRC in R only allows for time-invariant covariates. ... |
In this hypothetical example we have access to a database. In it cases are people with children and controls are those without kids. We want to measure the association between having children and Lung cancer.
We match each case to 'n' controls based on a given criteria. Shown below is the fantasy results obtained. In ... |
I think I understand the Neyman-Pearson lemma, but I'm really struggling to understand the reasoning with which it's used as a building block to build tests for composite hypotheses.
Take this worked example, say. At the end, they say that "the" critical region C defines a UMP test, but from what I can tell, they've go... |
I want test if measurement comes from my reference. I know reference distribution, for example it is:
$$
X = f(A,B) \\
A \sim N(0, \sigma) \\
B \sim U(a,b) \\
$$
$ f(A,B) $ - some function of the variables, for example $ f(A,B) = A + B $
Then I can run Monte Carlo (MC) simulation to simulate my distribution.
On pictur... |
I am working on a website scroll depth analysis tool.
Currently, I am trying to figure out how to calculate the depth where reached 80/60/40/20 percent of visitors.
A Solution I have now:
data:
Each data point represents lowest reach point in the session (px), one data point is one session
500
500
520
521
545---80%
545... |
Say I have come to the conclusion that the model for a specific data set should be an ARMA model with parameters a1, a2, a3, a9, a10, a11 and c1, c2, c3, c9, c10, c11, c12.
How can I do a model fitting using only these parameters, and thus setting all other possible parameters to zero?
|
$\Theta$ is a uniform random variable on the interval $[0, 2\pi)$, and we have $X = \cos(\Theta)$ and $Y = \sin(\Theta)$.
Suppose $(x,y)$ is a point inside the unit circle. Then, the arc length that is shown in white in Fig. 3.2.a on page 56 of An Introduction to Copulas (Nelson, 2006) is $2\pi H(x,y)$, where $H(x,y)$... |
Information about the data
For this study, I would like to statistically test how the total length of sparrows affects their survival. Consider here one of the characteristics of the sparrows recorded was total length, which is assumed to be normally distributed.
If this is possible, I would be incredibly grateful if ... |
I have a data-set of 4184x20 and 4184x1, 20 are input parameters while 1 is my target variable. When I first trained my network, it gave a specific value of m.s.e, but a strange thing happened. When I re-arranged the variables or simply swapped the position of some variables, my NN performance has changed. Why is that ... |
I'm using a negative binomial glmm for analysis.
The y values of my samples are summed over 12 individual counts of insect mines on leaves of a tree. You can get the data (and session info) from here!.
Treat has 2 levels;
Year has 2 levels;
Habitat has 3 levels;
leaves is the same number of 12 leaves for each sample;
l... |
I'm making a two-step analysis for my data.
First Step: I've collected inflation and interest rate data for 25 countries in a monthly frequency for the last 20 years. I run a simple linear of inflation (right side, X) on interest rate (left side, y) for each country.
At the end of this step, I have 25 coefficients for ... |
I have a dataset consisting of localisation ratings $x_{s,c}^{(r)}$, where $S$ subjects (index $s$) had to rate $C$ different conditions (index $c$). Each condition was presented to each subject $R$ times (index $r$) resulting in $RC$ ratings per subject. The order of presentation was randomized for each subject. Let
$... |
A Dirichlet process $\operatorname{DP}(\alpha,G_0)$ can be thought of as a distribution of distributions. I would like an object similar to a Dirichlet process, but which has support only on distributions whose mean value is some fixed and known value. Precisely, I want $\mathbb{E}_G[\theta]=\mathbb{E}_{G_0}[\theta]$ t... |
Dependent variable
I have a dependent value in the range of [0,1]. Meaning 0 and 1, and all values in between are included. Therefore this is a proportional value such as for instance the percentage of land a farmer fertilizes.
Model
The model I am currently focusing on is a logistic model.
However, as an output, I ... |
I have two datasets (1 million vs. 500 thousand). The first involves the citation counts of publications indexed by two prominent databases (group 1) (i.e. db1 and db2). The second contains the citation counts for the publications indexed only by db1 (group 2). Both samples have highly long tails.
The publications for... |
I have three treatments: control, treatment1, and treatment2. A total of four patients were examined after receiving each of these three treatments. The dependent variable is continuous. My dataset looks like this:
Patients control treatment1 treatment2
patient1 23.4 34.5 67.4
patient2 10.9 7... |
I have two question related to if data are normal distributed or not and interpretation. I am using R for my analysis
About my Data:
I have a data set X (lets assume they are females) that consist of G groups (Grouped based on where they live).
I am applying two approaches (A1, A2) to find the tallest female in each... |
I'm trying to estimate whether the values of signal (S) and background (B) intensities for a probe with 3 replicate spots (i.e. pseudoreplicates) are statistically significantly different at a given p value in a microarray experiment. This means that I have 3 values for signal intensities and 3 values for the (local) b... |
I have to evaluate the efficiency of a treatment on 9 patients. I made pre and post-treatment acquisitions to obtain 11 different kinematic variables and each patient had to perform a certain movement 6 times, so I have 12 trials per patient.
Now, to make the statistical evaluation and determine if the treatment was ef... |
This is what I have tried so far
> x <- scan('d65536.txt')
Read 65535 items
> x <- ts(x)
> a <- ar(x,oreder.max=2, aic=FALSE ,method=c("yule-walker"), demean=TRUE)$resid
I have residuals and what should be my next step?
|
Information about the data
This question is an extension from other questions at Quantile tables and confidence intervals and Quantiles tables and hypothesis testing. This particular question focuses on making inferences about the null and alternative hypothesis from t-tests.
For this study, I would like to statistica... |
For an $AR(1)$ model with $Y_t=12.2$ , $\phi=-0.5$ and $\mu=10.8$.
a) Find $\hat{Y}_t(1)$, $\hat{Y}_t(2)$, $\hat{Y}_t(10)$
I'm a litle lost in forecasting ARIMA models. What I think it is
$$Y_t-\mu=\phi(Y_{t-1}-\mu)+\epsilon_t$$
where $\epsilon_t$ is white noise.
$$\hat{Y}_t(1)=E[Y_{t+1}|Y_1,\dots,Y_t]=E[\mu+\phi(Y_t... |
This seems like a simple model, but I'm getting a bit stuck on it. Suppose I have an urn with $w$ white balls and $b$ black balls. At each turn, I draw a ball, note its color, and retrieve a ball with the opposite color, paint it the drawn ball's color, and put both back in the urn. (Notice the population is constant).... |
Is there a canonical regression approach for predicting the ranks of a response?
I'd like to fit a regression to a dataset where the response is highly non-normal with very large outliers. There are about 10 predictors. I haven't had much success with transformations (the best has been adding a constant and then loggi... |
I am examining data sets which consist of 3D point clouds of potential variation from an origin.
Currently, I am analyzing each plane independent of the others, resulting in an $x$ histogram, $y$ histogram, and $z$ histogram. I will also conduct tests for normality in each plane before I conduct additional analysis or... |
I have a dataset of 200 patients with lab results at time a given year and the previous year. The hypothesis is that in patients with a high-risk disease (group A) the change in the lab result will be steeper than in the low-risk (group B). For example we expect Hgb to drop by an average of 2g/l/year in group A and by ... |
Got stuck on an issue. We are doing a simple A/B, where treatment B has some updated legal language. We want to have appropriate statistical confidence that treatment B will not lower performance. How do I structure such a test? In previous tests I have been running simulations to check how often we'd be able to detect... |
I would like your opinion about which analyses to use for the research question.
I've got a repeated measures with binary data. N = 20
H0 = there is no difference between pre and post measurement
HA = there is a difference between pre and post measurement
So, I first wanted to go for the McNemar-test or maybe a Fisher'... |
In general it seems like the method of moments is just matching the observed sample mean, or variance to the theoretical moments to get parameter estimates. This is often the same as MLE for exponential families, I gather.
However, it's hard to find a clear definition of the method of moments and a clear discussion of... |
Background: the Benjamini-Hochberg procedure is a method for correcting for multiple p-values. (If you set p<.05, and you do 20 tests, then one test is likely to be a false positive. The B-H procedure corrects for this.)
When using this procedure, not only do you set a p value (usually .05), you also set a q value - th... |
It is quite simple to simulate linear models:
set.seed(42)
years <- rnorm(100, 12, 8)
work_hours <- rnorm(100, 8, 2)
income <- 2*years + 0.5*work_hours + 2000 + rnorm(100, 0, 10)
plot(work_hours, income2)
lmmodel <- lm(income ~ years + work_hours)
summary(lmmodel)
Or logistic models:
set.seed(42)
x1 <- rnorm(100)... |
When a metric is computed for a trained model with nfolds greater than 1 in h2o, what is the value when `xval=TRUE' ?
h2o.mse(model, xval=TRUE)
Here is my read and please correct me if I'm off. If nfolds is 3, it is doing 3-fold cross validation to select the best model. So, the mse(train=T) gives the MSE of the best ... |
I am collecting a large amount of date/time statistics in a mysql database about random people connecting to my computer. Time is represented as oob_time_sec and is converted from_unix(oob_time_sec) to a string containing an actual date and time. I am collecting a variety of data including time,source port,destinatio... |
Let's start assuming that I have cross-sectional data on $y$, $x_1$, $x_2$ (see below for $y$, $x_1$, $x_2$).
I want to estimate the effect of variables $x_1$ and $x_2$ and their interaction ($x_3= x_1*x_2$) on variable $y$ using the control function approach, and highly likely $x_1$ and $x_2$ are endogenous. I have tw... |
I would like to know how to interpret the density graph of Chi2...
simply like, why do the graphs run like they run??? I just don't get it. And I really don't want to brabble along like hypothesizing-- I'd like to understand :) Thanks]1
Source: https://de.wikipedia.org/wiki/Chi-Quadrat-Verteilung
|
I am trying to figure out an equation from the following paper by Cadena and Kovak (2016): http://pubs.aeaweb.org/doi/pdfplus/10.1257/app.20140095 on pages 264 and 265. I don't think the context is necessarily important for the purposes here, but the math definitely is.
They define a variable with a dot over it as: $\... |
I am trying to do a hypothesis test but I do not know if I am doing the correct steps for this.
I started to define the hypothesis for a binomial proportion $p$ as:
H0: A test suite cannot detect more than 0.60 of bugs, $p\leq{0.6}$.
H1: A test suite can detect more than 0.60 of bugs, $p>0.6$.
So $p_0= 0.60$ and the ... |
Let $B$ the lag operator and the following model
$$(1-0.5B)(1-B)Y_t=\epsilon_t$$ where $\epsilon_t$ is white noise with
$E[\epsilon_t]=0$ and $Var(\epsilon_t)=\sigma^2$. Given that
$Y_{18}=33$,$Y_{19}=32$ and $Y_{20}=40$, find the forecasts
$Y_{20}(k)$ for $k=1,2,3$.
What I did is
$$(1-1.5B+0.5B^2)Y_t=\epsilo... |
I have panel data with a time-invariant variable across firms. However, when I tested the xtsum after setting the panel data, there was very little (8.66e-17) within variance. I checked over and over in the data, but it was invariant within every firm over the time period of 2005-2014.
How do I deal with this? Is ther... |
I have data that comes as "fully corrected" T-scores (i.e., adjusted for age, sex, SES, etc., to a standardized score with a population mean 50 and SD 10) for 20 participants at time 1 and time 2. How do I figure out if there was a significant change? Can I run a t-test on T-scores?
|
I've got a dataset with the following format.
There's a binary outcome cancer/no cancer. Every doctor in the dataset has seen every patient and given an independent judgment on whether the patient has cancer or not. The doctors then give their confidence level out of 5 that their diagnosis is correct, and the confiden... |
In the binary classification/prediction problem we have unknown labels $y\in\{0,1\}$, which we try to predict using an estimator $\hat{y}$. Commonly the performance of an estimator is summarized using a confusion matrix, and many related performance metrics.
I have not done much work in this area, and reading about thi... |
I am trying to use basic classification algorithms in Python using sklearn. Unfortunately my dependent variable in training data are probabilities of whether it will rain or not. I know how to do this if my dependent variable is "rain" or "sunny". But now it is a probability. Can I use sklearn classification algorithms... |
I ran linear regression on my hotel reservation data and obtained the following model fit in R:
Sales = 170.2 + 3.6*Days_left_to_checkIn + 7.6*Revenue - 9.6*Room_Rate -7.67*cancellation_price + 4.8*Number_of_cancelled_Room -8.9*Online_reputation_of_Hotel
After this, I used the Optimize function to optimize the equation... |
I compared two unequal sized samples, N1 = 230 and N2 = 120 using a Mann-Whitney U test. The U is shown to be large such as 2829.
The p value is non-significant but I want to know if such large values of U is ok? Or is there something wrong there? I am using PAST software.
|
My task is to compare sets of lap times for two different makes of racing car at a given circuit, set by different groups of competent drivers (being competent eliminates very slow outliers). The lap times are measured down to 1/1000 second, so are essentially continuous. The goal is to be able to say that "Car 1 is on... |
I want to apply deep learning approaches to NLP, I am wondering if Deep learning is better than Hidden Markov models? Both have hidden layers, except that NN works on weights and HMM works on probabilities.
|
data: https://www.dropbox.com/s/4ni96jmzn14sjl4/florep_normn4_p1.mat?dl=0
I attached n*4 data. so here each row has 4 values and each row considered as one state. I want to calculate transition probability matrix with this data.
transition probability matrix calculated as what is probability of one state follows anot... |
If $n\gg p$ ($n$ is the number of observations, $p$ is the number of dimensions), is it always OK to use categorical predictors with many levels in regression? Here $p$ is also pretty high as the categorical predictors have many levels, although $n$ far outnumbers $p$. Or is there a better way?
This came up on one of t... |
I fit this very simple model in pyStan.
import pystan
import numpy as np
import matplotlib.pyplot as plt
election_code = """
data {
int<lower=0> n; // number of people
int<lower=0> y; // number of people preferring candidate A
}
parameters {
real<lower=0, upper=1> p;
}
model {
p ~ beta(1, 1); // equiva... |
New to statistical and machine learning and taking some online courses.
I am trying to understand logistic regression in more details, and noticed a difference in the formula between the Andrew Ng course and the Stanford statistical learning course. Below I post a link image to both formulas. So the numerator is differ... |
Can I take an average of the values I got from Shannon-Weaver index ? OR Is it wrong to take an average of some values that we get after applying natural logarithm (ln) in an equation, like Shannon-Weaver entropy ?
|
I have a dataset of users with gender and a value "fr" ([0-1]) which I hope can be used to predict the gender.
I tried fitting this data but contrary to what I expect and what make sense it predicts a higher fr means lower chance of female. I assume I must be misunderstanding something, this is my first time using Log... |
From a data set, I know the mean, P10, P50 and P90.
How do I estimate the cumulative probability of the mean?
The reason is that my data set may have extreme events, pushing the mean value to a high percentile.
It always hold that P50 < mean < P90. So I would like to have a better estimate of the "percentile" of the ... |
In LOOCV, in general, the model has to be fit n times (n being the number of observations). The test error is then estimated as a mean of all the individual test errors.
Hastie and Tibshirani mention in section 5.1.2 of their book that with least squares linear or polynomial regression, the cost of LOOCV reduces to tha... |
During a lesson at university, we ran this simulation to assess the fact that p-value distribution under alternative hypothesis is stochastically smaller than the uniform distribution.
So suppose we want to make an F-test for a linear regression (joint nullity of parameters)
n=10
p=3
beta=c(1,2,0) #beta_2=2,null hypoth... |
I am doing homework for analysis of Network Flow Data, and as class is organised in self-study way ( we have only book as reference (Eric D. Kolaczyk
Statistical Analysis of Network Data) ) I am stuck with solving the problem and have nobody to ask. We have the following log-likelihood:
$$
l(\mu) = l(\alpha, \beta, \th... |
I am currently working on my undergrad dissertation and I need to use VAR modelling. I vaguely understand what VAR, AR and MA are. What I am failing to understand is what "estimating a VAR" actually means. What does it imply? Does it mean finding the coefficient values?
|
I'm using Orange Canvas and I generated a scatter plot. I have the possibility to jitter continuous variables but I really don't know why would I do that.
What's the idea behind jittering?
|
What is the name of a graphic like that? I need to know it to search for the correct functions in R or other statistic software.
|
Why we tend to design more deep neural network instead of shallow?
|
It seems that I still do not understand properly how ACF works
My R calculations
> a1
[1] 5.0 1.5 2.0 3.5 1.0
Autocovariances of series ‘a1’, by lag
0 1 2 3 4
2.140 -0.792 -0.294 0.784 -0.768
Then I have decided to change the first and the last entry
> a1
[1] 1.0 1.5 2.0 3.5 5.0
> acf(a1,... |
When importance sampling is applied to real world applications like robotics control? The target policy $\pi_{(a|s)}$ is not known. So how can we compute the sampling ratio $\pi_{(a_t|s_t)}/\mu{(a_t|s_t)}$? I don't quite understand how importance sampling works when the numerator of the sampling ratio is not known. Can... |
Let $B$ the lag operator and $\{y_t\}$ the following model
$$(1-0.6B^4)y_t=(1+0.2B)\epsilon_t$$ where $\epsilon_t\sim N(0,16)$.
a) Is it a stationary process?
b) Find the autocorrelation function of $\{y_t\}$
c)Let $y_{97}=196$, $y_{98}=195$, $y_{99}=198$ and $y_{100}=200$. Find
the forecast three-steps ahead $y_{... |
I try to modelise the following target variable from one of its covariable. I can't talk about what it represents. The color is the log1p of the number of points.
I tried a GAM model but the variance is not coherent with such models. This is the sd of the target :
Do you know which kind of model I could use in this ... |
Give an approach to generate 50 elements between 1 to 1000 with negative skewness.
|
I am doing a weighted linear least squares fit to N measured values of the form $(x, y, dy)$, where $x$ is the independent variable, $y$ is the independent variable, and $dy$ is the error estimates for the independent variable. Following the linked wikipedia page, I am able to get the two fit parameters but not yet abl... |
A good residual vs fitted plot has three characteristics:
The residuals "bounce randomly" around the 0 line. This suggests that the assumption that the relationship is linear is reasonable.
The residuals roughly form a "horizontal band" around the 0 line. This suggests that the variances of the error terms are equal.... |
I have calculated 5 beta factors (beta is defined as the ratio between covariance between two time series and the variance between the one series).
When I used CCC with GJR dynamics I get this
When calculating with DCC the picture looks very similar just without this extreme spikes of the blue line.
I am searching fo... |
I have created my own neural net which is using batch gradient descent. In other words, it trains on batches of examples all at once.
My issue is trying to figure out when to stop the training of the batch. I'll try to make things as understandable as possible since there are so many options, but please comment if you ... |
Is there any other reason for using Stochastic Gradient Descent than reducing time until convergence? In other words, does it ever make sense to try out SGD when regular Gradient Descent runs fairly quickly?
|
I have a set of biased coins $N$, where each coin has a different bias $\theta_i$ (probability of heads for $i$th coin is $\theta_i$). This bias is unknown and needs to be estimated.
There are $K$ experts who independently from each other toss each coin exactly once, observe the value and report it. Alas, the experts a... |
Let's say I have an array of values drawn from a normal distribution with mean 50 and standard deviation 10. Using python:
d = np.random.normal(50,10,1000)
I take a single random sample of size n = 10 from this distribution:
s = np.random.choice(d, 10)
What process do I go through to get the best estimate of the popu... |
Suppose I have a set of 5 colors and 3 judges whose job is to choose their favorite color in the set. Each judge will be shown a screen with 2/5 colors and then another new pair of colors from the set and then a new pair until all pairs are exhausted. For each pair, the judge would click and choose one out of the two c... |
How does the y term vanish/get cancelled ?
Shouldn't it be this instead, h here is the Sigmoid function.
|
I'm currently working on a predictive modeling project. I have to predict $Y$ given variables $X_1,X_2,X_3$ and $X_4$ that are not necessarily independent. Our first idea was to propose a linear regression model defined as
$$Y = \beta_0+\beta_1 X_1 + \beta_2 X_2+ \beta_3 X_3 + \beta_4 X_4.$$
In my dataset ($10^5$ obser... |
Consider an unknown number of adult deer, $N$, which can be split into two groups - males, $M$, and females, $F$, where $N = F + M$. These adults were hunted during the year (a lethal form of sampling without replacement), with each group having its own individual-level probability of being killed by a hunter, $p_f$ an... |
I'm trying to predict the numeric value (based on different variables) and for that I want to use different methods and compare these methods (having a variety of methods is more important than finding the absolute best one).
My problem is, that I'm a beginner in the field of predictive analytics and only have some bas... |
Sorry of a similar question has been asked before but I did not get my answer.
I have some TV viewership (which I can not provide, I am sorry) that I am pretty sure has 3 periodicities: daily, weekly and yearly. I know this because I can see that in the graphs when I plot the viewership every half an hour throughout t... |
I'm testing if one algorithm is faster than another. I can carry on increasing the sample and use the Welch t-test to see if one of them is faster to confidence level. My problem is when to stop and declare them equal. Is there a way to do this with a Welch t-test? I guess I may need to say they are equal if they are w... |
Let $y_1,y_2,\dots,y_{10}$ be a time series generated by
$$y_t=\delta+\epsilon_t+\theta\epsilon_{t-2}$$ where $\epsilon_t$ is
white noise with $E[\epsilon_t]=0$, $Var(\epsilon_t)=\sigma^2$ and
$\delta$, $\theta$ are unknown parameters.
a) Propose a estimator for $\delta$ and find the variance of this
estimator... |
Suppose the following dataset:
[3 4 3 4 6 12 12 7 8 9]
[2 5 3 4 12 2 2 10 7 6]
[3 4 3 4 5 11 10 7 8 9]
These numbers are totally random. So this dataset, depicts three (3) players going to a casino with 10 tables, where they play a dice game. Each player throws his/her own dice (that might be biased) and then the play... |
I know that there has been many questions regarding analysing likert scales but I still have not found the easiest way to approach my analyse.
I have done a survey with 100 participants that has 3 groups of questions based on the likert scale (1-7), with 8 questions in each group. Depending on the answers of the first... |
Let's say a have a medical study and I need to describe a structure of a sample: 20% patients died, 10% of patients were cured and so on.
I'm gonna count a confidence interval for each of these proportions.
Do I have to consider the fact that there are more than one CI? Do I have to do a multiple testing correction? ... |
I am learning about the feature selection using Python and SciKit learn. I came across the SelectKBest class, however it is unclear what kind of test is performed.
Select features according to the k highest scores.
http://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectKBest.html#sklearn.feat... |
I was trying the cartpole environment from OpenAI gym. The cost function goes up with time and the reward function goes down. I have no clue why it happens and how to solve it.
Top: Cost, bottom: Reward
import numpy as np
import tensorflow as tf
import gym
import matplotlib.pyplot as plt
env = gym.make('CartPole-v0')
... |
I have just started to study stats and I had a fairly basic question. Say I had three sets of measurements from three different groups. How do I run an ANOVA on the measurements. For example,
Group | Temp measurement 1 | Temp measurement 2 | Temp measurement 3 |
---------------------------------------------------------... |
Lets say I have 2 different normal distributions N1, N2.
Then I make one observation X1.
I would like to know which distribution (N1 or N2) it fits better and what probability/score it makes for each distribution.
P.S. As I understand, I can estimate modulo of z score only. If score z =.1 for distribution N1 and z = .... |
I am trying to give my student an advice about which application would be better to choose.
The student is preparing for the public police officer test, and there're two options.
This test is only based on the intelligence of applicant, not on the physical aspects of him.
okay,
the first option - 3000 people take the... |
I have a complex distribution which I can numerically sample.
I'd like to estimate a percentile (let's say 90%) using Monte-Carlo simulations. What I'm doing is:
I run 1 million of independent simulations and I get 1 million of samples from the distribution.
I order them in ascending order, and I take the one that it'... |
I am working on a logistic regression model.
The ratio of 1s to 0s in the train dataset is 7:2 (14,000 1s and 4,000 0s)
The model performance is:
Accuracy - 83%
True Positive rate - 84%
True Negative rate - 74%
Area under the curve (ROC plot) is 0.78
Couple of questions:
Do I have to treat the class imbalance in this ... |
I have a python code that is using the top level model which combines the gesture and threshold model (HMM). then it evaluates it. actually my task is to implement spotting performance evaluation like precision and recall but actually I didn't understand how to implement them because as far as I understood for the pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.