由买买提看人间百态

topics

全部话题 - 话题: y0
1 2 3 4 5 6 7 下页 末页 (共7页)
f****4
发帖数: 1359
1
来自主题: JobHunting版 - 问个面试题
void printspiral(char *a, int colsize, int m, int n, int x0, int y0)
{
// a is the matrix, colsize is its original column size
// m is #rows, n is #cols in the submatrix
// x0 and y0 are the offsets of the first element of the submatrix
// check if m and n are positive
if (m<=0 || n<=0) {
cout << "zero or negative dimensions" << endl;
return;
}
int i;
if(m>=2&&n>=2) {
// print the outer circle
for(i=0; i<=n-2; i++)
cout << a[x0*c... 阅读全帖
D**u
发帖数: 204
2
来自主题: Mathematics版 - election problem
答案.
(1) x0/(x0+y0), easy to prove.
(2) Beta distribution:
f(t; x0,y0) = 1/Beta(x0,y0) * (1-t)^(x0-1) * t^(y0-1)
= gamma(x0+y0)/(gamma(x0) * gamma(y0)) * (1-t)^(x0-1) * t^(y0-1).
Easy to check that f(t; x0,y0) satisfies the recursive formula:
f(t;x0,y0) = x0/(x0+y0) * f(t;x0+1,y0) + y0/(x0+y0) * f(t;x0,y0+1)
It is relatively easy to prove when x0 and y0 are integers. For non-integers
x0 and y0, I only have a guess that it's Beta distribution but no
theoretical proof (only have numerical "proof").
p********s
发帖数: 37
3
来自主题: JobHunting版 - 这道题到底是应该怎么做的?
还是没考虑成熟,哎面完了人就懒下来了,bz大牛将就看下
如前所述如果把正方形预处理成左上和右下两部分,并根据对角线dp,那么对于每条对
角线(左上-右下方向)问题可以转化为一维情况。即
如果可能的左上角(x0,y0)可以往右往下延伸到(x0+a,y0)和(x0,y0+a),且如果
可能的右下角(x0+i,y0+i)可以往左往下延伸到(x0+i-b,y0+i)和(x0+i,y0+i-b)
则构成正方形,否则不行。一维表示就是
用集合{(ai,bi)}表示所有(<=n)条起点为ai,终点为bi的直线,对应于上面的左上角(
ai是y0的值,bi是y0+a)
用{cj,dj}表示所有条起点为cj,终点为dj的直线,对应上面的右下角(dj是y0+i,cj是
y0+i-b)
要求的是:对于每个(ai,bi)有集合{(cj',dj')}满足cj'<=ai,bi>=dj'(才能构成正
方形),求集合中最大的dj'-ai(对于每个ai相当于求最大的dj')
-----问题描述后开始糊涂的分割线------
一开始显然{ai,bi}是按ai自然排好序的,a[i+1]=a[i]+1
而{cj,dj}是按dj... 阅读全帖
G*******m
发帖数: 16326
4
坐标变换。
x1 = x + 2
y1 = y + 2
so the circle will pass (2,2) and (-2,-2), assume the origin of the circle
is (x0,y0), then
(x0-2)^2 + (y0-2)^2 = (x0+2)^2 + (y0+2)^2
x0^2 + 4 - 4x0 + y0^2 + 4 - 4y0 =
x0^2 + 4 + 4x0 + y0^2 + 4 + 4y0
and therefore x0 + y0 = 0, x0 = -y0
so the radius of the circle = sqrt (x0 * x0 + 8)
special case: x0 = 0, r=2sqrt(2)
x0 can be any real number.
x******i
发帖数: 3022
5
来自主题: Mathematics版 - distance between 2 disjoint compact sets
作为一个民科,俺的citation已经够多了,不如自己
给封个顶吧。
这个题目的假设,肯定是A和B都是某度量空间X
里面的紧集。
因为A和B都是紧集,所以A*B也是X*X中的一个
紧集。所以,d(x,y),作为一个X*X->R的连续函数,
必然在紧集A*B上取最大和最小值。
所谓取最小值,就是存在某d(x0,y0),使得d(x0,y0)
的值等于inf{d(x,y): x \in A, y \in B},后者即A和B
之间的距离。
到了这一步已经很显然,这个最小值d(x0,y0)肯定不能
是0,即A和B距离一定不是0。
这一点的证明很简单:如果d(x0,y0)=0,则x0=y0。
由于x0属于A,y0属于B,x0=y0可以推出A与B的
交集非空。
k******o
发帖数: 61
6
【 以下文字转载自 Physics 讨论区 】
发信人: kafeimao (咖啡毛), 信区: Physics
标 题: 一个关于用matlab解微分方程的小问题 (转载)
发信站: BBS 未名空间站 (Sun May 8 17:53:36 2011, 美东)
发信人: kafeimao (咖啡毛), 信区: Mathematics
标 题: 一个关于用matlab解微分方程的小问题
发信站: BBS 未名空间站 (Sun May 8 17:29:15 2011, 美东)
大家好,我要用matlab做变系数微分方程组的参数拟合,参考其他论坛上的教程,我修
改了自己的程序如下:
function dy=dydt(t,y,k)
dy=zeros(2,1)
dy(1)=0.0321*k(1)*(k(2)-y(1))-k(3)*y(1)-y(2)
dy(2)=0.25*k(4)*exp(-k(4)*t)*k(2);
function y=numcal(k,x)
global y0
tspan=[0 max(x)];
[m,n]=size(x);
[tt yy] = ode23s(@... 阅读全帖
k******o
发帖数: 61
7
大家好,我要用matlab做变系数微分方程组的参数拟合,参考其他论坛上的教程,我修
改了自己的程序如下:
function dy=dydt(t,y,k)
dy=zeros(2,1)
dy(1)=0.0321*k(1)*(k(2)-y(1))-k(3)*y(1)-y(2)
dy(2)=0.25*k(4)*exp(-k(4)*t)*k(2);
function y=numcal(k,x)
global y0
tspan=[0 max(x)];
[m,n]=size(x);
[tt yy] = ode23s(@dydt,tspan,y0,[],k);
yc=spline(tt',yy',x);
y=yc;
主程序
clc;clear;
global y0
xdata=[1,2,3,4];ydata=[3,4,5,6];
k0=[0,0,0,0,];%要识别参数的初始值
lb=[0,0,0,0];%要识别参数的下限
ub=[6.5,5,6];%要识别参数的上限;课根据参数的范围自己设定。
options=optimset('TolFun',1e-20,'TolX',1e-20,'MaxFunE... 阅读全帖
k******o
发帖数: 61
8
【 以下文字转载自 Mathematics 讨论区 】
发信人: kafeimao (咖啡毛), 信区: Mathematics
标 题: 一个关于用matlab解微分方程的小问题
发信站: BBS 未名空间站 (Sun May 8 17:29:15 2011, 美东)
大家好,我要用matlab做变系数微分方程组的参数拟合,参考其他论坛上的教程,我修
改了自己的程序如下:
function dy=dydt(t,y,k)
dy=zeros(2,1)
dy(1)=0.0321*k(1)*(k(2)-y(1))-k(3)*y(1)-y(2)
dy(2)=0.25*k(4)*exp(-k(4)*t)*k(2);
function y=numcal(k,x)
global y0
tspan=[0 max(x)];
[m,n]=size(x);
[tt yy] = ode23s(@dydt,tspan,y0,[],k);
yc=spline(tt',yy',x);
y=yc;
主程序
clc;clear;
global y0
xdata=[1,2,3,4];ydata=data[3,4,5,... 阅读全帖
q******u
发帖数: 46
9
来自主题: Quant版 - 一个问题请教大家 (转载)
这个不难,就是个weak duality,dual<=primal
只需要证明对任意x0,y0, min_z f(x0,y0,z)<=p.特别的,令(x0,y0)=argmax_(x,y)min
_z f(x,y,z), 有d<=p
设zp是p的optimal point。对任意x0,y0:
min_z f(x0,y0,z)<=f(x0,y0,zp)<=max_(x,y) f(x,y,zp)=p
证毕
k******o
发帖数: 61
10
【 以下文字转载自 Mathematics 讨论区 】
发信人: kafeimao (咖啡毛), 信区: Mathematics
标 题: 一个关于用matlab解微分方程的小问题
发信站: BBS 未名空间站 (Sun May 8 17:29:15 2011, 美东)
大家好,我要用matlab做变系数微分方程组的参数拟合,参考其他论坛上的教程,我修
改了自己的程序如下:
function dy=dydt(t,y,k)
dy=zeros(2,1)
dy(1)=0.0321*k(1)*(k(2)-y(1))-k(3)*y(1)-y(2)
dy(2)=0.25*k(4)*exp(-k(4)*t)*k(2);
function y=numcal(k,x)
global y0
tspan=[0 max(x)];
[m,n]=size(x);
[tt yy] = ode23s(@dydt,tspan,y0,[],k);
yc=spline(tt',yy',x);
y=yc;
主程序
clc;clear;
global y0
xdata=[1,2,3,4];ydata=data[3,4,5,... 阅读全帖
D**u
发帖数: 204
11
来自主题: Science版 - election problem (转载)
Answer is Beta distribution
f(t; x0,y0) = 1/Beta(x0,y0) * (1-t)^(x0-1) * t^(y0-1)
= gamma(x0+y0)/(gamma(x0) * gamma(y0)) * (1-t)^(x0-1) * t^(y0-1).
See http://mitbbs.com/article_t/Mathematics/24392447.html
for more detail.

voters
n***y
发帖数: 2730
12
好吧,既然没人回应俺就先说自己的思路,没做完,大家看看是否可行。
用胖嫁来的单位原盘双曲模型,x^2 + y^2 <= 1.
三角形的两个顶点分别在x轴和y轴上,坐标为 (x,0), (0,y)。
过这两个顶点“直线”的圆心(x0,y0),“直线”半径为 r. 可以通过以下方程求出:
(x0 - x)^2 + y0^2 = r^2
x0^2 + (y0-y)^2 = r^2
然后该"直线"圆要和单位圆正切,所以:
x0^2 + y0^2 = r^2 + 1.
这样我们就可以把x0,y0, r写成x,y的函数。
于是可以算出(x,0)到(0,y)的"直线”距离(沿圆弧对ds^2的积分)。这个距离也写成
了x,y的函数,设定该距离为10,有了第一个方程式。
最后找出过原点(0,0)到连接(x,0), (0,y)的“直线”弧的垂直弧线(想想就觉得麻烦
)。
算出(0,0)到垂点的距离,这也是(x,y)的函数,设它为6,这样有了第二个方程式。
两个方程,两个变量x,y,应该可以求出。然后再算面积。。。反正我是要写程序才有
可能算出来了。
我好像不太对。。。。
q******u
发帖数: 46
13
来自主题: JobHunting版 - 面试问题请教
1有O(MN)的算法,关键就是用integral image只要O(1)就能check一个square or recta
ngle是不是满的。
具体做法令B(x0,y0)=sum_{x<=x0,y<=y0}A(x,y), A(x,y)=0/1。这样B(x0,y0)+B(x1,y1
)-B(x0,y1)-B(x1,y0)就是(x0,y0,x1,y1)中1的个数。
问题1就沿对角线y-x=k扫描,用DP可以在linear时间内解决。其中用到上面的trick去c
heck。
s*******f
发帖数: 1114
14
来自主题: JobHunting版 - FB电面求分析 (转载)
//码遍本版
//need more boundary check and a wrapper function for interview.
namespace maze{
struct Info{
int idx;
};
int di[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
bool InRange(int row, int col, int xx, int yy){
return 0 <= xx && xx < row && 0 <= yy && yy < col;
}
template
void MazeRoute(int m[][col], int row, int x0, int y0, int x1, int y1){
//static Info *info = new Info[row * col];
static vector > path;
... 阅读全帖
n********k
发帖数: 40
15
来说说我自己的解法吧,呵呵,仅供参考啊。
矩阵置零的题思路是这个样子:
1.对于任何一点(x0,y0),“在x0,y0处按键”这个操作或者你不做,或者你只做一次,因为做了n次和做了n-2次效果一样
2.对于任何两点(x0,y0),(x1,y1),“在x0,y0处按键”然后“在x1,y1处按键”和“在x1,y1处按键”然后“在x0,y0处按键”效果一样
3.由于1和2,我们可以从左上角一行一行遍历这个矩阵,用递归;我有种感觉这个问题是NPC的,虽然我没有证明,但是我觉得他妈的电话面试题能有多复杂,就写了一个暴搜。
递归这么写:
每一点
判断是否已然全零,是的话返回“成功”
判断是否已然出了矩阵范围,是的话返回“失败”
叫下一个点的递归,若成功返回“成功”
按键
叫下一个点的递归,若成功返回“成功”
按键
返回“失败”
t****a
发帖数: 1212
16
来自主题: JobHunting版 - a CS question
这是个数学题诶
假定用XY = {[x1,y1],...,[xi,yi],...[xn,yn]} 表示各个人的位置
求[x0,y0] = argmin{\sum(f(x0,yo))} = argmin{\sum(dist([xi,yi],[x0,y0]))}
目标函数是关于x0,y0的二次函数,可以对它求关于x0,y0的偏导数,最小值发生在两个
偏导数都等于0
解这个方程组可以得到x0, y0的取值
a*********a
发帖数: 3656
17
来自主题: Programming版 - 曲线光滑,什么算法最好?
then the formula I gave should be it. if you don't require crossing the
points, then it is a different matter.
starting from 0th, you can pick an arbitrary tangent. you have now y0, y0'.
then going to the 1st point, the only thing you can do is a quadratic form.
3 equations for 3 unknowns like I laid out before. y0=a x0^2+b x0+c,y1=a x1^
2+b x1+c,y0'=2 a1 x0+b1)
This will fix the tangent at point 1. then you solve anther equation set of
3. (y1=a x1^2+b x1+c,y2=a x2^2+b x2+c,y1'=2 a1 x1+b1). lath... 阅读全帖
b******p
发帖数: 4
18
来自主题: Science版 - 菜鸟求救
但怎么解这几个方程呢?
Given p0(x0, y0, z0), p1(x1,y1,z1),and r1 and r2, how to compute p(x,y,z)
(x-x0)^2 + (y-y0)^2 + (z-z0)^2 = r1^2
(x-x1)^2 + (y-y1)^2 + (z-z1)^2 = r2^2
x^2 + y^2 + z^2 = 1
how to write down the solution like
x = f(x0,y0,z0,x1,y1,z1,r1,r2)
y = g(x0,y0,z0,x1,y1,z1,r1,r2)
z = h(x0,y0,z0,x1,y1,z1,r1,r2)
thanks
b******p
发帖数: 4
19
来自主题: Science版 - 菜鸟求救
但怎么解这几个方程呢?
Given p0(x0, y0, z0), p1(x1,y1,z1),and r1 and r2, how to compute p(x,y,z)
(x-x0)^2 + (y-y0)^2 + (z-z0)^2 = r1^2
(x-x1)^2 + (y-y1)^2 + (z-z1)^2 = r2^2
x^2 + y^2 + z^2 = 1
how to write down the solution like
x = f(x0,y0,z0,x1,y1,z1,r1,r2)
y = g(x0,y0,z0,x1,y1,z1,r1,r2)
z = h(x0,y0,z0,x1,y1,z1,r1,r2)
thanks
l*****9
发帖数: 9501
20
来自主题: Military版 - 少女之心
少女之心
現在我來為大家敘述一個我的親身經歷。我叫曼娜,憶起往事,覺得非常有趣。我的經
歷大概和每個少女是一樣的,希望各位讀者能夠從我的經歷中得到些樂趣。那已是十幾
年以前的事了,而每當想起少女時代的這段往事,我至今都還能回味到幸福的剎那,甚
至對我的少女時代產生無限留戀之心,使得我體內翻捲起一股熱潮,掀起人性本能的衝
動,渾身發熱,血流加快。
# S! t) ]0 [* T+ C9 V5 [. y* X6 Z
初戀時的心情我不說恐怕我們每個朋友也會知道的。那是多麼的浪漫,又是多麼的
大膽,多麼的活潑。女孩子平時是那樣的斯文羞澀,她們心中的想法是沒人能知道的。
可一但開始戀愛,接觸異性,她們就會開始不顧一切地去追尋男女之間的樂趣。甚至往
往比對方還要主動百倍,平時的正經和矜持也只不過是時機的把握罷了。
5 u; M$ X7 }: `" [+ l# d1 a
我的青春隨著無情的歲月已漸漸消失了,年齡一天一天的大了起來,我已是兩個孩
子的母親了,兩個雙胞女兒,大女兒叫愛華,小女兒叫愛雲。+ I8 v- I1 [5 L# Y4 Y
' J8 Y: R, V% N5 Z& o7 e
當我在懷孕... 阅读全帖
r****o
发帖数: 1950
21
是不是先找到y=y0,
然后再判断多少点在y=y0上方,多少点在y=y0下方,多少点刚好落在y=y0上,
然后再决定x0怎么找?
c********t
发帖数: 5706
22
来自主题: JobHunting版 - a CS question
数学白痴是这么想的
如果想
Sum(sqrt((xi-x0)^2+(yi-y0)^2)) 最小
那么就要 Sum(sqrt(abs(xi-x0)+abs(yi-y0)))最小
就要 Sum(abs(xi-x0)+abs(yi-y0))最小
就要Sum(abs(xi-x0))最小 Sum(abs(yi-y0))最小
就是mean(x) mean(y)吧
t****a
发帖数: 1212
23
来自主题: JobHunting版 - a CS question
1. Sum(sqrt((xi-x0)^2+(yi-y0)^2)) 最小
2. 那么就要 Sum(sqrt(abs(xi-x0)+abs(yi-y0)))最小
3. 就要 Sum(abs(xi-x0)+abs(yi-y0))最小
4. 就要Sum(abs(xi-x0))最小 Sum(abs(yi-y0))最小
1->2, 2->3的逻辑我不懂,能给个解释么?
P**********k
发帖数: 1629
24
你再好好想一想吧
完全不用计算点到直线的距离。
假设(x0, y0)到直线L1的距离是最短的,那么假如与点(0, y0)距离最短的直线不是L1
,而是L2,那说明L1和L2必定在(0, x0)这个区间有交点。
但是题目给的条件是所有直线在这个区间都不相交,所以到(0, y0)距离最短的直线和
到(x0, y0)距离最短的直线是一条。

距离
c***a
发帖数: 655
25
来自主题: BrainTeaser版 - 【数学问题】猫抓老鼠
这个解法不用算微积分,但是也需要用到微积分的思想:
假设在任意时刻t,猫的速度v2和y轴的夹角是alpha(t),整个行程时间是T
那么从x轴考虑,猫鼠都走了同样距离:
integral(v2 *sin(alpha(t))* dt) = v1*T
i.e. v2 * integral(sin(alpha(t)) *dt) = v1*T --(1)
从老鼠的视角考虑,猫比鼠多走了y0:
integral( (v2 - v1*sin(alpha(t)) )*dt) = y0
v2*T - v1* integral(sin(alpha(t))*dt) = y0 -- (2)
the point is, just treat integral(sin(alpha(t)*dt) as an unknown variable x,
from (1) and (2) then you have
v2*x = v1*T
v2*T - v1*x = y0
二元(T,x)一次方程组,解一下就ok了。
c****s
发帖数: 51
26
来自主题: Joke版 - 问个椭圆问题 (转载)
万能的学术版,问个问题.
【 以下文字转载自 Physics 讨论区 】
发信人: cereus (仙人掌), 信区: Physics
标 题: 问个椭圆问题
发信站: BBS 未名空间站 (Wed Mar 24 21:19:53 2010, 美东)
一个椭圆,假设方程是:
A + B*(X-x0)*(X-x0) + C*(Y-y0)*(Y-y0) + D*(X-x0) + E*(Y-y0) + F*(X-x0)*(Y-y0
) = 0 (由于F不为零,所以X和Y之间有correlation)
请问这个correlation怎么样用A, B, C, D, E, F 这些参数来表示.
b***i
发帖数: 3043
27
没有问题的代码如下
gc.setFill(Color.BLUE);
gc.fillRect(x0, y0, 40, 40);
PixelWriter pw=gc.getPixelWriter();
//pw.setColor(x0+10, y0+10, Color.RED);
gc.setStroke(Color.RED);
gc.setLineWidth(5);
gc.translate(x0, y0);
gc.rotate(30);
gc.setFill(Color.RED);
gc.fillArc(20, 20, 15, 15, 0, 260, ArcType.ROUND);
gc.strokeLine(0, 0, 10, 10);
gc.rotate(-30);
gc.tr... 阅读全帖
a*********a
发帖数: 3656
28
来自主题: Programming版 - 曲线光滑,什么算法最好?
光滑到几阶?第0个点不能用点1到n的信息?那从点0出发的切向量是任意的?
最简单的2维多项式插值,给定(x0,y0), (x0',y0'), (x1,y1),
y0 = a*x0^2+b*x0+c;
y0' = 2*a*x0+b;
y1 = a*x1^2+b*x1+c;
可以给出点0到点1. 以此类推。不用更多点,二次多项式应该是最高可能的阶数了。
高纬度的一样,以x位参数,解y,z,h,g...。
p********n
发帖数: 273
29
来自主题: Computation版 - How to get the coefficient of the 2D guassian
Hi experts,
I got the fitting result of the gmdistribution object. Now I want to know
the exact expression of the 2D guassian function. From Wikipedia, I know the
expression is
f(x,y) = A*exp(-(a*(x-x0)^2 + 2*b*(x-x0)(y-y0) + c*(y-y0)^2))
where A is the hight of the peak and (x0,y0) is the center of the blob.
As far as I know,
x0 = obj.mu(1)
y0 = obj.mu(2)
My question is how to get coefficients a b c from obj.Sigma?
I supposed obj.Sigma = [a b
b c]
but that was n
b*b
发帖数: 422
30
从经济学角度看当前"希望工程"的合理性
MIMI
教育是公众事业, 理应由政府出资, 似乎是通行全世界的不争的道理.
那么"希望工程"是不是从某种程度上默许了政府的失职行为? 教育体
制的缺限是否会因为这样的宽容而拖延整改? 答案却不能简单用是或
非来概括.
从经济学的角度来说, 人们的投资行为是有一定预期的, 基本可以用
成本-收益模式来解释. 也就是说, 如果对某一特定项目/公司/股票
投资100元, 经10年后, 收益预期为150元(Y1); 而同样的10年内, 同
样的100块钱在社会各行业投资回报的平均值是130元(Y0), Y1>Y0, 那
么人们会倾向于进行投资; 反之, 如果 Y1 就是我们所讲的"不上算, 划不来"; 当然Y1=Y0, 投资人应当持无所谓
(indifference)的态度.
现在用这个非常简单的成本-收益模型来分析政府与个人对基础教育
的投资倾向. 对政府而言, 教育投资的预期是什么呢? 是公民素质的
提高, 投资环境的改善, 犯罪率下降, 高技术含量人力资源的增长, 最
终促进该地区经济发展, 政治稳定; 对个人及家庭
L*M
发帖数: 8
31
来自主题: Mathematics版 - Help me solve equations
Anyone who has Mathematica or maple, lease help me solve following equations:
(Yc-Y0)**2 + (Xc-X0)**2 = r**2
(Y1-Y0)**2 + (X1-X0)**2 = (r-r1)**2
(Y2-Y0)**2 + (X2-X0)**2 = (r-r2)**2
r, X0, Y0 are variables. r1, r2, X1, Y1, X2, Y2, Xc, Yc are paremeters.
TIA
L*M
发帖数: 8
32
来自主题: Mathematics版 - Again, help needed to solve equations
Anyone who has Mathematica, maple, or other tools, lease help me solve
following equations:
(Yc-Y0)**2 + (Xc-X0)**2 = r**2
(Y1-Y0)**2 + (X1-X0)**2 = (r-r1)**2
(Y2-Y0)**2 + (X2-X0)**2 = (r-r2)**2
r, X0, Y0 are variables. r1, r2, X1, Y1, X2, Y2, Xc, Yc are paremeters.
i******r
发帖数: 164
33
来自主题: Mathematics版 - 请教一个subgradient的问题
一个二元且有限的concave function:f(x,y),在(x0,y0)处的左右偏导不相等:
f对x求偏导,从左逼近x0为a,从右逼近x0为b,a>b(因为f是concave)
f对y求偏导,从左逼近y0为c,从右逼近y0为d,c>d。
a、b、c、d存在且有限
那么在(x0,y0)处的subgradient,定义为(s1,s2),是不是
b<=s1<=a, d<=s2<=c
谢谢。
H****h
发帖数: 1037
34
来自主题: Mathematics版 - 一个解析几何问题
椭圆上点(x1,y1)的外法向量方向是(x1/a^2,y1/b^2).
(x1,y1)和(x0,y0)的联线方向是(x0-x1,y0-y1).
你需要两者方向一致,于是有
(x1/a^2)/(x0-x1)=(y1/b^2)/(y0-y1)>0
所以有:(x1/a^2)(y0-y1)=(y1/b^2)(x0-x1).

得PQ
c****s
发帖数: 51
35
来自主题: Physics版 - 问个椭圆问题
一个椭圆,假设方程是:
A + B*(X-x0)*(X-x0) + C*(Y-y0)*(Y-y0) + D*(X-x0) + E*(Y-y0) + F*(X-x0)*(Y-y0
) = 0 (由于F不为零,所以X和Y之间有correlation)
请问这个correlation怎么样用A, B, C, D, E, F 这些参数来表示.
b***e
发帖数: 1419
36
来自主题: Science版 - Re: 求解两道数学题
For the first question, we first prove the following:
pr1(F) = X and pr1(G) = Y.
These are pretty straightforward by showing contradiction
otherwise. If there exist x in X such that x is not in
pr1(F), then F(x) = \phi, and G(F(x)) = \phi != {x}.
For any x in X, suppose F(x) = B (!= \phi), then G(B) = {x}.
This implies for any y in B, G(y) = {x}. Pick any y0 in B.
We know G(y0) = {x}. Dually, we can show that F(x) = {y0}.
In summary, we know for any x in X, there exists one and only
one y0, s
y*****w
发帖数: 1350
37
来自主题: Statistics版 - 问个统计问题
When including age*sex in the model, Y = Y0 + 2*age + 1 when sex = 1 vs. Y =
Y0 + age when sex = 0. When not including age*sex in the model, Y = Y0 +
age + 1 when sex = 1 vs. Y = Y0 + age when sex = 0.
You see that the former has 1 more age effect when sex = 1, as compared to
the latter. This 1 more age effect occupies some variation of Y originally
explained by sex, making sex non-significant.
Whenever you see a non-significant interaction effect, just drop it from the
model.
y*****w
发帖数: 1350
38
来自主题: Statistics版 - 问个统计问题
When including age*sex in the model, Y = Y0 + 2*age + 1 when sex = 1 vs. Y =
Y0 + age when sex = 0. When not including age*sex in the model, Y = Y0 +
age + 1 when sex = 1 vs. Y = Y0 + age when sex = 0.
You see that the former has 1 more age effect when sex = 1, as compared to
the latter. This 1 more age effect occupies some variation of Y originally
explained by sex, making sex non-significant.
Whenever you see a non-significant interaction effect, just drop it from the
model.
T*******x
发帖数: 8565
39
来自主题: Military版 - 再来个话题:一致连续
这个其实很简单:假设G和H距离为a,根据x方向上的一致收敛性,存在X0,Y0,当x>X0
,y>Y0时,f(x,y)离G距离不到a/2,根据y方向的一致收敛性,存在X1,Y1,当x>X1,y
>Y1时,f(x,y)离H距离不到a/2,找一个点(x,y)同时满足x>X0,y>Y0,和x>X1,y>Y1,
那么f(x,y)既和G距离不到a/2,又和H距离不到a/2,矛盾。

y
w*******4
发帖数: 1931
40
我想要的物品:
report for 课程:Computing chaos.求计算机达人帮忙
report title: Computing chaos
要求: http://www2.elc.polyu.edu.hk/CILL/reports.htm
单张面值:
可接受的价格(必须明码标价!):
$50
物品新旧要求:
brandnew, no copy from google
邮寄方式要求:
email
买卖双方谁承担邮寄损失(Required if not code only):
default
付款方式说明:
pp
广告的有效期:
周日ET 11:00pm完成report
物品来源:
我的联系方式:
pm
课程:Computing chaos.
Chaotic behaviour occurs when a system (described by a simple equation)
exhibits behaviour which is unpredictable in the long term. A classic
example of a chaotic system... 阅读全帖
e*i
发帖数: 10288
41
Forward this post to your email--if you are using telnet
_=_
_=_ Part 001 of 001 of file 5_off_30_cpn.zip
_=_
begin 666 5_off_30_cpn.zip
M4$L#!!0````(`&!D_$)O_NPBKE```.-W```0````-5]O9F9?,S!?8W!N+G!D
M9NV]=5Q5V]8P#"B*I)2((FR1E-@==)=T2(@@M:6[0T5"!`D+#%04D!`%:02D
MI;M#NKN[O@7F$>X]]]SG?=_OGV?NW]YK[KGF&CW''&.N8E82E^2" MZYI("%$@",C:P(R$GQ\L9VJ%U; M!:!=#6A'PI!@:9`V"`I'HD`P.%1'4)`$:V6T!P9TL)`0NMAAK^]A0L))""'?
M"Q1`O%=`5C_:H$@,^D`;"H4XT(9!0/]L@\'0R`-M*!Z>/]O@4`C\... 阅读全帖
z***b
发帖数: 4667
42
来自主题: Faculty版 - 问个统计问题
我在跑一个统计模型
800个数据点
Y=Y0+age+sex+age*sex---(1)
sex的p value不是significant
age的p value不是significant
age*sex的p value也不是significant的
但是跑
Y=Y0+age+sex---(2)
或者
Y=Y0+sex---(3)
sex的p value都是significant的
我的paper其他结果都证明sex有significant difference,为什么
这几个regression model结果差别这么大
如果age*sex 是无关项的话,为什么加了这个就导致sex不是significant
哪位前辈能提示一下或者解答一下
谢谢
z***b
发帖数: 4667
43
来自主题: Faculty版 - 问个统计问题
我在跑一个统计模型
800个数据点
Y=Y0+age+sex+age*sex---(1)
sex的p value不是significant
age的p value不是significant
age*sex的p value也不是significant的
但是跑
Y=Y0+age+sex---(2)
或者
Y=Y0+sex---(3)
sex的p value都是significant的
我的paper其他结果都证明sex有significant difference,为什么
这几个regression model结果差别这么大
如果age*sex 是无关项的话,为什么加了这个就导致sex不是significant
哪位前辈能提示一下或者解答一下
谢谢
w*******4
发帖数: 1931
44
我想要的物品:
report for 课程:Computing chaos.求计算机达人帮忙
report title: Computing chaos
要求: http://www2.elc.polyu.edu.hk/CILL/reports.htm
我提供所需的课本pdf,资料
单张面值:
可接受的价格(必须明码标价!):
$180
物品新旧要求:
brandnew, no copy from google
邮寄方式要求:
email
买卖双方谁承担邮寄损失(Required if not code only):
default
付款方式说明:
pp
广告的有效期:
今天接活
周日ET 11:00pm完成report
物品来源:
我的联系方式:
pm
课程:Computing chaos.
Chaotic behaviour occurs when a system (described by a simple equation)
exhibits behaviour which is unpredictable in the long term. A classic
exampl... 阅读全帖
t****a
发帖数: 1212
45
来自主题: JobHunting版 - a CS question
不好意思,之前的方程写错了,少写了开根号
修改以后的偏导数方程组为
-sum((x[i]-x0)/f(x0,y0)) = 0
-sum((y[i]-y0)/f(x0,y0)) = 0
我不会求解这个方程组,无法给出解析解
只好用梯度下降方法来迭代求解数值解。
这一题好像是某一年google code jam某一轮列出的题目之一。我记得当时那道题目也
只要求精度若干的数值解。
B***i
发帖数: 724
46
来自主题: JobHunting版 - 电面被羞辱了,求安慰~~~
安慰一下
1. 点 (x0, y0, z0), norm (a, b, c),
(x - x0, y - y0, z - z0) * ( a, b, c ) = a ( x - x0) + b ( y - y0) + c (
z - z0) = 0
=> ax + by + cz + ( -ax0 - by0 - cz0) = 0
n********r
发帖数: 4558
47
来自主题: Tennis版 - ATP Most Weeks at #1 - #10 List
这些数据遵循指数衰减
y=Aexp(-x/x0)+y0
拟合结果(保留到小数点后一位):
A=330.6
x0=2.8
y0=48.4
拟合参数的物理意义:
A代表某排名有可能达到的极限最长时间,330.6周,正常人类不可能突破。
x0代表各档次区间,排名每隔2.8位下降一档。
y0代表排名的一般保持时间,48.4周,接近52周,可见目前实行的52周更新的
排名系统乃是精确计算的结果。
Q.E.D.
j***g
发帖数: 11325
48
果然全都是0。我觉得不太能,肯定是什么地方不对
American Airlines
Flight: 810
Cabin class: F0 Y0 B0 M0 H0 V0 K0 Q0
Flight: 1756
Cabin class: F0 Y0 B0 M0 H0 V0 K0 Q0
Flight: 1390
Cabin class: F0 Y0 B0 M0 H0 V0 K0 Q0
1 2 3 4 5 6 7 下页 末页 (共7页)